1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381 |
- import {
- ArrowLeftOutlined_default,
- ArrowRightOutlined_default,
- BarsOutlined_default,
- CalendarOutlined_default,
- CaretDownFilled_default,
- CaretDownOutlined_default,
- CaretUpOutlined_default,
- CheckCircleFilled_default,
- CheckCircleOutlined_default,
- CheckOutlined_default,
- ClockCircleOutlined_default,
- CloseCircleFilled_default,
- CloseCircleOutlined_default,
- CloseOutlined_default,
- CopyOutlined_default,
- DeleteOutlined_default,
- DoubleLeftOutlined_default,
- DoubleRightOutlined_default,
- DownOutlined_default,
- DownloadOutlined_default,
- EditOutlined_default,
- EllipsisOutlined_default,
- EnterOutlined_default,
- ExclamationCircleFilled_default,
- ExclamationCircleOutlined_default,
- EyeInvisibleOutlined_default,
- EyeOutlined_default,
- FileOutlined_default,
- FileTwoTone_default,
- FilterFilled_default,
- FolderOpenOutlined_default,
- FolderOutlined_default,
- InfoCircleFilled_default,
- InfoCircleOutlined_default,
- LeftOutlined_default,
- LoadingOutlined_default,
- MinusSquareOutlined_default,
- PaperClipOutlined_default,
- PictureTwoTone_default,
- PlusOutlined_default,
- PlusSquareOutlined_default,
- RightOutlined_default,
- RotateLeftOutlined_default,
- RotateRightOutlined_default,
- SearchOutlined_default,
- StarFilled_default,
- SwapRightOutlined_default,
- TinyColor,
- UpOutlined_default,
- VerticalAlignTopOutlined_default,
- WarningFilled_default,
- ZoomInOutlined_default,
- ZoomOutOutlined_default,
- generate,
- presetPrimaryColors
- } from "/node_modules/.vite/deps/chunk-KXBRUB4Z.js?v=9548b9c3";
- import {
- Comment,
- Fragment,
- Teleport,
- Text,
- Transition,
- TransitionGroup,
- camelize,
- cloneVNode,
- computed,
- createApp,
- createTextVNode,
- createVNode,
- defineComponent,
- getCurrentInstance,
- getCurrentScope,
- inject,
- isRef,
- isVNode,
- nextTick,
- onActivated,
- onBeforeMount,
- onBeforeUnmount,
- onBeforeUpdate,
- onDeactivated,
- onMounted,
- onScopeDispose,
- onUnmounted,
- onUpdated,
- provide,
- reactive,
- ref,
- render,
- renderSlot,
- resolveDirective,
- shallowRef,
- toRaw,
- toRef,
- toRefs,
- unref,
- useAttrs,
- vShow,
- watch,
- watchEffect,
- withDirectives,
- withModifiers
- } from "/node_modules/.vite/deps/chunk-LJEY6MVM.js?v=9548b9c3";
- import {
- _defineProperty,
- _objectSpread2,
- _toPropertyKey,
- _typeof,
- zh_CN_default
- } from "/node_modules/.vite/deps/chunk-SB7LUPJL.js?v=9548b9c3";
- import {
- require_dayjs_min
- } from "/node_modules/.vite/deps/chunk-CF6WQFQB.js?v=9548b9c3";
- import {
- __commonJS,
- __export,
- __toESM
- } from "/node_modules/.vite/deps/chunk-WQG2LZMB.js?v=9548b9c3";
- // node_modules/@babel/runtime/helpers/typeof.js
- var require_typeof = __commonJS({
- "node_modules/@babel/runtime/helpers/typeof.js"(exports2, module2) {
- function _typeof3(obj) {
- "@babel/helpers - typeof";
- return module2.exports = _typeof3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
- return typeof obj2;
- } : function(obj2) {
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
- }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports, _typeof3(obj);
- }
- module2.exports = _typeof3, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
- }
- });
- // node_modules/@babel/runtime/helpers/regeneratorRuntime.js
- var require_regeneratorRuntime = __commonJS({
- "node_modules/@babel/runtime/helpers/regeneratorRuntime.js"(exports2, module2) {
- var _typeof3 = require_typeof()["default"];
- function _regeneratorRuntime6() {
- "use strict";
- module2.exports = _regeneratorRuntime6 = function _regeneratorRuntime7() {
- return exports3;
- }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
- var exports3 = {}, Op = Object.prototype, hasOwn3 = Op.hasOwnProperty, defineProperty2 = Object.defineProperty || function(obj, key2, desc) {
- obj[key2] = desc.value;
- }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
- function define2(obj, key2, value) {
- return Object.defineProperty(obj, key2, {
- value,
- enumerable: true,
- configurable: true,
- writable: true
- }), obj[key2];
- }
- try {
- define2({}, "");
- } catch (err) {
- define2 = function define3(obj, key2, value) {
- return obj[key2] = value;
- };
- }
- function wrap(innerFn, outerFn, self2, tryLocsList) {
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator2 = Object.create(protoGenerator.prototype), context2 = new Context(tryLocsList || []);
- return defineProperty2(generator2, "_invoke", {
- value: makeInvokeMethod(innerFn, self2, context2)
- }), generator2;
- }
- function tryCatch(fn, obj, arg) {
- try {
- return {
- type: "normal",
- arg: fn.call(obj, arg)
- };
- } catch (err) {
- return {
- type: "throw",
- arg: err
- };
- }
- }
- exports3.wrap = wrap;
- var ContinueSentinel = {};
- function Generator() {
- }
- function GeneratorFunction() {
- }
- function GeneratorFunctionPrototype() {
- }
- var IteratorPrototype = {};
- define2(IteratorPrototype, iteratorSymbol, function() {
- return this;
- });
- var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([])));
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn3.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
- function defineIteratorMethods(prototype) {
- ["next", "throw", "return"].forEach(function(method4) {
- define2(prototype, method4, function(arg) {
- return this._invoke(method4, arg);
- });
- });
- }
- function AsyncIterator(generator2, PromiseImpl) {
- function invoke(method4, arg, resolve, reject) {
- var record = tryCatch(generator2[method4], generator2, arg);
- if ("throw" !== record.type) {
- var result = record.arg, value = result.value;
- return value && "object" == _typeof3(value) && hasOwn3.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function(value2) {
- invoke("next", value2, resolve, reject);
- }, function(err) {
- invoke("throw", err, resolve, reject);
- }) : PromiseImpl.resolve(value).then(function(unwrapped) {
- result.value = unwrapped, resolve(result);
- }, function(error) {
- return invoke("throw", error, resolve, reject);
- });
- }
- reject(record.arg);
- }
- var previousPromise;
- defineProperty2(this, "_invoke", {
- value: function value(method4, arg) {
- function callInvokeWithMethodAndArg() {
- return new PromiseImpl(function(resolve, reject) {
- invoke(method4, arg, resolve, reject);
- });
- }
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
- }
- });
- }
- function makeInvokeMethod(innerFn, self2, context2) {
- var state = "suspendedStart";
- return function(method4, arg) {
- if ("executing" === state)
- throw new Error("Generator is already running");
- if ("completed" === state) {
- if ("throw" === method4)
- throw arg;
- return doneResult();
- }
- for (context2.method = method4, context2.arg = arg; ; ) {
- var delegate = context2.delegate;
- if (delegate) {
- var delegateResult = maybeInvokeDelegate(delegate, context2);
- if (delegateResult) {
- if (delegateResult === ContinueSentinel)
- continue;
- return delegateResult;
- }
- }
- if ("next" === context2.method)
- context2.sent = context2._sent = context2.arg;
- else if ("throw" === context2.method) {
- if ("suspendedStart" === state)
- throw state = "completed", context2.arg;
- context2.dispatchException(context2.arg);
- } else
- "return" === context2.method && context2.abrupt("return", context2.arg);
- state = "executing";
- var record = tryCatch(innerFn, self2, context2);
- if ("normal" === record.type) {
- if (state = context2.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel)
- continue;
- return {
- value: record.arg,
- done: context2.done
- };
- }
- "throw" === record.type && (state = "completed", context2.method = "throw", context2.arg = record.arg);
- }
- };
- }
- function maybeInvokeDelegate(delegate, context2) {
- var methodName = context2.method, method4 = delegate.iterator[methodName];
- if (void 0 === method4)
- return context2.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context2.method = "return", context2.arg = void 0, maybeInvokeDelegate(delegate, context2), "throw" === context2.method) || "return" !== methodName && (context2.method = "throw", context2.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
- var record = tryCatch(method4, delegate.iterator, context2.arg);
- if ("throw" === record.type)
- return context2.method = "throw", context2.arg = record.arg, context2.delegate = null, ContinueSentinel;
- var info = record.arg;
- return info ? info.done ? (context2[delegate.resultName] = info.value, context2.next = delegate.nextLoc, "return" !== context2.method && (context2.method = "next", context2.arg = void 0), context2.delegate = null, ContinueSentinel) : info : (context2.method = "throw", context2.arg = new TypeError("iterator result is not an object"), context2.delegate = null, ContinueSentinel);
- }
- function pushTryEntry(locs) {
- var entry = {
- tryLoc: locs[0]
- };
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
- }
- function resetTryEntry(entry) {
- var record = entry.completion || {};
- record.type = "normal", delete record.arg, entry.completion = record;
- }
- function Context(tryLocsList) {
- this.tryEntries = [{
- tryLoc: "root"
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(true);
- }
- function values(iterable) {
- if (iterable) {
- var iteratorMethod = iterable[iteratorSymbol];
- if (iteratorMethod)
- return iteratorMethod.call(iterable);
- if ("function" == typeof iterable.next)
- return iterable;
- if (!isNaN(iterable.length)) {
- var i3 = -1, next2 = function next3() {
- for (; ++i3 < iterable.length; )
- if (hasOwn3.call(iterable, i3))
- return next3.value = iterable[i3], next3.done = false, next3;
- return next3.value = void 0, next3.done = true, next3;
- };
- return next2.next = next2;
- }
- }
- return {
- next: doneResult
- };
- }
- function doneResult() {
- return {
- value: void 0,
- done: true
- };
- }
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty2(Gp, "constructor", {
- value: GeneratorFunctionPrototype,
- configurable: true
- }), defineProperty2(GeneratorFunctionPrototype, "constructor", {
- value: GeneratorFunction,
- configurable: true
- }), GeneratorFunction.displayName = define2(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports3.isGeneratorFunction = function(genFun) {
- var ctor = "function" == typeof genFun && genFun.constructor;
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
- }, exports3.mark = function(genFun) {
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define2(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
- }, exports3.awrap = function(arg) {
- return {
- __await: arg
- };
- }, defineIteratorMethods(AsyncIterator.prototype), define2(AsyncIterator.prototype, asyncIteratorSymbol, function() {
- return this;
- }), exports3.AsyncIterator = AsyncIterator, exports3.async = function(innerFn, outerFn, self2, tryLocsList, PromiseImpl) {
- void 0 === PromiseImpl && (PromiseImpl = Promise);
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self2, tryLocsList), PromiseImpl);
- return exports3.isGeneratorFunction(outerFn) ? iter : iter.next().then(function(result) {
- return result.done ? result.value : iter.next();
- });
- }, defineIteratorMethods(Gp), define2(Gp, toStringTagSymbol, "Generator"), define2(Gp, iteratorSymbol, function() {
- return this;
- }), define2(Gp, "toString", function() {
- return "[object Generator]";
- }), exports3.keys = function(val) {
- var object4 = Object(val), keys2 = [];
- for (var key2 in object4)
- keys2.push(key2);
- return keys2.reverse(), function next2() {
- for (; keys2.length; ) {
- var key3 = keys2.pop();
- if (key3 in object4)
- return next2.value = key3, next2.done = false, next2;
- }
- return next2.done = true, next2;
- };
- }, exports3.values = values, Context.prototype = {
- constructor: Context,
- reset: function reset(skipTempReset) {
- if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = false, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(resetTryEntry), !skipTempReset)
- for (var name in this)
- "t" === name.charAt(0) && hasOwn3.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = void 0);
- },
- stop: function stop() {
- this.done = true;
- var rootRecord = this.tryEntries[0].completion;
- if ("throw" === rootRecord.type)
- throw rootRecord.arg;
- return this.rval;
- },
- dispatchException: function dispatchException(exception) {
- if (this.done)
- throw exception;
- var context2 = this;
- function handle(loc, caught) {
- return record.type = "throw", record.arg = exception, context2.next = loc, caught && (context2.method = "next", context2.arg = void 0), !!caught;
- }
- for (var i3 = this.tryEntries.length - 1; i3 >= 0; --i3) {
- var entry = this.tryEntries[i3], record = entry.completion;
- if ("root" === entry.tryLoc)
- return handle("end");
- if (entry.tryLoc <= this.prev) {
- var hasCatch = hasOwn3.call(entry, "catchLoc"), hasFinally = hasOwn3.call(entry, "finallyLoc");
- if (hasCatch && hasFinally) {
- if (this.prev < entry.catchLoc)
- return handle(entry.catchLoc, true);
- if (this.prev < entry.finallyLoc)
- return handle(entry.finallyLoc);
- } else if (hasCatch) {
- if (this.prev < entry.catchLoc)
- return handle(entry.catchLoc, true);
- } else {
- if (!hasFinally)
- throw new Error("try statement without catch or finally");
- if (this.prev < entry.finallyLoc)
- return handle(entry.finallyLoc);
- }
- }
- }
- },
- abrupt: function abrupt(type4, arg) {
- for (var i3 = this.tryEntries.length - 1; i3 >= 0; --i3) {
- var entry = this.tryEntries[i3];
- if (entry.tryLoc <= this.prev && hasOwn3.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
- var finallyEntry = entry;
- break;
- }
- }
- finallyEntry && ("break" === type4 || "continue" === type4) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
- var record = finallyEntry ? finallyEntry.completion : {};
- return record.type = type4, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
- },
- complete: function complete(record, afterLoc) {
- if ("throw" === record.type)
- throw record.arg;
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
- },
- finish: function finish(finallyLoc) {
- for (var i3 = this.tryEntries.length - 1; i3 >= 0; --i3) {
- var entry = this.tryEntries[i3];
- if (entry.finallyLoc === finallyLoc)
- return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
- }
- },
- "catch": function _catch(tryLoc) {
- for (var i3 = this.tryEntries.length - 1; i3 >= 0; --i3) {
- var entry = this.tryEntries[i3];
- if (entry.tryLoc === tryLoc) {
- var record = entry.completion;
- if ("throw" === record.type) {
- var thrown = record.arg;
- resetTryEntry(entry);
- }
- return thrown;
- }
- }
- throw new Error("illegal catch attempt");
- },
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
- return this.delegate = {
- iterator: values(iterable),
- resultName,
- nextLoc
- }, "next" === this.method && (this.arg = void 0), ContinueSentinel;
- }
- }, exports3;
- }
- module2.exports = _regeneratorRuntime6, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
- }
- });
- // node_modules/@babel/runtime/regenerator/index.js
- var require_regenerator = __commonJS({
- "node_modules/@babel/runtime/regenerator/index.js"(exports2, module2) {
- var runtime = require_regeneratorRuntime()();
- module2.exports = runtime;
- try {
- regeneratorRuntime = runtime;
- } catch (accidentalStrictMode) {
- if (typeof globalThis === "object") {
- globalThis.regeneratorRuntime = runtime;
- } else {
- Function("r", "regeneratorRuntime = r")(runtime);
- }
- }
- }
- });
- // node_modules/dayjs/plugin/weekday.js
- var require_weekday = __commonJS({
- "node_modules/dayjs/plugin/weekday.js"(exports2, module2) {
- !function(e3, t3) {
- "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t3() : "function" == typeof define && define.amd ? define(t3) : (e3 = "undefined" != typeof globalThis ? globalThis : e3 || self).dayjs_plugin_weekday = t3();
- }(exports2, function() {
- "use strict";
- return function(e3, t3) {
- t3.prototype.weekday = function(e4) {
- var t4 = this.$locale().weekStart || 0, i3 = this.$W, n3 = (i3 < t4 ? i3 + 7 : i3) - t4;
- return this.$utils().u(e4) ? n3 : this.subtract(n3, "day").add(e4, "day");
- };
- };
- });
- }
- });
- // node_modules/dayjs/plugin/localeData.js
- var require_localeData = __commonJS({
- "node_modules/dayjs/plugin/localeData.js"(exports2, module2) {
- !function(n3, e3) {
- "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = e3() : "function" == typeof define && define.amd ? define(e3) : (n3 = "undefined" != typeof globalThis ? globalThis : n3 || self).dayjs_plugin_localeData = e3();
- }(exports2, function() {
- "use strict";
- return function(n3, e3, t3) {
- var r3 = e3.prototype, o2 = function(n4) {
- return n4 && (n4.indexOf ? n4 : n4.s);
- }, u2 = function(n4, e4, t4, r4, u3) {
- var i4 = n4.name ? n4 : n4.$locale(), a3 = o2(i4[e4]), s3 = o2(i4[t4]), f2 = a3 || s3.map(function(n5) {
- return n5.slice(0, r4);
- });
- if (!u3)
- return f2;
- var d2 = i4.weekStart;
- return f2.map(function(n5, e5) {
- return f2[(e5 + (d2 || 0)) % 7];
- });
- }, i3 = function() {
- return t3.Ls[t3.locale()];
- }, a2 = function(n4, e4) {
- return n4.formats[e4] || function(n5) {
- return n5.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(n6, e5, t4) {
- return e5 || t4.slice(1);
- });
- }(n4.formats[e4.toUpperCase()]);
- }, s2 = function() {
- var n4 = this;
- return { months: function(e4) {
- return e4 ? e4.format("MMMM") : u2(n4, "months");
- }, monthsShort: function(e4) {
- return e4 ? e4.format("MMM") : u2(n4, "monthsShort", "months", 3);
- }, firstDayOfWeek: function() {
- return n4.$locale().weekStart || 0;
- }, weekdays: function(e4) {
- return e4 ? e4.format("dddd") : u2(n4, "weekdays");
- }, weekdaysMin: function(e4) {
- return e4 ? e4.format("dd") : u2(n4, "weekdaysMin", "weekdays", 2);
- }, weekdaysShort: function(e4) {
- return e4 ? e4.format("ddd") : u2(n4, "weekdaysShort", "weekdays", 3);
- }, longDateFormat: function(e4) {
- return a2(n4.$locale(), e4);
- }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
- };
- r3.localeData = function() {
- return s2.bind(this)();
- }, t3.localeData = function() {
- var n4 = i3();
- return { firstDayOfWeek: function() {
- return n4.weekStart || 0;
- }, weekdays: function() {
- return t3.weekdays();
- }, weekdaysShort: function() {
- return t3.weekdaysShort();
- }, weekdaysMin: function() {
- return t3.weekdaysMin();
- }, months: function() {
- return t3.months();
- }, monthsShort: function() {
- return t3.monthsShort();
- }, longDateFormat: function(e4) {
- return a2(n4, e4);
- }, meridiem: n4.meridiem, ordinal: n4.ordinal };
- }, t3.months = function() {
- return u2(i3(), "months");
- }, t3.monthsShort = function() {
- return u2(i3(), "monthsShort", "months", 3);
- }, t3.weekdays = function(n4) {
- return u2(i3(), "weekdays", null, null, n4);
- }, t3.weekdaysShort = function(n4) {
- return u2(i3(), "weekdaysShort", "weekdays", 3, n4);
- }, t3.weekdaysMin = function(n4) {
- return u2(i3(), "weekdaysMin", "weekdays", 2, n4);
- };
- };
- });
- }
- });
- // node_modules/dayjs/plugin/weekOfYear.js
- var require_weekOfYear = __commonJS({
- "node_modules/dayjs/plugin/weekOfYear.js"(exports2, module2) {
- !function(e3, t3) {
- "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t3() : "function" == typeof define && define.amd ? define(t3) : (e3 = "undefined" != typeof globalThis ? globalThis : e3 || self).dayjs_plugin_weekOfYear = t3();
- }(exports2, function() {
- "use strict";
- var e3 = "week", t3 = "year";
- return function(i3, n3, r3) {
- var f2 = n3.prototype;
- f2.week = function(i4) {
- if (void 0 === i4 && (i4 = null), null !== i4)
- return this.add(7 * (i4 - this.week()), "day");
- var n4 = this.$locale().yearStart || 1;
- if (11 === this.month() && this.date() > 25) {
- var f3 = r3(this).startOf(t3).add(1, t3).date(n4), s2 = r3(this).endOf(e3);
- if (f3.isBefore(s2))
- return 1;
- }
- var a2 = r3(this).startOf(t3).date(n4).startOf(e3).subtract(1, "millisecond"), o2 = this.diff(a2, e3, true);
- return o2 < 0 ? r3(this).startOf("week").week() : Math.ceil(o2);
- }, f2.weeks = function(e4) {
- return void 0 === e4 && (e4 = null), this.week(e4);
- };
- };
- });
- }
- });
- // node_modules/dayjs/plugin/weekYear.js
- var require_weekYear = __commonJS({
- "node_modules/dayjs/plugin/weekYear.js"(exports2, module2) {
- !function(e3, t3) {
- "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t3() : "function" == typeof define && define.amd ? define(t3) : (e3 = "undefined" != typeof globalThis ? globalThis : e3 || self).dayjs_plugin_weekYear = t3();
- }(exports2, function() {
- "use strict";
- return function(e3, t3) {
- t3.prototype.weekYear = function() {
- var e4 = this.month(), t4 = this.week(), n3 = this.year();
- return 1 === t4 && 11 === e4 ? n3 + 1 : 0 === e4 && t4 >= 52 ? n3 - 1 : n3;
- };
- };
- });
- }
- });
- // node_modules/dayjs/plugin/quarterOfYear.js
- var require_quarterOfYear = __commonJS({
- "node_modules/dayjs/plugin/quarterOfYear.js"(exports2, module2) {
- !function(t3, n3) {
- "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = n3() : "function" == typeof define && define.amd ? define(n3) : (t3 = "undefined" != typeof globalThis ? globalThis : t3 || self).dayjs_plugin_quarterOfYear = n3();
- }(exports2, function() {
- "use strict";
- var t3 = "month", n3 = "quarter";
- return function(e3, i3) {
- var r3 = i3.prototype;
- r3.quarter = function(t4) {
- return this.$utils().u(t4) ? Math.ceil((this.month() + 1) / 3) : this.month(this.month() % 3 + 3 * (t4 - 1));
- };
- var s2 = r3.add;
- r3.add = function(e4, i4) {
- return e4 = Number(e4), this.$utils().p(i4) === n3 ? this.add(3 * e4, t3) : s2.bind(this)(e4, i4);
- };
- var u2 = r3.startOf;
- r3.startOf = function(e4, i4) {
- var r4 = this.$utils(), s3 = !!r4.u(i4) || i4;
- if (r4.p(e4) === n3) {
- var o2 = this.quarter() - 1;
- return s3 ? this.month(3 * o2).startOf(t3).startOf("day") : this.month(3 * o2 + 2).endOf(t3).endOf("day");
- }
- return u2.bind(this)(e4, i4);
- };
- };
- });
- }
- });
- // node_modules/dayjs/plugin/advancedFormat.js
- var require_advancedFormat = __commonJS({
- "node_modules/dayjs/plugin/advancedFormat.js"(exports2, module2) {
- !function(e3, t3) {
- "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t3() : "function" == typeof define && define.amd ? define(t3) : (e3 = "undefined" != typeof globalThis ? globalThis : e3 || self).dayjs_plugin_advancedFormat = t3();
- }(exports2, function() {
- "use strict";
- return function(e3, t3) {
- var r3 = t3.prototype, n3 = r3.format;
- r3.format = function(e4) {
- var t4 = this, r4 = this.$locale();
- if (!this.isValid())
- return n3.bind(this)(e4);
- var s2 = this.$utils(), a2 = (e4 || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(e5) {
- switch (e5) {
- case "Q":
- return Math.ceil((t4.$M + 1) / 3);
- case "Do":
- return r4.ordinal(t4.$D);
- case "gggg":
- return t4.weekYear();
- case "GGGG":
- return t4.isoWeekYear();
- case "wo":
- return r4.ordinal(t4.week(), "W");
- case "w":
- case "ww":
- return s2.s(t4.week(), "w" === e5 ? 1 : 2, "0");
- case "W":
- case "WW":
- return s2.s(t4.isoWeek(), "W" === e5 ? 1 : 2, "0");
- case "k":
- case "kk":
- return s2.s(String(0 === t4.$H ? 24 : t4.$H), "k" === e5 ? 1 : 2, "0");
- case "X":
- return Math.floor(t4.$d.getTime() / 1e3);
- case "x":
- return t4.$d.getTime();
- case "z":
- return "[" + t4.offsetName() + "]";
- case "zzz":
- return "[" + t4.offsetName("long") + "]";
- default:
- return e5;
- }
- });
- return n3.bind(this)(a2);
- };
- };
- });
- }
- });
- // node_modules/dayjs/plugin/customParseFormat.js
- var require_customParseFormat = __commonJS({
- "node_modules/dayjs/plugin/customParseFormat.js"(exports2, module2) {
- !function(e3, t3) {
- "object" == typeof exports2 && "undefined" != typeof module2 ? module2.exports = t3() : "function" == typeof define && define.amd ? define(t3) : (e3 = "undefined" != typeof globalThis ? globalThis : e3 || self).dayjs_plugin_customParseFormat = t3();
- }(exports2, function() {
- "use strict";
- var e3 = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, t3 = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n3 = /\d\d/, r3 = /\d\d?/, i3 = /\d*[^-_:/,()\s\d]+/, o2 = {}, s2 = function(e4) {
- return (e4 = +e4) + (e4 > 68 ? 1900 : 2e3);
- };
- var a2 = function(e4) {
- return function(t4) {
- this[e4] = +t4;
- };
- }, f2 = [/[+-]\d\d:?(\d\d)?|Z/, function(e4) {
- (this.zone || (this.zone = {})).offset = function(e5) {
- if (!e5)
- return 0;
- if ("Z" === e5)
- return 0;
- var t4 = e5.match(/([+-]|\d\d)/g), n4 = 60 * t4[1] + (+t4[2] || 0);
- return 0 === n4 ? 0 : "+" === t4[0] ? -n4 : n4;
- }(e4);
- }], h3 = function(e4) {
- var t4 = o2[e4];
- return t4 && (t4.indexOf ? t4 : t4.s.concat(t4.f));
- }, u2 = function(e4, t4) {
- var n4, r4 = o2.meridiem;
- if (r4) {
- for (var i4 = 1; i4 <= 24; i4 += 1)
- if (e4.indexOf(r4(i4, 0, t4)) > -1) {
- n4 = i4 > 12;
- break;
- }
- } else
- n4 = e4 === (t4 ? "pm" : "PM");
- return n4;
- }, d2 = { A: [i3, function(e4) {
- this.afternoon = u2(e4, false);
- }], a: [i3, function(e4) {
- this.afternoon = u2(e4, true);
- }], S: [/\d/, function(e4) {
- this.milliseconds = 100 * +e4;
- }], SS: [n3, function(e4) {
- this.milliseconds = 10 * +e4;
- }], SSS: [/\d{3}/, function(e4) {
- this.milliseconds = +e4;
- }], s: [r3, a2("seconds")], ss: [r3, a2("seconds")], m: [r3, a2("minutes")], mm: [r3, a2("minutes")], H: [r3, a2("hours")], h: [r3, a2("hours")], HH: [r3, a2("hours")], hh: [r3, a2("hours")], D: [r3, a2("day")], DD: [n3, a2("day")], Do: [i3, function(e4) {
- var t4 = o2.ordinal, n4 = e4.match(/\d+/);
- if (this.day = n4[0], t4)
- for (var r4 = 1; r4 <= 31; r4 += 1)
- t4(r4).replace(/\[|\]/g, "") === e4 && (this.day = r4);
- }], M: [r3, a2("month")], MM: [n3, a2("month")], MMM: [i3, function(e4) {
- var t4 = h3("months"), n4 = (h3("monthsShort") || t4.map(function(e5) {
- return e5.slice(0, 3);
- })).indexOf(e4) + 1;
- if (n4 < 1)
- throw new Error();
- this.month = n4 % 12 || n4;
- }], MMMM: [i3, function(e4) {
- var t4 = h3("months").indexOf(e4) + 1;
- if (t4 < 1)
- throw new Error();
- this.month = t4 % 12 || t4;
- }], Y: [/[+-]?\d+/, a2("year")], YY: [n3, function(e4) {
- this.year = s2(e4);
- }], YYYY: [/\d{4}/, a2("year")], Z: f2, ZZ: f2 };
- function c2(n4) {
- var r4, i4;
- r4 = n4, i4 = o2 && o2.formats;
- for (var s3 = (n4 = r4.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n5, r5) {
- var o3 = r5 && r5.toUpperCase();
- return n5 || i4[r5] || e3[r5] || i4[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e4, t5, n6) {
- return t5 || n6.slice(1);
- });
- })).match(t3), a3 = s3.length, f3 = 0; f3 < a3; f3 += 1) {
- var h4 = s3[f3], u3 = d2[h4], c3 = u3 && u3[0], l2 = u3 && u3[1];
- s3[f3] = l2 ? { regex: c3, parser: l2 } : h4.replace(/^\[|\]$/g, "");
- }
- return function(e4) {
- for (var t4 = {}, n5 = 0, r5 = 0; n5 < a3; n5 += 1) {
- var i5 = s3[n5];
- if ("string" == typeof i5)
- r5 += i5.length;
- else {
- var o3 = i5.regex, f4 = i5.parser, h5 = e4.slice(r5), u4 = o3.exec(h5)[0];
- f4.call(t4, u4), e4 = e4.replace(u4, "");
- }
- }
- return function(e5) {
- var t5 = e5.afternoon;
- if (void 0 !== t5) {
- var n6 = e5.hours;
- t5 ? n6 < 12 && (e5.hours += 12) : 12 === n6 && (e5.hours = 0), delete e5.afternoon;
- }
- }(t4), t4;
- };
- }
- return function(e4, t4, n4) {
- n4.p.customParseFormat = true, e4 && e4.parseTwoDigitYear && (s2 = e4.parseTwoDigitYear);
- var r4 = t4.prototype, i4 = r4.parse;
- r4.parse = function(e5) {
- var t5 = e5.date, r5 = e5.utc, s3 = e5.args;
- this.$u = r5;
- var a3 = s3[1];
- if ("string" == typeof a3) {
- var f3 = true === s3[2], h4 = true === s3[3], u3 = f3 || h4, d3 = s3[2];
- h4 && (d3 = s3[2]), o2 = this.$locale(), !f3 && d3 && (o2 = n4.Ls[d3]), this.$d = function(e6, t6, n5) {
- try {
- if (["x", "X"].indexOf(t6) > -1)
- return new Date(("X" === t6 ? 1e3 : 1) * e6);
- var r6 = c2(t6)(e6), i5 = r6.year, o3 = r6.month, s4 = r6.day, a4 = r6.hours, f4 = r6.minutes, h5 = r6.seconds, u4 = r6.milliseconds, d4 = r6.zone, l3 = /* @__PURE__ */ new Date(), m3 = s4 || (i5 || o3 ? 1 : l3.getDate()), M3 = i5 || l3.getFullYear(), Y2 = 0;
- i5 && !o3 || (Y2 = o3 > 0 ? o3 - 1 : l3.getMonth());
- var p = a4 || 0, v2 = f4 || 0, D2 = h5 || 0, g2 = u4 || 0;
- return d4 ? new Date(Date.UTC(M3, Y2, m3, p, v2, D2, g2 + 60 * d4.offset * 1e3)) : n5 ? new Date(Date.UTC(M3, Y2, m3, p, v2, D2, g2)) : new Date(M3, Y2, m3, p, v2, D2, g2);
- } catch (e7) {
- return /* @__PURE__ */ new Date("");
- }
- }(t5, a3, r5), this.init(), d3 && true !== d3 && (this.$L = this.locale(d3).$L), u3 && t5 != this.format(a3) && (this.$d = /* @__PURE__ */ new Date("")), o2 = {};
- } else if (a3 instanceof Array)
- for (var l2 = a3.length, m2 = 1; m2 <= l2; m2 += 1) {
- s3[1] = a3[m2 - 1];
- var M2 = n4.apply(this, s3);
- if (M2.isValid()) {
- this.$d = M2.$d, this.$L = M2.$L, this.init();
- break;
- }
- m2 === l2 && (this.$d = /* @__PURE__ */ new Date(""));
- }
- else
- i4.call(this, e5);
- };
- };
- });
- }
- });
- // node_modules/ant-design-vue/es/components.js
- var components_exports = {};
- __export(components_exports, {
- Affix: () => affix_default,
- Alert: () => alert_default,
- Anchor: () => anchor_default,
- AnchorLink: () => AnchorLink_default,
- AutoComplete: () => auto_complete_default,
- AutoCompleteOptGroup: () => AutoCompleteOptGroup,
- AutoCompleteOption: () => AutoCompleteOption,
- Avatar: () => avatar_default,
- AvatarGroup: () => Group_default,
- BackTop: () => back_top_default,
- Badge: () => badge_default,
- BadgeRibbon: () => Ribbon_default,
- Breadcrumb: () => breadcrumb_default,
- BreadcrumbItem: () => BreadcrumbItem_default,
- BreadcrumbSeparator: () => BreadcrumbSeparator_default,
- Button: () => button_default2,
- ButtonGroup: () => button_group_default,
- Calendar: () => calendar_default,
- Card: () => card_default,
- CardGrid: () => Grid_default,
- CardMeta: () => Meta_default,
- Carousel: () => carousel_default,
- Cascader: () => cascader_default,
- CheckableTag: () => CheckableTag_default,
- Checkbox: () => checkbox_default,
- CheckboxGroup: () => Group_default3,
- Col: () => col_default,
- Collapse: () => collapse_default,
- CollapsePanel: () => CollapsePanel_default,
- Comment: () => comment_default,
- ConfigProvider: () => config_provider_default,
- DatePicker: () => date_picker_default,
- Descriptions: () => descriptions_default,
- DescriptionsItem: () => DescriptionsItem,
- DirectoryTree: () => DirectoryTree_default,
- Divider: () => divider_default,
- Drawer: () => drawer_default,
- Dropdown: () => dropdown_default2,
- DropdownButton: () => dropdown_button_default,
- Empty: () => empty_default2,
- Form: () => form_default,
- FormItem: () => FormItem_default,
- FormItemRest: () => FormItemContext_default,
- Grid: () => grid_default,
- Image: () => image_default,
- ImagePreviewGroup: () => PreviewGroup_default2,
- Input: () => input_default,
- InputGroup: () => Group_default4,
- InputNumber: () => input_number_default,
- InputPassword: () => Password_default,
- InputSearch: () => Search_default,
- Layout: () => layout_default2,
- LayoutContent: () => LayoutContent,
- LayoutFooter: () => LayoutFooter,
- LayoutHeader: () => LayoutHeader,
- LayoutSider: () => LayoutSider,
- List: () => list_default,
- ListItem: () => Item_default3,
- ListItemMeta: () => ItemMeta_default,
- LocaleProvider: () => locale_provider_default,
- Mentions: () => mentions_default,
- MentionsOption: () => MentionsOption,
- Menu: () => menu_default,
- MenuDivider: () => Divider_default,
- MenuItem: () => MenuItem_default,
- MenuItemGroup: () => ItemGroup_default,
- Modal: () => modal_default,
- MonthPicker: () => MonthPicker,
- PageHeader: () => page_header_default,
- Pagination: () => pagination_default,
- Popconfirm: () => popconfirm_default,
- Popover: () => popover_default,
- Progress: () => progress_default2,
- QuarterPicker: () => QuarterPicker,
- Radio: () => radio_default,
- RadioButton: () => RadioButton_default,
- RadioGroup: () => Group_default2,
- RangePicker: () => RangePicker,
- Rate: () => rate_default,
- Result: () => result_default,
- Row: () => row_default,
- Select: () => select_default,
- SelectOptGroup: () => SelectOptGroup,
- SelectOption: () => SelectOption,
- Skeleton: () => skeleton_default,
- SkeletonAvatar: () => Avatar_default2,
- SkeletonButton: () => Button_default,
- SkeletonImage: () => Image_default2,
- SkeletonInput: () => Input_default3,
- SkeletonTitle: () => Title_default,
- Slider: () => slider_default2,
- Space: () => space_default,
- Spin: () => spin_default,
- Statistic: () => statistic_default,
- StatisticCountdown: () => StatisticCountdown,
- Step: () => Step,
- Steps: () => steps_default,
- SubMenu: () => SubMenu_default,
- Switch: () => switch_default,
- TabPane: () => TabPane_default,
- Table: () => table_default,
- TableColumn: () => Column_default2,
- TableColumnGroup: () => ColumnGroup_default2,
- TableSummary: () => TableSummary,
- TableSummaryCell: () => TableSummaryCell,
- TableSummaryRow: () => TableSummaryRow,
- Tabs: () => tabs_default,
- Tag: () => tag_default,
- Textarea: () => TextArea_default,
- TimePicker: () => time_picker_default2,
- TimeRangePicker: () => TimeRangePicker,
- Timeline: () => timeline_default,
- TimelineItem: () => TimelineItem_default,
- Tooltip: () => tooltip_default,
- Transfer: () => transfer_default,
- Tree: () => tree_default,
- TreeNode: () => TreeNode,
- TreeSelect: () => tree_select_default,
- TreeSelectNode: () => TreeSelectNode,
- Typography: () => typography_default,
- TypographyLink: () => Link_default,
- TypographyParagraph: () => Paragraph_default2,
- TypographyText: () => Text_default,
- TypographyTitle: () => Title_default2,
- Upload: () => upload_default,
- UploadDragger: () => UploadDragger,
- WeekPicker: () => WeekPicker,
- message: () => message_default,
- notification: () => notification_default
- });
- // node_modules/@babel/runtime/helpers/esm/extends.js
- function _extends() {
- _extends = Object.assign ? Object.assign.bind() : function(target) {
- for (var i3 = 1; i3 < arguments.length; i3++) {
- var source = arguments[i3];
- for (var key2 in source) {
- if (Object.prototype.hasOwnProperty.call(source, key2)) {
- target[key2] = source[key2];
- }
- }
- }
- return target;
- };
- return _extends.apply(this, arguments);
- }
- // node_modules/ant-design-vue/es/_util/util.js
- var isFunction = function isFunction2(val) {
- return typeof val === "function";
- };
- var controlDefaultValue = Symbol("controlDefaultValue");
- var isArray = Array.isArray;
- var isString = function isString2(val) {
- return typeof val === "string";
- };
- var isObject = function isObject2(val) {
- return val !== null && _typeof(val) === "object";
- };
- var onRE = /^on[^a-z]/;
- var isOn = function isOn2(key2) {
- return onRE.test(key2);
- };
- var cacheStringFunction = function cacheStringFunction2(fn) {
- var cache = /* @__PURE__ */ Object.create(null);
- return function(str) {
- var hit = cache[str];
- return hit || (cache[str] = fn(str));
- };
- };
- var camelizeRE = /-(\w)/g;
- var camelize2 = cacheStringFunction(function(str) {
- return str.replace(camelizeRE, function(_2, c2) {
- return c2 ? c2.toUpperCase() : "";
- });
- });
- var hyphenateRE = /\B([A-Z])/g;
- var hyphenate = cacheStringFunction(function(str) {
- return str.replace(hyphenateRE, "-$1").toLowerCase();
- });
- var capitalize = cacheStringFunction(function(str) {
- return str.charAt(0).toUpperCase() + str.slice(1);
- });
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- var hasOwn = function hasOwn2(val, key2) {
- return hasOwnProperty.call(val, key2);
- };
- function resolvePropValue(options, props5, key2, value) {
- var opt = options[key2];
- if (opt != null) {
- var hasDefault = hasOwn(opt, "default");
- if (hasDefault && value === void 0) {
- var defaultValue = opt.default;
- value = opt.type !== Function && isFunction(defaultValue) ? defaultValue() : defaultValue;
- }
- if (opt.type === Boolean) {
- if (!hasOwn(props5, key2) && !hasDefault) {
- value = false;
- } else if (value === "") {
- value = true;
- }
- }
- }
- return value;
- }
- function getDataAndAriaProps(props5) {
- return Object.keys(props5).reduce(function(memo, key2) {
- if (key2.substr(0, 5) === "data-" || key2.substr(0, 5) === "aria-") {
- memo[key2] = props5[key2];
- }
- return memo;
- }, {});
- }
- function toPx(val) {
- if (typeof val === "number")
- return "".concat(val, "px");
- return val;
- }
- function renderHelper(v2) {
- var props5 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var defaultV = arguments.length > 2 ? arguments[2] : void 0;
- if (typeof v2 === "function") {
- return v2(props5);
- }
- return v2 !== null && v2 !== void 0 ? v2 : defaultV;
- }
- // node_modules/ant-design-vue/es/_util/classNames.js
- function classNames() {
- var classes = [];
- for (var i3 = 0; i3 < arguments.length; i3++) {
- var value = i3 < 0 || arguments.length <= i3 ? void 0 : arguments[i3];
- if (!value)
- continue;
- if (isString(value)) {
- classes.push(value);
- } else if (isArray(value)) {
- for (var _i = 0; _i < value.length; _i++) {
- var inner = classNames(value[_i]);
- if (inner) {
- classes.push(inner);
- }
- }
- } else if (isObject(value)) {
- for (var name in value) {
- if (value[name]) {
- classes.push(name);
- }
- }
- }
- }
- return classes.join(" ");
- }
- var classNames_default = classNames;
- // node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
- var MapShim = function() {
- if (typeof Map !== "undefined") {
- return Map;
- }
- function getIndex(arr, key2) {
- var result = -1;
- arr.some(function(entry, index3) {
- if (entry[0] === key2) {
- result = index3;
- return true;
- }
- return false;
- });
- return result;
- }
- return (
- /** @class */
- function() {
- function class_1() {
- this.__entries__ = [];
- }
- Object.defineProperty(class_1.prototype, "size", {
- /**
- * @returns {boolean}
- */
- get: function() {
- return this.__entries__.length;
- },
- enumerable: true,
- configurable: true
- });
- class_1.prototype.get = function(key2) {
- var index3 = getIndex(this.__entries__, key2);
- var entry = this.__entries__[index3];
- return entry && entry[1];
- };
- class_1.prototype.set = function(key2, value) {
- var index3 = getIndex(this.__entries__, key2);
- if (~index3) {
- this.__entries__[index3][1] = value;
- } else {
- this.__entries__.push([key2, value]);
- }
- };
- class_1.prototype.delete = function(key2) {
- var entries = this.__entries__;
- var index3 = getIndex(entries, key2);
- if (~index3) {
- entries.splice(index3, 1);
- }
- };
- class_1.prototype.has = function(key2) {
- return !!~getIndex(this.__entries__, key2);
- };
- class_1.prototype.clear = function() {
- this.__entries__.splice(0);
- };
- class_1.prototype.forEach = function(callback, ctx) {
- if (ctx === void 0) {
- ctx = null;
- }
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
- var entry = _a[_i];
- callback.call(ctx, entry[1], entry[0]);
- }
- };
- return class_1;
- }()
- );
- }();
- var isBrowser = typeof window !== "undefined" && typeof document !== "undefined" && window.document === document;
- var global$1 = function() {
- if (typeof global !== "undefined" && global.Math === Math) {
- return global;
- }
- if (typeof self !== "undefined" && self.Math === Math) {
- return self;
- }
- if (typeof window !== "undefined" && window.Math === Math) {
- return window;
- }
- return Function("return this")();
- }();
- var requestAnimationFrame$1 = function() {
- if (typeof requestAnimationFrame === "function") {
- return requestAnimationFrame.bind(global$1);
- }
- return function(callback) {
- return setTimeout(function() {
- return callback(Date.now());
- }, 1e3 / 60);
- };
- }();
- var trailingTimeout = 2;
- function throttle(callback, delay) {
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
- function resolvePending() {
- if (leadingCall) {
- leadingCall = false;
- callback();
- }
- if (trailingCall) {
- proxy();
- }
- }
- function timeoutCallback() {
- requestAnimationFrame$1(resolvePending);
- }
- function proxy() {
- var timeStamp = Date.now();
- if (leadingCall) {
- if (timeStamp - lastCallTime < trailingTimeout) {
- return;
- }
- trailingCall = true;
- } else {
- leadingCall = true;
- trailingCall = false;
- setTimeout(timeoutCallback, delay);
- }
- lastCallTime = timeStamp;
- }
- return proxy;
- }
- var REFRESH_DELAY = 20;
- var transitionKeys = ["top", "right", "bottom", "left", "width", "height", "size", "weight"];
- var mutationObserverSupported = typeof MutationObserver !== "undefined";
- var ResizeObserverController = (
- /** @class */
- function() {
- function ResizeObserverController2() {
- this.connected_ = false;
- this.mutationEventsAdded_ = false;
- this.mutationsObserver_ = null;
- this.observers_ = [];
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
- }
- ResizeObserverController2.prototype.addObserver = function(observer) {
- if (!~this.observers_.indexOf(observer)) {
- this.observers_.push(observer);
- }
- if (!this.connected_) {
- this.connect_();
- }
- };
- ResizeObserverController2.prototype.removeObserver = function(observer) {
- var observers2 = this.observers_;
- var index3 = observers2.indexOf(observer);
- if (~index3) {
- observers2.splice(index3, 1);
- }
- if (!observers2.length && this.connected_) {
- this.disconnect_();
- }
- };
- ResizeObserverController2.prototype.refresh = function() {
- var changesDetected = this.updateObservers_();
- if (changesDetected) {
- this.refresh();
- }
- };
- ResizeObserverController2.prototype.updateObservers_ = function() {
- var activeObservers = this.observers_.filter(function(observer) {
- return observer.gatherActive(), observer.hasActive();
- });
- activeObservers.forEach(function(observer) {
- return observer.broadcastActive();
- });
- return activeObservers.length > 0;
- };
- ResizeObserverController2.prototype.connect_ = function() {
- if (!isBrowser || this.connected_) {
- return;
- }
- document.addEventListener("transitionend", this.onTransitionEnd_);
- window.addEventListener("resize", this.refresh);
- if (mutationObserverSupported) {
- this.mutationsObserver_ = new MutationObserver(this.refresh);
- this.mutationsObserver_.observe(document, {
- attributes: true,
- childList: true,
- characterData: true,
- subtree: true
- });
- } else {
- document.addEventListener("DOMSubtreeModified", this.refresh);
- this.mutationEventsAdded_ = true;
- }
- this.connected_ = true;
- };
- ResizeObserverController2.prototype.disconnect_ = function() {
- if (!isBrowser || !this.connected_) {
- return;
- }
- document.removeEventListener("transitionend", this.onTransitionEnd_);
- window.removeEventListener("resize", this.refresh);
- if (this.mutationsObserver_) {
- this.mutationsObserver_.disconnect();
- }
- if (this.mutationEventsAdded_) {
- document.removeEventListener("DOMSubtreeModified", this.refresh);
- }
- this.mutationsObserver_ = null;
- this.mutationEventsAdded_ = false;
- this.connected_ = false;
- };
- ResizeObserverController2.prototype.onTransitionEnd_ = function(_a) {
- var _b = _a.propertyName, propertyName = _b === void 0 ? "" : _b;
- var isReflowProperty = transitionKeys.some(function(key2) {
- return !!~propertyName.indexOf(key2);
- });
- if (isReflowProperty) {
- this.refresh();
- }
- };
- ResizeObserverController2.getInstance = function() {
- if (!this.instance_) {
- this.instance_ = new ResizeObserverController2();
- }
- return this.instance_;
- };
- ResizeObserverController2.instance_ = null;
- return ResizeObserverController2;
- }()
- );
- var defineConfigurable = function(target, props5) {
- for (var _i = 0, _a = Object.keys(props5); _i < _a.length; _i++) {
- var key2 = _a[_i];
- Object.defineProperty(target, key2, {
- value: props5[key2],
- enumerable: false,
- writable: false,
- configurable: true
- });
- }
- return target;
- };
- var getWindowOf = function(target) {
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
- return ownerGlobal || global$1;
- };
- var emptyRect = createRectInit(0, 0, 0, 0);
- function toFloat(value) {
- return parseFloat(value) || 0;
- }
- function getBordersSize(styles) {
- var positions = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- positions[_i - 1] = arguments[_i];
- }
- return positions.reduce(function(size, position) {
- var value = styles["border-" + position + "-width"];
- return size + toFloat(value);
- }, 0);
- }
- function getPaddings(styles) {
- var positions = ["top", "right", "bottom", "left"];
- var paddings = {};
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
- var position = positions_1[_i];
- var value = styles["padding-" + position];
- paddings[position] = toFloat(value);
- }
- return paddings;
- }
- function getSVGContentRect(target) {
- var bbox = target.getBBox();
- return createRectInit(0, 0, bbox.width, bbox.height);
- }
- function getHTMLElementContentRect(target) {
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
- if (!clientWidth && !clientHeight) {
- return emptyRect;
- }
- var styles = getWindowOf(target).getComputedStyle(target);
- var paddings = getPaddings(styles);
- var horizPad = paddings.left + paddings.right;
- var vertPad = paddings.top + paddings.bottom;
- var width = toFloat(styles.width), height = toFloat(styles.height);
- if (styles.boxSizing === "border-box") {
- if (Math.round(width + horizPad) !== clientWidth) {
- width -= getBordersSize(styles, "left", "right") + horizPad;
- }
- if (Math.round(height + vertPad) !== clientHeight) {
- height -= getBordersSize(styles, "top", "bottom") + vertPad;
- }
- }
- if (!isDocumentElement(target)) {
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
- if (Math.abs(vertScrollbar) !== 1) {
- width -= vertScrollbar;
- }
- if (Math.abs(horizScrollbar) !== 1) {
- height -= horizScrollbar;
- }
- }
- return createRectInit(paddings.left, paddings.top, width, height);
- }
- var isSVGGraphicsElement = function() {
- if (typeof SVGGraphicsElement !== "undefined") {
- return function(target) {
- return target instanceof getWindowOf(target).SVGGraphicsElement;
- };
- }
- return function(target) {
- return target instanceof getWindowOf(target).SVGElement && typeof target.getBBox === "function";
- };
- }();
- function isDocumentElement(target) {
- return target === getWindowOf(target).document.documentElement;
- }
- function getContentRect(target) {
- if (!isBrowser) {
- return emptyRect;
- }
- if (isSVGGraphicsElement(target)) {
- return getSVGContentRect(target);
- }
- return getHTMLElementContentRect(target);
- }
- function createReadOnlyRect(_a) {
- var x2 = _a.x, y2 = _a.y, width = _a.width, height = _a.height;
- var Constr = typeof DOMRectReadOnly !== "undefined" ? DOMRectReadOnly : Object;
- var rect = Object.create(Constr.prototype);
- defineConfigurable(rect, {
- x: x2,
- y: y2,
- width,
- height,
- top: y2,
- right: x2 + width,
- bottom: height + y2,
- left: x2
- });
- return rect;
- }
- function createRectInit(x2, y2, width, height) {
- return { x: x2, y: y2, width, height };
- }
- var ResizeObservation = (
- /** @class */
- function() {
- function ResizeObservation2(target) {
- this.broadcastWidth = 0;
- this.broadcastHeight = 0;
- this.contentRect_ = createRectInit(0, 0, 0, 0);
- this.target = target;
- }
- ResizeObservation2.prototype.isActive = function() {
- var rect = getContentRect(this.target);
- this.contentRect_ = rect;
- return rect.width !== this.broadcastWidth || rect.height !== this.broadcastHeight;
- };
- ResizeObservation2.prototype.broadcastRect = function() {
- var rect = this.contentRect_;
- this.broadcastWidth = rect.width;
- this.broadcastHeight = rect.height;
- return rect;
- };
- return ResizeObservation2;
- }()
- );
- var ResizeObserverEntry = (
- /** @class */
- function() {
- function ResizeObserverEntry2(target, rectInit) {
- var contentRect = createReadOnlyRect(rectInit);
- defineConfigurable(this, { target, contentRect });
- }
- return ResizeObserverEntry2;
- }()
- );
- var ResizeObserverSPI = (
- /** @class */
- function() {
- function ResizeObserverSPI2(callback, controller, callbackCtx) {
- this.activeObservations_ = [];
- this.observations_ = new MapShim();
- if (typeof callback !== "function") {
- throw new TypeError("The callback provided as parameter 1 is not a function.");
- }
- this.callback_ = callback;
- this.controller_ = controller;
- this.callbackCtx_ = callbackCtx;
- }
- ResizeObserverSPI2.prototype.observe = function(target) {
- if (!arguments.length) {
- throw new TypeError("1 argument required, but only 0 present.");
- }
- if (typeof Element === "undefined" || !(Element instanceof Object)) {
- return;
- }
- if (!(target instanceof getWindowOf(target).Element)) {
- throw new TypeError('parameter 1 is not of type "Element".');
- }
- var observations = this.observations_;
- if (observations.has(target)) {
- return;
- }
- observations.set(target, new ResizeObservation(target));
- this.controller_.addObserver(this);
- this.controller_.refresh();
- };
- ResizeObserverSPI2.prototype.unobserve = function(target) {
- if (!arguments.length) {
- throw new TypeError("1 argument required, but only 0 present.");
- }
- if (typeof Element === "undefined" || !(Element instanceof Object)) {
- return;
- }
- if (!(target instanceof getWindowOf(target).Element)) {
- throw new TypeError('parameter 1 is not of type "Element".');
- }
- var observations = this.observations_;
- if (!observations.has(target)) {
- return;
- }
- observations.delete(target);
- if (!observations.size) {
- this.controller_.removeObserver(this);
- }
- };
- ResizeObserverSPI2.prototype.disconnect = function() {
- this.clearActive();
- this.observations_.clear();
- this.controller_.removeObserver(this);
- };
- ResizeObserverSPI2.prototype.gatherActive = function() {
- var _this = this;
- this.clearActive();
- this.observations_.forEach(function(observation) {
- if (observation.isActive()) {
- _this.activeObservations_.push(observation);
- }
- });
- };
- ResizeObserverSPI2.prototype.broadcastActive = function() {
- if (!this.hasActive()) {
- return;
- }
- var ctx = this.callbackCtx_;
- var entries = this.activeObservations_.map(function(observation) {
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
- });
- this.callback_.call(ctx, entries, ctx);
- this.clearActive();
- };
- ResizeObserverSPI2.prototype.clearActive = function() {
- this.activeObservations_.splice(0);
- };
- ResizeObserverSPI2.prototype.hasActive = function() {
- return this.activeObservations_.length > 0;
- };
- return ResizeObserverSPI2;
- }()
- );
- var observers = typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : new MapShim();
- var ResizeObserver2 = (
- /** @class */
- function() {
- function ResizeObserver3(callback) {
- if (!(this instanceof ResizeObserver3)) {
- throw new TypeError("Cannot call a class as a function.");
- }
- if (!arguments.length) {
- throw new TypeError("1 argument required, but only 0 present.");
- }
- var controller = ResizeObserverController.getInstance();
- var observer = new ResizeObserverSPI(callback, controller, this);
- observers.set(this, observer);
- }
- return ResizeObserver3;
- }()
- );
- [
- "observe",
- "unobserve",
- "disconnect"
- ].forEach(function(method4) {
- ResizeObserver2.prototype[method4] = function() {
- var _a;
- return (_a = observers.get(this))[method4].apply(_a, arguments);
- };
- });
- var index = function() {
- if (typeof global$1.ResizeObserver !== "undefined") {
- return global$1.ResizeObserver;
- }
- return ResizeObserver2;
- }();
- var ResizeObserver_es_default = index;
- // node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
- function _arrayWithHoles(arr) {
- if (Array.isArray(arr))
- return arr;
- }
- // node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
- function _iterableToArrayLimit(arr, i3) {
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
- if (null != _i) {
- var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
- try {
- if (_x = (_i = _i.call(arr)).next, 0 === i3) {
- if (Object(_i) !== _i)
- return;
- _n = false;
- } else
- for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i3); _n = true)
- ;
- } catch (err) {
- _d = true, _e = err;
- } finally {
- try {
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
- return;
- } finally {
- if (_d)
- throw _e;
- }
- }
- return _arr;
- }
- }
- // node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
- function _arrayLikeToArray(arr, len) {
- if (len == null || len > arr.length)
- len = arr.length;
- for (var i3 = 0, arr2 = new Array(len); i3 < len; i3++)
- arr2[i3] = arr[i3];
- return arr2;
- }
- // node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
- function _unsupportedIterableToArray(o2, minLen) {
- if (!o2)
- return;
- if (typeof o2 === "string")
- return _arrayLikeToArray(o2, minLen);
- var n3 = Object.prototype.toString.call(o2).slice(8, -1);
- if (n3 === "Object" && o2.constructor)
- n3 = o2.constructor.name;
- if (n3 === "Map" || n3 === "Set")
- return Array.from(o2);
- if (n3 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n3))
- return _arrayLikeToArray(o2, minLen);
- }
- // node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
- function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- // node_modules/@babel/runtime/helpers/esm/slicedToArray.js
- function _slicedToArray(arr, i3) {
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i3) || _unsupportedIterableToArray(arr, i3) || _nonIterableRest();
- }
- // node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
- function _arrayWithoutHoles(arr) {
- if (Array.isArray(arr))
- return _arrayLikeToArray(arr);
- }
- // node_modules/@babel/runtime/helpers/esm/iterableToArray.js
- function _iterableToArray(iter) {
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
- return Array.from(iter);
- }
- // node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
- function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- // node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
- function _toConsumableArray(arr) {
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
- }
- // node_modules/lodash-es/_freeGlobal.js
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
- var freeGlobal_default = freeGlobal;
- // node_modules/lodash-es/_root.js
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
- var root = freeGlobal_default || freeSelf || Function("return this")();
- var root_default = root;
- // node_modules/lodash-es/_Symbol.js
- var Symbol2 = root_default.Symbol;
- var Symbol_default = Symbol2;
- // node_modules/lodash-es/_getRawTag.js
- var objectProto = Object.prototype;
- var hasOwnProperty2 = objectProto.hasOwnProperty;
- var nativeObjectToString = objectProto.toString;
- var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
- function getRawTag(value) {
- var isOwn = hasOwnProperty2.call(value, symToStringTag), tag = value[symToStringTag];
- try {
- value[symToStringTag] = void 0;
- var unmasked = true;
- } catch (e3) {
- }
- var result = nativeObjectToString.call(value);
- if (unmasked) {
- if (isOwn) {
- value[symToStringTag] = tag;
- } else {
- delete value[symToStringTag];
- }
- }
- return result;
- }
- var getRawTag_default = getRawTag;
- // node_modules/lodash-es/_objectToString.js
- var objectProto2 = Object.prototype;
- var nativeObjectToString2 = objectProto2.toString;
- function objectToString(value) {
- return nativeObjectToString2.call(value);
- }
- var objectToString_default = objectToString;
- // node_modules/lodash-es/_baseGetTag.js
- var nullTag = "[object Null]";
- var undefinedTag = "[object Undefined]";
- var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
- function baseGetTag(value) {
- if (value == null) {
- return value === void 0 ? undefinedTag : nullTag;
- }
- return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
- }
- var baseGetTag_default = baseGetTag;
- // node_modules/lodash-es/_overArg.js
- function overArg(func, transform) {
- return function(arg) {
- return func(transform(arg));
- };
- }
- var overArg_default = overArg;
- // node_modules/lodash-es/_getPrototype.js
- var getPrototype = overArg_default(Object.getPrototypeOf, Object);
- var getPrototype_default = getPrototype;
- // node_modules/lodash-es/isObjectLike.js
- function isObjectLike(value) {
- return value != null && typeof value == "object";
- }
- var isObjectLike_default = isObjectLike;
- // node_modules/lodash-es/isPlainObject.js
- var objectTag = "[object Object]";
- var funcProto = Function.prototype;
- var objectProto3 = Object.prototype;
- var funcToString = funcProto.toString;
- var hasOwnProperty3 = objectProto3.hasOwnProperty;
- var objectCtorString = funcToString.call(Object);
- function isPlainObject(value) {
- if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag) {
- return false;
- }
- var proto = getPrototype_default(value);
- if (proto === null) {
- return true;
- }
- var Ctor = hasOwnProperty3.call(proto, "constructor") && proto.constructor;
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
- }
- var isPlainObject_default = isPlainObject;
- // node_modules/ant-design-vue/es/_util/isValid.js
- var isValid = function isValid2(value) {
- return value !== void 0 && value !== null && value !== "";
- };
- var isValid_default = isValid;
- // node_modules/ant-design-vue/es/_util/props-util/initDefaultProps.js
- var initDefaultProps = function initDefaultProps2(types2, defaultProps4) {
- var propTypes2 = _objectSpread2({}, types2);
- Object.keys(defaultProps4).forEach(function(k2) {
- var prop = propTypes2[k2];
- if (prop) {
- if (prop.type || prop.default) {
- prop.default = defaultProps4[k2];
- } else if (prop.def) {
- prop.def(defaultProps4[k2]);
- } else {
- propTypes2[k2] = {
- type: prop,
- default: defaultProps4[k2]
- };
- }
- } else {
- throw new Error("not have ".concat(k2, " prop"));
- }
- });
- return propTypes2;
- };
- var initDefaultProps_default = initDefaultProps;
- // node_modules/ant-design-vue/es/_util/props-util/index.js
- var splitAttrs = function splitAttrs2(attrs) {
- var allAttrs = Object.keys(attrs);
- var eventAttrs = {};
- var onEvents = {};
- var extraAttrs = {};
- for (var i3 = 0, l2 = allAttrs.length; i3 < l2; i3++) {
- var key2 = allAttrs[i3];
- if (isOn(key2)) {
- eventAttrs[key2[2].toLowerCase() + key2.slice(3)] = attrs[key2];
- onEvents[key2] = attrs[key2];
- } else {
- extraAttrs[key2] = attrs[key2];
- }
- }
- return {
- onEvents,
- events: eventAttrs,
- extraAttrs
- };
- };
- var parseStyleText = function parseStyleText2() {
- var cssText = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
- var camel = arguments.length > 1 ? arguments[1] : void 0;
- var res = {};
- var listDelimiter = /;(?![^(]*\))/g;
- var propertyDelimiter = /:(.+)/;
- if (_typeof(cssText) === "object")
- return cssText;
- cssText.split(listDelimiter).forEach(function(item) {
- if (item) {
- var tmp = item.split(propertyDelimiter);
- if (tmp.length > 1) {
- var k2 = camel ? camelize2(tmp[0].trim()) : tmp[0].trim();
- res[k2] = tmp[1].trim();
- }
- }
- });
- return res;
- };
- var hasProp = function hasProp2(instance, prop) {
- return instance[prop] !== void 0;
- };
- var flattenChildren = function flattenChildren2() {
- var children = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- var filterEmpty2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
- var temp = Array.isArray(children) ? children : [children];
- var res = [];
- temp.forEach(function(child) {
- if (Array.isArray(child)) {
- res.push.apply(res, _toConsumableArray(flattenChildren2(child, filterEmpty2)));
- } else if (child && child.type === Fragment) {
- res.push.apply(res, _toConsumableArray(flattenChildren2(child.children, filterEmpty2)));
- } else if (child && isVNode(child)) {
- if (filterEmpty2 && !isEmptyElement(child)) {
- res.push(child);
- } else if (!filterEmpty2) {
- res.push(child);
- }
- } else if (isValid_default(child)) {
- res.push(child);
- }
- });
- return res;
- };
- var getSlot = function getSlot2(self2) {
- var name = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default";
- var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
- if (isVNode(self2)) {
- if (self2.type === Fragment) {
- return name === "default" ? flattenChildren(self2.children) : [];
- } else if (self2.children && self2.children[name]) {
- return flattenChildren(self2.children[name](options));
- } else {
- return [];
- }
- } else {
- var res = self2.$slots[name] && self2.$slots[name](options);
- return flattenChildren(res);
- }
- };
- var findDOMNode = function findDOMNode2(instance) {
- var _instance$vnode;
- var node = (instance === null || instance === void 0 ? void 0 : (_instance$vnode = instance.vnode) === null || _instance$vnode === void 0 ? void 0 : _instance$vnode.el) || instance && (instance.$el || instance);
- while (node && !node.tagName) {
- node = node.nextSibling;
- }
- return node;
- };
- var getOptionProps = function getOptionProps2(instance) {
- var res = {};
- if (instance.$ && instance.$.vnode) {
- var props5 = instance.$.vnode.props || {};
- Object.keys(instance.$props).forEach(function(k2) {
- var v2 = instance.$props[k2];
- var hyphenateKey = hyphenate(k2);
- if (v2 !== void 0 || hyphenateKey in props5) {
- res[k2] = v2;
- }
- });
- } else if (isVNode(instance) && _typeof(instance.type) === "object") {
- var originProps = instance.props || {};
- var _props = {};
- Object.keys(originProps).forEach(function(key2) {
- _props[camelize2(key2)] = originProps[key2];
- });
- var options = instance.type.props || {};
- Object.keys(options).forEach(function(k2) {
- var v2 = resolvePropValue(options, _props, k2, _props[k2]);
- if (v2 !== void 0 || k2 in _props) {
- res[k2] = v2;
- }
- });
- }
- return res;
- };
- var getComponent = function getComponent2(instance) {
- var prop = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default";
- var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : instance;
- var execute = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : true;
- var com = void 0;
- if (instance.$) {
- var temp = instance[prop];
- if (temp !== void 0) {
- return typeof temp === "function" && execute ? temp(options) : temp;
- } else {
- com = instance.$slots[prop];
- com = execute && com ? com(options) : com;
- }
- } else if (isVNode(instance)) {
- var _temp = instance.props && instance.props[prop];
- if (_temp !== void 0 && instance.props !== null) {
- return typeof _temp === "function" && execute ? _temp(options) : _temp;
- } else if (instance.type === Fragment) {
- com = instance.children;
- } else if (instance.children && instance.children[prop]) {
- com = instance.children[prop];
- com = execute && com ? com(options) : com;
- }
- }
- if (Array.isArray(com)) {
- com = flattenChildren(com);
- com = com.length === 1 ? com[0] : com;
- com = com.length === 0 ? void 0 : com;
- }
- return com;
- };
- function getEvents() {
- var ele = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
- var on = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
- var props5 = {};
- if (ele.$) {
- props5 = _objectSpread2(_objectSpread2({}, props5), ele.$attrs);
- } else {
- props5 = _objectSpread2(_objectSpread2({}, props5), ele.props);
- }
- return splitAttrs(props5)[on ? "onEvents" : "events"];
- }
- function getClass(ele) {
- var props5 = (isVNode(ele) ? ele.props : ele.$attrs) || {};
- var tempCls = props5.class || {};
- var cls = {};
- if (typeof tempCls === "string") {
- tempCls.split(" ").forEach(function(c2) {
- cls[c2.trim()] = true;
- });
- } else if (Array.isArray(tempCls)) {
- classNames_default(tempCls).split(" ").forEach(function(c2) {
- cls[c2.trim()] = true;
- });
- } else {
- cls = _objectSpread2(_objectSpread2({}, cls), tempCls);
- }
- return cls;
- }
- function getStyle(ele, camel) {
- var props5 = (isVNode(ele) ? ele.props : ele.$attrs) || {};
- var style = props5.style || {};
- if (typeof style === "string") {
- style = parseStyleText(style, camel);
- } else if (camel && style) {
- var res = {};
- Object.keys(style).forEach(function(k2) {
- return res[camelize2(k2)] = style[k2];
- });
- return res;
- }
- return style;
- }
- function isEmptyContent(c2) {
- return c2 === void 0 || c2 === null || c2 === "" || Array.isArray(c2) && c2.length === 0;
- }
- function isEmptyElement(c2) {
- return c2 && (c2.type === Comment || c2.type === Fragment && c2.children.length === 0 || c2.type === Text && c2.children.trim() === "");
- }
- function isStringElement(c2) {
- return c2 && c2.type === Text;
- }
- function filterEmpty() {
- var children = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- var res = [];
- children.forEach(function(child) {
- if (Array.isArray(child)) {
- res.push.apply(res, _toConsumableArray(child));
- } else if ((child === null || child === void 0 ? void 0 : child.type) === Fragment) {
- res.push.apply(res, _toConsumableArray(filterEmpty(child.children)));
- } else {
- res.push(child);
- }
- });
- return res.filter(function(c2) {
- return !isEmptyElement(c2);
- });
- }
- function filterEmptyWithUndefined(children) {
- if (children) {
- var coms = filterEmpty(children);
- return coms.length ? coms : void 0;
- } else {
- return children;
- }
- }
- function isValidElement(element) {
- if (Array.isArray(element) && element.length === 1) {
- element = element[0];
- }
- return element && element.__v_isVNode && _typeof(element.type) !== "symbol";
- }
- function getPropsSlot(slots, props5) {
- var _props$prop, _slots$prop;
- var prop = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
- return (_props$prop = props5[prop]) !== null && _props$prop !== void 0 ? _props$prop : (_slots$prop = slots[prop]) === null || _slots$prop === void 0 ? void 0 : _slots$prop.call(slots);
- }
- // node_modules/ant-design-vue/es/vc-resize-observer/index.js
- var vc_resize_observer_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ResizeObserver",
- props: {
- disabled: Boolean,
- onResize: Function
- },
- emits: ["resize"],
- setup: function setup(props5, _ref) {
- var slots = _ref.slots;
- var state = reactive({
- width: 0,
- height: 0,
- offsetHeight: 0,
- offsetWidth: 0
- });
- var currentElement = null;
- var resizeObserver = null;
- var destroyObserver = function destroyObserver2() {
- if (resizeObserver) {
- resizeObserver.disconnect();
- resizeObserver = null;
- }
- };
- var onResize = function onResize2(entries) {
- var onResize3 = props5.onResize;
- var target = entries[0].target;
- var _target$getBoundingCl = target.getBoundingClientRect(), width = _target$getBoundingCl.width, height = _target$getBoundingCl.height;
- var offsetWidth = target.offsetWidth, offsetHeight = target.offsetHeight;
- var fixedWidth = Math.floor(width);
- var fixedHeight = Math.floor(height);
- if (state.width !== fixedWidth || state.height !== fixedHeight || state.offsetWidth !== offsetWidth || state.offsetHeight !== offsetHeight) {
- var size = {
- width: fixedWidth,
- height: fixedHeight,
- offsetWidth,
- offsetHeight
- };
- _extends(state, size);
- if (onResize3) {
- Promise.resolve().then(function() {
- onResize3(_objectSpread2(_objectSpread2({}, size), {}, {
- offsetWidth,
- offsetHeight
- }), target);
- });
- }
- }
- };
- var instance = getCurrentInstance();
- var registerObserver = function registerObserver2() {
- var disabled = props5.disabled;
- if (disabled) {
- destroyObserver();
- return;
- }
- var element = findDOMNode(instance);
- var elementChanged = element !== currentElement;
- if (elementChanged) {
- destroyObserver();
- currentElement = element;
- }
- if (!resizeObserver && element) {
- resizeObserver = new ResizeObserver_es_default(onResize);
- resizeObserver.observe(element);
- }
- };
- onMounted(function() {
- registerObserver();
- });
- onUpdated(function() {
- registerObserver();
- });
- onUnmounted(function() {
- destroyObserver();
- });
- watch(function() {
- return props5.disabled;
- }, function() {
- registerObserver();
- }, {
- flush: "post"
- });
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)[0];
- };
- }
- });
- // node_modules/ant-design-vue/es/_util/raf.js
- var raf = function raf2(callback) {
- return setTimeout(callback, 16);
- };
- var caf = function caf2(num) {
- return clearTimeout(num);
- };
- if (typeof window !== "undefined" && "requestAnimationFrame" in window) {
- raf = function raf4(callback) {
- return window.requestAnimationFrame(callback);
- };
- caf = function caf3(handle) {
- return window.cancelAnimationFrame(handle);
- };
- }
- var rafUUID = 0;
- var rafIds = /* @__PURE__ */ new Map();
- function cleanup(id) {
- rafIds.delete(id);
- }
- function wrapperRaf(callback) {
- var times = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
- rafUUID += 1;
- var id = rafUUID;
- function callRef(leftTimes) {
- if (leftTimes === 0) {
- cleanup(id);
- callback();
- } else {
- var realId = raf(function() {
- callRef(leftTimes - 1);
- });
- rafIds.set(id, realId);
- }
- }
- callRef(times);
- return id;
- }
- wrapperRaf.cancel = function(id) {
- var realId = rafIds.get(id);
- cleanup(realId);
- return caf(realId);
- };
- // node_modules/ant-design-vue/es/_util/throttleByAnimationFrame.js
- function throttleByAnimationFrame(fn) {
- var requestId;
- var later = function later2(args) {
- return function() {
- requestId = null;
- fn.apply(void 0, _toConsumableArray(args));
- };
- };
- var throttled = function throttled2() {
- if (requestId == null) {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- requestId = wrapperRaf(later(args));
- }
- };
- throttled.cancel = function() {
- return wrapperRaf.cancel(requestId);
- };
- return throttled;
- }
- // node_modules/ant-design-vue/es/_util/type.js
- var tuple = function tuple2() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- return args;
- };
- var tupleNum = function tupleNum2() {
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
- return args;
- };
- var withInstall = function withInstall2(comp) {
- var c2 = comp;
- c2.install = function(app) {
- app.component(c2.displayName || c2.name, comp);
- };
- return comp;
- };
- // node_modules/ant-design-vue/es/_util/supportsPassive.js
- var supportsPassive = false;
- try {
- opts = Object.defineProperty({}, "passive", {
- get: function get3() {
- supportsPassive = true;
- }
- });
- window.addEventListener("testPassive", null, opts);
- window.removeEventListener("testPassive", null, opts);
- } catch (e3) {
- }
- var opts;
- var supportsPassive_default = supportsPassive;
- // node_modules/ant-design-vue/es/vc-util/Dom/addEventListener.js
- function addEventListenerWrap(target, eventType, cb, option) {
- if (target && target.addEventListener) {
- var opt = option;
- if (opt === void 0 && supportsPassive_default && (eventType === "touchstart" || eventType === "touchmove" || eventType === "wheel")) {
- opt = {
- passive: false
- };
- }
- target.addEventListener(eventType, cb, opt);
- }
- return {
- remove: function remove() {
- if (target && target.removeEventListener) {
- target.removeEventListener(eventType, cb);
- }
- }
- };
- }
- // node_modules/ant-design-vue/es/affix/utils.js
- function getTargetRect(target) {
- return target !== window ? target.getBoundingClientRect() : {
- top: 0,
- bottom: window.innerHeight
- };
- }
- function getFixedTop(placeholderRect, targetRect, offsetTop) {
- if (offsetTop !== void 0 && targetRect.top > placeholderRect.top - offsetTop) {
- return "".concat(offsetTop + targetRect.top, "px");
- }
- return void 0;
- }
- function getFixedBottom(placeholderRect, targetRect, offsetBottom) {
- if (offsetBottom !== void 0 && targetRect.bottom < placeholderRect.bottom + offsetBottom) {
- var targetBottomOffset = window.innerHeight - targetRect.bottom;
- return "".concat(offsetBottom + targetBottomOffset, "px");
- }
- return void 0;
- }
- var TRIGGER_EVENTS = ["resize", "scroll", "touchstart", "touchmove", "touchend", "pageshow", "load"];
- var observerEntities = [];
- function addObserveTarget(target, affix) {
- if (!target)
- return;
- var entity = observerEntities.find(function(item) {
- return item.target === target;
- });
- if (entity) {
- entity.affixList.push(affix);
- } else {
- entity = {
- target,
- affixList: [affix],
- eventHandlers: {}
- };
- observerEntities.push(entity);
- TRIGGER_EVENTS.forEach(function(eventName) {
- entity.eventHandlers[eventName] = addEventListenerWrap(target, eventName, function() {
- entity.affixList.forEach(function(targetAffix) {
- var lazyUpdatePosition = targetAffix.exposed.lazyUpdatePosition;
- lazyUpdatePosition();
- }, (eventName === "touchstart" || eventName === "touchmove") && supportsPassive_default ? {
- passive: true
- } : false);
- });
- });
- }
- }
- function removeObserveTarget(affix) {
- var observerEntity = observerEntities.find(function(oriObserverEntity) {
- var hasAffix = oriObserverEntity.affixList.some(function(item) {
- return item === affix;
- });
- if (hasAffix) {
- oriObserverEntity.affixList = oriObserverEntity.affixList.filter(function(item) {
- return item !== affix;
- });
- }
- return hasAffix;
- });
- if (observerEntity && observerEntity.affixList.length === 0) {
- observerEntities = observerEntities.filter(function(item) {
- return item !== observerEntity;
- });
- TRIGGER_EVENTS.forEach(function(eventName) {
- var handler5 = observerEntity.eventHandlers[eventName];
- if (handler5 && handler5.remove) {
- handler5.remove();
- }
- });
- }
- }
- // node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
- function _objectWithoutPropertiesLoose(source, excluded) {
- if (source == null)
- return {};
- var target = {};
- var sourceKeys = Object.keys(source);
- var key2, i3;
- for (i3 = 0; i3 < sourceKeys.length; i3++) {
- key2 = sourceKeys[i3];
- if (excluded.indexOf(key2) >= 0)
- continue;
- target[key2] = source[key2];
- }
- return target;
- }
- // node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
- function _objectWithoutProperties(source, excluded) {
- if (source == null)
- return {};
- var target = _objectWithoutPropertiesLoose(source, excluded);
- var key2, i3;
- if (Object.getOwnPropertySymbols) {
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
- for (i3 = 0; i3 < sourceSymbolKeys.length; i3++) {
- key2 = sourceSymbolKeys[i3];
- if (excluded.indexOf(key2) >= 0)
- continue;
- if (!Object.prototype.propertyIsEnumerable.call(source, key2))
- continue;
- target[key2] = source[key2];
- }
- }
- return target;
- }
- // node_modules/ant-design-vue/es/vc-pagination/locale/en_US.js
- var en_US_default = {
- // Options.jsx
- items_per_page: "/ page",
- jump_to: "Go to",
- jump_to_confirm: "confirm",
- page: "",
- // Pagination.jsx
- prev_page: "Previous Page",
- next_page: "Next Page",
- prev_5: "Previous 5 Pages",
- next_5: "Next 5 Pages",
- prev_3: "Previous 3 Pages",
- next_3: "Next 3 Pages"
- };
- // node_modules/ant-design-vue/es/vc-picker/locale/en_US.js
- var locale = {
- locale: "en_US",
- today: "Today",
- now: "Now",
- backToToday: "Back to today",
- ok: "Ok",
- clear: "Clear",
- month: "Month",
- year: "Year",
- timeSelect: "select time",
- dateSelect: "select date",
- weekSelect: "Choose a week",
- monthSelect: "Choose a month",
- yearSelect: "Choose a year",
- decadeSelect: "Choose a decade",
- yearFormat: "YYYY",
- dateFormat: "M/D/YYYY",
- dayFormat: "D",
- dateTimeFormat: "M/D/YYYY HH:mm:ss",
- monthBeforeYear: true,
- previousMonth: "Previous month (PageUp)",
- nextMonth: "Next month (PageDown)",
- previousYear: "Last year (Control + left)",
- nextYear: "Next year (Control + right)",
- previousDecade: "Last decade",
- nextDecade: "Next decade",
- previousCentury: "Last century",
- nextCentury: "Next century"
- };
- var en_US_default2 = locale;
- // node_modules/ant-design-vue/es/time-picker/locale/en_US.js
- var locale2 = {
- placeholder: "Select time",
- rangePlaceholder: ["Start time", "End time"]
- };
- var en_US_default3 = locale2;
- // node_modules/ant-design-vue/es/date-picker/locale/en_US.js
- var locale3 = {
- lang: _objectSpread2({
- placeholder: "Select date",
- yearPlaceholder: "Select year",
- quarterPlaceholder: "Select quarter",
- monthPlaceholder: "Select month",
- weekPlaceholder: "Select week",
- rangePlaceholder: ["Start date", "End date"],
- rangeYearPlaceholder: ["Start year", "End year"],
- rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
- rangeMonthPlaceholder: ["Start month", "End month"],
- rangeWeekPlaceholder: ["Start week", "End week"]
- }, en_US_default2),
- timePickerLocale: _objectSpread2({}, en_US_default3)
- };
- var en_US_default4 = locale3;
- // node_modules/ant-design-vue/es/calendar/locale/en_US.js
- var en_US_default5 = en_US_default4;
- // node_modules/ant-design-vue/es/locale/default.js
- var typeTemplate = "${label} is not a valid ${type}";
- var localeValues = {
- locale: "en",
- Pagination: en_US_default,
- DatePicker: en_US_default4,
- TimePicker: en_US_default3,
- Calendar: en_US_default5,
- global: {
- placeholder: "Please select"
- },
- Table: {
- filterTitle: "Filter menu",
- filterConfirm: "OK",
- filterReset: "Reset",
- filterEmptyText: "No filters",
- filterCheckall: "Select all items",
- filterSearchPlaceholder: "Search in filters",
- emptyText: "No data",
- selectAll: "Select current page",
- selectInvert: "Invert current page",
- selectNone: "Clear all data",
- selectionAll: "Select all data",
- sortTitle: "Sort",
- expand: "Expand row",
- collapse: "Collapse row",
- triggerDesc: "Click to sort descending",
- triggerAsc: "Click to sort ascending",
- cancelSort: "Click to cancel sorting"
- },
- Modal: {
- okText: "OK",
- cancelText: "Cancel",
- justOkText: "OK"
- },
- Popconfirm: {
- okText: "OK",
- cancelText: "Cancel"
- },
- Transfer: {
- titles: ["", ""],
- searchPlaceholder: "Search here",
- itemUnit: "item",
- itemsUnit: "items",
- remove: "Remove",
- selectCurrent: "Select current page",
- removeCurrent: "Remove current page",
- selectAll: "Select all data",
- removeAll: "Remove all data",
- selectInvert: "Invert current page"
- },
- Upload: {
- uploading: "Uploading...",
- removeFile: "Remove file",
- uploadError: "Upload error",
- previewFile: "Preview file",
- downloadFile: "Download file"
- },
- Empty: {
- description: "No Data"
- },
- Icon: {
- icon: "icon"
- },
- Text: {
- edit: "Edit",
- copy: "Copy",
- copied: "Copied",
- expand: "Expand"
- },
- PageHeader: {
- back: "Back"
- },
- Form: {
- optional: "(optional)",
- defaultValidateMessages: {
- default: "Field validation error for ${label}",
- required: "Please enter ${label}",
- enum: "${label} must be one of [${enum}]",
- whitespace: "${label} cannot be a blank character",
- date: {
- format: "${label} date format is invalid",
- parse: "${label} cannot be converted to a date",
- invalid: "${label} is an invalid date"
- },
- types: {
- string: typeTemplate,
- method: typeTemplate,
- array: typeTemplate,
- object: typeTemplate,
- number: typeTemplate,
- date: typeTemplate,
- boolean: typeTemplate,
- integer: typeTemplate,
- float: typeTemplate,
- regexp: typeTemplate,
- email: typeTemplate,
- url: typeTemplate,
- hex: typeTemplate
- },
- string: {
- len: "${label} must be ${len} characters",
- min: "${label} must be at least ${min} characters",
- max: "${label} must be up to ${max} characters",
- range: "${label} must be between ${min}-${max} characters"
- },
- number: {
- len: "${label} must be equal to ${len}",
- min: "${label} must be minimum ${min}",
- max: "${label} must be maximum ${max}",
- range: "${label} must be between ${min}-${max}"
- },
- array: {
- len: "Must be ${len} ${label}",
- min: "At least ${min} ${label}",
- max: "At most ${max} ${label}",
- range: "The amount of ${label} must be between ${min}-${max}"
- },
- pattern: {
- mismatch: "${label} does not match the pattern ${pattern}"
- }
- }
- },
- Image: {
- preview: "Preview"
- }
- };
- var default_default = localeValues;
- // node_modules/ant-design-vue/es/locale-provider/default.js
- var default_default2 = default_default;
- // node_modules/ant-design-vue/es/locale-provider/LocaleReceiver.js
- var LocaleReceiver_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "LocaleReceiver",
- props: {
- componentName: String,
- defaultLocale: {
- type: [Object, Function]
- },
- children: {
- type: Function
- }
- },
- setup: function setup2(props5, _ref) {
- var slots = _ref.slots;
- var localeData2 = inject("localeData", {});
- var locale4 = computed(function() {
- var _props$componentName = props5.componentName, componentName = _props$componentName === void 0 ? "global" : _props$componentName, defaultLocale = props5.defaultLocale;
- var locale5 = defaultLocale || default_default2[componentName || "global"];
- var antLocale = localeData2.antLocale;
- var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
- return _objectSpread2(_objectSpread2({}, typeof locale5 === "function" ? locale5() : locale5), localeFromContext || {});
- });
- var localeCode = computed(function() {
- var antLocale = localeData2.antLocale;
- var localeCode2 = antLocale && antLocale.locale;
- if (antLocale && antLocale.exist && !localeCode2) {
- return default_default2.locale;
- }
- return localeCode2;
- });
- return function() {
- var children = props5.children || slots.default;
- var antLocale = localeData2.antLocale;
- return children === null || children === void 0 ? void 0 : children(locale4.value, localeCode.value, antLocale);
- };
- }
- });
- function useLocaleReceiver(componentName, defaultLocale, propsLocale) {
- var localeData2 = inject("localeData", {});
- var componentLocale = computed(function() {
- var antLocale = localeData2.antLocale;
- var locale4 = unref(defaultLocale) || default_default2[componentName || "global"];
- var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
- return _objectSpread2(_objectSpread2(_objectSpread2({}, typeof locale4 === "function" ? locale4() : locale4), localeFromContext || {}), unref(propsLocale) || {});
- });
- return [componentLocale];
- }
- // node_modules/ant-design-vue/es/empty/empty.js
- var Empty = function Empty2() {
- var _useConfigInject = useConfigInject_default("empty", {}), getPrefixCls2 = _useConfigInject.getPrefixCls;
- var prefixCls = getPrefixCls2("empty-img-default");
- return createVNode("svg", {
- "class": prefixCls,
- "width": "184",
- "height": "152",
- "viewBox": "0 0 184 152"
- }, [createVNode("g", {
- "fill": "none",
- "fill-rule": "evenodd"
- }, [createVNode("g", {
- "transform": "translate(24 31.67)"
- }, [createVNode("ellipse", {
- "class": "".concat(prefixCls, "-ellipse"),
- "cx": "67.797",
- "cy": "106.89",
- "rx": "67.797",
- "ry": "12.668"
- }, null), createVNode("path", {
- "class": "".concat(prefixCls, "-path-1"),
- "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"
- }, null), createVNode("path", {
- "class": "".concat(prefixCls, "-path-2"),
- "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",
- "transform": "translate(13.56)"
- }, null), createVNode("path", {
- "class": "".concat(prefixCls, "-path-3"),
- "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"
- }, null), createVNode("path", {
- "class": "".concat(prefixCls, "-path-4"),
- "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"
- }, null)]), createVNode("path", {
- "class": "".concat(prefixCls, "-path-5"),
- "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"
- }, null), createVNode("g", {
- "class": "".concat(prefixCls, "-g"),
- "transform": "translate(149.65 15.383)"
- }, [createVNode("ellipse", {
- "cx": "20.654",
- "cy": "3.167",
- "rx": "2.849",
- "ry": "2.815"
- }, null), createVNode("path", {
- "d": "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
- }, null)])])]);
- };
- Empty.PRESENTED_IMAGE_DEFAULT = true;
- var empty_default = Empty;
- // node_modules/ant-design-vue/es/empty/simple.js
- var Simple = function Simple2() {
- var _useConfigInject = useConfigInject_default("empty", {}), getPrefixCls2 = _useConfigInject.getPrefixCls;
- var prefixCls = getPrefixCls2("empty-img-simple");
- return createVNode("svg", {
- "class": prefixCls,
- "width": "64",
- "height": "41",
- "viewBox": "0 0 64 41"
- }, [createVNode("g", {
- "transform": "translate(0 1)",
- "fill": "none",
- "fill-rule": "evenodd"
- }, [createVNode("ellipse", {
- "class": "".concat(prefixCls, "-ellipse"),
- "fill": "#F5F5F5",
- "cx": "32",
- "cy": "33",
- "rx": "32",
- "ry": "7"
- }, null), createVNode("g", {
- "class": "".concat(prefixCls, "-g"),
- "fill-rule": "nonzero",
- "stroke": "#D9D9D9"
- }, [createVNode("path", {
- "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"
- }, null), createVNode("path", {
- "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",
- "fill": "#FAFAFA",
- "class": "".concat(prefixCls, "-path")
- }, null)])])]);
- };
- Simple.PRESENTED_IMAGE_SIMPLE = true;
- var simple_default = Simple;
- // node_modules/ant-design-vue/node_modules/vue-types/dist/vue-types.m.js
- function e(e3, t3) {
- for (var n3 = 0; n3 < t3.length; n3++) {
- var r3 = t3[n3];
- r3.enumerable = r3.enumerable || false, r3.configurable = true, "value" in r3 && (r3.writable = true), Object.defineProperty(e3, r3.key, r3);
- }
- }
- function t(t3, n3, r3) {
- return n3 && e(t3.prototype, n3), r3 && e(t3, r3), t3;
- }
- function n() {
- return (n = Object.assign || function(e3) {
- for (var t3 = 1; t3 < arguments.length; t3++) {
- var n3 = arguments[t3];
- for (var r3 in n3)
- Object.prototype.hasOwnProperty.call(n3, r3) && (e3[r3] = n3[r3]);
- }
- return e3;
- }).apply(this, arguments);
- }
- function r(e3, t3) {
- e3.prototype = Object.create(t3.prototype), e3.prototype.constructor = e3, e3.__proto__ = t3;
- }
- function i(e3, t3) {
- if (null == e3)
- return {};
- var n3, r3, i3 = {}, o2 = Object.keys(e3);
- for (r3 = 0; r3 < o2.length; r3++)
- t3.indexOf(n3 = o2[r3]) >= 0 || (i3[n3] = e3[n3]);
- return i3;
- }
- function o(e3) {
- return 1 == (null != (t3 = e3) && "object" == typeof t3 && false === Array.isArray(t3)) && "[object Object]" === Object.prototype.toString.call(e3);
- var t3;
- }
- var u = Object.prototype;
- var a = u.toString;
- var f = u.hasOwnProperty;
- var c = /^\s*function (\w+)/;
- function l(e3) {
- var t3, n3 = null !== (t3 = null == e3 ? void 0 : e3.type) && void 0 !== t3 ? t3 : e3;
- if (n3) {
- var r3 = n3.toString().match(c);
- return r3 ? r3[1] : "";
- }
- return "";
- }
- var s = function(e3) {
- var t3, n3;
- return false !== o(e3) && "function" == typeof (t3 = e3.constructor) && false !== o(n3 = t3.prototype) && false !== n3.hasOwnProperty("isPrototypeOf");
- };
- var v = function(e3) {
- return e3;
- };
- var y = v;
- if (true) {
- p = "undefined" != typeof console;
- y = p ? function(e3) {
- console.warn("[VueTypes warn]: " + e3);
- } : v;
- }
- var p;
- var d = function(e3, t3) {
- return f.call(e3, t3);
- };
- var h2 = Number.isInteger || function(e3) {
- return "number" == typeof e3 && isFinite(e3) && Math.floor(e3) === e3;
- };
- var b = Array.isArray || function(e3) {
- return "[object Array]" === a.call(e3);
- };
- var O = function(e3) {
- return "[object Function]" === a.call(e3);
- };
- var g = function(e3) {
- return s(e3) && d(e3, "_vueTypes_name");
- };
- var m = function(e3) {
- return s(e3) && (d(e3, "type") || ["_vueTypes_name", "validator", "default", "required"].some(function(t3) {
- return d(e3, t3);
- }));
- };
- function j(e3, t3) {
- return Object.defineProperty(e3.bind(t3), "__original", { value: e3 });
- }
- function _(e3, t3, n3) {
- var r3;
- void 0 === n3 && (n3 = false);
- var i3 = true, o2 = "";
- r3 = s(e3) ? e3 : { type: e3 };
- var u2 = g(r3) ? r3._vueTypes_name + " - " : "";
- if (m(r3) && null !== r3.type) {
- if (void 0 === r3.type || true === r3.type)
- return i3;
- if (!r3.required && void 0 === t3)
- return i3;
- b(r3.type) ? (i3 = r3.type.some(function(e4) {
- return true === _(e4, t3, true);
- }), o2 = r3.type.map(function(e4) {
- return l(e4);
- }).join(" or ")) : i3 = "Array" === (o2 = l(r3)) ? b(t3) : "Object" === o2 ? s(t3) : "String" === o2 || "Number" === o2 || "Boolean" === o2 || "Function" === o2 ? function(e4) {
- if (null == e4)
- return "";
- var t4 = e4.constructor.toString().match(c);
- return t4 ? t4[1] : "";
- }(t3) === o2 : t3 instanceof r3.type;
- }
- if (!i3) {
- var a2 = u2 + 'value "' + t3 + '" should be of type "' + o2 + '"';
- return false === n3 ? (y(a2), false) : a2;
- }
- if (d(r3, "validator") && O(r3.validator)) {
- var f2 = y, v2 = [];
- if (y = function(e4) {
- v2.push(e4);
- }, i3 = r3.validator(t3), y = f2, !i3) {
- var p = (v2.length > 1 ? "* " : "") + v2.join("\n* ");
- return v2.length = 0, false === n3 ? (y(p), i3) : p;
- }
- }
- return i3;
- }
- function T(e3, t3) {
- var n3 = Object.defineProperties(t3, { _vueTypes_name: { value: e3, writable: true }, isRequired: { get: function() {
- return this.required = true, this;
- } }, def: { value: function(e4) {
- return void 0 !== e4 || this.default ? O(e4) || true === _(this, e4, true) ? (this.default = b(e4) ? function() {
- return [].concat(e4);
- } : s(e4) ? function() {
- return Object.assign({}, e4);
- } : e4, this) : (y(this._vueTypes_name + ' - invalid default value: "' + e4 + '"'), this) : this;
- } } }), r3 = n3.validator;
- return O(r3) && (n3.validator = j(r3, n3)), n3;
- }
- function w(e3, t3) {
- var n3 = T(e3, t3);
- return Object.defineProperty(n3, "validate", { value: function(e4) {
- return O(this.validator) && y(this._vueTypes_name + " - calling .validate() will overwrite the current custom validator function. Validator info:\n" + JSON.stringify(this)), this.validator = j(e4, this), this;
- } });
- }
- function k(e3, t3, n3) {
- var r3, o2, u2 = (r3 = t3, o2 = {}, Object.getOwnPropertyNames(r3).forEach(function(e4) {
- o2[e4] = Object.getOwnPropertyDescriptor(r3, e4);
- }), Object.defineProperties({}, o2));
- if (u2._vueTypes_name = e3, !s(n3))
- return u2;
- var a2, f2, c2 = n3.validator, l2 = i(n3, ["validator"]);
- if (O(c2)) {
- var v2 = u2.validator;
- v2 && (v2 = null !== (f2 = (a2 = v2).__original) && void 0 !== f2 ? f2 : a2), u2.validator = j(v2 ? function(e4) {
- return v2.call(this, e4) && c2.call(this, e4);
- } : c2, u2);
- }
- return Object.assign(u2, l2);
- }
- function P(e3) {
- return e3.replace(/^(?!\s*$)/gm, " ");
- }
- var x = function() {
- return w("any", {});
- };
- var A = function() {
- return w("function", { type: Function });
- };
- var E = function() {
- return w("boolean", { type: Boolean });
- };
- var N = function() {
- return w("string", { type: String });
- };
- var q = function() {
- return w("number", { type: Number });
- };
- var S = function() {
- return w("array", { type: Array });
- };
- var V = function() {
- return w("object", { type: Object });
- };
- var F = function() {
- return T("integer", { type: Number, validator: function(e3) {
- return h2(e3);
- } });
- };
- var D = function() {
- return T("symbol", { validator: function(e3) {
- return "symbol" == typeof e3;
- } });
- };
- function L(e3, t3) {
- if (void 0 === t3 && (t3 = "custom validation failed"), "function" != typeof e3)
- throw new TypeError("[VueTypes error]: You must provide a function as argument");
- return T(e3.name || "<<anonymous function>>", { validator: function(n3) {
- var r3 = e3(n3);
- return r3 || y(this._vueTypes_name + " - " + t3), r3;
- } });
- }
- function Y(e3) {
- if (!b(e3))
- throw new TypeError("[VueTypes error]: You must provide an array as argument.");
- var t3 = 'oneOf - value should be one of "' + e3.join('", "') + '".', n3 = e3.reduce(function(e4, t4) {
- if (null != t4) {
- var n4 = t4.constructor;
- -1 === e4.indexOf(n4) && e4.push(n4);
- }
- return e4;
- }, []);
- return T("oneOf", { type: n3.length > 0 ? n3 : void 0, validator: function(n4) {
- var r3 = -1 !== e3.indexOf(n4);
- return r3 || y(t3), r3;
- } });
- }
- function B(e3) {
- if (!b(e3))
- throw new TypeError("[VueTypes error]: You must provide an array as argument");
- for (var t3 = false, n3 = [], r3 = 0; r3 < e3.length; r3 += 1) {
- var i3 = e3[r3];
- if (m(i3)) {
- if (g(i3) && "oneOf" === i3._vueTypes_name) {
- n3 = n3.concat(i3.type);
- continue;
- }
- if (O(i3.validator) && (t3 = true), true !== i3.type && i3.type) {
- n3 = n3.concat(i3.type);
- continue;
- }
- }
- n3.push(i3);
- }
- return n3 = n3.filter(function(e4, t4) {
- return n3.indexOf(e4) === t4;
- }), T("oneOfType", t3 ? { type: n3, validator: function(t4) {
- var n4 = [], r4 = e3.some(function(e4) {
- var r5 = _(g(e4) && "oneOf" === e4._vueTypes_name ? e4.type || null : e4, t4, true);
- return "string" == typeof r5 && n4.push(r5), true === r5;
- });
- return r4 || y("oneOfType - provided value does not match any of the " + n4.length + " passed-in validators:\n" + P(n4.join("\n"))), r4;
- } } : { type: n3 });
- }
- function I(e3) {
- return T("arrayOf", { type: Array, validator: function(t3) {
- var n3, r3 = t3.every(function(t4) {
- return true === (n3 = _(e3, t4, true));
- });
- return r3 || y("arrayOf - value validation error:\n" + P(n3)), r3;
- } });
- }
- function J(e3) {
- return T("instanceOf", { type: e3 });
- }
- function M(e3) {
- return T("objectOf", { type: Object, validator: function(t3) {
- var n3, r3 = Object.keys(t3).every(function(r4) {
- return true === (n3 = _(e3, t3[r4], true));
- });
- return r3 || y("objectOf - value validation error:\n" + P(n3)), r3;
- } });
- }
- function R(e3) {
- var t3 = Object.keys(e3), n3 = t3.filter(function(t4) {
- var n4;
- return !!(null === (n4 = e3[t4]) || void 0 === n4 ? void 0 : n4.required);
- }), r3 = T("shape", { type: Object, validator: function(r4) {
- var i3 = this;
- if (!s(r4))
- return false;
- var o2 = Object.keys(r4);
- if (n3.length > 0 && n3.some(function(e4) {
- return -1 === o2.indexOf(e4);
- })) {
- var u2 = n3.filter(function(e4) {
- return -1 === o2.indexOf(e4);
- });
- return y(1 === u2.length ? 'shape - required property "' + u2[0] + '" is not defined.' : 'shape - required properties "' + u2.join('", "') + '" are not defined.'), false;
- }
- return o2.every(function(n4) {
- if (-1 === t3.indexOf(n4))
- return true === i3._vueTypes_isLoose || (y('shape - shape definition does not include a "' + n4 + '" property. Allowed keys: "' + t3.join('", "') + '".'), false);
- var o3 = _(e3[n4], r4[n4], true);
- return "string" == typeof o3 && y('shape - "' + n4 + '" property validation error:\n ' + P(o3)), true === o3;
- });
- } });
- return Object.defineProperty(r3, "_vueTypes_isLoose", { writable: true, value: false }), Object.defineProperty(r3, "loose", { get: function() {
- return this._vueTypes_isLoose = true, this;
- } }), r3;
- }
- var $ = function() {
- function e3() {
- }
- return e3.extend = function(e4) {
- var t3 = this;
- if (b(e4))
- return e4.forEach(function(e5) {
- return t3.extend(e5);
- }), this;
- var n3 = e4.name, r3 = e4.validate, o2 = void 0 !== r3 && r3, u2 = e4.getter, a2 = void 0 !== u2 && u2, f2 = i(e4, ["name", "validate", "getter"]);
- if (d(this, n3))
- throw new TypeError('[VueTypes error]: Type "' + n3 + '" already defined');
- var c2, l2 = f2.type;
- return g(l2) ? (delete f2.type, Object.defineProperty(this, n3, a2 ? { get: function() {
- return k(n3, l2, f2);
- } } : { value: function() {
- var e5, t4 = k(n3, l2, f2);
- return t4.validator && (t4.validator = (e5 = t4.validator).bind.apply(e5, [t4].concat([].slice.call(arguments)))), t4;
- } })) : (c2 = a2 ? { get: function() {
- var e5 = Object.assign({}, f2);
- return o2 ? w(n3, e5) : T(n3, e5);
- }, enumerable: true } : { value: function() {
- var e5, t4, r4 = Object.assign({}, f2);
- return e5 = o2 ? w(n3, r4) : T(n3, r4), r4.validator && (e5.validator = (t4 = r4.validator).bind.apply(t4, [e5].concat([].slice.call(arguments)))), e5;
- }, enumerable: true }, Object.defineProperty(this, n3, c2));
- }, t(e3, null, [{ key: "any", get: function() {
- return x();
- } }, { key: "func", get: function() {
- return A().def(this.defaults.func);
- } }, { key: "bool", get: function() {
- return E().def(this.defaults.bool);
- } }, { key: "string", get: function() {
- return N().def(this.defaults.string);
- } }, { key: "number", get: function() {
- return q().def(this.defaults.number);
- } }, { key: "array", get: function() {
- return S().def(this.defaults.array);
- } }, { key: "object", get: function() {
- return V().def(this.defaults.object);
- } }, { key: "integer", get: function() {
- return F().def(this.defaults.integer);
- } }, { key: "symbol", get: function() {
- return D();
- } }]), e3;
- }();
- function z(e3) {
- var i3;
- return void 0 === e3 && (e3 = { func: function() {
- }, bool: true, string: "", number: 0, array: function() {
- return [];
- }, object: function() {
- return {};
- }, integer: 0 }), (i3 = function(i4) {
- function o2() {
- return i4.apply(this, arguments) || this;
- }
- return r(o2, i4), t(o2, null, [{ key: "sensibleDefaults", get: function() {
- return n({}, this.defaults);
- }, set: function(t3) {
- this.defaults = false !== t3 ? n({}, true !== t3 ? t3 : e3) : {};
- } }]), o2;
- }($)).defaults = n({}, e3), i3;
- }
- $.defaults = {}, $.custom = L, $.oneOf = Y, $.instanceOf = J, $.oneOfType = B, $.arrayOf = I, $.objectOf = M, $.shape = R, $.utils = { validate: function(e3, t3) {
- return true === _(t3, e3, true);
- }, toType: function(e3, t3, n3) {
- return void 0 === n3 && (n3 = false), n3 ? w(e3, t3) : T(e3, t3);
- } };
- var C = function(e3) {
- function t3() {
- return e3.apply(this, arguments) || this;
- }
- return r(t3, e3), t3;
- }(z());
- // node_modules/ant-design-vue/es/_util/vue-types/index.js
- var PropTypes = z({
- func: void 0,
- bool: void 0,
- string: void 0,
- number: void 0,
- array: void 0,
- object: void 0,
- integer: void 0
- });
- PropTypes.extend([{
- name: "looseBool",
- getter: true,
- type: Boolean,
- default: void 0
- }, {
- name: "style",
- getter: true,
- type: [String, Object],
- default: void 0
- }, {
- name: "VueNode",
- getter: true,
- type: null
- }]);
- function withUndefined(type4) {
- type4.default = void 0;
- return type4;
- }
- var vue_types_default = PropTypes;
- // node_modules/ant-design-vue/es/empty/index.js
- var _excluded = ["image", "description", "imageStyle", "class"];
- var defaultEmptyImg = createVNode(empty_default, null, null);
- var simpleEmptyImg = createVNode(simple_default, null, null);
- var Empty3 = function Empty4(props5, _ref) {
- var _slots$description;
- var _ref$slots = _ref.slots, slots = _ref$slots === void 0 ? {} : _ref$slots, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("empty", props5), direction = _useConfigInject.direction, prefixClsRef = _useConfigInject.prefixCls;
- var prefixCls = prefixClsRef.value;
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), _props$attrs$image = _props$attrs.image, image = _props$attrs$image === void 0 ? defaultEmptyImg : _props$attrs$image, _props$attrs$descript = _props$attrs.description, description = _props$attrs$descript === void 0 ? ((_slots$description = slots.description) === null || _slots$description === void 0 ? void 0 : _slots$description.call(slots)) || void 0 : _props$attrs$descript, imageStyle = _props$attrs.imageStyle, _props$attrs$class = _props$attrs.class, className = _props$attrs$class === void 0 ? "" : _props$attrs$class, restProps = _objectWithoutProperties(_props$attrs, _excluded);
- return createVNode(LocaleReceiver_default, {
- "componentName": "Empty",
- "children": function children(locale4) {
- var _classNames;
- var des = typeof description !== "undefined" ? description : locale4.description;
- var alt = typeof des === "string" ? des : "empty";
- var imageNode = null;
- if (typeof image === "string") {
- imageNode = createVNode("img", {
- "alt": alt,
- "src": image
- }, null);
- } else {
- imageNode = image;
- }
- return createVNode("div", _objectSpread2({
- "class": classNames_default(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-normal"), image === simpleEmptyImg), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction.value === "rtl"), _classNames))
- }, restProps), [createVNode("div", {
- "class": "".concat(prefixCls, "-image"),
- "style": imageStyle
- }, [imageNode]), des && createVNode("p", {
- "class": "".concat(prefixCls, "-description")
- }, [des]), slots.default && createVNode("div", {
- "class": "".concat(prefixCls, "-footer")
- }, [filterEmpty(slots.default())])]);
- }
- }, null);
- };
- Empty3.displayName = "AEmpty";
- Empty3.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
- Empty3.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
- Empty3.inheritAttrs = false;
- Empty3.props = {
- prefixCls: String,
- image: vue_types_default.any,
- description: vue_types_default.any,
- imageStyle: {
- type: Object,
- default: void 0
- }
- };
- var empty_default2 = withInstall(Empty3);
- // node_modules/ant-design-vue/es/config-provider/renderEmpty.js
- var RenderEmpty = function RenderEmpty2(props5) {
- var _useConfigInject = useConfigInject_default("empty", props5), prefixCls = _useConfigInject.prefixCls;
- var renderHtml = function renderHtml2(componentName) {
- switch (componentName) {
- case "Table":
- case "List":
- return createVNode(empty_default2, {
- "image": empty_default2.PRESENTED_IMAGE_SIMPLE
- }, null);
- case "Select":
- case "TreeSelect":
- case "Cascader":
- case "Transfer":
- case "Mentions":
- return createVNode(empty_default2, {
- "image": empty_default2.PRESENTED_IMAGE_SIMPLE,
- "class": "".concat(prefixCls.value, "-small")
- }, null);
- default:
- return createVNode(empty_default2, null, null);
- }
- };
- return renderHtml(props5.componentName);
- };
- function renderEmpty(componentName) {
- return createVNode(RenderEmpty, {
- "componentName": componentName
- }, null);
- }
- var renderEmpty_default = renderEmpty;
- // node_modules/ant-design-vue/es/vc-util/warning.js
- var warned = {};
- function warning(valid, message) {
- if (!valid && console !== void 0) {
- console.error("Warning: ".concat(message));
- }
- }
- function note(valid, message) {
- if (!valid && console !== void 0) {
- console.warn("Note: ".concat(message));
- }
- }
- function call(method4, valid, message) {
- if (!valid && !warned[message]) {
- method4(false, message);
- warned[message] = true;
- }
- }
- function warningOnce(valid, message) {
- call(warning, valid, message);
- }
- function noteOnce(valid, message) {
- call(note, valid, message);
- }
- var warning_default = warningOnce;
- // node_modules/ant-design-vue/es/_util/warning.js
- var warning_default2 = function(valid, component) {
- var message = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
- warning_default(valid, "[antdv: ".concat(component, "] ").concat(message));
- };
- // node_modules/ant-design-vue/es/locale-provider/index.js
- var ANT_MARK = "internalMark";
- var LocaleProvider = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ALocaleProvider",
- props: {
- locale: {
- type: Object
- },
- ANT_MARK__: String
- },
- setup: function setup3(props5, _ref) {
- var slots = _ref.slots;
- warning_default2(props5.ANT_MARK__ === ANT_MARK, "LocaleProvider", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");
- var state = reactive({
- antLocale: _objectSpread2(_objectSpread2({}, props5.locale), {}, {
- exist: true
- }),
- ANT_MARK__: ANT_MARK
- });
- provide("localeData", state);
- watch(function() {
- return props5.locale;
- }, function() {
- state.antLocale = _objectSpread2(_objectSpread2({}, props5.locale), {}, {
- exist: true
- });
- }, {
- immediate: true
- });
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- LocaleProvider.install = function(app) {
- app.component(LocaleProvider.name, LocaleProvider);
- return app;
- };
- var locale_provider_default = withInstall(LocaleProvider);
- // node_modules/ant-design-vue/es/_util/transition.js
- var SelectPlacements = tuple("bottomLeft", "bottomRight", "topLeft", "topRight");
- var getTransitionDirection = function getTransitionDirection2(placement) {
- if (placement !== void 0 && (placement === "topLeft" || placement === "topRight")) {
- return "slide-down";
- }
- return "slide-up";
- };
- var getTransitionProps = function getTransitionProps2(transitionName2) {
- var opt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var transitionProps = transitionName2 ? _objectSpread2({
- name: transitionName2,
- appear: true,
- // type: 'animation',
- // appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
- // appearActiveClass: `antdv-base-transtion`,
- // appearToClass: `${transitionName}-appear ${transitionName}-appear-active`,
- enterFromClass: "".concat(transitionName2, "-enter ").concat(transitionName2, "-enter-prepare"),
- enterActiveClass: "".concat(transitionName2, "-enter ").concat(transitionName2, "-enter-prepare"),
- enterToClass: "".concat(transitionName2, "-enter ").concat(transitionName2, "-enter-active"),
- leaveFromClass: " ".concat(transitionName2, "-leave"),
- leaveActiveClass: "".concat(transitionName2, "-leave ").concat(transitionName2, "-leave-active"),
- leaveToClass: "".concat(transitionName2, "-leave ").concat(transitionName2, "-leave-active")
- }, opt) : _objectSpread2({
- css: false
- }, opt);
- return transitionProps;
- };
- var getTransitionGroupProps = function getTransitionGroupProps2(transitionName2) {
- var opt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var transitionProps = transitionName2 ? _objectSpread2({
- name: transitionName2,
- appear: true,
- // appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
- appearActiveClass: "".concat(transitionName2),
- appearToClass: "".concat(transitionName2, "-appear ").concat(transitionName2, "-appear-active"),
- enterFromClass: "".concat(transitionName2, "-appear ").concat(transitionName2, "-enter ").concat(transitionName2, "-appear-prepare ").concat(transitionName2, "-enter-prepare"),
- enterActiveClass: "".concat(transitionName2),
- enterToClass: "".concat(transitionName2, "-enter ").concat(transitionName2, "-appear ").concat(transitionName2, "-appear-active ").concat(transitionName2, "-enter-active"),
- leaveActiveClass: "".concat(transitionName2, " ").concat(transitionName2, "-leave"),
- leaveToClass: "".concat(transitionName2, "-leave-active")
- }, opt) : _objectSpread2({
- css: false
- }, opt);
- return transitionProps;
- };
- var getTransitionName = function getTransitionName2(rootPrefixCls, motion, transitionName2) {
- if (transitionName2 !== void 0) {
- return transitionName2;
- }
- return "".concat(rootPrefixCls, "-").concat(motion);
- };
- var transition_default = Transition;
- // node_modules/ant-design-vue/es/vc-notification/Notice.js
- var Notice_default = defineComponent({
- name: "Notice",
- inheritAttrs: false,
- props: ["prefixCls", "duration", "updateMark", "noticeKey", "closeIcon", "closable", "props", "onClick", "onClose", "holder", "visible"],
- setup: function setup4(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var closeTimer;
- var isUnMounted = false;
- var duration = computed(function() {
- return props5.duration === void 0 ? 4.5 : props5.duration;
- });
- var startCloseTimer = function startCloseTimer2() {
- if (duration.value && !isUnMounted) {
- closeTimer = setTimeout(function() {
- close3();
- }, duration.value * 1e3);
- }
- };
- var clearCloseTimer = function clearCloseTimer2() {
- if (closeTimer) {
- clearTimeout(closeTimer);
- closeTimer = null;
- }
- };
- var close3 = function close4(e3) {
- if (e3) {
- e3.stopPropagation();
- }
- clearCloseTimer();
- var onClose = props5.onClose, noticeKey = props5.noticeKey;
- if (onClose) {
- onClose(noticeKey);
- }
- };
- var restartCloseTimer = function restartCloseTimer2() {
- clearCloseTimer();
- startCloseTimer();
- };
- onMounted(function() {
- startCloseTimer();
- });
- onUnmounted(function() {
- isUnMounted = true;
- clearCloseTimer();
- });
- watch([duration, function() {
- return props5.updateMark;
- }, function() {
- return props5.visible;
- }], function(_ref2, _ref3) {
- var _ref4 = _slicedToArray(_ref2, 3), preDuration = _ref4[0], preUpdateMark = _ref4[1], preVisible = _ref4[2];
- var _ref5 = _slicedToArray(_ref3, 3), newDuration = _ref5[0], newUpdateMark = _ref5[1], newVisible = _ref5[2];
- if (preDuration !== newDuration || preUpdateMark !== newUpdateMark || preVisible !== newVisible && newVisible) {
- restartCloseTimer();
- }
- }, {
- flush: "post"
- });
- return function() {
- var _slots$closeIcon, _slots$default;
- var prefixCls = props5.prefixCls, closable = props5.closable, _props$closeIcon = props5.closeIcon, closeIcon = _props$closeIcon === void 0 ? (_slots$closeIcon = slots.closeIcon) === null || _slots$closeIcon === void 0 ? void 0 : _slots$closeIcon.call(slots) : _props$closeIcon, onClick2 = props5.onClick, holder = props5.holder;
- var className = attrs.class, style = attrs.style;
- var componentClass = "".concat(prefixCls, "-notice");
- var dataOrAriaAttributeProps = Object.keys(attrs).reduce(function(acc, key2) {
- if (key2.substr(0, 5) === "data-" || key2.substr(0, 5) === "aria-" || key2 === "role") {
- acc[key2] = attrs[key2];
- }
- return acc;
- }, {});
- var node = createVNode("div", _objectSpread2({
- "class": classNames_default(componentClass, className, _defineProperty({}, "".concat(componentClass, "-closable"), closable)),
- "style": style,
- "onMouseenter": clearCloseTimer,
- "onMouseleave": startCloseTimer,
- "onClick": onClick2
- }, dataOrAriaAttributeProps), [createVNode("div", {
- "class": "".concat(componentClass, "-content")
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), closable ? createVNode("a", {
- "tabindex": 0,
- "onClick": close3,
- "class": "".concat(componentClass, "-close")
- }, [closeIcon || createVNode("span", {
- "class": "".concat(componentClass, "-close-x")
- }, null)]) : null]);
- if (holder) {
- return createVNode(Teleport, {
- "to": holder
- }, {
- default: function _default9() {
- return node;
- }
- });
- }
- return node;
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-notification/Notification.js
- var _excluded2 = ["name", "getContainer", "appContext", "prefixCls", "rootPrefixCls", "transitionName", "hasTransitionName"];
- var seed = 0;
- var now = Date.now();
- function getUuid() {
- var id = seed;
- seed += 1;
- return "rcNotification_".concat(now, "_").concat(id);
- }
- var Notification = defineComponent({
- name: "Notification",
- inheritAttrs: false,
- props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon"],
- setup: function setup5(props5, _ref) {
- var attrs = _ref.attrs, expose = _ref.expose, slots = _ref.slots;
- var hookRefs = /* @__PURE__ */ new Map();
- var notices = ref([]);
- var transitionProps = computed(function() {
- var prefixCls = props5.prefixCls, _props$animation = props5.animation, animation = _props$animation === void 0 ? "fade" : _props$animation;
- var name = props5.transitionName;
- if (!name && animation) {
- name = "".concat(prefixCls, "-").concat(animation);
- }
- return getTransitionGroupProps(name);
- });
- var add = function add2(originNotice, holderCallback) {
- var key2 = originNotice.key || getUuid();
- var notice3 = _objectSpread2(_objectSpread2({}, originNotice), {}, {
- key: key2
- });
- var maxCount3 = props5.maxCount;
- var noticeIndex = notices.value.map(function(v2) {
- return v2.notice.key;
- }).indexOf(key2);
- var updatedNotices = notices.value.concat();
- if (noticeIndex !== -1) {
- updatedNotices.splice(noticeIndex, 1, {
- notice: notice3,
- holderCallback
- });
- } else {
- if (maxCount3 && notices.value.length >= maxCount3) {
- notice3.key = updatedNotices[0].notice.key;
- notice3.updateMark = getUuid();
- notice3.userPassKey = key2;
- updatedNotices.shift();
- }
- updatedNotices.push({
- notice: notice3,
- holderCallback
- });
- }
- notices.value = updatedNotices;
- };
- var remove = function remove2(removeKey) {
- notices.value = notices.value.filter(function(_ref2) {
- var _ref2$notice = _ref2.notice, key2 = _ref2$notice.key, userPassKey = _ref2$notice.userPassKey;
- var mergedKey = userPassKey || key2;
- return mergedKey !== removeKey;
- });
- };
- expose({
- add,
- remove,
- notices
- });
- return function() {
- var _slots$closeIcon, _className;
- var prefixCls = props5.prefixCls, _props$closeIcon = props5.closeIcon, closeIcon = _props$closeIcon === void 0 ? (_slots$closeIcon = slots.closeIcon) === null || _slots$closeIcon === void 0 ? void 0 : _slots$closeIcon.call(slots, {
- prefixCls
- }) : _props$closeIcon;
- var noticeNodes = notices.value.map(function(_ref3, index3) {
- var notice3 = _ref3.notice, holderCallback = _ref3.holderCallback;
- var updateMark = index3 === notices.value.length - 1 ? notice3.updateMark : void 0;
- var key2 = notice3.key, userPassKey = notice3.userPassKey;
- var content = notice3.content;
- var noticeProps = _objectSpread2(_objectSpread2(_objectSpread2({
- prefixCls,
- closeIcon: typeof closeIcon === "function" ? closeIcon({
- prefixCls
- }) : closeIcon
- }, notice3), notice3.props), {}, {
- key: key2,
- noticeKey: userPassKey || key2,
- updateMark,
- onClose: function onClose(noticeKey) {
- var _notice$onClose;
- remove(noticeKey);
- (_notice$onClose = notice3.onClose) === null || _notice$onClose === void 0 ? void 0 : _notice$onClose.call(notice3);
- },
- onClick: notice3.onClick
- });
- if (holderCallback) {
- return createVNode("div", {
- "key": key2,
- "class": "".concat(prefixCls, "-hook-holder"),
- "ref": function ref2(div) {
- if (typeof key2 === "undefined") {
- return;
- }
- if (div) {
- hookRefs.set(key2, div);
- holderCallback(div, noticeProps);
- } else {
- hookRefs.delete(key2);
- }
- }
- }, null);
- }
- return createVNode(Notice_default, noticeProps, {
- default: function _default9() {
- return [typeof content === "function" ? content({
- prefixCls
- }) : content];
- }
- });
- });
- var className = (_className = {}, _defineProperty(_className, prefixCls, 1), _defineProperty(_className, attrs.class, !!attrs.class), _className);
- return createVNode("div", {
- "class": className,
- "style": attrs.style || {
- top: "65px",
- left: "50%"
- }
- }, [createVNode(TransitionGroup, _objectSpread2({
- "tag": "div"
- }, transitionProps.value), {
- default: function _default9() {
- return [noticeNodes];
- }
- })]);
- };
- }
- });
- Notification.newInstance = function newNotificationInstance(properties, callback) {
- var _ref4 = properties || {}, _ref4$name = _ref4.name, name = _ref4$name === void 0 ? "notification" : _ref4$name, getContainer5 = _ref4.getContainer, appContext = _ref4.appContext, customizePrefixCls = _ref4.prefixCls, customRootPrefixCls = _ref4.rootPrefixCls, customTransitionName = _ref4.transitionName, hasTransitionName2 = _ref4.hasTransitionName, props5 = _objectWithoutProperties(_ref4, _excluded2);
- var div = document.createElement("div");
- if (getContainer5) {
- var root2 = getContainer5();
- root2.appendChild(div);
- } else {
- document.body.appendChild(div);
- }
- var Wrapper = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "NotificationWrapper",
- setup: function setup220(_props, _ref5) {
- var attrs = _ref5.attrs;
- var notiRef = ref();
- onMounted(function() {
- callback({
- notice: function notice3(noticeProps) {
- var _notiRef$value;
- (_notiRef$value = notiRef.value) === null || _notiRef$value === void 0 ? void 0 : _notiRef$value.add(noticeProps);
- },
- removeNotice: function removeNotice(key2) {
- var _notiRef$value2;
- (_notiRef$value2 = notiRef.value) === null || _notiRef$value2 === void 0 ? void 0 : _notiRef$value2.remove(key2);
- },
- destroy: function destroy3() {
- render(null, div);
- if (div.parentNode) {
- div.parentNode.removeChild(div);
- }
- },
- component: notiRef
- });
- });
- return function() {
- var global2 = globalConfigForApi;
- var prefixCls = global2.getPrefixCls(name, customizePrefixCls);
- var rootPrefixCls = global2.getRootPrefixCls(customRootPrefixCls, prefixCls);
- var transitionName2 = hasTransitionName2 ? customTransitionName : "".concat(rootPrefixCls, "-").concat(customTransitionName);
- return createVNode(config_provider_default, _objectSpread2(_objectSpread2({}, global2), {}, {
- "notUpdateGlobalConfig": true,
- "prefixCls": rootPrefixCls
- }), {
- default: function _default9() {
- return [createVNode(Notification, _objectSpread2(_objectSpread2({
- "ref": notiRef
- }, attrs), {}, {
- "prefixCls": prefixCls,
- "transitionName": transitionName2
- }), null)];
- }
- });
- };
- }
- });
- var vm = createVNode(Wrapper, props5);
- vm.appContext = appContext || vm.appContext;
- render(vm, div);
- };
- var Notification_default = Notification;
- // node_modules/ant-design-vue/es/vc-notification/index.js
- var vc_notification_default = Notification_default;
- // node_modules/ant-design-vue/es/message/index.js
- var defaultDuration = 3;
- var defaultTop;
- var messageInstance;
- var key = 1;
- var localPrefixCls = "";
- var transitionName = "move-up";
- var hasTransitionName = false;
- var getContainer = function getContainer2() {
- return document.body;
- };
- var maxCount;
- var rtl = false;
- function getKeyThenIncreaseKey() {
- return key++;
- }
- function setMessageConfig(options) {
- if (options.top !== void 0) {
- defaultTop = options.top;
- messageInstance = null;
- }
- if (options.duration !== void 0) {
- defaultDuration = options.duration;
- }
- if (options.prefixCls !== void 0) {
- localPrefixCls = options.prefixCls;
- }
- if (options.getContainer !== void 0) {
- getContainer = options.getContainer;
- messageInstance = null;
- }
- if (options.transitionName !== void 0) {
- transitionName = options.transitionName;
- messageInstance = null;
- hasTransitionName = true;
- }
- if (options.maxCount !== void 0) {
- maxCount = options.maxCount;
- messageInstance = null;
- }
- if (options.rtl !== void 0) {
- rtl = options.rtl;
- }
- }
- function getMessageInstance(args, callback) {
- if (messageInstance) {
- callback(messageInstance);
- return;
- }
- vc_notification_default.newInstance({
- appContext: args.appContext,
- prefixCls: args.prefixCls || localPrefixCls,
- rootPrefixCls: args.rootPrefixCls,
- transitionName,
- hasTransitionName,
- style: {
- top: defaultTop
- },
- getContainer: getContainer || args.getPopupContainer,
- maxCount,
- name: "message"
- }, function(instance) {
- if (messageInstance) {
- callback(messageInstance);
- return;
- }
- messageInstance = instance;
- callback(instance);
- });
- }
- var typeToIcon = {
- info: InfoCircleFilled_default,
- success: CheckCircleFilled_default,
- error: CloseCircleFilled_default,
- warning: ExclamationCircleFilled_default,
- loading: LoadingOutlined_default
- };
- function notice(args) {
- var duration = args.duration !== void 0 ? args.duration : defaultDuration;
- var target = args.key || getKeyThenIncreaseKey();
- var closePromise = new Promise(function(resolve) {
- var callback = function callback2() {
- if (typeof args.onClose === "function") {
- args.onClose();
- }
- return resolve(true);
- };
- getMessageInstance(args, function(instance) {
- instance.notice({
- key: target,
- duration,
- style: args.style || {},
- class: args.class,
- content: function content(_ref) {
- var _classNames;
- var prefixCls = _ref.prefixCls;
- var Icon = typeToIcon[args.type];
- var iconNode = Icon ? createVNode(Icon, null, null) : "";
- var messageClass = classNames_default("".concat(prefixCls, "-custom-content"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(args.type), args.type), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), rtl === true), _classNames));
- return createVNode("div", {
- "class": messageClass
- }, [typeof args.icon === "function" ? args.icon() : args.icon || iconNode, createVNode("span", null, [typeof args.content === "function" ? args.content() : args.content])]);
- },
- onClose: callback,
- onClick: args.onClick
- });
- });
- });
- var result = function result2() {
- if (messageInstance) {
- messageInstance.removeNotice(target);
- }
- };
- result.then = function(filled, rejected) {
- return closePromise.then(filled, rejected);
- };
- result.promise = closePromise;
- return result;
- }
- function isArgsProps(content) {
- return Object.prototype.toString.call(content) === "[object Object]" && !!content.content;
- }
- var api = {
- open: notice,
- config: setMessageConfig,
- destroy: function destroy(messageKey) {
- if (messageInstance) {
- if (messageKey) {
- var _messageInstance = messageInstance, removeNotice = _messageInstance.removeNotice;
- removeNotice(messageKey);
- } else {
- var _messageInstance2 = messageInstance, destroy3 = _messageInstance2.destroy;
- destroy3();
- messageInstance = null;
- }
- }
- }
- };
- function attachTypeApi(originalApi, type4) {
- originalApi[type4] = function(content, duration, onClose) {
- if (isArgsProps(content)) {
- return originalApi.open(_objectSpread2(_objectSpread2({}, content), {}, {
- type: type4
- }));
- }
- if (typeof duration === "function") {
- onClose = duration;
- duration = void 0;
- }
- return originalApi.open({
- content,
- duration,
- type: type4,
- onClose
- });
- };
- }
- ["success", "info", "warning", "error", "loading"].forEach(function(type4) {
- return attachTypeApi(api, type4);
- });
- api.warn = api.warning;
- var message_default = api;
- // node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key2, arg) {
- try {
- var info = gen[key2](arg);
- var value = info.value;
- } catch (error) {
- reject(error);
- return;
- }
- if (info.done) {
- resolve(value);
- } else {
- Promise.resolve(value).then(_next, _throw);
- }
- }
- function _asyncToGenerator(fn) {
- return function() {
- var self2 = this, args = arguments;
- return new Promise(function(resolve, reject) {
- var gen = fn.apply(self2, args);
- function _next(value) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
- }
- function _throw(err) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
- }
- _next(void 0);
- });
- };
- }
- // node_modules/ant-design-vue/es/notification/index.js
- var import_regenerator = __toESM(require_regenerator());
- var notificationInstance = {};
- var defaultDuration2 = 4.5;
- var defaultTop2 = "24px";
- var defaultBottom = "24px";
- var defaultPrefixCls = "";
- var defaultPlacement = "topRight";
- var defaultGetContainer = function defaultGetContainer2() {
- return document.body;
- };
- var defaultCloseIcon = null;
- var rtl2 = false;
- var maxCount2;
- function setNotificationConfig(options) {
- var duration = options.duration, placement = options.placement, bottom = options.bottom, top = options.top, getContainer5 = options.getContainer, closeIcon = options.closeIcon, prefixCls = options.prefixCls;
- if (prefixCls !== void 0) {
- defaultPrefixCls = prefixCls;
- }
- if (duration !== void 0) {
- defaultDuration2 = duration;
- }
- if (placement !== void 0) {
- defaultPlacement = placement;
- }
- if (bottom !== void 0) {
- defaultBottom = typeof bottom === "number" ? "".concat(bottom, "px") : bottom;
- }
- if (top !== void 0) {
- defaultTop2 = typeof top === "number" ? "".concat(top, "px") : top;
- }
- if (getContainer5 !== void 0) {
- defaultGetContainer = getContainer5;
- }
- if (closeIcon !== void 0) {
- defaultCloseIcon = closeIcon;
- }
- if (options.rtl !== void 0) {
- rtl2 = options.rtl;
- }
- if (options.maxCount !== void 0) {
- maxCount2 = options.maxCount;
- }
- }
- function getPlacementStyle(placement) {
- var top = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : defaultTop2;
- var bottom = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : defaultBottom;
- var style;
- switch (placement) {
- case "topLeft":
- style = {
- left: "0px",
- top,
- bottom: "auto"
- };
- break;
- case "topRight":
- style = {
- right: "0px",
- top,
- bottom: "auto"
- };
- break;
- case "bottomLeft":
- style = {
- left: "0px",
- top: "auto",
- bottom
- };
- break;
- default:
- style = {
- right: "0px",
- top: "auto",
- bottom
- };
- break;
- }
- return style;
- }
- function getNotificationInstance(_ref, callback) {
- var customizePrefixCls = _ref.prefixCls, _ref$placement = _ref.placement, placement = _ref$placement === void 0 ? defaultPlacement : _ref$placement, _ref$getContainer = _ref.getContainer, getContainer5 = _ref$getContainer === void 0 ? defaultGetContainer : _ref$getContainer, top = _ref.top, bottom = _ref.bottom, _ref$closeIcon = _ref.closeIcon, _closeIcon = _ref$closeIcon === void 0 ? defaultCloseIcon : _ref$closeIcon, appContext = _ref.appContext;
- var _globalConfig = globalConfig(), getPrefixCls2 = _globalConfig.getPrefixCls;
- var prefixCls = getPrefixCls2("notification", customizePrefixCls || defaultPrefixCls);
- var cacheKey = "".concat(prefixCls, "-").concat(placement, "-").concat(rtl2);
- var cacheInstance = notificationInstance[cacheKey];
- if (cacheInstance) {
- Promise.resolve(cacheInstance).then(function(instance) {
- callback(instance);
- });
- return;
- }
- var notificationClass = classNames_default("".concat(prefixCls, "-").concat(placement), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl2 === true));
- vc_notification_default.newInstance({
- name: "notification",
- prefixCls: customizePrefixCls || defaultPrefixCls,
- class: notificationClass,
- style: getPlacementStyle(placement, top, bottom),
- appContext,
- getContainer: getContainer5,
- closeIcon: function closeIcon(_ref2) {
- var prefixCls2 = _ref2.prefixCls;
- var closeIconToRender = createVNode("span", {
- "class": "".concat(prefixCls2, "-close-x")
- }, [renderHelper(_closeIcon, {}, createVNode(CloseOutlined_default, {
- "class": "".concat(prefixCls2, "-close-icon")
- }, null))]);
- return closeIconToRender;
- },
- maxCount: maxCount2,
- hasTransitionName: true
- }, function(notification) {
- notificationInstance[cacheKey] = notification;
- callback(notification);
- });
- }
- var typeToIcon2 = {
- success: CheckCircleOutlined_default,
- info: InfoCircleOutlined_default,
- error: CloseCircleOutlined_default,
- warning: ExclamationCircleOutlined_default
- };
- function notice2(args) {
- var icon = args.icon, type4 = args.type, description = args.description, message = args.message, btn = args.btn;
- var duration = args.duration === void 0 ? defaultDuration2 : args.duration;
- getNotificationInstance(args, function(notification) {
- notification.notice({
- content: function content(_ref3) {
- var outerPrefixCls = _ref3.prefixCls;
- var prefixCls = "".concat(outerPrefixCls, "-notice");
- var iconNode = null;
- if (icon) {
- iconNode = function iconNode2() {
- return createVNode("span", {
- "class": "".concat(prefixCls, "-icon")
- }, [renderHelper(icon)]);
- };
- } else if (type4) {
- var Icon = typeToIcon2[type4];
- iconNode = function iconNode2() {
- return createVNode(Icon, {
- "class": "".concat(prefixCls, "-icon ").concat(prefixCls, "-icon-").concat(type4)
- }, null);
- };
- }
- return createVNode("div", {
- "class": iconNode ? "".concat(prefixCls, "-with-icon") : ""
- }, [iconNode && iconNode(), createVNode("div", {
- "class": "".concat(prefixCls, "-message")
- }, [!description && iconNode ? createVNode("span", {
- "class": "".concat(prefixCls, "-message-single-line-auto-margin")
- }, null) : null, renderHelper(message)]), createVNode("div", {
- "class": "".concat(prefixCls, "-description")
- }, [renderHelper(description)]), btn ? createVNode("span", {
- "class": "".concat(prefixCls, "-btn")
- }, [renderHelper(btn)]) : null]);
- },
- duration,
- closable: true,
- onClose: args.onClose,
- onClick: args.onClick,
- key: args.key,
- style: args.style || {},
- class: args.class
- });
- });
- }
- var api2 = {
- open: notice2,
- close: function close(key2) {
- Object.keys(notificationInstance).forEach(function(cacheKey) {
- return Promise.resolve(notificationInstance[cacheKey]).then(function(instance) {
- instance.removeNotice(key2);
- });
- });
- },
- config: setNotificationConfig,
- destroy: function destroy2() {
- Object.keys(notificationInstance).forEach(function(cacheKey) {
- Promise.resolve(notificationInstance[cacheKey]).then(function(instance) {
- instance.destroy();
- });
- delete notificationInstance[cacheKey];
- });
- }
- };
- var iconTypes = ["success", "info", "warning", "error"];
- iconTypes.forEach(function(type4) {
- api2[type4] = function(args) {
- return api2.open(_objectSpread2(_objectSpread2({}, args), {}, {
- type: type4
- }));
- };
- });
- api2.warn = api2.warning;
- var getInstance = function() {
- var _ref4 = _asyncToGenerator(import_regenerator.default.mark(function _callee(cacheKey) {
- return import_regenerator.default.wrap(function _callee$(_context) {
- while (1)
- switch (_context.prev = _context.next) {
- case 0:
- return _context.abrupt("return", false ? notificationInstance[cacheKey] : null);
- case 1:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return function getInstance2(_x) {
- return _ref4.apply(this, arguments);
- };
- }();
- var notification_default = api2;
- // node_modules/ant-design-vue/es/_util/canUseDom.js
- function canUseDom() {
- return !!(typeof window !== "undefined" && window.document && window.document.createElement);
- }
- var canUseDom_default = canUseDom;
- // node_modules/ant-design-vue/es/vc-util/Dom/dynamicCSS.js
- var MARK_KEY = "vc-util-key";
- function getMark() {
- var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, mark = _ref.mark;
- if (mark) {
- return mark.startsWith("data-") ? mark : "data-".concat(mark);
- }
- return MARK_KEY;
- }
- function getContainer3(option) {
- if (option.attachTo) {
- return option.attachTo;
- }
- var head = document.querySelector("head");
- return head || document.body;
- }
- function injectCSS(css2) {
- var _option$csp;
- var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (!canUseDom_default()) {
- return null;
- }
- var styleNode = document.createElement("style");
- if ((_option$csp = option.csp) !== null && _option$csp !== void 0 && _option$csp.nonce) {
- var _option$csp2;
- styleNode.nonce = (_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce;
- }
- styleNode.innerHTML = css2;
- var container = getContainer3(option);
- var firstChild = container.firstChild;
- if (option.prepend && container.prepend) {
- container.prepend(styleNode);
- } else if (option.prepend && firstChild) {
- container.insertBefore(styleNode, firstChild);
- } else {
- container.appendChild(styleNode);
- }
- return styleNode;
- }
- var containerCache = /* @__PURE__ */ new Map();
- function findExistNode(key2) {
- var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var container = getContainer3(option);
- return Array.from(containerCache.get(container).children).find(function(node) {
- return node.tagName === "STYLE" && node.getAttribute(getMark(option)) === key2;
- });
- }
- function updateCSS(css2, key2) {
- var option = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
- var container = getContainer3(option);
- if (!containerCache.has(container)) {
- var placeholderStyle = injectCSS("", option);
- var parentNode = placeholderStyle.parentNode;
- containerCache.set(container, parentNode);
- parentNode.removeChild(placeholderStyle);
- }
- var existNode = findExistNode(key2, option);
- if (existNode) {
- var _option$csp3, _option$csp4;
- if ((_option$csp3 = option.csp) !== null && _option$csp3 !== void 0 && _option$csp3.nonce && existNode.nonce !== ((_option$csp4 = option.csp) === null || _option$csp4 === void 0 ? void 0 : _option$csp4.nonce)) {
- var _option$csp5;
- existNode.nonce = (_option$csp5 = option.csp) === null || _option$csp5 === void 0 ? void 0 : _option$csp5.nonce;
- }
- if (existNode.innerHTML !== css2) {
- existNode.innerHTML = css2;
- }
- return existNode;
- }
- var newNode = injectCSS(css2, option);
- newNode.setAttribute(getMark(option), key2);
- return newNode;
- }
- // node_modules/ant-design-vue/es/vc-util/devWarning.js
- var devWarning_default = function(valid, component, message) {
- warning_default(valid, "[ant-design-vue: ".concat(component, "] ").concat(message));
- };
- // node_modules/ant-design-vue/es/config-provider/cssVariables.js
- var dynamicStyleMark = "-ant-".concat(Date.now(), "-").concat(Math.random());
- function registerTheme(globalPrefixCls, theme) {
- var variables = {};
- var formatColor = function formatColor2(color, updater) {
- var clone2 = color.clone();
- clone2 = (updater === null || updater === void 0 ? void 0 : updater(clone2)) || clone2;
- return clone2.toRgbString();
- };
- var fillColor = function fillColor2(colorVal, type4) {
- var baseColor = new TinyColor(colorVal);
- var colorPalettes = generate(baseColor.toRgbString());
- variables["".concat(type4, "-color")] = formatColor(baseColor);
- variables["".concat(type4, "-color-disabled")] = colorPalettes[1];
- variables["".concat(type4, "-color-hover")] = colorPalettes[4];
- variables["".concat(type4, "-color-active")] = colorPalettes[6];
- variables["".concat(type4, "-color-outline")] = baseColor.clone().setAlpha(0.2).toRgbString();
- variables["".concat(type4, "-color-deprecated-bg")] = colorPalettes[1];
- variables["".concat(type4, "-color-deprecated-border")] = colorPalettes[3];
- };
- if (theme.primaryColor) {
- fillColor(theme.primaryColor, "primary");
- var primaryColor = new TinyColor(theme.primaryColor);
- var primaryColors = generate(primaryColor.toRgbString());
- primaryColors.forEach(function(color, index3) {
- variables["primary-".concat(index3 + 1)] = color;
- });
- variables["primary-color-deprecated-l-35"] = formatColor(primaryColor, function(c2) {
- return c2.lighten(35);
- });
- variables["primary-color-deprecated-l-20"] = formatColor(primaryColor, function(c2) {
- return c2.lighten(20);
- });
- variables["primary-color-deprecated-t-20"] = formatColor(primaryColor, function(c2) {
- return c2.tint(20);
- });
- variables["primary-color-deprecated-t-50"] = formatColor(primaryColor, function(c2) {
- return c2.tint(50);
- });
- variables["primary-color-deprecated-f-12"] = formatColor(primaryColor, function(c2) {
- return c2.setAlpha(c2.getAlpha() * 0.12);
- });
- var primaryActiveColor = new TinyColor(primaryColors[0]);
- variables["primary-color-active-deprecated-f-30"] = formatColor(primaryActiveColor, function(c2) {
- return c2.setAlpha(c2.getAlpha() * 0.3);
- });
- variables["primary-color-active-deprecated-d-02"] = formatColor(primaryActiveColor, function(c2) {
- return c2.darken(2);
- });
- }
- if (theme.successColor) {
- fillColor(theme.successColor, "success");
- }
- if (theme.warningColor) {
- fillColor(theme.warningColor, "warning");
- }
- if (theme.errorColor) {
- fillColor(theme.errorColor, "error");
- }
- if (theme.infoColor) {
- fillColor(theme.infoColor, "info");
- }
- var cssList = Object.keys(variables).map(function(key2) {
- return "--".concat(globalPrefixCls, "-").concat(key2, ": ").concat(variables[key2], ";");
- });
- if (canUseDom_default()) {
- updateCSS("\n :root {\n ".concat(cssList.join("\n"), "\n }\n "), "".concat(dynamicStyleMark, "-dynamic-theme"));
- } else {
- devWarning_default(false, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
- }
- }
- // node_modules/ant-design-vue/es/config-provider/context.js
- var GlobalFormContextKey = Symbol("GlobalFormContextKey");
- var useProvideGlobalForm = function useProvideGlobalForm2(state) {
- provide(GlobalFormContextKey, state);
- };
- var useInjectGlobalForm = function useInjectGlobalForm2() {
- return inject(GlobalFormContextKey, {
- validateMessages: computed(function() {
- return void 0;
- })
- });
- };
- var GlobalConfigContextKey = Symbol("GlobalConfigContextKey");
- var configProviderProps = function configProviderProps2() {
- return {
- getTargetContainer: {
- type: Function
- },
- getPopupContainer: {
- type: Function
- },
- prefixCls: String,
- getPrefixCls: {
- type: Function
- },
- renderEmpty: {
- type: Function
- },
- transformCellText: {
- type: Function
- },
- csp: {
- type: Object,
- default: void 0
- },
- input: {
- type: Object
- },
- autoInsertSpaceInButton: {
- type: Boolean,
- default: void 0
- },
- locale: {
- type: Object,
- default: void 0
- },
- pageHeader: {
- type: Object
- },
- componentSize: {
- type: String
- },
- direction: {
- type: String
- },
- space: {
- type: Object
- },
- virtual: {
- type: Boolean,
- default: void 0
- },
- dropdownMatchSelectWidth: {
- type: [Number, Boolean],
- default: true
- },
- form: {
- type: Object,
- default: void 0
- },
- // internal use
- notUpdateGlobalConfig: Boolean
- };
- };
- // node_modules/ant-design-vue/es/config-provider/index.js
- var defaultPrefixCls2 = "ant";
- function getGlobalPrefixCls() {
- return globalConfigForApi.prefixCls || defaultPrefixCls2;
- }
- var globalConfigByCom = reactive({});
- var globalConfigBySet = reactive({});
- var globalConfigForApi = reactive({});
- watchEffect(function() {
- _extends(globalConfigForApi, globalConfigByCom, globalConfigBySet);
- globalConfigForApi.prefixCls = getGlobalPrefixCls();
- globalConfigForApi.getPrefixCls = function(suffixCls, customizePrefixCls) {
- if (customizePrefixCls)
- return customizePrefixCls;
- return suffixCls ? "".concat(globalConfigForApi.prefixCls, "-").concat(suffixCls) : globalConfigForApi.prefixCls;
- };
- globalConfigForApi.getRootPrefixCls = function(rootPrefixCls, customizePrefixCls) {
- if (rootPrefixCls) {
- return rootPrefixCls;
- }
- if (globalConfigForApi.prefixCls) {
- return globalConfigForApi.prefixCls;
- }
- if (customizePrefixCls && customizePrefixCls.includes("-")) {
- return customizePrefixCls.replace(/^(.*)-[^-]*$/, "$1");
- }
- return getGlobalPrefixCls();
- };
- });
- var stopWatchEffect;
- var setGlobalConfig = function setGlobalConfig2(params) {
- if (stopWatchEffect) {
- stopWatchEffect();
- }
- stopWatchEffect = watchEffect(function() {
- _extends(globalConfigBySet, reactive(params));
- _extends(globalConfigForApi, reactive(params));
- });
- if (params.theme) {
- registerTheme(getGlobalPrefixCls(), params.theme);
- }
- };
- var globalConfig = function globalConfig2() {
- return {
- getPrefixCls: function getPrefixCls2(suffixCls, customizePrefixCls) {
- if (customizePrefixCls)
- return customizePrefixCls;
- return suffixCls ? "".concat(getGlobalPrefixCls(), "-").concat(suffixCls) : getGlobalPrefixCls();
- },
- getRootPrefixCls: function getRootPrefixCls(rootPrefixCls, customizePrefixCls) {
- if (rootPrefixCls) {
- return rootPrefixCls;
- }
- if (globalConfigForApi.prefixCls) {
- return globalConfigForApi.prefixCls;
- }
- if (customizePrefixCls && customizePrefixCls.includes("-")) {
- return customizePrefixCls.replace(/^(.*)-[^-]*$/, "$1");
- }
- return getGlobalPrefixCls();
- }
- };
- };
- var ConfigProvider = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AConfigProvider",
- inheritAttrs: false,
- props: configProviderProps(),
- setup: function setup6(props5, _ref) {
- var slots = _ref.slots;
- var getPrefixCls2 = function getPrefixCls3(suffixCls, customizePrefixCls) {
- var _props$prefixCls = props5.prefixCls, prefixCls = _props$prefixCls === void 0 ? "ant" : _props$prefixCls;
- if (customizePrefixCls)
- return customizePrefixCls;
- return suffixCls ? "".concat(prefixCls, "-").concat(suffixCls) : prefixCls;
- };
- var renderEmptyComponent = function renderEmptyComponent2(name) {
- var renderEmpty2 = props5.renderEmpty || slots.renderEmpty || renderEmpty_default;
- return renderEmpty2(name);
- };
- var getPrefixClsWrapper = function getPrefixClsWrapper2(suffixCls, customizePrefixCls) {
- var prefixCls = props5.prefixCls;
- if (customizePrefixCls)
- return customizePrefixCls;
- var mergedPrefixCls = prefixCls || getPrefixCls2("");
- return suffixCls ? "".concat(mergedPrefixCls, "-").concat(suffixCls) : mergedPrefixCls;
- };
- var configProvider = reactive(_objectSpread2(_objectSpread2({}, props5), {}, {
- getPrefixCls: getPrefixClsWrapper,
- renderEmpty: renderEmptyComponent
- }));
- Object.keys(props5).forEach(function(key2) {
- watch(function() {
- return props5[key2];
- }, function() {
- configProvider[key2] = props5[key2];
- });
- });
- if (!props5.notUpdateGlobalConfig) {
- _extends(globalConfigByCom, configProvider);
- watch(configProvider, function() {
- _extends(globalConfigByCom, configProvider);
- });
- }
- var validateMessagesRef = computed(function() {
- var validateMessages = {};
- if (props5.locale) {
- var _props$locale$Form, _defaultLocale$Form;
- validateMessages = ((_props$locale$Form = props5.locale.Form) === null || _props$locale$Form === void 0 ? void 0 : _props$locale$Form.defaultValidateMessages) || ((_defaultLocale$Form = default_default.Form) === null || _defaultLocale$Form === void 0 ? void 0 : _defaultLocale$Form.defaultValidateMessages) || {};
- }
- if (props5.form && props5.form.validateMessages) {
- validateMessages = _objectSpread2(_objectSpread2({}, validateMessages), props5.form.validateMessages);
- }
- return validateMessages;
- });
- useProvideGlobalForm({
- validateMessages: validateMessagesRef
- });
- provide("configProvider", configProvider);
- var renderProvider = function renderProvider2(legacyLocale) {
- var _slots$default;
- return createVNode(locale_provider_default, {
- "locale": props5.locale || legacyLocale,
- "ANT_MARK__": ANT_MARK
- }, {
- default: function _default9() {
- return [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)];
- }
- });
- };
- watchEffect(function() {
- if (props5.direction) {
- message_default.config({
- rtl: props5.direction === "rtl"
- });
- notification_default.config({
- rtl: props5.direction === "rtl"
- });
- }
- });
- return function() {
- return createVNode(LocaleReceiver_default, {
- "children": function children(_2, __, legacyLocale) {
- return renderProvider(legacyLocale);
- }
- }, null);
- };
- }
- });
- var defaultConfigProvider = reactive({
- getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
- if (customizePrefixCls)
- return customizePrefixCls;
- return suffixCls ? "ant-".concat(suffixCls) : "ant";
- },
- renderEmpty: renderEmpty_default,
- direction: "ltr"
- });
- ConfigProvider.config = setGlobalConfig;
- ConfigProvider.install = function(app) {
- app.component(ConfigProvider.name, ConfigProvider);
- };
- var config_provider_default = ConfigProvider;
- // node_modules/ant-design-vue/es/_util/hooks/useConfigInject.js
- var useConfigInject_default = function(name, props5) {
- var configProvider = inject("configProvider", defaultConfigProvider);
- var prefixCls = computed(function() {
- return configProvider.getPrefixCls(name, props5.prefixCls);
- });
- var direction = computed(function() {
- var _props$direction;
- return (_props$direction = props5.direction) !== null && _props$direction !== void 0 ? _props$direction : configProvider.direction;
- });
- var rootPrefixCls = computed(function() {
- return configProvider.getPrefixCls();
- });
- var autoInsertSpaceInButton = computed(function() {
- return configProvider.autoInsertSpaceInButton;
- });
- var renderEmpty2 = computed(function() {
- return configProvider.renderEmpty;
- });
- var space = computed(function() {
- return configProvider.space;
- });
- var pageHeader = computed(function() {
- return configProvider.pageHeader;
- });
- var form = computed(function() {
- return configProvider.form;
- });
- var getTargetContainer = computed(function() {
- return props5.getTargetContainer || configProvider.getTargetContainer;
- });
- var getPopupContainer = computed(function() {
- return props5.getPopupContainer || configProvider.getPopupContainer;
- });
- var dropdownMatchSelectWidth = computed(function() {
- var _props$dropdownMatchS;
- return (_props$dropdownMatchS = props5.dropdownMatchSelectWidth) !== null && _props$dropdownMatchS !== void 0 ? _props$dropdownMatchS : configProvider.dropdownMatchSelectWidth;
- });
- var virtual = computed(function() {
- return (props5.virtual === void 0 ? configProvider.virtual !== false : props5.virtual !== false) && dropdownMatchSelectWidth.value !== false;
- });
- var size = computed(function() {
- return props5.size || configProvider.componentSize;
- });
- var autocomplete = computed(function() {
- var _configProvider$input;
- return props5.autocomplete || ((_configProvider$input = configProvider.input) === null || _configProvider$input === void 0 ? void 0 : _configProvider$input.autocomplete);
- });
- var csp = computed(function() {
- return configProvider.csp;
- });
- return {
- configProvider,
- prefixCls,
- direction,
- size,
- getTargetContainer,
- getPopupContainer,
- space,
- pageHeader,
- form,
- autoInsertSpaceInButton,
- renderEmpty: renderEmpty2,
- virtual,
- dropdownMatchSelectWidth,
- rootPrefixCls,
- getPrefixCls: configProvider.getPrefixCls,
- autocomplete,
- csp
- };
- };
- // node_modules/ant-design-vue/es/_util/omit.js
- function omit(obj, fields) {
- var shallowCopy = _extends({}, obj);
- for (var i3 = 0; i3 < fields.length; i3 += 1) {
- var key2 = fields[i3];
- delete shallowCopy[key2];
- }
- return shallowCopy;
- }
- var omit_default = omit;
- // node_modules/ant-design-vue/es/affix/index.js
- function getDefaultTarget() {
- return typeof window !== "undefined" ? window : null;
- }
- var AffixStatus;
- (function(AffixStatus2) {
- AffixStatus2[AffixStatus2["None"] = 0] = "None";
- AffixStatus2[AffixStatus2["Prepare"] = 1] = "Prepare";
- })(AffixStatus || (AffixStatus = {}));
- var affixProps = function affixProps2() {
- return {
- /**
- * 距离窗口顶部达到指定偏移量后触发
- */
- offsetTop: Number,
- /** 距离窗口底部达到指定偏移量后触发 */
- offsetBottom: Number,
- /** 设置 Affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 */
- target: {
- type: Function,
- default: getDefaultTarget
- },
- prefixCls: String,
- /** 固定状态改变时触发的回调函数 */
- onChange: Function,
- onTestUpdatePosition: Function
- };
- };
- var Affix = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AAffix",
- props: affixProps(),
- setup: function setup7(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, expose = _ref.expose;
- var placeholderNode = ref();
- var fixedNode = ref();
- var state = reactive({
- affixStyle: void 0,
- placeholderStyle: void 0,
- status: AffixStatus.None,
- lastAffix: false,
- prevTarget: null,
- timeout: null
- });
- var currentInstance = getCurrentInstance();
- var offsetTop = computed(function() {
- return props5.offsetBottom === void 0 && props5.offsetTop === void 0 ? 0 : props5.offsetTop;
- });
- var offsetBottom = computed(function() {
- return props5.offsetBottom;
- });
- var measure2 = function measure3() {
- var status = state.status, lastAffix = state.lastAffix;
- var target = props5.target;
- if (status !== AffixStatus.Prepare || !fixedNode.value || !placeholderNode.value || !target) {
- return;
- }
- var targetNode = target();
- if (!targetNode) {
- return;
- }
- var newState = {
- status: AffixStatus.None
- };
- var targetRect = getTargetRect(targetNode);
- var placeholderRect = getTargetRect(placeholderNode.value);
- var fixedTop = getFixedTop(placeholderRect, targetRect, offsetTop.value);
- var fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom.value);
- if (fixedTop !== void 0) {
- newState.affixStyle = {
- position: "fixed",
- top: fixedTop,
- width: placeholderRect.width + "px",
- height: placeholderRect.height + "px"
- };
- newState.placeholderStyle = {
- width: placeholderRect.width + "px",
- height: placeholderRect.height + "px"
- };
- } else if (fixedBottom !== void 0) {
- newState.affixStyle = {
- position: "fixed",
- bottom: fixedBottom,
- width: placeholderRect.width + "px",
- height: placeholderRect.height + "px"
- };
- newState.placeholderStyle = {
- width: placeholderRect.width + "px",
- height: placeholderRect.height + "px"
- };
- }
- newState.lastAffix = !!newState.affixStyle;
- if (lastAffix !== newState.lastAffix) {
- emit("change", newState.lastAffix);
- }
- _extends(state, newState);
- };
- var prepareMeasure = function prepareMeasure2() {
- _extends(state, {
- status: AffixStatus.Prepare,
- affixStyle: void 0,
- placeholderStyle: void 0
- });
- currentInstance.update();
- if (false) {
- emit("testUpdatePosition");
- }
- };
- var updatePosition = throttleByAnimationFrame(function() {
- prepareMeasure();
- });
- var lazyUpdatePosition = throttleByAnimationFrame(function() {
- var target = props5.target;
- var affixStyle = state.affixStyle;
- if (target && affixStyle) {
- var targetNode = target();
- if (targetNode && placeholderNode.value) {
- var targetRect = getTargetRect(targetNode);
- var placeholderRect = getTargetRect(placeholderNode.value);
- var fixedTop = getFixedTop(placeholderRect, targetRect, offsetTop.value);
- var fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom.value);
- if (fixedTop !== void 0 && affixStyle.top === fixedTop || fixedBottom !== void 0 && affixStyle.bottom === fixedBottom) {
- return;
- }
- }
- }
- prepareMeasure();
- });
- expose({
- updatePosition,
- lazyUpdatePosition
- });
- watch(function() {
- return props5.target;
- }, function(val) {
- var newTarget = (val === null || val === void 0 ? void 0 : val()) || null;
- if (state.prevTarget !== newTarget) {
- removeObserveTarget(currentInstance);
- if (newTarget) {
- addObserveTarget(newTarget, currentInstance);
- updatePosition();
- }
- state.prevTarget = newTarget;
- }
- });
- watch(function() {
- return [props5.offsetTop, props5.offsetBottom];
- }, updatePosition);
- onMounted(function() {
- var target = props5.target;
- if (target) {
- state.timeout = setTimeout(function() {
- addObserveTarget(target(), currentInstance);
- updatePosition();
- });
- }
- });
- onUpdated(function() {
- measure2();
- });
- onUnmounted(function() {
- clearTimeout(state.timeout);
- removeObserveTarget(currentInstance);
- updatePosition.cancel();
- lazyUpdatePosition.cancel();
- });
- var _useConfigInject = useConfigInject_default("affix", props5), prefixCls = _useConfigInject.prefixCls;
- return function() {
- var _slots$default;
- var affixStyle = state.affixStyle, placeholderStyle = state.placeholderStyle;
- var className = classNames_default(_defineProperty({}, prefixCls.value, affixStyle));
- var restProps = omit_default(props5, ["prefixCls", "offsetTop", "offsetBottom", "target", "onChange", "onTestUpdatePosition"]);
- return createVNode(vc_resize_observer_default, {
- "onResize": updatePosition
- }, {
- default: function _default9() {
- return [createVNode("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
- "style": placeholderStyle,
- "ref": placeholderNode
- }), [createVNode("div", {
- "class": className,
- "ref": fixedNode,
- "style": affixStyle
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)])])];
- }
- });
- };
- }
- });
- var affix_default = withInstall(Affix);
- // node_modules/ant-design-vue/es/_util/getScroll.js
- function isWindow(obj) {
- return obj !== null && obj !== void 0 && obj === obj.window;
- }
- function getScroll(target, top) {
- if (typeof window === "undefined") {
- return 0;
- }
- var method4 = top ? "scrollTop" : "scrollLeft";
- var result = 0;
- if (isWindow(target)) {
- result = target[top ? "pageYOffset" : "pageXOffset"];
- } else if (target instanceof Document) {
- result = target.documentElement[method4];
- } else if (target) {
- result = target[method4];
- }
- if (target && !isWindow(target) && typeof result !== "number") {
- var _documentElement;
- result = (_documentElement = (target.ownerDocument || target).documentElement) === null || _documentElement === void 0 ? void 0 : _documentElement[method4];
- }
- return result;
- }
- // node_modules/ant-design-vue/es/_util/easings.js
- function easeInOutCubic(t3, b2, c2, d2) {
- var cc = c2 - b2;
- t3 /= d2 / 2;
- if (t3 < 1) {
- return cc / 2 * t3 * t3 * t3 + b2;
- }
- return cc / 2 * ((t3 -= 2) * t3 * t3 + 2) + b2;
- }
- // node_modules/ant-design-vue/es/_util/scrollTo.js
- function scrollTo(y2) {
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var _options$getContainer = options.getContainer, getContainer5 = _options$getContainer === void 0 ? function() {
- return window;
- } : _options$getContainer, callback = options.callback, _options$duration = options.duration, duration = _options$duration === void 0 ? 450 : _options$duration;
- var container = getContainer5();
- var scrollTop = getScroll(container, true);
- var startTime = Date.now();
- var frameFunc = function frameFunc2() {
- var timestamp = Date.now();
- var time = timestamp - startTime;
- var nextScrollTop = easeInOutCubic(time > duration ? duration : time, scrollTop, y2, duration);
- if (isWindow(container)) {
- container.scrollTo(window.pageXOffset, nextScrollTop);
- } else if (container instanceof HTMLDocument || container.constructor.name === "HTMLDocument") {
- container.documentElement.scrollTop = nextScrollTop;
- } else {
- container.scrollTop = nextScrollTop;
- }
- if (time < duration) {
- wrapperRaf(frameFunc2);
- } else if (typeof callback === "function") {
- callback();
- }
- };
- wrapperRaf(frameFunc);
- }
- // node_modules/ant-design-vue/es/anchor/context.js
- function noop() {
- }
- var AnchorContextKey = Symbol("anchorContextKey");
- var useProvideAnchor = function useProvideAnchor2(state) {
- provide(AnchorContextKey, state);
- };
- var useInjectAnchor = function useInjectAnchor2() {
- return inject(AnchorContextKey, {
- registerLink: noop,
- unregisterLink: noop,
- scrollTo: noop,
- activeLink: computed(function() {
- return "";
- }),
- handleClick: noop
- });
- };
- var context_default = useProvideAnchor;
- // node_modules/ant-design-vue/es/anchor/Anchor.js
- function getDefaultContainer() {
- return window;
- }
- function getOffsetTop(element, container) {
- if (!element.getClientRects().length) {
- return 0;
- }
- var rect = element.getBoundingClientRect();
- if (rect.width || rect.height) {
- if (container === window) {
- container = element.ownerDocument.documentElement;
- return rect.top - container.clientTop;
- }
- return rect.top - container.getBoundingClientRect().top;
- }
- return rect.top;
- }
- var sharpMatcherRegx = /#([\S ]+)$/;
- var anchorProps = function anchorProps2() {
- return {
- prefixCls: String,
- offsetTop: Number,
- bounds: Number,
- affix: {
- type: Boolean,
- default: true
- },
- showInkInFixed: {
- type: Boolean,
- default: false
- },
- getContainer: Function,
- wrapperClass: String,
- wrapperStyle: {
- type: Object,
- default: void 0
- },
- getCurrentAnchor: Function,
- targetOffset: Number,
- onChange: Function,
- onClick: Function
- };
- };
- var Anchor_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AAnchor",
- inheritAttrs: false,
- props: anchorProps(),
- setup: function setup8(props5, _ref) {
- var emit = _ref.emit, attrs = _ref.attrs, slots = _ref.slots, expose = _ref.expose;
- var _useConfigInject = useConfigInject_default("anchor", props5), prefixCls = _useConfigInject.prefixCls, getTargetContainer = _useConfigInject.getTargetContainer, direction = _useConfigInject.direction;
- var inkNodeRef = ref();
- var anchorRef = ref();
- var state = reactive({
- links: [],
- scrollContainer: null,
- scrollEvent: null,
- animating: false
- });
- var activeLink = ref(null);
- var getContainer5 = computed(function() {
- var getContainer6 = props5.getContainer;
- return getContainer6 || getTargetContainer.value || getDefaultContainer;
- });
- var getCurrentAnchor = function getCurrentAnchor2() {
- var offsetTop = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
- var bounds = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5;
- var linkSections = [];
- var container = getContainer5.value();
- state.links.forEach(function(link) {
- var sharpLinkMatch = sharpMatcherRegx.exec(link.toString());
- if (!sharpLinkMatch) {
- return;
- }
- var target = document.getElementById(sharpLinkMatch[1]);
- if (target) {
- var top = getOffsetTop(target, container);
- if (top < offsetTop + bounds) {
- linkSections.push({
- link,
- top
- });
- }
- }
- });
- if (linkSections.length) {
- var maxSection = linkSections.reduce(function(prev2, curr) {
- return curr.top > prev2.top ? curr : prev2;
- });
- return maxSection.link;
- }
- return "";
- };
- var setCurrentActiveLink = function setCurrentActiveLink2(link) {
- var getCurrentAnchor2 = props5.getCurrentAnchor;
- if (activeLink.value === link) {
- return;
- }
- activeLink.value = typeof getCurrentAnchor2 === "function" ? getCurrentAnchor2() : link;
- emit("change", link);
- };
- var handleScrollTo = function handleScrollTo2(link) {
- var offsetTop = props5.offsetTop, targetOffset4 = props5.targetOffset;
- setCurrentActiveLink(link);
- var container = getContainer5.value();
- var scrollTop = getScroll(container, true);
- var sharpLinkMatch = sharpMatcherRegx.exec(link);
- if (!sharpLinkMatch) {
- return;
- }
- var targetElement = document.getElementById(sharpLinkMatch[1]);
- if (!targetElement) {
- return;
- }
- var eleOffsetTop = getOffsetTop(targetElement, container);
- var y2 = scrollTop + eleOffsetTop;
- y2 -= targetOffset4 !== void 0 ? targetOffset4 : offsetTop || 0;
- state.animating = true;
- scrollTo(y2, {
- callback: function callback() {
- state.animating = false;
- },
- getContainer: getContainer5.value
- });
- };
- expose({
- scrollTo: handleScrollTo
- });
- var handleScroll = function handleScroll2() {
- if (state.animating) {
- return;
- }
- var offsetTop = props5.offsetTop, bounds = props5.bounds, targetOffset4 = props5.targetOffset;
- var currentActiveLink = getCurrentAnchor(targetOffset4 !== void 0 ? targetOffset4 : offsetTop || 0, bounds);
- setCurrentActiveLink(currentActiveLink);
- };
- var updateInk = function updateInk2() {
- var linkNode = anchorRef.value.getElementsByClassName("".concat(prefixCls.value, "-link-title-active"))[0];
- if (linkNode) {
- inkNodeRef.value.style.top = "".concat(linkNode.offsetTop + linkNode.clientHeight / 2 - 4.5, "px");
- }
- };
- context_default({
- registerLink: function registerLink(link) {
- if (!state.links.includes(link)) {
- state.links.push(link);
- }
- },
- unregisterLink: function unregisterLink(link) {
- var index3 = state.links.indexOf(link);
- if (index3 !== -1) {
- state.links.splice(index3, 1);
- }
- },
- activeLink,
- scrollTo: handleScrollTo,
- handleClick: function handleClick(e3, info) {
- emit("click", e3, info);
- }
- });
- onMounted(function() {
- nextTick(function() {
- var container = getContainer5.value();
- state.scrollContainer = container;
- state.scrollEvent = addEventListenerWrap(state.scrollContainer, "scroll", handleScroll);
- handleScroll();
- });
- });
- onBeforeUnmount(function() {
- if (state.scrollEvent) {
- state.scrollEvent.remove();
- }
- });
- onUpdated(function() {
- if (state.scrollEvent) {
- var currentContainer = getContainer5.value();
- if (state.scrollContainer !== currentContainer) {
- state.scrollContainer = currentContainer;
- state.scrollEvent.remove();
- state.scrollEvent = addEventListenerWrap(state.scrollContainer, "scroll", handleScroll);
- handleScroll();
- }
- }
- updateInk();
- });
- return function() {
- var _slots$default;
- var offsetTop = props5.offsetTop, affix = props5.affix, showInkInFixed = props5.showInkInFixed;
- var pre = prefixCls.value;
- var inkClass = classNames_default("".concat(pre, "-ink-ball"), {
- visible: activeLink.value
- });
- var wrapperClass = classNames_default(props5.wrapperClass, "".concat(pre, "-wrapper"), _defineProperty({}, "".concat(pre, "-rtl"), direction.value === "rtl"));
- var anchorClass = classNames_default(pre, _defineProperty({}, "".concat(pre, "-fixed"), !affix && !showInkInFixed));
- var wrapperStyle2 = _objectSpread2({
- maxHeight: offsetTop ? "calc(100vh - ".concat(offsetTop, "px)") : "100vh"
- }, props5.wrapperStyle);
- var anchorContent = createVNode("div", {
- "class": wrapperClass,
- "style": wrapperStyle2,
- "ref": anchorRef
- }, [createVNode("div", {
- "class": anchorClass
- }, [createVNode("div", {
- "class": "".concat(pre, "-ink")
- }, [createVNode("span", {
- "class": inkClass,
- "ref": inkNodeRef
- }, null)]), (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)])]);
- return !affix ? anchorContent : createVNode(affix_default, _objectSpread2(_objectSpread2({}, attrs), {}, {
- "offsetTop": offsetTop,
- "target": getContainer5.value
- }), {
- default: function _default9() {
- return [anchorContent];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/anchor/AnchorLink.js
- var anchorLinkProps = function anchorLinkProps2() {
- return {
- prefixCls: String,
- href: String,
- title: vue_types_default.any,
- target: String
- };
- };
- var AnchorLink_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AAnchorLink",
- props: initDefaultProps_default(anchorLinkProps(), {
- href: "#"
- }),
- slots: ["title"],
- setup: function setup9(props5, _ref) {
- var slots = _ref.slots;
- var mergedTitle = null;
- var _useInjectAnchor = useInjectAnchor(), contextHandleClick = _useInjectAnchor.handleClick, scrollTo3 = _useInjectAnchor.scrollTo, unregisterLink = _useInjectAnchor.unregisterLink, registerLink = _useInjectAnchor.registerLink, activeLink = _useInjectAnchor.activeLink;
- var _useConfigInject = useConfigInject_default("anchor", props5), prefixCls = _useConfigInject.prefixCls;
- var handleClick = function handleClick2(e3) {
- var href = props5.href;
- contextHandleClick(e3, {
- title: mergedTitle,
- href
- });
- scrollTo3(href);
- };
- watch(function() {
- return props5.href;
- }, function(val, oldVal) {
- nextTick(function() {
- unregisterLink(oldVal);
- registerLink(val);
- });
- });
- onMounted(function() {
- registerLink(props5.href);
- });
- onBeforeUnmount(function() {
- unregisterLink(props5.href);
- });
- return function() {
- var _slots$default;
- var href = props5.href, target = props5.target;
- var pre = prefixCls.value;
- var title = getPropsSlot(slots, props5, "title");
- mergedTitle = title;
- var active = activeLink.value === href;
- var wrapperClassName = classNames_default("".concat(pre, "-link"), _defineProperty({}, "".concat(pre, "-link-active"), active));
- var titleClassName = classNames_default("".concat(pre, "-link-title"), _defineProperty({}, "".concat(pre, "-link-title-active"), active));
- return createVNode("div", {
- "class": wrapperClassName
- }, [createVNode("a", {
- "class": titleClassName,
- "href": href,
- "title": typeof title === "string" ? title : "",
- "target": target,
- "onClick": handleClick
- }, [title]), (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/anchor/index.js
- Anchor_default.Link = AnchorLink_default;
- Anchor_default.install = function(app) {
- app.component(Anchor_default.name, Anchor_default);
- app.component(Anchor_default.Link.name, Anchor_default.Link);
- return app;
- };
- var anchor_default = Anchor_default;
- // node_modules/@babel/runtime/helpers/esm/toArray.js
- function _toArray(arr) {
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
- }
- // node_modules/ant-design-vue/es/vc-select/utils/valueUtil.js
- function getKey(data8, index3) {
- var key2 = data8.key;
- var value;
- if ("value" in data8) {
- value = data8.value;
- }
- if (key2 !== null && key2 !== void 0) {
- return key2;
- }
- if (value !== void 0) {
- return value;
- }
- return "rc-index-key-".concat(index3);
- }
- function fillFieldNames(fieldNames, childrenAsData) {
- var _ref = fieldNames || {}, label = _ref.label, value = _ref.value, options = _ref.options;
- return {
- label: label || (childrenAsData ? "children" : "label"),
- value: value || "value",
- options: options || "options"
- };
- }
- function flattenOptions(options) {
- var _ref2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, fieldNames = _ref2.fieldNames, childrenAsData = _ref2.childrenAsData;
- var flattenList = [];
- var _fillFieldNames = fillFieldNames(fieldNames, false), fieldLabel = _fillFieldNames.label, fieldValue = _fillFieldNames.value, fieldOptions = _fillFieldNames.options;
- function dig(list, isGroupOption) {
- list.forEach(function(data8) {
- var label = data8[fieldLabel];
- if (isGroupOption || !(fieldOptions in data8)) {
- var value = data8[fieldValue];
- flattenList.push({
- key: getKey(data8, flattenList.length),
- groupOption: isGroupOption,
- data: data8,
- label,
- value
- });
- } else {
- var grpLabel = label;
- if (grpLabel === void 0 && childrenAsData) {
- grpLabel = data8.label;
- }
- flattenList.push({
- key: getKey(data8, flattenList.length),
- group: true,
- data: data8,
- label: grpLabel
- });
- dig(data8[fieldOptions], true);
- }
- });
- }
- dig(options, false);
- return flattenList;
- }
- function injectPropsWithOption(option) {
- var newOption = _objectSpread2({}, option);
- if (!("props" in newOption)) {
- Object.defineProperty(newOption, "props", {
- get: function get3() {
- warning(false, "Return type is option instead of Option instance. Please read value directly instead of reading from `props`.");
- return newOption;
- }
- });
- }
- return newOption;
- }
- function getSeparatedContent(text, tokens) {
- if (!tokens || !tokens.length) {
- return null;
- }
- var match3 = false;
- function separate(str, _ref3) {
- var _ref4 = _toArray(_ref3), token = _ref4[0], restTokens = _ref4.slice(1);
- if (!token) {
- return [str];
- }
- var list2 = str.split(token);
- match3 = match3 || list2.length > 1;
- return list2.reduce(function(prevList, unitStr) {
- return [].concat(_toConsumableArray(prevList), _toConsumableArray(separate(unitStr, restTokens)));
- }, []).filter(function(unit) {
- return unit;
- });
- }
- var list = separate(text, tokens);
- return match3 ? list : null;
- }
- // node_modules/ant-design-vue/es/vc-util/Dom/contains.js
- function contains(root2, n3) {
- if (!root2) {
- return false;
- }
- return root2.contains(n3);
- }
- // node_modules/ant-design-vue/es/_util/getRequestAnimationFrame.js
- var availablePrefixs = ["moz", "ms", "webkit"];
- function requestAnimationFramePolyfill() {
- var lastTime = 0;
- return function(callback) {
- var currTime = (/* @__PURE__ */ new Date()).getTime();
- var timeToCall = Math.max(0, 16 - (currTime - lastTime));
- var id = window.setTimeout(function() {
- callback(currTime + timeToCall);
- }, timeToCall);
- lastTime = currTime + timeToCall;
- return id;
- };
- }
- function getRequestAnimationFrame() {
- if (typeof window === "undefined") {
- return function() {
- };
- }
- if (window.requestAnimationFrame) {
- return window.requestAnimationFrame.bind(window);
- }
- var prefix = availablePrefixs.filter(function(key2) {
- return "".concat(key2, "RequestAnimationFrame") in window;
- })[0];
- return prefix ? window["".concat(prefix, "RequestAnimationFrame")] : requestAnimationFramePolyfill();
- }
- function cancelRequestAnimationFrame(id) {
- if (typeof window === "undefined") {
- return null;
- }
- if (window.cancelAnimationFrame) {
- return window.cancelAnimationFrame(id);
- }
- var prefix = availablePrefixs.filter(function(key2) {
- return "".concat(key2, "CancelAnimationFrame") in window || "".concat(key2, "CancelRequestAnimationFrame") in window;
- })[0];
- return prefix ? (window["".concat(prefix, "CancelAnimationFrame")] || window["".concat(prefix, "CancelRequestAnimationFrame")]).call(this, id) : clearTimeout(id);
- }
- // node_modules/ant-design-vue/es/_util/requestAnimationTimeout.js
- var raf3 = getRequestAnimationFrame();
- var cancelAnimationTimeout = function cancelAnimationTimeout2(frame) {
- return cancelRequestAnimationFrame(frame.id);
- };
- var requestAnimationTimeout = function requestAnimationTimeout2(callback) {
- var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
- var start = Date.now();
- function timeout() {
- if (Date.now() - start >= delay) {
- callback.call();
- } else {
- frame.id = raf3(timeout);
- }
- }
- var frame = {
- id: raf3(timeout)
- };
- return frame;
- };
- // node_modules/ant-design-vue/es/vc-trigger/Popup/interface.js
- var innerProps = {
- visible: Boolean,
- prefixCls: String,
- zIndex: Number,
- destroyPopupOnHide: Boolean,
- forceRender: Boolean,
- // Legacy Motion
- animation: [String, Object],
- transitionName: String,
- // Measure
- stretch: {
- type: String
- },
- // Align
- align: {
- type: Object
- },
- point: {
- type: Object
- },
- getRootDomNode: {
- type: Function
- },
- getClassNameFromAlign: {
- type: Function
- },
- onMouseenter: {
- type: Function
- },
- onMouseleave: {
- type: Function
- },
- onMousedown: {
- type: Function
- },
- onTouchstart: {
- type: Function
- }
- };
- var mobileProps = _objectSpread2(_objectSpread2({}, innerProps), {}, {
- mobile: {
- type: Object
- }
- });
- var popupProps = _objectSpread2(_objectSpread2({}, innerProps), {}, {
- mask: Boolean,
- mobile: {
- type: Object
- },
- maskAnimation: String,
- maskTransitionName: String
- });
- // node_modules/ant-design-vue/es/vc-trigger/utils/motionUtil.js
- function getMotion(_ref) {
- var prefixCls = _ref.prefixCls, animation = _ref.animation, transitionName2 = _ref.transitionName;
- if (animation) {
- return {
- name: "".concat(prefixCls, "-").concat(animation)
- };
- }
- if (transitionName2) {
- return {
- name: transitionName2
- };
- }
- return {};
- }
- // node_modules/ant-design-vue/es/vc-trigger/Popup/Mask.js
- function Mask(props5) {
- var prefixCls = props5.prefixCls, visible = props5.visible, zIndex = props5.zIndex, mask = props5.mask, maskAnimation = props5.maskAnimation, maskTransitionName = props5.maskTransitionName;
- if (!mask) {
- return null;
- }
- var motion = {};
- if (maskTransitionName || maskAnimation) {
- motion = getMotion({
- prefixCls,
- transitionName: maskTransitionName,
- animation: maskAnimation
- });
- }
- return createVNode(Transition, _objectSpread2({
- "appear": true
- }, motion), {
- default: function _default9() {
- return [withDirectives(createVNode("div", {
- "style": {
- zIndex
- },
- "class": "".concat(prefixCls, "-mask")
- }, null), [[resolveDirective("if"), visible]])];
- }
- });
- }
- Mask.displayName = "Mask";
- // node_modules/ant-design-vue/es/vc-trigger/Popup/MobilePopupInner.js
- var MobilePopupInner_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "MobilePopupInner",
- inheritAttrs: false,
- props: mobileProps,
- emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
- setup: function setup10(props5, _ref) {
- var expose = _ref.expose, slots = _ref.slots;
- var elementRef = ref();
- expose({
- forceAlign: function forceAlign() {
- },
- getElement: function getElement2() {
- return elementRef.value;
- }
- });
- return function() {
- var _slots$default;
- var zIndex = props5.zIndex, visible = props5.visible, prefixCls = props5.prefixCls, _props$mobile = props5.mobile, _props$mobile2 = _props$mobile === void 0 ? {} : _props$mobile, popupClassName = _props$mobile2.popupClassName, popupStyle = _props$mobile2.popupStyle, _props$mobile2$popupM = _props$mobile2.popupMotion, popupMotion = _props$mobile2$popupM === void 0 ? {} : _props$mobile2$popupM, popupRender = _props$mobile2.popupRender;
- var mergedStyle = _objectSpread2({
- zIndex
- }, popupStyle);
- var childNode = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- if (childNode.length > 1) {
- var _childNode = function() {
- return childNode;
- }();
- childNode = createVNode("div", {
- "class": "".concat(prefixCls, "-content")
- }, [childNode]);
- }
- if (popupRender) {
- childNode = popupRender(childNode);
- }
- var mergedClassName = classNames_default(prefixCls, popupClassName);
- return createVNode(Transition, _objectSpread2({
- "ref": elementRef
- }, popupMotion), {
- default: function _default9() {
- return [visible ? createVNode("div", {
- "class": mergedClassName,
- "style": mergedStyle
- }, [childNode]) : null];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-trigger/Popup/useVisibleStatus.js
- var import_regenerator2 = __toESM(require_regenerator());
- var StatusQueue = ["measure", "align", null, "motion"];
- var useVisibleStatus_default = function(visible, doMeasure) {
- var status = ref(null);
- var rafRef = ref();
- var destroyRef = ref(false);
- function setStatus(nextStatus) {
- if (!destroyRef.value) {
- status.value = nextStatus;
- }
- }
- function cancelRaf() {
- wrapperRaf.cancel(rafRef.value);
- }
- function goNextStatus(callback) {
- cancelRaf();
- rafRef.value = wrapperRaf(function() {
- var newStatus = status.value;
- switch (status.value) {
- case "align":
- newStatus = "motion";
- break;
- case "motion":
- newStatus = "stable";
- break;
- default:
- }
- setStatus(newStatus);
- callback === null || callback === void 0 ? void 0 : callback();
- });
- }
- watch(visible, function() {
- setStatus("measure");
- }, {
- immediate: true,
- flush: "post"
- });
- onMounted(function() {
- watch(status, function() {
- switch (status.value) {
- case "measure":
- doMeasure();
- break;
- default:
- }
- if (status.value) {
- rafRef.value = wrapperRaf(_asyncToGenerator(import_regenerator2.default.mark(function _callee() {
- var index3, nextStatus;
- return import_regenerator2.default.wrap(function _callee$(_context) {
- while (1)
- switch (_context.prev = _context.next) {
- case 0:
- index3 = StatusQueue.indexOf(status.value);
- nextStatus = StatusQueue[index3 + 1];
- if (nextStatus && index3 !== -1) {
- setStatus(nextStatus);
- }
- case 3:
- case "end":
- return _context.stop();
- }
- }, _callee);
- })));
- }
- }, {
- immediate: true,
- flush: "post"
- });
- });
- onBeforeUnmount(function() {
- destroyRef.value = true;
- cancelRaf();
- });
- return [status, goNextStatus];
- };
- // node_modules/ant-design-vue/es/vc-trigger/Popup/useStretchStyle.js
- var useStretchStyle_default = function(stretch) {
- var targetSize = ref({
- width: 0,
- height: 0
- });
- function measureStretch(element) {
- targetSize.value = {
- width: element.offsetWidth,
- height: element.offsetHeight
- };
- }
- var style = computed(function() {
- var sizeStyle = {};
- if (stretch.value) {
- var _targetSize$value = targetSize.value, width = _targetSize$value.width, height = _targetSize$value.height;
- if (stretch.value.indexOf("height") !== -1 && height) {
- sizeStyle.height = "".concat(height, "px");
- } else if (stretch.value.indexOf("minHeight") !== -1 && height) {
- sizeStyle.minHeight = "".concat(height, "px");
- }
- if (stretch.value.indexOf("width") !== -1 && width) {
- sizeStyle.width = "".concat(width, "px");
- } else if (stretch.value.indexOf("minWidth") !== -1 && width) {
- sizeStyle.minWidth = "".concat(width, "px");
- }
- }
- return sizeStyle;
- });
- return [style, measureStretch];
- };
- // node_modules/dom-align/dist-web/index.js
- function ownKeys(object4, enumerableOnly) {
- var keys2 = Object.keys(object4);
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object4);
- enumerableOnly && (symbols = symbols.filter(function(sym) {
- return Object.getOwnPropertyDescriptor(object4, sym).enumerable;
- })), keys2.push.apply(keys2, symbols);
- }
- return keys2;
- }
- function _objectSpread22(target) {
- for (var i3 = 1; i3 < arguments.length; i3++) {
- var source = null != arguments[i3] ? arguments[i3] : {};
- i3 % 2 ? ownKeys(Object(source), true).forEach(function(key2) {
- _defineProperty2(target, key2, source[key2]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key2) {
- Object.defineProperty(target, key2, Object.getOwnPropertyDescriptor(source, key2));
- });
- }
- return target;
- }
- function _typeof2(obj) {
- "@babel/helpers - typeof";
- return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
- return typeof obj2;
- } : function(obj2) {
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
- }, _typeof2(obj);
- }
- function _defineProperty2(obj, key2, value) {
- if (key2 in obj) {
- Object.defineProperty(obj, key2, {
- value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key2] = value;
- }
- return obj;
- }
- var vendorPrefix;
- var jsCssMap = {
- Webkit: "-webkit-",
- Moz: "-moz-",
- // IE did it wrong again ...
- ms: "-ms-",
- O: "-o-"
- };
- function getVendorPrefix() {
- if (vendorPrefix !== void 0) {
- return vendorPrefix;
- }
- vendorPrefix = "";
- var style = document.createElement("p").style;
- var testProp = "Transform";
- for (var key2 in jsCssMap) {
- if (key2 + testProp in style) {
- vendorPrefix = key2;
- }
- }
- return vendorPrefix;
- }
- function getTransitionName3() {
- return getVendorPrefix() ? "".concat(getVendorPrefix(), "TransitionProperty") : "transitionProperty";
- }
- function getTransformName() {
- return getVendorPrefix() ? "".concat(getVendorPrefix(), "Transform") : "transform";
- }
- function setTransitionProperty(node, value) {
- var name = getTransitionName3();
- if (name) {
- node.style[name] = value;
- if (name !== "transitionProperty") {
- node.style.transitionProperty = value;
- }
- }
- }
- function setTransform(node, value) {
- var name = getTransformName();
- if (name) {
- node.style[name] = value;
- if (name !== "transform") {
- node.style.transform = value;
- }
- }
- }
- function getTransitionProperty(node) {
- return node.style.transitionProperty || node.style[getTransitionName3()];
- }
- function getTransformXY(node) {
- var style = window.getComputedStyle(node, null);
- var transform = style.getPropertyValue("transform") || style.getPropertyValue(getTransformName());
- if (transform && transform !== "none") {
- var matrix = transform.replace(/[^0-9\-.,]/g, "").split(",");
- return {
- x: parseFloat(matrix[12] || matrix[4], 0),
- y: parseFloat(matrix[13] || matrix[5], 0)
- };
- }
- return {
- x: 0,
- y: 0
- };
- }
- var matrix2d = /matrix\((.*)\)/;
- var matrix3d = /matrix3d\((.*)\)/;
- function setTransformXY(node, xy) {
- var style = window.getComputedStyle(node, null);
- var transform = style.getPropertyValue("transform") || style.getPropertyValue(getTransformName());
- if (transform && transform !== "none") {
- var arr;
- var match2d = transform.match(matrix2d);
- if (match2d) {
- match2d = match2d[1];
- arr = match2d.split(",").map(function(item) {
- return parseFloat(item, 10);
- });
- arr[4] = xy.x;
- arr[5] = xy.y;
- setTransform(node, "matrix(".concat(arr.join(","), ")"));
- } else {
- var match3d = transform.match(matrix3d)[1];
- arr = match3d.split(",").map(function(item) {
- return parseFloat(item, 10);
- });
- arr[12] = xy.x;
- arr[13] = xy.y;
- setTransform(node, "matrix3d(".concat(arr.join(","), ")"));
- }
- } else {
- setTransform(node, "translateX(".concat(xy.x, "px) translateY(").concat(xy.y, "px) translateZ(0)"));
- }
- }
- var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
- var getComputedStyleX;
- function forceRelayout(elem) {
- var originalStyle = elem.style.display;
- elem.style.display = "none";
- elem.offsetHeight;
- elem.style.display = originalStyle;
- }
- function css(el, name, v2) {
- var value = v2;
- if (_typeof2(name) === "object") {
- for (var i3 in name) {
- if (name.hasOwnProperty(i3)) {
- css(el, i3, name[i3]);
- }
- }
- return void 0;
- }
- if (typeof value !== "undefined") {
- if (typeof value === "number") {
- value = "".concat(value, "px");
- }
- el.style[name] = value;
- return void 0;
- }
- return getComputedStyleX(el, name);
- }
- function getClientPosition(elem) {
- var box;
- var x2;
- var y2;
- var doc = elem.ownerDocument;
- var body = doc.body;
- var docElem = doc && doc.documentElement;
- box = elem.getBoundingClientRect();
- x2 = Math.floor(box.left);
- y2 = Math.floor(box.top);
- x2 -= docElem.clientLeft || body.clientLeft || 0;
- y2 -= docElem.clientTop || body.clientTop || 0;
- return {
- left: x2,
- top: y2
- };
- }
- function getScroll2(w2, top) {
- var ret = w2["page".concat(top ? "Y" : "X", "Offset")];
- var method4 = "scroll".concat(top ? "Top" : "Left");
- if (typeof ret !== "number") {
- var d2 = w2.document;
- ret = d2.documentElement[method4];
- if (typeof ret !== "number") {
- ret = d2.body[method4];
- }
- }
- return ret;
- }
- function getScrollLeft(w2) {
- return getScroll2(w2);
- }
- function getScrollTop(w2) {
- return getScroll2(w2, true);
- }
- function getOffset(el) {
- var pos = getClientPosition(el);
- var doc = el.ownerDocument;
- var w2 = doc.defaultView || doc.parentWindow;
- pos.left += getScrollLeft(w2);
- pos.top += getScrollTop(w2);
- return pos;
- }
- function isWindow2(obj) {
- return obj !== null && obj !== void 0 && obj == obj.window;
- }
- function getDocument(node) {
- if (isWindow2(node)) {
- return node.document;
- }
- if (node.nodeType === 9) {
- return node;
- }
- return node.ownerDocument;
- }
- function _getComputedStyle(elem, name, cs) {
- var computedStyle = cs;
- var val = "";
- var d2 = getDocument(elem);
- computedStyle = computedStyle || d2.defaultView.getComputedStyle(elem, null);
- if (computedStyle) {
- val = computedStyle.getPropertyValue(name) || computedStyle[name];
- }
- return val;
- }
- var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), "i");
- var RE_POS = /^(top|right|bottom|left)$/;
- var CURRENT_STYLE = "currentStyle";
- var RUNTIME_STYLE = "runtimeStyle";
- var LEFT = "left";
- var PX = "px";
- function _getComputedStyleIE(elem, name) {
- var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];
- if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
- var style = elem.style;
- var left = style[LEFT];
- var rsLeft = elem[RUNTIME_STYLE][LEFT];
- elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT];
- style[LEFT] = name === "fontSize" ? "1em" : ret || 0;
- ret = style.pixelLeft + PX;
- style[LEFT] = left;
- elem[RUNTIME_STYLE][LEFT] = rsLeft;
- }
- return ret === "" ? "auto" : ret;
- }
- if (typeof window !== "undefined") {
- getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
- }
- function getOffsetDirection(dir, option) {
- if (dir === "left") {
- return option.useCssRight ? "right" : dir;
- }
- return option.useCssBottom ? "bottom" : dir;
- }
- function oppositeOffsetDirection(dir) {
- if (dir === "left") {
- return "right";
- } else if (dir === "right") {
- return "left";
- } else if (dir === "top") {
- return "bottom";
- } else if (dir === "bottom") {
- return "top";
- }
- }
- function setLeftTop(elem, offset4, option) {
- if (css(elem, "position") === "static") {
- elem.style.position = "relative";
- }
- var presetH = -999;
- var presetV = -999;
- var horizontalProperty = getOffsetDirection("left", option);
- var verticalProperty = getOffsetDirection("top", option);
- var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty);
- var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);
- if (horizontalProperty !== "left") {
- presetH = 999;
- }
- if (verticalProperty !== "top") {
- presetV = 999;
- }
- var originalTransition = "";
- var originalOffset = getOffset(elem);
- if ("left" in offset4 || "top" in offset4) {
- originalTransition = getTransitionProperty(elem) || "";
- setTransitionProperty(elem, "none");
- }
- if ("left" in offset4) {
- elem.style[oppositeHorizontalProperty] = "";
- elem.style[horizontalProperty] = "".concat(presetH, "px");
- }
- if ("top" in offset4) {
- elem.style[oppositeVerticalProperty] = "";
- elem.style[verticalProperty] = "".concat(presetV, "px");
- }
- forceRelayout(elem);
- var old = getOffset(elem);
- var originalStyle = {};
- for (var key2 in offset4) {
- if (offset4.hasOwnProperty(key2)) {
- var dir = getOffsetDirection(key2, option);
- var preset = key2 === "left" ? presetH : presetV;
- var off = originalOffset[key2] - old[key2];
- if (dir === key2) {
- originalStyle[dir] = preset + off;
- } else {
- originalStyle[dir] = preset - off;
- }
- }
- }
- css(elem, originalStyle);
- forceRelayout(elem);
- if ("left" in offset4 || "top" in offset4) {
- setTransitionProperty(elem, originalTransition);
- }
- var ret = {};
- for (var _key in offset4) {
- if (offset4.hasOwnProperty(_key)) {
- var _dir = getOffsetDirection(_key, option);
- var _off = offset4[_key] - originalOffset[_key];
- if (_key === _dir) {
- ret[_dir] = originalStyle[_dir] + _off;
- } else {
- ret[_dir] = originalStyle[_dir] - _off;
- }
- }
- }
- css(elem, ret);
- }
- function setTransform$1(elem, offset4) {
- var originalOffset = getOffset(elem);
- var originalXY = getTransformXY(elem);
- var resultXY = {
- x: originalXY.x,
- y: originalXY.y
- };
- if ("left" in offset4) {
- resultXY.x = originalXY.x + offset4.left - originalOffset.left;
- }
- if ("top" in offset4) {
- resultXY.y = originalXY.y + offset4.top - originalOffset.top;
- }
- setTransformXY(elem, resultXY);
- }
- function setOffset(elem, offset4, option) {
- if (option.ignoreShake) {
- var oriOffset = getOffset(elem);
- var oLeft = oriOffset.left.toFixed(0);
- var oTop = oriOffset.top.toFixed(0);
- var tLeft = offset4.left.toFixed(0);
- var tTop = offset4.top.toFixed(0);
- if (oLeft === tLeft && oTop === tTop) {
- return;
- }
- }
- if (option.useCssRight || option.useCssBottom) {
- setLeftTop(elem, offset4, option);
- } else if (option.useCssTransform && getTransformName() in document.body.style) {
- setTransform$1(elem, offset4);
- } else {
- setLeftTop(elem, offset4, option);
- }
- }
- function each(arr, fn) {
- for (var i3 = 0; i3 < arr.length; i3++) {
- fn(arr[i3]);
- }
- }
- function isBorderBoxFn(elem) {
- return getComputedStyleX(elem, "boxSizing") === "border-box";
- }
- var BOX_MODELS = ["margin", "border", "padding"];
- var CONTENT_INDEX = -1;
- var PADDING_INDEX = 2;
- var BORDER_INDEX = 1;
- var MARGIN_INDEX = 0;
- function swap(elem, options, callback) {
- var old = {};
- var style = elem.style;
- var name;
- for (name in options) {
- if (options.hasOwnProperty(name)) {
- old[name] = style[name];
- style[name] = options[name];
- }
- }
- callback.call(elem);
- for (name in options) {
- if (options.hasOwnProperty(name)) {
- style[name] = old[name];
- }
- }
- }
- function getPBMWidth(elem, props5, which) {
- var value = 0;
- var prop;
- var j2;
- var i3;
- for (j2 = 0; j2 < props5.length; j2++) {
- prop = props5[j2];
- if (prop) {
- for (i3 = 0; i3 < which.length; i3++) {
- var cssProp = void 0;
- if (prop === "border") {
- cssProp = "".concat(prop).concat(which[i3], "Width");
- } else {
- cssProp = prop + which[i3];
- }
- value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
- }
- }
- }
- return value;
- }
- var domUtils = {
- getParent: function getParent(element) {
- var parent2 = element;
- do {
- if (parent2.nodeType === 11 && parent2.host) {
- parent2 = parent2.host;
- } else {
- parent2 = parent2.parentNode;
- }
- } while (parent2 && parent2.nodeType !== 1 && parent2.nodeType !== 9);
- return parent2;
- }
- };
- each(["Width", "Height"], function(name) {
- domUtils["doc".concat(name)] = function(refWin) {
- var d2 = refWin.document;
- return Math.max(
- // firefox chrome documentElement.scrollHeight< body.scrollHeight
- // ie standard mode : documentElement.scrollHeight> body.scrollHeight
- d2.documentElement["scroll".concat(name)],
- // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
- d2.body["scroll".concat(name)],
- domUtils["viewport".concat(name)](d2)
- );
- };
- domUtils["viewport".concat(name)] = function(win) {
- var prop = "client".concat(name);
- var doc = win.document;
- var body = doc.body;
- var documentElement = doc.documentElement;
- var documentElementProp = documentElement[prop];
- return doc.compatMode === "CSS1Compat" && documentElementProp || body && body[prop] || documentElementProp;
- };
- });
- function getWH(elem, name, ex) {
- var extra = ex;
- if (isWindow2(elem)) {
- return name === "width" ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
- } else if (elem.nodeType === 9) {
- return name === "width" ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
- }
- var which = name === "width" ? ["Left", "Right"] : ["Top", "Bottom"];
- var borderBoxValue = name === "width" ? Math.floor(elem.getBoundingClientRect().width) : Math.floor(elem.getBoundingClientRect().height);
- var isBorderBox = isBorderBoxFn(elem);
- var cssBoxValue = 0;
- if (borderBoxValue === null || borderBoxValue === void 0 || borderBoxValue <= 0) {
- borderBoxValue = void 0;
- cssBoxValue = getComputedStyleX(elem, name);
- if (cssBoxValue === null || cssBoxValue === void 0 || Number(cssBoxValue) < 0) {
- cssBoxValue = elem.style[name] || 0;
- }
- cssBoxValue = Math.floor(parseFloat(cssBoxValue)) || 0;
- }
- if (extra === void 0) {
- extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
- }
- var borderBoxValueOrIsBorderBox = borderBoxValue !== void 0 || isBorderBox;
- var val = borderBoxValue || cssBoxValue;
- if (extra === CONTENT_INDEX) {
- if (borderBoxValueOrIsBorderBox) {
- return val - getPBMWidth(elem, ["border", "padding"], which);
- }
- return cssBoxValue;
- } else if (borderBoxValueOrIsBorderBox) {
- if (extra === BORDER_INDEX) {
- return val;
- }
- return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ["border"], which) : getPBMWidth(elem, ["margin"], which));
- }
- return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);
- }
- var cssShow = {
- position: "absolute",
- visibility: "hidden",
- display: "block"
- };
- function getWHIgnoreDisplay() {
- for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
- args[_key2] = arguments[_key2];
- }
- var val;
- var elem = args[0];
- if (elem.offsetWidth !== 0) {
- val = getWH.apply(void 0, args);
- } else {
- swap(elem, cssShow, function() {
- val = getWH.apply(void 0, args);
- });
- }
- return val;
- }
- each(["width", "height"], function(name) {
- var first = name.charAt(0).toUpperCase() + name.slice(1);
- domUtils["outer".concat(first)] = function(el, includeMargin) {
- return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
- };
- var which = name === "width" ? ["Left", "Right"] : ["Top", "Bottom"];
- domUtils[name] = function(elem, v2) {
- var val = v2;
- if (val !== void 0) {
- if (elem) {
- var isBorderBox = isBorderBoxFn(elem);
- if (isBorderBox) {
- val += getPBMWidth(elem, ["padding", "border"], which);
- }
- return css(elem, name, val);
- }
- return void 0;
- }
- return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
- };
- });
- function mix(to, from) {
- for (var i3 in from) {
- if (from.hasOwnProperty(i3)) {
- to[i3] = from[i3];
- }
- }
- return to;
- }
- var utils = {
- getWindow: function getWindow(node) {
- if (node && node.document && node.setTimeout) {
- return node;
- }
- var doc = node.ownerDocument || node;
- return doc.defaultView || doc.parentWindow;
- },
- getDocument,
- offset: function offset(el, value, option) {
- if (typeof value !== "undefined") {
- setOffset(el, value, option || {});
- } else {
- return getOffset(el);
- }
- },
- isWindow: isWindow2,
- each,
- css,
- clone: function clone(obj) {
- var i3;
- var ret = {};
- for (i3 in obj) {
- if (obj.hasOwnProperty(i3)) {
- ret[i3] = obj[i3];
- }
- }
- var overflow = obj.overflow;
- if (overflow) {
- for (i3 in obj) {
- if (obj.hasOwnProperty(i3)) {
- ret.overflow[i3] = obj.overflow[i3];
- }
- }
- }
- return ret;
- },
- mix,
- getWindowScrollLeft: function getWindowScrollLeft(w2) {
- return getScrollLeft(w2);
- },
- getWindowScrollTop: function getWindowScrollTop(w2) {
- return getScrollTop(w2);
- },
- merge: function merge() {
- var ret = {};
- for (var i3 = 0; i3 < arguments.length; i3++) {
- utils.mix(ret, i3 < 0 || arguments.length <= i3 ? void 0 : arguments[i3]);
- }
- return ret;
- },
- viewportWidth: 0,
- viewportHeight: 0
- };
- mix(utils, domUtils);
- var getParent2 = utils.getParent;
- function getOffsetParent(element) {
- if (utils.isWindow(element) || element.nodeType === 9) {
- return null;
- }
- var doc = utils.getDocument(element);
- var body = doc.body;
- var parent2;
- var positionStyle = utils.css(element, "position");
- var skipStatic = positionStyle === "fixed" || positionStyle === "absolute";
- if (!skipStatic) {
- return element.nodeName.toLowerCase() === "html" ? null : getParent2(element);
- }
- for (parent2 = getParent2(element); parent2 && parent2 !== body && parent2.nodeType !== 9; parent2 = getParent2(parent2)) {
- positionStyle = utils.css(parent2, "position");
- if (positionStyle !== "static") {
- return parent2;
- }
- }
- return null;
- }
- var getParent$1 = utils.getParent;
- function isAncestorFixed(element) {
- if (utils.isWindow(element) || element.nodeType === 9) {
- return false;
- }
- var doc = utils.getDocument(element);
- var body = doc.body;
- var parent2 = null;
- for (
- parent2 = getParent$1(element);
- // 修复元素位于 document.documentElement 下导致崩溃问题
- parent2 && parent2 !== body && parent2 !== doc;
- parent2 = getParent$1(parent2)
- ) {
- var positionStyle = utils.css(parent2, "position");
- if (positionStyle === "fixed") {
- return true;
- }
- }
- return false;
- }
- function getVisibleRectForElement(element, alwaysByViewport) {
- var visibleRect = {
- left: 0,
- right: Infinity,
- top: 0,
- bottom: Infinity
- };
- var el = getOffsetParent(element);
- var doc = utils.getDocument(element);
- var win = doc.defaultView || doc.parentWindow;
- var body = doc.body;
- var documentElement = doc.documentElement;
- while (el) {
- if ((navigator.userAgent.indexOf("MSIE") === -1 || el.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire
- // viewport. In some browsers, el.offsetParent may be
- // document.documentElement, so check for that too.
- el !== body && el !== documentElement && utils.css(el, "overflow") !== "visible") {
- var pos = utils.offset(el);
- pos.left += el.clientLeft;
- pos.top += el.clientTop;
- visibleRect.top = Math.max(visibleRect.top, pos.top);
- visibleRect.right = Math.min(
- visibleRect.right,
- // consider area without scrollBar
- pos.left + el.clientWidth
- );
- visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight);
- visibleRect.left = Math.max(visibleRect.left, pos.left);
- } else if (el === body || el === documentElement) {
- break;
- }
- el = getOffsetParent(el);
- }
- var originalPosition = null;
- if (!utils.isWindow(element) && element.nodeType !== 9) {
- originalPosition = element.style.position;
- var position = utils.css(element, "position");
- if (position === "absolute") {
- element.style.position = "fixed";
- }
- }
- var scrollX = utils.getWindowScrollLeft(win);
- var scrollY = utils.getWindowScrollTop(win);
- var viewportWidth = utils.viewportWidth(win);
- var viewportHeight = utils.viewportHeight(win);
- var documentWidth = documentElement.scrollWidth;
- var documentHeight = documentElement.scrollHeight;
- var bodyStyle = window.getComputedStyle(body);
- if (bodyStyle.overflowX === "hidden") {
- documentWidth = win.innerWidth;
- }
- if (bodyStyle.overflowY === "hidden") {
- documentHeight = win.innerHeight;
- }
- if (element.style) {
- element.style.position = originalPosition;
- }
- if (alwaysByViewport || isAncestorFixed(element)) {
- visibleRect.left = Math.max(visibleRect.left, scrollX);
- visibleRect.top = Math.max(visibleRect.top, scrollY);
- visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);
- visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);
- } else {
- var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);
- visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);
- var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);
- visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);
- }
- return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null;
- }
- function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {
- var pos = utils.clone(elFuturePos);
- var size = {
- width: elRegion.width,
- height: elRegion.height
- };
- if (overflow.adjustX && pos.left < visibleRect.left) {
- pos.left = visibleRect.left;
- }
- if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {
- size.width -= pos.left + size.width - visibleRect.right;
- }
- if (overflow.adjustX && pos.left + size.width > visibleRect.right) {
- pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);
- }
- if (overflow.adjustY && pos.top < visibleRect.top) {
- pos.top = visibleRect.top;
- }
- if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {
- size.height -= pos.top + size.height - visibleRect.bottom;
- }
- if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {
- pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);
- }
- return utils.mix(pos, size);
- }
- function getRegion(node) {
- var offset4;
- var w2;
- var h3;
- if (!utils.isWindow(node) && node.nodeType !== 9) {
- offset4 = utils.offset(node);
- w2 = utils.outerWidth(node);
- h3 = utils.outerHeight(node);
- } else {
- var win = utils.getWindow(node);
- offset4 = {
- left: utils.getWindowScrollLeft(win),
- top: utils.getWindowScrollTop(win)
- };
- w2 = utils.viewportWidth(win);
- h3 = utils.viewportHeight(win);
- }
- offset4.width = w2;
- offset4.height = h3;
- return offset4;
- }
- function getAlignOffset(region, align) {
- var V2 = align.charAt(0);
- var H = align.charAt(1);
- var w2 = region.width;
- var h3 = region.height;
- var x2 = region.left;
- var y2 = region.top;
- if (V2 === "c") {
- y2 += h3 / 2;
- } else if (V2 === "b") {
- y2 += h3;
- }
- if (H === "c") {
- x2 += w2 / 2;
- } else if (H === "r") {
- x2 += w2;
- }
- return {
- left: x2,
- top: y2
- };
- }
- function getElFuturePos(elRegion, refNodeRegion, points, offset4, targetOffset4) {
- var p1 = getAlignOffset(refNodeRegion, points[1]);
- var p2 = getAlignOffset(elRegion, points[0]);
- var diff = [p2.left - p1.left, p2.top - p1.top];
- return {
- left: Math.round(elRegion.left - diff[0] + offset4[0] - targetOffset4[0]),
- top: Math.round(elRegion.top - diff[1] + offset4[1] - targetOffset4[1])
- };
- }
- function isFailX(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;
- }
- function isFailY(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom;
- }
- function isCompleteFailX(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left;
- }
- function isCompleteFailY(elFuturePos, elRegion, visibleRect) {
- return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top;
- }
- function flip(points, reg, map) {
- var ret = [];
- utils.each(points, function(p) {
- ret.push(p.replace(reg, function(m2) {
- return map[m2];
- }));
- });
- return ret;
- }
- function flipOffset(offset4, index3) {
- offset4[index3] = -offset4[index3];
- return offset4;
- }
- function convertOffset(str, offsetLen) {
- var n3;
- if (/%$/.test(str)) {
- n3 = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen;
- } else {
- n3 = parseInt(str, 10);
- }
- return n3 || 0;
- }
- function normalizeOffset(offset4, el) {
- offset4[0] = convertOffset(offset4[0], el.width);
- offset4[1] = convertOffset(offset4[1], el.height);
- }
- function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
- var points = align.points;
- var offset4 = align.offset || [0, 0];
- var targetOffset4 = align.targetOffset || [0, 0];
- var overflow = align.overflow;
- var source = align.source || el;
- offset4 = [].concat(offset4);
- targetOffset4 = [].concat(targetOffset4);
- overflow = overflow || {};
- var newOverflowCfg = {};
- var fail = 0;
- var alwaysByViewport = !!(overflow && overflow.alwaysByViewport);
- var visibleRect = getVisibleRectForElement(source, alwaysByViewport);
- var elRegion = getRegion(source);
- normalizeOffset(offset4, elRegion);
- normalizeOffset(targetOffset4, tgtRegion);
- var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset4, targetOffset4);
- var newElRegion = utils.merge(elRegion, elFuturePos);
- if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) {
- if (overflow.adjustX) {
- if (isFailX(elFuturePos, elRegion, visibleRect)) {
- var newPoints = flip(points, /[lr]/gi, {
- l: "r",
- r: "l"
- });
- var newOffset = flipOffset(offset4, 0);
- var newTargetOffset = flipOffset(targetOffset4, 0);
- var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset);
- if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {
- fail = 1;
- points = newPoints;
- offset4 = newOffset;
- targetOffset4 = newTargetOffset;
- }
- }
- }
- if (overflow.adjustY) {
- if (isFailY(elFuturePos, elRegion, visibleRect)) {
- var _newPoints = flip(points, /[tb]/gi, {
- t: "b",
- b: "t"
- });
- var _newOffset = flipOffset(offset4, 1);
- var _newTargetOffset = flipOffset(targetOffset4, 1);
- var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset);
- if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) {
- fail = 1;
- points = _newPoints;
- offset4 = _newOffset;
- targetOffset4 = _newTargetOffset;
- }
- }
- }
- if (fail) {
- elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset4, targetOffset4);
- utils.mix(newElRegion, elFuturePos);
- }
- var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);
- var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect);
- if (isStillFailX || isStillFailY) {
- var _newPoints2 = points;
- if (isStillFailX) {
- _newPoints2 = flip(points, /[lr]/gi, {
- l: "r",
- r: "l"
- });
- }
- if (isStillFailY) {
- _newPoints2 = flip(points, /[tb]/gi, {
- t: "b",
- b: "t"
- });
- }
- points = _newPoints2;
- offset4 = align.offset || [0, 0];
- targetOffset4 = align.targetOffset || [0, 0];
- }
- newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;
- newOverflowCfg.adjustY = overflow.adjustY && isStillFailY;
- if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {
- newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg);
- }
- }
- if (newElRegion.width !== elRegion.width) {
- utils.css(source, "width", utils.width(source) + newElRegion.width - elRegion.width);
- }
- if (newElRegion.height !== elRegion.height) {
- utils.css(source, "height", utils.height(source) + newElRegion.height - elRegion.height);
- }
- utils.offset(source, {
- left: newElRegion.left,
- top: newElRegion.top
- }, {
- useCssRight: align.useCssRight,
- useCssBottom: align.useCssBottom,
- useCssTransform: align.useCssTransform,
- ignoreShake: align.ignoreShake
- });
- return {
- points,
- offset: offset4,
- targetOffset: targetOffset4,
- overflow: newOverflowCfg
- };
- }
- function isOutOfVisibleRect(target, alwaysByViewport) {
- var visibleRect = getVisibleRectForElement(target, alwaysByViewport);
- var targetRegion = getRegion(target);
- return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom;
- }
- function alignElement(el, refNode, align) {
- var target = align.target || refNode;
- var refNodeRegion = getRegion(target);
- var isTargetNotOutOfVisible = !isOutOfVisibleRect(target, align.overflow && align.overflow.alwaysByViewport);
- return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible);
- }
- alignElement.__getOffsetParent = getOffsetParent;
- alignElement.__getVisibleRectForElement = getVisibleRectForElement;
- function alignPoint(el, tgtPoint, align) {
- var pageX;
- var pageY;
- var doc = utils.getDocument(el);
- var win = doc.defaultView || doc.parentWindow;
- var scrollX = utils.getWindowScrollLeft(win);
- var scrollY = utils.getWindowScrollTop(win);
- var viewportWidth = utils.viewportWidth(win);
- var viewportHeight = utils.viewportHeight(win);
- if ("pageX" in tgtPoint) {
- pageX = tgtPoint.pageX;
- } else {
- pageX = scrollX + tgtPoint.clientX;
- }
- if ("pageY" in tgtPoint) {
- pageY = tgtPoint.pageY;
- } else {
- pageY = scrollY + tgtPoint.clientY;
- }
- var tgtRegion = {
- left: pageX,
- top: pageY,
- width: 0,
- height: 0
- };
- var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight;
- var points = [align.points[0], "cc"];
- return doAlign(el, tgtRegion, _objectSpread22(_objectSpread22({}, align), {}, {
- points
- }), pointInView);
- }
- // node_modules/ant-design-vue/es/_util/vnode.js
- function cloneElement(vnode) {
- var nodeProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var override = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
- var mergeRef = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
- var ele = vnode;
- if (Array.isArray(vnode)) {
- ele = filterEmpty(vnode)[0];
- }
- if (!ele) {
- return null;
- }
- var node = cloneVNode(ele, nodeProps, mergeRef);
- node.props = override ? _objectSpread2(_objectSpread2({}, node.props), nodeProps) : node.props;
- warning_default2(_typeof(node.props.class) !== "object", "class must be string");
- return node;
- }
- function cloneVNodes(vnodes) {
- var nodeProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var override = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
- return vnodes.map(function(vnode) {
- return cloneElement(vnode, nodeProps, override);
- });
- }
- function deepCloneElement(vnode) {
- var nodeProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var override = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
- var mergeRef = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
- if (Array.isArray(vnode)) {
- return vnode.map(function(item) {
- return deepCloneElement(item, nodeProps, override, mergeRef);
- });
- } else {
- var cloned = cloneElement(vnode, nodeProps, override, mergeRef);
- if (Array.isArray(cloned.children)) {
- cloned.children = deepCloneElement(cloned.children);
- }
- return cloned;
- }
- }
- // node_modules/ant-design-vue/es/vc-util/Dom/isVisible.js
- var isVisible_default = function(element) {
- if (!element) {
- return false;
- }
- if (element.offsetParent) {
- return true;
- }
- if (element.getBBox) {
- var box = element.getBBox();
- if (box.width || box.height) {
- return true;
- }
- }
- if (element.getBoundingClientRect) {
- var _box = element.getBoundingClientRect();
- if (_box.width || _box.height) {
- return true;
- }
- }
- return false;
- };
- // node_modules/ant-design-vue/es/vc-align/util.js
- function isSamePoint(prev2, next2) {
- if (prev2 === next2)
- return true;
- if (!prev2 || !next2)
- return false;
- if ("pageX" in next2 && "pageY" in next2) {
- return prev2.pageX === next2.pageX && prev2.pageY === next2.pageY;
- }
- if ("clientX" in next2 && "clientY" in next2) {
- return prev2.clientX === next2.clientX && prev2.clientY === next2.clientY;
- }
- return false;
- }
- function restoreFocus(activeElement, container) {
- if (activeElement !== document.activeElement && contains(container, activeElement) && typeof activeElement.focus === "function") {
- activeElement.focus();
- }
- }
- function monitorResize(element, callback) {
- var prevWidth = null;
- var prevHeight = null;
- function onResize(_ref) {
- var _ref2 = _slicedToArray(_ref, 1), target = _ref2[0].target;
- if (!document.documentElement.contains(target))
- return;
- var _target$getBoundingCl = target.getBoundingClientRect(), width = _target$getBoundingCl.width, height = _target$getBoundingCl.height;
- var fixedWidth = Math.floor(width);
- var fixedHeight = Math.floor(height);
- if (prevWidth !== fixedWidth || prevHeight !== fixedHeight) {
- Promise.resolve().then(function() {
- callback({
- width: fixedWidth,
- height: fixedHeight
- });
- });
- }
- prevWidth = fixedWidth;
- prevHeight = fixedHeight;
- }
- var resizeObserver = new ResizeObserver_es_default(onResize);
- if (element) {
- resizeObserver.observe(element);
- }
- return function() {
- resizeObserver.disconnect();
- };
- }
- // node_modules/ant-design-vue/es/vc-align/hooks/useBuffer.js
- var useBuffer_default = function(callback, buffer) {
- var called = false;
- var timeout = null;
- function cancelTrigger() {
- clearTimeout(timeout);
- }
- function trigger2(force) {
- if (!called || force === true) {
- if (callback() === false) {
- return;
- }
- called = true;
- cancelTrigger();
- timeout = setTimeout(function() {
- called = false;
- }, buffer.value);
- } else {
- cancelTrigger();
- timeout = setTimeout(function() {
- called = false;
- trigger2();
- }, buffer.value);
- }
- }
- return [trigger2, function() {
- called = false;
- cancelTrigger();
- }];
- };
- // node_modules/lodash-es/_listCacheClear.js
- function listCacheClear() {
- this.__data__ = [];
- this.size = 0;
- }
- var listCacheClear_default = listCacheClear;
- // node_modules/lodash-es/eq.js
- function eq(value, other) {
- return value === other || value !== value && other !== other;
- }
- var eq_default = eq;
- // node_modules/lodash-es/_assocIndexOf.js
- function assocIndexOf(array4, key2) {
- var length = array4.length;
- while (length--) {
- if (eq_default(array4[length][0], key2)) {
- return length;
- }
- }
- return -1;
- }
- var assocIndexOf_default = assocIndexOf;
- // node_modules/lodash-es/_listCacheDelete.js
- var arrayProto = Array.prototype;
- var splice = arrayProto.splice;
- function listCacheDelete(key2) {
- var data8 = this.__data__, index3 = assocIndexOf_default(data8, key2);
- if (index3 < 0) {
- return false;
- }
- var lastIndex = data8.length - 1;
- if (index3 == lastIndex) {
- data8.pop();
- } else {
- splice.call(data8, index3, 1);
- }
- --this.size;
- return true;
- }
- var listCacheDelete_default = listCacheDelete;
- // node_modules/lodash-es/_listCacheGet.js
- function listCacheGet(key2) {
- var data8 = this.__data__, index3 = assocIndexOf_default(data8, key2);
- return index3 < 0 ? void 0 : data8[index3][1];
- }
- var listCacheGet_default = listCacheGet;
- // node_modules/lodash-es/_listCacheHas.js
- function listCacheHas(key2) {
- return assocIndexOf_default(this.__data__, key2) > -1;
- }
- var listCacheHas_default = listCacheHas;
- // node_modules/lodash-es/_listCacheSet.js
- function listCacheSet(key2, value) {
- var data8 = this.__data__, index3 = assocIndexOf_default(data8, key2);
- if (index3 < 0) {
- ++this.size;
- data8.push([key2, value]);
- } else {
- data8[index3][1] = value;
- }
- return this;
- }
- var listCacheSet_default = listCacheSet;
- // node_modules/lodash-es/_ListCache.js
- function ListCache(entries) {
- var index3 = -1, length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index3 < length) {
- var entry = entries[index3];
- this.set(entry[0], entry[1]);
- }
- }
- ListCache.prototype.clear = listCacheClear_default;
- ListCache.prototype["delete"] = listCacheDelete_default;
- ListCache.prototype.get = listCacheGet_default;
- ListCache.prototype.has = listCacheHas_default;
- ListCache.prototype.set = listCacheSet_default;
- var ListCache_default = ListCache;
- // node_modules/lodash-es/_stackClear.js
- function stackClear() {
- this.__data__ = new ListCache_default();
- this.size = 0;
- }
- var stackClear_default = stackClear;
- // node_modules/lodash-es/_stackDelete.js
- function stackDelete(key2) {
- var data8 = this.__data__, result = data8["delete"](key2);
- this.size = data8.size;
- return result;
- }
- var stackDelete_default = stackDelete;
- // node_modules/lodash-es/_stackGet.js
- function stackGet(key2) {
- return this.__data__.get(key2);
- }
- var stackGet_default = stackGet;
- // node_modules/lodash-es/_stackHas.js
- function stackHas(key2) {
- return this.__data__.has(key2);
- }
- var stackHas_default = stackHas;
- // node_modules/lodash-es/isObject.js
- function isObject3(value) {
- var type4 = typeof value;
- return value != null && (type4 == "object" || type4 == "function");
- }
- var isObject_default = isObject3;
- // node_modules/lodash-es/isFunction.js
- var asyncTag = "[object AsyncFunction]";
- var funcTag = "[object Function]";
- var genTag = "[object GeneratorFunction]";
- var proxyTag = "[object Proxy]";
- function isFunction3(value) {
- if (!isObject_default(value)) {
- return false;
- }
- var tag = baseGetTag_default(value);
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
- }
- var isFunction_default = isFunction3;
- // node_modules/lodash-es/_coreJsData.js
- var coreJsData = root_default["__core-js_shared__"];
- var coreJsData_default = coreJsData;
- // node_modules/lodash-es/_isMasked.js
- var maskSrcKey = function() {
- var uid2 = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
- return uid2 ? "Symbol(src)_1." + uid2 : "";
- }();
- function isMasked(func) {
- return !!maskSrcKey && maskSrcKey in func;
- }
- var isMasked_default = isMasked;
- // node_modules/lodash-es/_toSource.js
- var funcProto2 = Function.prototype;
- var funcToString2 = funcProto2.toString;
- function toSource(func) {
- if (func != null) {
- try {
- return funcToString2.call(func);
- } catch (e3) {
- }
- try {
- return func + "";
- } catch (e3) {
- }
- }
- return "";
- }
- var toSource_default = toSource;
- // node_modules/lodash-es/_baseIsNative.js
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
- var funcProto3 = Function.prototype;
- var objectProto4 = Object.prototype;
- var funcToString3 = funcProto3.toString;
- var hasOwnProperty4 = objectProto4.hasOwnProperty;
- var reIsNative = RegExp(
- "^" + funcToString3.call(hasOwnProperty4).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
- );
- function baseIsNative(value) {
- if (!isObject_default(value) || isMasked_default(value)) {
- return false;
- }
- var pattern4 = isFunction_default(value) ? reIsNative : reIsHostCtor;
- return pattern4.test(toSource_default(value));
- }
- var baseIsNative_default = baseIsNative;
- // node_modules/lodash-es/_getValue.js
- function getValue(object4, key2) {
- return object4 == null ? void 0 : object4[key2];
- }
- var getValue_default = getValue;
- // node_modules/lodash-es/_getNative.js
- function getNative(object4, key2) {
- var value = getValue_default(object4, key2);
- return baseIsNative_default(value) ? value : void 0;
- }
- var getNative_default = getNative;
- // node_modules/lodash-es/_Map.js
- var Map2 = getNative_default(root_default, "Map");
- var Map_default = Map2;
- // node_modules/lodash-es/_nativeCreate.js
- var nativeCreate = getNative_default(Object, "create");
- var nativeCreate_default = nativeCreate;
- // node_modules/lodash-es/_hashClear.js
- function hashClear() {
- this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
- this.size = 0;
- }
- var hashClear_default = hashClear;
- // node_modules/lodash-es/_hashDelete.js
- function hashDelete(key2) {
- var result = this.has(key2) && delete this.__data__[key2];
- this.size -= result ? 1 : 0;
- return result;
- }
- var hashDelete_default = hashDelete;
- // node_modules/lodash-es/_hashGet.js
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
- var objectProto5 = Object.prototype;
- var hasOwnProperty5 = objectProto5.hasOwnProperty;
- function hashGet(key2) {
- var data8 = this.__data__;
- if (nativeCreate_default) {
- var result = data8[key2];
- return result === HASH_UNDEFINED ? void 0 : result;
- }
- return hasOwnProperty5.call(data8, key2) ? data8[key2] : void 0;
- }
- var hashGet_default = hashGet;
- // node_modules/lodash-es/_hashHas.js
- var objectProto6 = Object.prototype;
- var hasOwnProperty6 = objectProto6.hasOwnProperty;
- function hashHas(key2) {
- var data8 = this.__data__;
- return nativeCreate_default ? data8[key2] !== void 0 : hasOwnProperty6.call(data8, key2);
- }
- var hashHas_default = hashHas;
- // node_modules/lodash-es/_hashSet.js
- var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
- function hashSet(key2, value) {
- var data8 = this.__data__;
- this.size += this.has(key2) ? 0 : 1;
- data8[key2] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
- return this;
- }
- var hashSet_default = hashSet;
- // node_modules/lodash-es/_Hash.js
- function Hash(entries) {
- var index3 = -1, length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index3 < length) {
- var entry = entries[index3];
- this.set(entry[0], entry[1]);
- }
- }
- Hash.prototype.clear = hashClear_default;
- Hash.prototype["delete"] = hashDelete_default;
- Hash.prototype.get = hashGet_default;
- Hash.prototype.has = hashHas_default;
- Hash.prototype.set = hashSet_default;
- var Hash_default = Hash;
- // node_modules/lodash-es/_mapCacheClear.js
- function mapCacheClear() {
- this.size = 0;
- this.__data__ = {
- "hash": new Hash_default(),
- "map": new (Map_default || ListCache_default)(),
- "string": new Hash_default()
- };
- }
- var mapCacheClear_default = mapCacheClear;
- // node_modules/lodash-es/_isKeyable.js
- function isKeyable(value) {
- var type4 = typeof value;
- return type4 == "string" || type4 == "number" || type4 == "symbol" || type4 == "boolean" ? value !== "__proto__" : value === null;
- }
- var isKeyable_default = isKeyable;
- // node_modules/lodash-es/_getMapData.js
- function getMapData(map, key2) {
- var data8 = map.__data__;
- return isKeyable_default(key2) ? data8[typeof key2 == "string" ? "string" : "hash"] : data8.map;
- }
- var getMapData_default = getMapData;
- // node_modules/lodash-es/_mapCacheDelete.js
- function mapCacheDelete(key2) {
- var result = getMapData_default(this, key2)["delete"](key2);
- this.size -= result ? 1 : 0;
- return result;
- }
- var mapCacheDelete_default = mapCacheDelete;
- // node_modules/lodash-es/_mapCacheGet.js
- function mapCacheGet(key2) {
- return getMapData_default(this, key2).get(key2);
- }
- var mapCacheGet_default = mapCacheGet;
- // node_modules/lodash-es/_mapCacheHas.js
- function mapCacheHas(key2) {
- return getMapData_default(this, key2).has(key2);
- }
- var mapCacheHas_default = mapCacheHas;
- // node_modules/lodash-es/_mapCacheSet.js
- function mapCacheSet(key2, value) {
- var data8 = getMapData_default(this, key2), size = data8.size;
- data8.set(key2, value);
- this.size += data8.size == size ? 0 : 1;
- return this;
- }
- var mapCacheSet_default = mapCacheSet;
- // node_modules/lodash-es/_MapCache.js
- function MapCache(entries) {
- var index3 = -1, length = entries == null ? 0 : entries.length;
- this.clear();
- while (++index3 < length) {
- var entry = entries[index3];
- this.set(entry[0], entry[1]);
- }
- }
- MapCache.prototype.clear = mapCacheClear_default;
- MapCache.prototype["delete"] = mapCacheDelete_default;
- MapCache.prototype.get = mapCacheGet_default;
- MapCache.prototype.has = mapCacheHas_default;
- MapCache.prototype.set = mapCacheSet_default;
- var MapCache_default = MapCache;
- // node_modules/lodash-es/_stackSet.js
- var LARGE_ARRAY_SIZE = 200;
- function stackSet(key2, value) {
- var data8 = this.__data__;
- if (data8 instanceof ListCache_default) {
- var pairs = data8.__data__;
- if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
- pairs.push([key2, value]);
- this.size = ++data8.size;
- return this;
- }
- data8 = this.__data__ = new MapCache_default(pairs);
- }
- data8.set(key2, value);
- this.size = data8.size;
- return this;
- }
- var stackSet_default = stackSet;
- // node_modules/lodash-es/_Stack.js
- function Stack(entries) {
- var data8 = this.__data__ = new ListCache_default(entries);
- this.size = data8.size;
- }
- Stack.prototype.clear = stackClear_default;
- Stack.prototype["delete"] = stackDelete_default;
- Stack.prototype.get = stackGet_default;
- Stack.prototype.has = stackHas_default;
- Stack.prototype.set = stackSet_default;
- var Stack_default = Stack;
- // node_modules/lodash-es/_setCacheAdd.js
- var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
- function setCacheAdd(value) {
- this.__data__.set(value, HASH_UNDEFINED3);
- return this;
- }
- var setCacheAdd_default = setCacheAdd;
- // node_modules/lodash-es/_setCacheHas.js
- function setCacheHas(value) {
- return this.__data__.has(value);
- }
- var setCacheHas_default = setCacheHas;
- // node_modules/lodash-es/_SetCache.js
- function SetCache(values) {
- var index3 = -1, length = values == null ? 0 : values.length;
- this.__data__ = new MapCache_default();
- while (++index3 < length) {
- this.add(values[index3]);
- }
- }
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default;
- SetCache.prototype.has = setCacheHas_default;
- var SetCache_default = SetCache;
- // node_modules/lodash-es/_arraySome.js
- function arraySome(array4, predicate) {
- var index3 = -1, length = array4 == null ? 0 : array4.length;
- while (++index3 < length) {
- if (predicate(array4[index3], index3, array4)) {
- return true;
- }
- }
- return false;
- }
- var arraySome_default = arraySome;
- // node_modules/lodash-es/_cacheHas.js
- function cacheHas(cache, key2) {
- return cache.has(key2);
- }
- var cacheHas_default = cacheHas;
- // node_modules/lodash-es/_equalArrays.js
- var COMPARE_PARTIAL_FLAG = 1;
- var COMPARE_UNORDERED_FLAG = 2;
- function equalArrays(array4, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array4.length, othLength = other.length;
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
- var arrStacked = stack.get(array4);
- var othStacked = stack.get(other);
- if (arrStacked && othStacked) {
- return arrStacked == other && othStacked == array4;
- }
- var index3 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0;
- stack.set(array4, other);
- stack.set(other, array4);
- while (++index3 < arrLength) {
- var arrValue = array4[index3], othValue = other[index3];
- if (customizer) {
- var compared = isPartial ? customizer(othValue, arrValue, index3, other, array4, stack) : customizer(arrValue, othValue, index3, array4, other, stack);
- }
- if (compared !== void 0) {
- if (compared) {
- continue;
- }
- result = false;
- break;
- }
- if (seen) {
- if (!arraySome_default(other, function(othValue2, othIndex) {
- if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
- return seen.push(othIndex);
- }
- })) {
- result = false;
- break;
- }
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
- result = false;
- break;
- }
- }
- stack["delete"](array4);
- stack["delete"](other);
- return result;
- }
- var equalArrays_default = equalArrays;
- // node_modules/lodash-es/_Uint8Array.js
- var Uint8Array = root_default.Uint8Array;
- var Uint8Array_default = Uint8Array;
- // node_modules/lodash-es/_mapToArray.js
- function mapToArray(map) {
- var index3 = -1, result = Array(map.size);
- map.forEach(function(value, key2) {
- result[++index3] = [key2, value];
- });
- return result;
- }
- var mapToArray_default = mapToArray;
- // node_modules/lodash-es/_setToArray.js
- function setToArray(set2) {
- var index3 = -1, result = Array(set2.size);
- set2.forEach(function(value) {
- result[++index3] = value;
- });
- return result;
- }
- var setToArray_default = setToArray;
- // node_modules/lodash-es/_equalByTag.js
- var COMPARE_PARTIAL_FLAG2 = 1;
- var COMPARE_UNORDERED_FLAG2 = 2;
- var boolTag = "[object Boolean]";
- var dateTag = "[object Date]";
- var errorTag = "[object Error]";
- var mapTag = "[object Map]";
- var numberTag = "[object Number]";
- var regexpTag = "[object RegExp]";
- var setTag = "[object Set]";
- var stringTag = "[object String]";
- var symbolTag = "[object Symbol]";
- var arrayBufferTag = "[object ArrayBuffer]";
- var dataViewTag = "[object DataView]";
- var symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
- var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
- function equalByTag(object4, other, tag, bitmask, customizer, equalFunc, stack) {
- switch (tag) {
- case dataViewTag:
- if (object4.byteLength != other.byteLength || object4.byteOffset != other.byteOffset) {
- return false;
- }
- object4 = object4.buffer;
- other = other.buffer;
- case arrayBufferTag:
- if (object4.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object4), new Uint8Array_default(other))) {
- return false;
- }
- return true;
- case boolTag:
- case dateTag:
- case numberTag:
- return eq_default(+object4, +other);
- case errorTag:
- return object4.name == other.name && object4.message == other.message;
- case regexpTag:
- case stringTag:
- return object4 == other + "";
- case mapTag:
- var convert = mapToArray_default;
- case setTag:
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG2;
- convert || (convert = setToArray_default);
- if (object4.size != other.size && !isPartial) {
- return false;
- }
- var stacked = stack.get(object4);
- if (stacked) {
- return stacked == other;
- }
- bitmask |= COMPARE_UNORDERED_FLAG2;
- stack.set(object4, other);
- var result = equalArrays_default(convert(object4), convert(other), bitmask, customizer, equalFunc, stack);
- stack["delete"](object4);
- return result;
- case symbolTag:
- if (symbolValueOf) {
- return symbolValueOf.call(object4) == symbolValueOf.call(other);
- }
- }
- return false;
- }
- var equalByTag_default = equalByTag;
- // node_modules/lodash-es/_arrayPush.js
- function arrayPush(array4, values) {
- var index3 = -1, length = values.length, offset4 = array4.length;
- while (++index3 < length) {
- array4[offset4 + index3] = values[index3];
- }
- return array4;
- }
- var arrayPush_default = arrayPush;
- // node_modules/lodash-es/isArray.js
- var isArray2 = Array.isArray;
- var isArray_default = isArray2;
- // node_modules/lodash-es/_baseGetAllKeys.js
- function baseGetAllKeys(object4, keysFunc, symbolsFunc) {
- var result = keysFunc(object4);
- return isArray_default(object4) ? result : arrayPush_default(result, symbolsFunc(object4));
- }
- var baseGetAllKeys_default = baseGetAllKeys;
- // node_modules/lodash-es/_arrayFilter.js
- function arrayFilter(array4, predicate) {
- var index3 = -1, length = array4 == null ? 0 : array4.length, resIndex = 0, result = [];
- while (++index3 < length) {
- var value = array4[index3];
- if (predicate(value, index3, array4)) {
- result[resIndex++] = value;
- }
- }
- return result;
- }
- var arrayFilter_default = arrayFilter;
- // node_modules/lodash-es/stubArray.js
- function stubArray() {
- return [];
- }
- var stubArray_default = stubArray;
- // node_modules/lodash-es/_getSymbols.js
- var objectProto7 = Object.prototype;
- var propertyIsEnumerable = objectProto7.propertyIsEnumerable;
- var nativeGetSymbols = Object.getOwnPropertySymbols;
- var getSymbols = !nativeGetSymbols ? stubArray_default : function(object4) {
- if (object4 == null) {
- return [];
- }
- object4 = Object(object4);
- return arrayFilter_default(nativeGetSymbols(object4), function(symbol) {
- return propertyIsEnumerable.call(object4, symbol);
- });
- };
- var getSymbols_default = getSymbols;
- // node_modules/lodash-es/_baseTimes.js
- function baseTimes(n3, iteratee) {
- var index3 = -1, result = Array(n3);
- while (++index3 < n3) {
- result[index3] = iteratee(index3);
- }
- return result;
- }
- var baseTimes_default = baseTimes;
- // node_modules/lodash-es/_baseIsArguments.js
- var argsTag = "[object Arguments]";
- function baseIsArguments(value) {
- return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
- }
- var baseIsArguments_default = baseIsArguments;
- // node_modules/lodash-es/isArguments.js
- var objectProto8 = Object.prototype;
- var hasOwnProperty7 = objectProto8.hasOwnProperty;
- var propertyIsEnumerable2 = objectProto8.propertyIsEnumerable;
- var isArguments = baseIsArguments_default(function() {
- return arguments;
- }()) ? baseIsArguments_default : function(value) {
- return isObjectLike_default(value) && hasOwnProperty7.call(value, "callee") && !propertyIsEnumerable2.call(value, "callee");
- };
- var isArguments_default = isArguments;
- // node_modules/lodash-es/stubFalse.js
- function stubFalse() {
- return false;
- }
- var stubFalse_default = stubFalse;
- // node_modules/lodash-es/isBuffer.js
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
- var moduleExports = freeModule && freeModule.exports === freeExports;
- var Buffer = moduleExports ? root_default.Buffer : void 0;
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
- var isBuffer = nativeIsBuffer || stubFalse_default;
- var isBuffer_default = isBuffer;
- // node_modules/lodash-es/_isIndex.js
- var MAX_SAFE_INTEGER = 9007199254740991;
- var reIsUint = /^(?:0|[1-9]\d*)$/;
- function isIndex(value, length) {
- var type4 = typeof value;
- length = length == null ? MAX_SAFE_INTEGER : length;
- return !!length && (type4 == "number" || type4 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
- }
- var isIndex_default = isIndex;
- // node_modules/lodash-es/isLength.js
- var MAX_SAFE_INTEGER2 = 9007199254740991;
- function isLength(value) {
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
- }
- var isLength_default = isLength;
- // node_modules/lodash-es/_baseIsTypedArray.js
- var argsTag2 = "[object Arguments]";
- var arrayTag = "[object Array]";
- var boolTag2 = "[object Boolean]";
- var dateTag2 = "[object Date]";
- var errorTag2 = "[object Error]";
- var funcTag2 = "[object Function]";
- var mapTag2 = "[object Map]";
- var numberTag2 = "[object Number]";
- var objectTag2 = "[object Object]";
- var regexpTag2 = "[object RegExp]";
- var setTag2 = "[object Set]";
- var stringTag2 = "[object String]";
- var weakMapTag = "[object WeakMap]";
- var arrayBufferTag2 = "[object ArrayBuffer]";
- var dataViewTag2 = "[object DataView]";
- var float32Tag = "[object Float32Array]";
- var float64Tag = "[object Float64Array]";
- var int8Tag = "[object Int8Array]";
- var int16Tag = "[object Int16Array]";
- var int32Tag = "[object Int32Array]";
- var uint8Tag = "[object Uint8Array]";
- var uint8ClampedTag = "[object Uint8ClampedArray]";
- var uint16Tag = "[object Uint16Array]";
- var uint32Tag = "[object Uint32Array]";
- var typedArrayTags = {};
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
- typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag2] = typedArrayTags[boolTag2] = typedArrayTags[dataViewTag2] = typedArrayTags[dateTag2] = typedArrayTags[errorTag2] = typedArrayTags[funcTag2] = typedArrayTags[mapTag2] = typedArrayTags[numberTag2] = typedArrayTags[objectTag2] = typedArrayTags[regexpTag2] = typedArrayTags[setTag2] = typedArrayTags[stringTag2] = typedArrayTags[weakMapTag] = false;
- function baseIsTypedArray(value) {
- return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
- }
- var baseIsTypedArray_default = baseIsTypedArray;
- // node_modules/lodash-es/_baseUnary.js
- function baseUnary(func) {
- return function(value) {
- return func(value);
- };
- }
- var baseUnary_default = baseUnary;
- // node_modules/lodash-es/_nodeUtil.js
- var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
- var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
- var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
- var freeProcess = moduleExports2 && freeGlobal_default.process;
- var nodeUtil = function() {
- try {
- var types2 = freeModule2 && freeModule2.require && freeModule2.require("util").types;
- if (types2) {
- return types2;
- }
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
- } catch (e3) {
- }
- }();
- var nodeUtil_default = nodeUtil;
- // node_modules/lodash-es/isTypedArray.js
- var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
- var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
- var isTypedArray_default = isTypedArray;
- // node_modules/lodash-es/_arrayLikeKeys.js
- var objectProto9 = Object.prototype;
- var hasOwnProperty8 = objectProto9.hasOwnProperty;
- function arrayLikeKeys(value, inherited) {
- var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
- for (var key2 in value) {
- if ((inherited || hasOwnProperty8.call(value, key2)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
- (key2 == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
- isBuff && (key2 == "offset" || key2 == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
- isType && (key2 == "buffer" || key2 == "byteLength" || key2 == "byteOffset") || // Skip index properties.
- isIndex_default(key2, length)))) {
- result.push(key2);
- }
- }
- return result;
- }
- var arrayLikeKeys_default = arrayLikeKeys;
- // node_modules/lodash-es/_isPrototype.js
- var objectProto10 = Object.prototype;
- function isPrototype(value) {
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto10;
- return value === proto;
- }
- var isPrototype_default = isPrototype;
- // node_modules/lodash-es/_nativeKeys.js
- var nativeKeys = overArg_default(Object.keys, Object);
- var nativeKeys_default = nativeKeys;
- // node_modules/lodash-es/_baseKeys.js
- var objectProto11 = Object.prototype;
- var hasOwnProperty9 = objectProto11.hasOwnProperty;
- function baseKeys(object4) {
- if (!isPrototype_default(object4)) {
- return nativeKeys_default(object4);
- }
- var result = [];
- for (var key2 in Object(object4)) {
- if (hasOwnProperty9.call(object4, key2) && key2 != "constructor") {
- result.push(key2);
- }
- }
- return result;
- }
- var baseKeys_default = baseKeys;
- // node_modules/lodash-es/isArrayLike.js
- function isArrayLike(value) {
- return value != null && isLength_default(value.length) && !isFunction_default(value);
- }
- var isArrayLike_default = isArrayLike;
- // node_modules/lodash-es/keys.js
- function keys(object4) {
- return isArrayLike_default(object4) ? arrayLikeKeys_default(object4) : baseKeys_default(object4);
- }
- var keys_default = keys;
- // node_modules/lodash-es/_getAllKeys.js
- function getAllKeys(object4) {
- return baseGetAllKeys_default(object4, keys_default, getSymbols_default);
- }
- var getAllKeys_default = getAllKeys;
- // node_modules/lodash-es/_equalObjects.js
- var COMPARE_PARTIAL_FLAG3 = 1;
- var objectProto12 = Object.prototype;
- var hasOwnProperty10 = objectProto12.hasOwnProperty;
- function equalObjects(object4, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object4), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length;
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index3 = objLength;
- while (index3--) {
- var key2 = objProps[index3];
- if (!(isPartial ? key2 in other : hasOwnProperty10.call(other, key2))) {
- return false;
- }
- }
- var objStacked = stack.get(object4);
- var othStacked = stack.get(other);
- if (objStacked && othStacked) {
- return objStacked == other && othStacked == object4;
- }
- var result = true;
- stack.set(object4, other);
- stack.set(other, object4);
- var skipCtor = isPartial;
- while (++index3 < objLength) {
- key2 = objProps[index3];
- var objValue = object4[key2], othValue = other[key2];
- if (customizer) {
- var compared = isPartial ? customizer(othValue, objValue, key2, other, object4, stack) : customizer(objValue, othValue, key2, object4, other, stack);
- }
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key2 == "constructor");
- }
- if (result && !skipCtor) {
- var objCtor = object4.constructor, othCtor = other.constructor;
- if (objCtor != othCtor && ("constructor" in object4 && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
- result = false;
- }
- }
- stack["delete"](object4);
- stack["delete"](other);
- return result;
- }
- var equalObjects_default = equalObjects;
- // node_modules/lodash-es/_DataView.js
- var DataView = getNative_default(root_default, "DataView");
- var DataView_default = DataView;
- // node_modules/lodash-es/_Promise.js
- var Promise2 = getNative_default(root_default, "Promise");
- var Promise_default = Promise2;
- // node_modules/lodash-es/_Set.js
- var Set2 = getNative_default(root_default, "Set");
- var Set_default = Set2;
- // node_modules/lodash-es/_WeakMap.js
- var WeakMap2 = getNative_default(root_default, "WeakMap");
- var WeakMap_default = WeakMap2;
- // node_modules/lodash-es/_getTag.js
- var mapTag3 = "[object Map]";
- var objectTag3 = "[object Object]";
- var promiseTag = "[object Promise]";
- var setTag3 = "[object Set]";
- var weakMapTag2 = "[object WeakMap]";
- var dataViewTag3 = "[object DataView]";
- var dataViewCtorString = toSource_default(DataView_default);
- var mapCtorString = toSource_default(Map_default);
- var promiseCtorString = toSource_default(Promise_default);
- var setCtorString = toSource_default(Set_default);
- var weakMapCtorString = toSource_default(WeakMap_default);
- var getTag = baseGetTag_default;
- if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag3 || Map_default && getTag(new Map_default()) != mapTag3 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag3 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) {
- getTag = function(value) {
- var result = baseGetTag_default(value), Ctor = result == objectTag3 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : "";
- if (ctorString) {
- switch (ctorString) {
- case dataViewCtorString:
- return dataViewTag3;
- case mapCtorString:
- return mapTag3;
- case promiseCtorString:
- return promiseTag;
- case setCtorString:
- return setTag3;
- case weakMapCtorString:
- return weakMapTag2;
- }
- }
- return result;
- };
- }
- var getTag_default = getTag;
- // node_modules/lodash-es/_baseIsEqualDeep.js
- var COMPARE_PARTIAL_FLAG4 = 1;
- var argsTag3 = "[object Arguments]";
- var arrayTag2 = "[object Array]";
- var objectTag4 = "[object Object]";
- var objectProto13 = Object.prototype;
- var hasOwnProperty11 = objectProto13.hasOwnProperty;
- function baseIsEqualDeep(object4, other, bitmask, customizer, equalFunc, stack) {
- var objIsArr = isArray_default(object4), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag2 : getTag_default(object4), othTag = othIsArr ? arrayTag2 : getTag_default(other);
- objTag = objTag == argsTag3 ? objectTag4 : objTag;
- othTag = othTag == argsTag3 ? objectTag4 : othTag;
- var objIsObj = objTag == objectTag4, othIsObj = othTag == objectTag4, isSameTag = objTag == othTag;
- if (isSameTag && isBuffer_default(object4)) {
- if (!isBuffer_default(other)) {
- return false;
- }
- objIsArr = true;
- objIsObj = false;
- }
- if (isSameTag && !objIsObj) {
- stack || (stack = new Stack_default());
- return objIsArr || isTypedArray_default(object4) ? equalArrays_default(object4, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object4, other, objTag, bitmask, customizer, equalFunc, stack);
- }
- if (!(bitmask & COMPARE_PARTIAL_FLAG4)) {
- var objIsWrapped = objIsObj && hasOwnProperty11.call(object4, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty11.call(other, "__wrapped__");
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object4.value() : object4, othUnwrapped = othIsWrapped ? other.value() : other;
- stack || (stack = new Stack_default());
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
- }
- }
- if (!isSameTag) {
- return false;
- }
- stack || (stack = new Stack_default());
- return equalObjects_default(object4, other, bitmask, customizer, equalFunc, stack);
- }
- var baseIsEqualDeep_default = baseIsEqualDeep;
- // node_modules/lodash-es/_baseIsEqual.js
- function baseIsEqual(value, other, bitmask, customizer, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
- }
- var baseIsEqual_default = baseIsEqual;
- // node_modules/lodash-es/isEqual.js
- function isEqual(value, other) {
- return baseIsEqual_default(value, other);
- }
- var isEqual_default = isEqual;
- // node_modules/ant-design-vue/es/vc-align/Align.js
- var alignProps = {
- align: Object,
- target: [Object, Function],
- onAlign: Function,
- monitorBufferTime: Number,
- monitorWindowResize: Boolean,
- disabled: Boolean
- };
- function getElement(func) {
- if (typeof func !== "function")
- return null;
- return func();
- }
- function getPoint(point) {
- if (_typeof(point) !== "object" || !point)
- return null;
- return point;
- }
- var Align_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Align",
- props: alignProps,
- emits: ["align"],
- setup: function setup11(props5, _ref) {
- var expose = _ref.expose, slots = _ref.slots;
- var cacheRef = ref({});
- var nodeRef = ref();
- var _useBuffer = useBuffer_default(function() {
- var latestDisabled = props5.disabled, latestTarget = props5.target, latestAlign = props5.align, latestOnAlign = props5.onAlign;
- if (!latestDisabled && latestTarget && nodeRef.value) {
- var source = nodeRef.value;
- var result;
- var element = getElement(latestTarget);
- var point = getPoint(latestTarget);
- cacheRef.value.element = element;
- cacheRef.value.point = point;
- cacheRef.value.align = latestAlign;
- var _document = document, activeElement = _document.activeElement;
- if (element && isVisible_default(element)) {
- result = alignElement(source, element, latestAlign);
- } else if (point) {
- result = alignPoint(source, point, latestAlign);
- }
- restoreFocus(activeElement, source);
- if (latestOnAlign && result) {
- latestOnAlign(source, result);
- }
- return true;
- }
- return false;
- }, computed(function() {
- return props5.monitorBufferTime;
- })), _useBuffer2 = _slicedToArray(_useBuffer, 2), _forceAlign = _useBuffer2[0], cancelForceAlign = _useBuffer2[1];
- var resizeMonitor = ref({
- cancel: function cancel() {
- }
- });
- var sourceResizeMonitor = ref({
- cancel: function cancel() {
- }
- });
- var goAlign = function goAlign2() {
- var target = props5.target;
- var element = getElement(target);
- var point = getPoint(target);
- if (nodeRef.value !== sourceResizeMonitor.value.element) {
- sourceResizeMonitor.value.cancel();
- sourceResizeMonitor.value.element = nodeRef.value;
- sourceResizeMonitor.value.cancel = monitorResize(nodeRef.value, _forceAlign);
- }
- if (cacheRef.value.element !== element || !isSamePoint(cacheRef.value.point, point) || !isEqual_default(cacheRef.value.align, props5.align)) {
- _forceAlign();
- if (resizeMonitor.value.element !== element) {
- resizeMonitor.value.cancel();
- resizeMonitor.value.element = element;
- resizeMonitor.value.cancel = monitorResize(element, _forceAlign);
- }
- }
- };
- onMounted(function() {
- nextTick(function() {
- goAlign();
- });
- });
- onUpdated(function() {
- nextTick(function() {
- goAlign();
- });
- });
- watch(function() {
- return props5.disabled;
- }, function(disabled) {
- if (!disabled) {
- _forceAlign();
- } else {
- cancelForceAlign();
- }
- }, {
- immediate: true,
- flush: "post"
- });
- var winResizeRef = ref(null);
- watch(function() {
- return props5.monitorWindowResize;
- }, function(monitorWindowResize) {
- if (monitorWindowResize) {
- if (!winResizeRef.value) {
- winResizeRef.value = addEventListenerWrap(window, "resize", _forceAlign);
- }
- } else if (winResizeRef.value) {
- winResizeRef.value.remove();
- winResizeRef.value = null;
- }
- }, {
- flush: "post"
- });
- onUnmounted(function() {
- resizeMonitor.value.cancel();
- sourceResizeMonitor.value.cancel();
- if (winResizeRef.value)
- winResizeRef.value.remove();
- cancelForceAlign();
- });
- expose({
- forceAlign: function forceAlign() {
- return _forceAlign(true);
- }
- });
- return function() {
- var child = slots === null || slots === void 0 ? void 0 : slots.default();
- if (child) {
- return cloneElement(child[0], {
- ref: nodeRef
- }, true, true);
- }
- return null;
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-trigger/Popup/PopupInner.js
- var PopupInner_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "PopupInner",
- inheritAttrs: false,
- props: innerProps,
- emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
- setup: function setup12(props5, _ref) {
- var expose = _ref.expose, attrs = _ref.attrs, slots = _ref.slots;
- var alignRef = ref();
- var elementRef = ref();
- var alignedClassName = ref();
- var _useStretchStyle = useStretchStyle_default(toRef(props5, "stretch")), _useStretchStyle2 = _slicedToArray(_useStretchStyle, 2), stretchStyle = _useStretchStyle2[0], measureStretchStyle = _useStretchStyle2[1];
- var doMeasure = function doMeasure2() {
- if (props5.stretch) {
- measureStretchStyle(props5.getRootDomNode());
- }
- };
- var visible = ref(false);
- var timeoutId;
- watch(function() {
- return props5.visible;
- }, function(val) {
- clearTimeout(timeoutId);
- if (val) {
- timeoutId = setTimeout(function() {
- visible.value = props5.visible;
- });
- } else {
- visible.value = false;
- }
- }, {
- immediate: true
- });
- var _useVisibleStatus = useVisibleStatus_default(visible, doMeasure), _useVisibleStatus2 = _slicedToArray(_useVisibleStatus, 2), status = _useVisibleStatus2[0], goNextStatus = _useVisibleStatus2[1];
- var prepareResolveRef = ref();
- var getAlignTarget = function getAlignTarget2() {
- if (props5.point) {
- return props5.point;
- }
- return props5.getRootDomNode;
- };
- var forceAlign = function forceAlign2() {
- var _alignRef$value;
- (_alignRef$value = alignRef.value) === null || _alignRef$value === void 0 ? void 0 : _alignRef$value.forceAlign();
- };
- var onInternalAlign = function onInternalAlign2(popupDomNode, matchAlign) {
- var nextAlignedClassName = props5.getClassNameFromAlign(matchAlign);
- var preAlignedClassName = alignedClassName.value;
- if (alignedClassName.value !== nextAlignedClassName) {
- alignedClassName.value = nextAlignedClassName;
- }
- if (status.value === "align") {
- var _props$onAlign;
- if (preAlignedClassName !== nextAlignedClassName) {
- Promise.resolve().then(function() {
- forceAlign();
- });
- } else {
- goNextStatus(function() {
- var _prepareResolveRef$va;
- (_prepareResolveRef$va = prepareResolveRef.value) === null || _prepareResolveRef$va === void 0 ? void 0 : _prepareResolveRef$va.call(prepareResolveRef);
- });
- }
- (_props$onAlign = props5.onAlign) === null || _props$onAlign === void 0 ? void 0 : _props$onAlign.call(props5, popupDomNode, matchAlign);
- }
- };
- var motion = computed(function() {
- var m2 = _typeof(props5.animation) === "object" ? props5.animation : getMotion(props5);
- ["onAfterEnter", "onAfterLeave"].forEach(function(eventName) {
- var originFn = m2[eventName];
- m2[eventName] = function(node) {
- goNextStatus();
- status.value = "stable";
- originFn === null || originFn === void 0 ? void 0 : originFn(node);
- };
- });
- return m2;
- });
- var onShowPrepare = function onShowPrepare2() {
- return new Promise(function(resolve) {
- prepareResolveRef.value = resolve;
- });
- };
- watch([motion, status], function() {
- if (!motion.value && status.value === "motion") {
- goNextStatus();
- }
- }, {
- immediate: true
- });
- expose({
- forceAlign,
- getElement: function getElement2() {
- return elementRef.value.$el || elementRef.value;
- }
- });
- var alignDisabled = computed(function() {
- var _props$align;
- if ((_props$align = props5.align) !== null && _props$align !== void 0 && _props$align.points && (status.value === "align" || status.value === "stable")) {
- return false;
- }
- return true;
- });
- return function() {
- var _slots$default;
- var zIndex = props5.zIndex, align = props5.align, prefixCls = props5.prefixCls, destroyPopupOnHide = props5.destroyPopupOnHide, onMouseenter2 = props5.onMouseenter, onMouseleave2 = props5.onMouseleave, _props$onTouchstart = props5.onTouchstart, onTouchstart2 = _props$onTouchstart === void 0 ? function() {
- } : _props$onTouchstart, onMousedown2 = props5.onMousedown;
- var statusValue = status.value;
- var mergedStyle = [_objectSpread2(_objectSpread2({}, stretchStyle.value), {}, {
- zIndex,
- opacity: statusValue === "motion" || statusValue === "stable" || !visible.value ? null : 0,
- // pointerEvents: statusValue === 'stable' ? null : 'none',
- pointerEvents: !visible.value && statusValue !== "stable" ? "none" : null
- }), attrs.style];
- var childNode = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots, {
- visible: props5.visible
- }));
- if (childNode.length > 1) {
- var _childNode = function() {
- return childNode;
- }();
- childNode = createVNode("div", {
- "class": "".concat(prefixCls, "-content")
- }, [childNode]);
- }
- var mergedClassName = classNames_default(prefixCls, attrs.class, alignedClassName.value);
- var hasAnimate = visible.value || !props5.visible;
- var transitionProps = hasAnimate ? getTransitionProps(motion.value.name, motion.value) : {};
- return createVNode(Transition, _objectSpread2(_objectSpread2({
- "ref": elementRef
- }, transitionProps), {}, {
- "onBeforeEnter": onShowPrepare
- }), {
- default: function _default9() {
- return !destroyPopupOnHide || props5.visible ? withDirectives(createVNode(Align_default, {
- "target": getAlignTarget(),
- "key": "popup",
- "ref": alignRef,
- "monitorWindowResize": true,
- "disabled": alignDisabled.value,
- "align": align,
- "onAlign": onInternalAlign
- }, {
- default: function _default10() {
- return createVNode("div", _objectSpread2(_objectSpread2({
- "class": mergedClassName,
- "onMouseenter": onMouseenter2,
- "onMouseleave": onMouseleave2,
- "onMousedown": withModifiers(onMousedown2, ["capture"])
- }, _defineProperty({}, supportsPassive_default ? "onTouchstartPassive" : "onTouchstart", withModifiers(onTouchstart2, ["capture"]))), {}, {
- "style": mergedStyle
- }), [childNode]);
- }
- }), [[vShow, visible.value]]) : null;
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-trigger/Popup/index.js
- var Popup_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Popup",
- inheritAttrs: false,
- props: popupProps,
- setup: function setup13(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, expose = _ref.expose;
- var innerVisible = ref(false);
- var inMobile = ref(false);
- var popupRef = ref();
- watch([function() {
- return props5.visible;
- }, function() {
- return props5.mobile;
- }], function() {
- innerVisible.value = props5.visible;
- if (props5.visible && props5.mobile) {
- inMobile.value = true;
- }
- }, {
- immediate: true,
- flush: "post"
- });
- expose({
- forceAlign: function forceAlign() {
- var _popupRef$value;
- (_popupRef$value = popupRef.value) === null || _popupRef$value === void 0 ? void 0 : _popupRef$value.forceAlign();
- },
- getElement: function getElement2() {
- var _popupRef$value2;
- return (_popupRef$value2 = popupRef.value) === null || _popupRef$value2 === void 0 ? void 0 : _popupRef$value2.getElement();
- }
- });
- return function() {
- var cloneProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props5), attrs), {}, {
- visible: innerVisible.value
- });
- var popupNode = inMobile.value ? createVNode(MobilePopupInner_default, _objectSpread2(_objectSpread2({}, cloneProps), {}, {
- "mobile": props5.mobile,
- "ref": popupRef
- }), {
- default: slots.default
- }) : createVNode(PopupInner_default, _objectSpread2(_objectSpread2({}, cloneProps), {}, {
- "ref": popupRef
- }), {
- default: slots.default
- });
- return createVNode("div", null, [createVNode(Mask, cloneProps, null), popupNode]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-trigger/utils/alignUtil.js
- function isPointsEq(a1, a2, isAlignPoint) {
- if (isAlignPoint) {
- return a1[0] === a2[0];
- }
- return a1[0] === a2[0] && a1[1] === a2[1];
- }
- function getAlignFromPlacement(builtinPlacements, placementStr, align) {
- var baseAlign = builtinPlacements[placementStr] || {};
- return _objectSpread2(_objectSpread2({}, baseAlign), align);
- }
- function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
- var points = align.points;
- var placements4 = Object.keys(builtinPlacements);
- for (var i3 = 0; i3 < placements4.length; i3 += 1) {
- var placement = placements4[i3];
- if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {
- return "".concat(prefixCls, "-placement-").concat(placement);
- }
- }
- return "";
- }
- // node_modules/ant-design-vue/es/_util/BaseMixin.js
- var BaseMixin_default = {
- methods: {
- setState: function setState() {
- var state = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
- var callback = arguments.length > 1 ? arguments[1] : void 0;
- var newState = typeof state === "function" ? state(this.$data, this.$props) : state;
- if (this.getDerivedStateFromProps) {
- var s2 = this.getDerivedStateFromProps(getOptionProps(this), _objectSpread2(_objectSpread2({}, this.$data), newState));
- if (s2 === null) {
- return;
- } else {
- newState = _objectSpread2(_objectSpread2({}, newState), s2 || {});
- }
- }
- _extends(this.$data, newState);
- if (this._.isMounted) {
- this.$forceUpdate();
- }
- nextTick(function() {
- callback && callback();
- });
- },
- __emit: function __emit() {
- var args = [].slice.call(arguments, 0);
- var eventName = args[0];
- eventName = "on".concat(eventName[0].toUpperCase()).concat(eventName.substring(1));
- var event = this.$props[eventName] || this.$attrs[eventName];
- if (args.length && event) {
- if (Array.isArray(event)) {
- for (var i3 = 0, l2 = event.length; i3 < l2; i3++) {
- event[i3].apply(event, _toConsumableArray(args.slice(1)));
- }
- } else {
- event.apply(void 0, _toConsumableArray(args.slice(1)));
- }
- }
- }
- }
- };
- // node_modules/ant-design-vue/es/vc-trigger/context.js
- var TriggerContextKey = Symbol("TriggerContextKey");
- var useProviderTrigger = function useProviderTrigger2() {
- var portal = null;
- provide(TriggerContextKey, {
- setPortal: function setPortal(val) {
- portal = val;
- },
- popPortal: true
- });
- return function() {
- return portal;
- };
- };
- var useInjectTrigger = function useInjectTrigger2(tryPopPortal) {
- return tryPopPortal ? inject(TriggerContextKey, {
- setPortal: function setPortal() {
- },
- popPortal: false
- }) : {
- setPortal: function setPortal() {
- },
- popPortal: false
- };
- };
- var PortalContextKey = Symbol("PortalContextKey");
- var useProvidePortal = function useProvidePortal2(instance) {
- var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
- inTriggerContext: true
- };
- provide(PortalContextKey, {
- inTriggerContext: config.inTriggerContext,
- shouldRender: computed(function() {
- var _ref = instance || {}, sPopupVisible = _ref.sPopupVisible, popupRef = _ref.popupRef, forceRender = _ref.forceRender, autoDestroy = _ref.autoDestroy;
- var shouldRender = false;
- if (sPopupVisible || popupRef || forceRender) {
- shouldRender = true;
- }
- if (!sPopupVisible && autoDestroy) {
- shouldRender = false;
- }
- return shouldRender;
- })
- });
- };
- var useInjectPortal = function useInjectPortal2() {
- useProvidePortal({}, {
- inTriggerContext: false
- });
- var portalContext = inject(PortalContextKey, {
- shouldRender: computed(function() {
- return false;
- }),
- inTriggerContext: false
- });
- return {
- shouldRender: computed(function() {
- return portalContext.shouldRender.value || portalContext.inTriggerContext === false;
- })
- };
- };
- // node_modules/ant-design-vue/es/_util/Portal.js
- var Portal_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Portal",
- inheritAttrs: false,
- props: {
- getContainer: vue_types_default.func.isRequired,
- didUpdate: Function
- },
- setup: function setup14(props5, _ref) {
- var slots = _ref.slots;
- var isSSR = true;
- var container;
- var _useInjectPortal = useInjectPortal(), shouldRender = _useInjectPortal.shouldRender;
- onBeforeMount(function() {
- isSSR = false;
- if (shouldRender.value) {
- container = props5.getContainer();
- }
- });
- var stopWatch = watch(shouldRender, function() {
- if (shouldRender.value && !container) {
- container = props5.getContainer();
- }
- if (container) {
- stopWatch();
- }
- });
- onUpdated(function() {
- nextTick(function() {
- if (shouldRender.value) {
- var _props$didUpdate;
- (_props$didUpdate = props5.didUpdate) === null || _props$didUpdate === void 0 ? void 0 : _props$didUpdate.call(props5, props5);
- }
- });
- });
- onBeforeUnmount(function() {
- if (container && container.parentNode) {
- container.parentNode.removeChild(container);
- }
- });
- return function() {
- if (!shouldRender.value)
- return null;
- if (isSSR) {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- }
- return container ? createVNode(Teleport, {
- "to": container
- }, slots) : null;
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-trigger/Trigger.js
- function noop2() {
- }
- function returnEmptyString() {
- return "";
- }
- function returnDocument(element) {
- if (element) {
- return element.ownerDocument;
- }
- return window.document;
- }
- var ALL_HANDLERS = ["onClick", "onMousedown", "onTouchstart", "onMouseenter", "onMouseleave", "onFocus", "onBlur", "onContextmenu"];
- var Trigger_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Trigger",
- mixins: [BaseMixin_default],
- inheritAttrs: false,
- props: {
- action: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.arrayOf(vue_types_default.string)]).def([]),
- showAction: vue_types_default.any.def([]),
- hideAction: vue_types_default.any.def([]),
- getPopupClassNameFromAlign: vue_types_default.any.def(returnEmptyString),
- onPopupVisibleChange: Function,
- afterPopupVisibleChange: vue_types_default.func.def(noop2),
- popup: vue_types_default.any,
- popupStyle: {
- type: Object,
- default: void 0
- },
- prefixCls: vue_types_default.string.def("rc-trigger-popup"),
- popupClassName: vue_types_default.string.def(""),
- popupPlacement: String,
- builtinPlacements: vue_types_default.object,
- popupTransitionName: String,
- popupAnimation: vue_types_default.any,
- mouseEnterDelay: vue_types_default.number.def(0),
- mouseLeaveDelay: vue_types_default.number.def(0.1),
- zIndex: Number,
- focusDelay: vue_types_default.number.def(0),
- blurDelay: vue_types_default.number.def(0.15),
- getPopupContainer: Function,
- getDocument: vue_types_default.func.def(returnDocument),
- forceRender: {
- type: Boolean,
- default: void 0
- },
- destroyPopupOnHide: {
- type: Boolean,
- default: false
- },
- mask: {
- type: Boolean,
- default: false
- },
- maskClosable: {
- type: Boolean,
- default: true
- },
- // onPopupAlign: PropTypes.func.def(noop),
- popupAlign: vue_types_default.object.def(function() {
- return {};
- }),
- popupVisible: {
- type: Boolean,
- default: void 0
- },
- defaultPopupVisible: {
- type: Boolean,
- default: false
- },
- maskTransitionName: String,
- maskAnimation: String,
- stretch: String,
- alignPoint: {
- type: Boolean,
- default: void 0
- },
- autoDestroy: {
- type: Boolean,
- default: false
- },
- mobile: Object,
- getTriggerDOMNode: Function,
- // portal context will change
- tryPopPortal: Boolean
- // no need reactive
- },
- setup: function setup15(props5) {
- var align = computed(function() {
- var popupPlacement = props5.popupPlacement, popupAlign = props5.popupAlign, builtinPlacements = props5.builtinPlacements;
- if (popupPlacement && builtinPlacements) {
- return getAlignFromPlacement(builtinPlacements, popupPlacement, popupAlign);
- }
- return popupAlign;
- });
- var _useInjectTrigger = useInjectTrigger(props5.tryPopPortal), setPortal = _useInjectTrigger.setPortal, popPortal = _useInjectTrigger.popPortal;
- var popupRef = ref(null);
- var setPopupRef = function setPopupRef2(val) {
- popupRef.value = val;
- };
- return {
- popPortal,
- setPortal,
- vcTriggerContext: inject("vcTriggerContext", {}),
- popupRef,
- setPopupRef,
- triggerRef: ref(null),
- align,
- focusTime: null,
- clickOutsideHandler: null,
- contextmenuOutsideHandler1: null,
- contextmenuOutsideHandler2: null,
- touchOutsideHandler: null,
- attachId: null,
- delayTimer: null,
- hasPopupMouseDown: false,
- preClickTime: null,
- preTouchTime: null,
- mouseDownTimeout: null,
- childOriginEvents: {}
- };
- },
- data: function data() {
- var _this = this, _this$setPortal;
- var props5 = this.$props;
- var popupVisible2;
- if (this.popupVisible !== void 0) {
- popupVisible2 = !!props5.popupVisible;
- } else {
- popupVisible2 = !!props5.defaultPopupVisible;
- }
- ALL_HANDLERS.forEach(function(h3) {
- _this["fire".concat(h3)] = function(e3) {
- _this.fireEvents(h3, e3);
- };
- });
- (_this$setPortal = this.setPortal) === null || _this$setPortal === void 0 ? void 0 : _this$setPortal.call(this, createVNode(Portal_default, {
- "key": "portal",
- "getContainer": this.getContainer,
- "didUpdate": this.handlePortalUpdate
- }, {
- default: this.getComponent
- }));
- return {
- prevPopupVisible: popupVisible2,
- sPopupVisible: popupVisible2,
- point: null
- };
- },
- watch: {
- popupVisible: function popupVisible(val) {
- if (val !== void 0) {
- this.prevPopupVisible = this.sPopupVisible;
- this.sPopupVisible = val;
- }
- }
- },
- created: function created() {
- provide("vcTriggerContext", {
- onPopupMouseDown: this.onPopupMouseDown
- });
- useProvidePortal(this);
- },
- deactivated: function deactivated() {
- this.setPopupVisible(false);
- },
- mounted: function mounted() {
- var _this2 = this;
- this.$nextTick(function() {
- _this2.updatedCal();
- });
- },
- updated: function updated() {
- var _this3 = this;
- this.$nextTick(function() {
- _this3.updatedCal();
- });
- },
- beforeUnmount: function beforeUnmount() {
- this.clearDelayTimer();
- this.clearOutsideHandler();
- clearTimeout(this.mouseDownTimeout);
- wrapperRaf.cancel(this.attachId);
- },
- methods: {
- updatedCal: function updatedCal() {
- var props5 = this.$props;
- var state = this.$data;
- if (state.sPopupVisible) {
- var currentDocument;
- if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextmenuToShow())) {
- currentDocument = props5.getDocument(this.getRootDomNode());
- this.clickOutsideHandler = addEventListenerWrap(currentDocument, "mousedown", this.onDocumentClick);
- }
- if (!this.touchOutsideHandler) {
- currentDocument = currentDocument || props5.getDocument(this.getRootDomNode());
- this.touchOutsideHandler = addEventListenerWrap(currentDocument, "touchstart", this.onDocumentClick, supportsPassive_default ? {
- passive: false
- } : false);
- }
- if (!this.contextmenuOutsideHandler1 && this.isContextmenuToShow()) {
- currentDocument = currentDocument || props5.getDocument(this.getRootDomNode());
- this.contextmenuOutsideHandler1 = addEventListenerWrap(currentDocument, "scroll", this.onContextmenuClose);
- }
- if (!this.contextmenuOutsideHandler2 && this.isContextmenuToShow()) {
- this.contextmenuOutsideHandler2 = addEventListenerWrap(window, "blur", this.onContextmenuClose);
- }
- } else {
- this.clearOutsideHandler();
- }
- },
- onMouseenter: function onMouseenter(e3) {
- var mouseEnterDelay = this.$props.mouseEnterDelay;
- this.fireEvents("onMouseenter", e3);
- this.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e3);
- },
- onMouseMove: function onMouseMove(e3) {
- this.fireEvents("onMousemove", e3);
- this.setPoint(e3);
- },
- onMouseleave: function onMouseleave(e3) {
- this.fireEvents("onMouseleave", e3);
- this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
- },
- onPopupMouseenter: function onPopupMouseenter() {
- this.clearDelayTimer();
- },
- onPopupMouseleave: function onPopupMouseleave(e3) {
- var _this$popupRef;
- if (e3 && e3.relatedTarget && !e3.relatedTarget.setTimeout && contains((_this$popupRef = this.popupRef) === null || _this$popupRef === void 0 ? void 0 : _this$popupRef.getElement(), e3.relatedTarget)) {
- return;
- }
- this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
- },
- onFocus: function onFocus(e3) {
- this.fireEvents("onFocus", e3);
- this.clearDelayTimer();
- if (this.isFocusToShow()) {
- this.focusTime = Date.now();
- this.delaySetPopupVisible(true, this.$props.focusDelay);
- }
- },
- onMousedown: function onMousedown(e3) {
- this.fireEvents("onMousedown", e3);
- this.preClickTime = Date.now();
- },
- onTouchstart: function onTouchstart(e3) {
- this.fireEvents("onTouchstart", e3);
- this.preTouchTime = Date.now();
- },
- onBlur: function onBlur(e3) {
- if (!contains(e3.target, e3.relatedTarget || document.activeElement)) {
- this.fireEvents("onBlur", e3);
- this.clearDelayTimer();
- if (this.isBlurToHide()) {
- this.delaySetPopupVisible(false, this.$props.blurDelay);
- }
- }
- },
- onContextmenu: function onContextmenu(e3) {
- e3.preventDefault();
- this.fireEvents("onContextmenu", e3);
- this.setPopupVisible(true, e3);
- },
- onContextmenuClose: function onContextmenuClose() {
- if (this.isContextmenuToShow()) {
- this.close();
- }
- },
- onClick: function onClick(event) {
- this.fireEvents("onClick", event);
- if (this.focusTime) {
- var preTime;
- if (this.preClickTime && this.preTouchTime) {
- preTime = Math.min(this.preClickTime, this.preTouchTime);
- } else if (this.preClickTime) {
- preTime = this.preClickTime;
- } else if (this.preTouchTime) {
- preTime = this.preTouchTime;
- }
- if (Math.abs(preTime - this.focusTime) < 20) {
- return;
- }
- this.focusTime = 0;
- }
- this.preClickTime = 0;
- this.preTouchTime = 0;
- if (this.isClickToShow() && (this.isClickToHide() || this.isBlurToHide()) && event && event.preventDefault) {
- event.preventDefault();
- }
- if (event && event.domEvent) {
- event.domEvent.preventDefault();
- }
- var nextVisible = !this.$data.sPopupVisible;
- if (this.isClickToHide() && !nextVisible || nextVisible && this.isClickToShow()) {
- this.setPopupVisible(!this.$data.sPopupVisible, event);
- }
- },
- onPopupMouseDown: function onPopupMouseDown() {
- var _this4 = this;
- var _this$vcTriggerContex = this.vcTriggerContext, vcTriggerContext = _this$vcTriggerContex === void 0 ? {} : _this$vcTriggerContex;
- this.hasPopupMouseDown = true;
- clearTimeout(this.mouseDownTimeout);
- this.mouseDownTimeout = setTimeout(function() {
- _this4.hasPopupMouseDown = false;
- }, 0);
- if (vcTriggerContext.onPopupMouseDown) {
- vcTriggerContext.onPopupMouseDown.apply(vcTriggerContext, arguments);
- }
- },
- onDocumentClick: function onDocumentClick(event) {
- if (this.$props.mask && !this.$props.maskClosable) {
- return;
- }
- var target = event.target;
- var root2 = this.getRootDomNode();
- var popupNode = this.getPopupDomNode();
- if (
- // mousedown on the target should also close popup when action is contextMenu.
- // https://github.com/ant-design/ant-design/issues/29853
- (!contains(root2, target) || this.isContextMenuOnly()) && !contains(popupNode, target) && !this.hasPopupMouseDown
- ) {
- this.delaySetPopupVisible(false, 0.1);
- }
- },
- getPopupDomNode: function getPopupDomNode() {
- var _this$popupRef2;
- return ((_this$popupRef2 = this.popupRef) === null || _this$popupRef2 === void 0 ? void 0 : _this$popupRef2.getElement()) || null;
- },
- getRootDomNode: function getRootDomNode() {
- var getTriggerDOMNode = this.$props.getTriggerDOMNode;
- if (getTriggerDOMNode) {
- var domNode = findDOMNode(this.triggerRef);
- return findDOMNode(getTriggerDOMNode(domNode));
- }
- try {
- var _domNode = findDOMNode(this.triggerRef);
- if (_domNode) {
- return _domNode;
- }
- } catch (err) {
- }
- return findDOMNode(this);
- },
- handleGetPopupClassFromAlign: function handleGetPopupClassFromAlign(align) {
- var className = [];
- var props5 = this.$props;
- var popupPlacement = props5.popupPlacement, builtinPlacements = props5.builtinPlacements, prefixCls = props5.prefixCls, alignPoint2 = props5.alignPoint, getPopupClassNameFromAlign = props5.getPopupClassNameFromAlign;
- if (popupPlacement && builtinPlacements) {
- className.push(getAlignPopupClassName(builtinPlacements, prefixCls, align, alignPoint2));
- }
- if (getPopupClassNameFromAlign) {
- className.push(getPopupClassNameFromAlign(align));
- }
- return className.join(" ");
- },
- getPopupAlign: function getPopupAlign() {
- var props5 = this.$props;
- var popupPlacement = props5.popupPlacement, popupAlign = props5.popupAlign, builtinPlacements = props5.builtinPlacements;
- if (popupPlacement && builtinPlacements) {
- return getAlignFromPlacement(builtinPlacements, popupPlacement, popupAlign);
- }
- return popupAlign;
- },
- getComponent: function getComponent3() {
- var _this5 = this;
- var mouseProps = {};
- if (this.isMouseEnterToShow()) {
- mouseProps.onMouseenter = this.onPopupMouseenter;
- }
- if (this.isMouseLeaveToHide()) {
- mouseProps.onMouseleave = this.onPopupMouseleave;
- }
- mouseProps.onMousedown = this.onPopupMouseDown;
- mouseProps[supportsPassive_default ? "onTouchstartPassive" : "onTouchstart"] = this.onPopupMouseDown;
- var handleGetPopupClassFromAlign2 = this.handleGetPopupClassFromAlign, getRootDomNode2 = this.getRootDomNode, getContainer5 = this.getContainer, $attrs = this.$attrs;
- var _this$$props = this.$props, prefixCls = _this$$props.prefixCls, destroyPopupOnHide = _this$$props.destroyPopupOnHide, popupClassName = _this$$props.popupClassName, popupAnimation = _this$$props.popupAnimation, popupTransitionName = _this$$props.popupTransitionName, popupStyle = _this$$props.popupStyle, mask = _this$$props.mask, maskAnimation = _this$$props.maskAnimation, maskTransitionName = _this$$props.maskTransitionName, zIndex = _this$$props.zIndex, stretch = _this$$props.stretch, alignPoint2 = _this$$props.alignPoint, mobile = _this$$props.mobile, forceRender = _this$$props.forceRender;
- var _this$$data = this.$data, sPopupVisible = _this$$data.sPopupVisible, point = _this$$data.point;
- var popupProps2 = _objectSpread2(_objectSpread2({
- prefixCls,
- destroyPopupOnHide,
- visible: sPopupVisible,
- point: alignPoint2 ? point : null,
- align: this.align,
- animation: popupAnimation,
- getClassNameFromAlign: handleGetPopupClassFromAlign2,
- stretch,
- getRootDomNode: getRootDomNode2,
- mask,
- zIndex,
- transitionName: popupTransitionName,
- maskAnimation,
- maskTransitionName,
- getContainer: getContainer5,
- class: popupClassName,
- style: popupStyle,
- onAlign: $attrs.onPopupAlign || noop2
- }, mouseProps), {}, {
- ref: this.setPopupRef,
- mobile,
- forceRender
- });
- return createVNode(Popup_default, popupProps2, {
- default: this.$slots.popup || function() {
- return getComponent(_this5, "popup");
- }
- });
- },
- attachParent: function attachParent(popupContainer) {
- var _this6 = this;
- wrapperRaf.cancel(this.attachId);
- var _this$$props2 = this.$props, getPopupContainer = _this$$props2.getPopupContainer, getDocument2 = _this$$props2.getDocument;
- var domNode = this.getRootDomNode();
- var mountNode;
- if (!getPopupContainer) {
- mountNode = getDocument2(this.getRootDomNode()).body;
- } else if (domNode || getPopupContainer.length === 0) {
- mountNode = getPopupContainer(domNode);
- }
- if (mountNode) {
- mountNode.appendChild(popupContainer);
- } else {
- this.attachId = wrapperRaf(function() {
- _this6.attachParent(popupContainer);
- });
- }
- },
- getContainer: function getContainer4() {
- var props5 = this.$props;
- var getDocument2 = props5.getDocument;
- var popupContainer = getDocument2(this.getRootDomNode()).createElement("div");
- popupContainer.style.position = "absolute";
- popupContainer.style.top = "0";
- popupContainer.style.left = "0";
- popupContainer.style.width = "100%";
- this.attachParent(popupContainer);
- return popupContainer;
- },
- setPopupVisible: function setPopupVisible(sPopupVisible, event) {
- var alignPoint2 = this.alignPoint, prevPopupVisible = this.sPopupVisible, onPopupVisibleChange = this.onPopupVisibleChange;
- this.clearDelayTimer();
- if (prevPopupVisible !== sPopupVisible) {
- if (!hasProp(this, "popupVisible")) {
- this.setState({
- sPopupVisible,
- prevPopupVisible
- });
- }
- onPopupVisibleChange && onPopupVisibleChange(sPopupVisible);
- }
- if (alignPoint2 && event && sPopupVisible) {
- this.setPoint(event);
- }
- },
- setPoint: function setPoint(point) {
- var alignPoint2 = this.$props.alignPoint;
- if (!alignPoint2 || !point)
- return;
- this.setState({
- point: {
- pageX: point.pageX,
- pageY: point.pageY
- }
- });
- },
- handlePortalUpdate: function handlePortalUpdate() {
- if (this.prevPopupVisible !== this.sPopupVisible) {
- this.afterPopupVisibleChange(this.sPopupVisible);
- }
- },
- delaySetPopupVisible: function delaySetPopupVisible(visible, delayS, event) {
- var _this7 = this;
- var delay = delayS * 1e3;
- this.clearDelayTimer();
- if (delay) {
- var point = event ? {
- pageX: event.pageX,
- pageY: event.pageY
- } : null;
- this.delayTimer = requestAnimationTimeout(function() {
- _this7.setPopupVisible(visible, point);
- _this7.clearDelayTimer();
- }, delay);
- } else {
- this.setPopupVisible(visible, event);
- }
- },
- clearDelayTimer: function clearDelayTimer() {
- if (this.delayTimer) {
- cancelAnimationTimeout(this.delayTimer);
- this.delayTimer = null;
- }
- },
- clearOutsideHandler: function clearOutsideHandler() {
- if (this.clickOutsideHandler) {
- this.clickOutsideHandler.remove();
- this.clickOutsideHandler = null;
- }
- if (this.contextmenuOutsideHandler1) {
- this.contextmenuOutsideHandler1.remove();
- this.contextmenuOutsideHandler1 = null;
- }
- if (this.contextmenuOutsideHandler2) {
- this.contextmenuOutsideHandler2.remove();
- this.contextmenuOutsideHandler2 = null;
- }
- if (this.touchOutsideHandler) {
- this.touchOutsideHandler.remove();
- this.touchOutsideHandler = null;
- }
- },
- createTwoChains: function createTwoChains(event) {
- var fn = function fn2() {
- };
- var events2 = getEvents(this);
- if (this.childOriginEvents[event] && events2[event]) {
- return this["fire".concat(event)];
- }
- fn = this.childOriginEvents[event] || events2[event] || fn;
- return fn;
- },
- isClickToShow: function isClickToShow() {
- var _this$$props3 = this.$props, action = _this$$props3.action, showAction = _this$$props3.showAction;
- return action.indexOf("click") !== -1 || showAction.indexOf("click") !== -1;
- },
- isContextMenuOnly: function isContextMenuOnly() {
- var action = this.$props.action;
- return action === "contextmenu" || action.length === 1 && action[0] === "contextmenu";
- },
- isContextmenuToShow: function isContextmenuToShow() {
- var _this$$props4 = this.$props, action = _this$$props4.action, showAction = _this$$props4.showAction;
- return action.indexOf("contextmenu") !== -1 || showAction.indexOf("contextmenu") !== -1;
- },
- isClickToHide: function isClickToHide() {
- var _this$$props5 = this.$props, action = _this$$props5.action, hideAction = _this$$props5.hideAction;
- return action.indexOf("click") !== -1 || hideAction.indexOf("click") !== -1;
- },
- isMouseEnterToShow: function isMouseEnterToShow() {
- var _this$$props6 = this.$props, action = _this$$props6.action, showAction = _this$$props6.showAction;
- return action.indexOf("hover") !== -1 || showAction.indexOf("mouseenter") !== -1;
- },
- isMouseLeaveToHide: function isMouseLeaveToHide() {
- var _this$$props7 = this.$props, action = _this$$props7.action, hideAction = _this$$props7.hideAction;
- return action.indexOf("hover") !== -1 || hideAction.indexOf("mouseleave") !== -1;
- },
- isFocusToShow: function isFocusToShow() {
- var _this$$props8 = this.$props, action = _this$$props8.action, showAction = _this$$props8.showAction;
- return action.indexOf("focus") !== -1 || showAction.indexOf("focus") !== -1;
- },
- isBlurToHide: function isBlurToHide() {
- var _this$$props9 = this.$props, action = _this$$props9.action, hideAction = _this$$props9.hideAction;
- return action.indexOf("focus") !== -1 || hideAction.indexOf("blur") !== -1;
- },
- forcePopupAlign: function forcePopupAlign() {
- if (this.$data.sPopupVisible) {
- var _this$popupRef3;
- (_this$popupRef3 = this.popupRef) === null || _this$popupRef3 === void 0 ? void 0 : _this$popupRef3.forceAlign();
- }
- },
- fireEvents: function fireEvents(type4, e3) {
- if (this.childOriginEvents[type4]) {
- this.childOriginEvents[type4](e3);
- }
- var event = this.$props[type4] || this.$attrs[type4];
- if (event) {
- event(e3);
- }
- },
- close: function close2() {
- this.setPopupVisible(false);
- }
- },
- render: function render2() {
- var _this8 = this;
- var $attrs = this.$attrs;
- var children = filterEmpty(getSlot(this));
- var alignPoint2 = this.$props.alignPoint;
- var child = children[0];
- this.childOriginEvents = getEvents(child);
- var newChildProps = {
- key: "trigger"
- };
- if (this.isContextmenuToShow()) {
- newChildProps.onContextmenu = this.onContextmenu;
- } else {
- newChildProps.onContextmenu = this.createTwoChains("onContextmenu");
- }
- if (this.isClickToHide() || this.isClickToShow()) {
- newChildProps.onClick = this.onClick;
- newChildProps.onMousedown = this.onMousedown;
- newChildProps[supportsPassive_default ? "onTouchstartPassive" : "onTouchstart"] = this.onTouchstart;
- } else {
- newChildProps.onClick = this.createTwoChains("onClick");
- newChildProps.onMousedown = this.createTwoChains("onMousedown");
- newChildProps[supportsPassive_default ? "onTouchstartPassive" : "onTouchstart"] = this.createTwoChains("onTouchstart");
- }
- if (this.isMouseEnterToShow()) {
- newChildProps.onMouseenter = this.onMouseenter;
- if (alignPoint2) {
- newChildProps.onMousemove = this.onMouseMove;
- }
- } else {
- newChildProps.onMouseenter = this.createTwoChains("onMouseenter");
- }
- if (this.isMouseLeaveToHide()) {
- newChildProps.onMouseleave = this.onMouseleave;
- } else {
- newChildProps.onMouseleave = this.createTwoChains("onMouseleave");
- }
- if (this.isFocusToShow() || this.isBlurToHide()) {
- newChildProps.onFocus = this.onFocus;
- newChildProps.onBlur = this.onBlur;
- } else {
- newChildProps.onFocus = this.createTwoChains("onFocus");
- newChildProps.onBlur = function(e3) {
- if (e3 && (!e3.relatedTarget || !contains(e3.target, e3.relatedTarget))) {
- _this8.createTwoChains("onBlur")(e3);
- }
- };
- }
- var childrenClassName = classNames_default(child && child.props && child.props.class, $attrs.class);
- if (childrenClassName) {
- newChildProps.class = childrenClassName;
- }
- var trigger2 = cloneElement(child, _objectSpread2(_objectSpread2({}, newChildProps), {}, {
- ref: "triggerRef"
- }), true, true);
- if (this.popPortal) {
- return trigger2;
- } else {
- var portal = createVNode(Portal_default, {
- "key": "portal",
- "getContainer": this.getContainer,
- "didUpdate": this.handlePortalUpdate
- }, {
- default: this.getComponent
- });
- return createVNode(Fragment, null, [portal, trigger2]);
- }
- }
- });
- // node_modules/ant-design-vue/es/vc-trigger/index.js
- var vc_trigger_default = Trigger_default;
- // node_modules/ant-design-vue/es/vc-select/SelectTrigger.js
- var _excluded3 = ["empty"];
- var getBuiltInPlacements = function getBuiltInPlacements2(dropdownMatchSelectWidth) {
- var adjustX = dropdownMatchSelectWidth === true ? 0 : 1;
- return {
- bottomLeft: {
- points: ["tl", "bl"],
- offset: [0, 4],
- overflow: {
- adjustX,
- adjustY: 1
- }
- },
- bottomRight: {
- points: ["tr", "br"],
- offset: [0, 4],
- overflow: {
- adjustX,
- adjustY: 1
- }
- },
- topLeft: {
- points: ["bl", "tl"],
- offset: [0, -4],
- overflow: {
- adjustX,
- adjustY: 1
- }
- },
- topRight: {
- points: ["br", "tr"],
- offset: [0, -4],
- overflow: {
- adjustX,
- adjustY: 1
- }
- }
- };
- };
- var SelectTrigger = defineComponent({
- name: "SelectTrigger",
- inheritAttrs: false,
- props: {
- dropdownAlign: Object,
- visible: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- dropdownClassName: String,
- dropdownStyle: vue_types_default.object,
- placement: String,
- empty: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- popupClassName: String,
- animation: String,
- transitionName: String,
- getPopupContainer: Function,
- dropdownRender: Function,
- containerWidth: Number,
- dropdownMatchSelectWidth: vue_types_default.oneOfType([Number, Boolean]).def(true),
- popupElement: vue_types_default.any,
- direction: String,
- getTriggerDOMNode: Function,
- onPopupVisibleChange: Function,
- onPopupMouseEnter: Function
- },
- setup: function setup16(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose;
- var builtInPlacements = computed(function() {
- var dropdownMatchSelectWidth = props5.dropdownMatchSelectWidth;
- return getBuiltInPlacements(dropdownMatchSelectWidth);
- });
- var popupRef = ref();
- expose({
- getPopupElement: function getPopupElement() {
- return popupRef.value;
- }
- });
- return function() {
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), _props$attrs$empty = _props$attrs.empty, empty2 = _props$attrs$empty === void 0 ? false : _props$attrs$empty, restProps = _objectWithoutProperties(_props$attrs, _excluded3);
- var visible = restProps.visible, dropdownAlign = restProps.dropdownAlign, prefixCls = restProps.prefixCls, popupElement = restProps.popupElement, dropdownClassName = restProps.dropdownClassName, dropdownStyle = restProps.dropdownStyle, _restProps$direction = restProps.direction, direction = _restProps$direction === void 0 ? "ltr" : _restProps$direction, placement = restProps.placement, dropdownMatchSelectWidth = restProps.dropdownMatchSelectWidth, containerWidth = restProps.containerWidth, dropdownRender = restProps.dropdownRender, animation = restProps.animation, transitionName2 = restProps.transitionName, getPopupContainer = restProps.getPopupContainer, getTriggerDOMNode = restProps.getTriggerDOMNode, onPopupVisibleChange = restProps.onPopupVisibleChange, onPopupMouseEnter = restProps.onPopupMouseEnter;
- var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
- var popupNode = popupElement;
- if (dropdownRender) {
- popupNode = dropdownRender({
- menuNode: popupElement,
- props: props5
- });
- }
- var mergedTransitionName = animation ? "".concat(dropdownPrefixCls, "-").concat(animation) : transitionName2;
- var popupStyle = _objectSpread2({
- minWidth: "".concat(containerWidth, "px")
- }, dropdownStyle);
- if (typeof dropdownMatchSelectWidth === "number") {
- popupStyle.width = "".concat(dropdownMatchSelectWidth, "px");
- } else if (dropdownMatchSelectWidth) {
- popupStyle.width = "".concat(containerWidth, "px");
- }
- return createVNode(vc_trigger_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "showAction": onPopupVisibleChange ? ["click"] : [],
- "hideAction": onPopupVisibleChange ? ["click"] : [],
- "popupPlacement": placement || (direction === "rtl" ? "bottomRight" : "bottomLeft"),
- "builtinPlacements": builtInPlacements.value,
- "prefixCls": dropdownPrefixCls,
- "popupTransitionName": mergedTransitionName,
- "popupAlign": dropdownAlign,
- "popupVisible": visible,
- "getPopupContainer": getPopupContainer,
- "popupClassName": classNames_default(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty2)),
- "popupStyle": popupStyle,
- "getTriggerDOMNode": getTriggerDOMNode,
- "onPopupVisibleChange": onPopupVisibleChange
- }), {
- default: slots.default,
- popup: function popup() {
- return createVNode("div", {
- "ref": popupRef,
- "onMouseenter": onPopupMouseEnter
- }, [popupNode]);
- }
- });
- };
- }
- });
- var SelectTrigger_default = SelectTrigger;
- // node_modules/ant-design-vue/es/_util/KeyCode.js
- var KeyCode = {
- /**
- * MAC_ENTER
- */
- MAC_ENTER: 3,
- /**
- * BACKSPACE
- */
- BACKSPACE: 8,
- /**
- * TAB
- */
- TAB: 9,
- /**
- * NUMLOCK on FF/Safari Mac
- */
- NUM_CENTER: 12,
- /**
- * ENTER
- */
- ENTER: 13,
- /**
- * SHIFT
- */
- SHIFT: 16,
- /**
- * CTRL
- */
- CTRL: 17,
- /**
- * ALT
- */
- ALT: 18,
- /**
- * PAUSE
- */
- PAUSE: 19,
- /**
- * CAPS_LOCK
- */
- CAPS_LOCK: 20,
- /**
- * ESC
- */
- ESC: 27,
- /**
- * SPACE
- */
- SPACE: 32,
- /**
- * PAGE_UP
- */
- PAGE_UP: 33,
- /**
- * PAGE_DOWN
- */
- PAGE_DOWN: 34,
- /**
- * END
- */
- END: 35,
- /**
- * HOME
- */
- HOME: 36,
- /**
- * LEFT
- */
- LEFT: 37,
- /**
- * UP
- */
- UP: 38,
- /**
- * RIGHT
- */
- RIGHT: 39,
- /**
- * DOWN
- */
- DOWN: 40,
- /**
- * PRINT_SCREEN
- */
- PRINT_SCREEN: 44,
- /**
- * INSERT
- */
- INSERT: 45,
- /**
- * DELETE
- */
- DELETE: 46,
- /**
- * ZERO
- */
- ZERO: 48,
- /**
- * ONE
- */
- ONE: 49,
- /**
- * TWO
- */
- TWO: 50,
- /**
- * THREE
- */
- THREE: 51,
- /**
- * FOUR
- */
- FOUR: 52,
- /**
- * FIVE
- */
- FIVE: 53,
- /**
- * SIX
- */
- SIX: 54,
- /**
- * SEVEN
- */
- SEVEN: 55,
- /**
- * EIGHT
- */
- EIGHT: 56,
- /**
- * NINE
- */
- NINE: 57,
- /**
- * QUESTION_MARK
- */
- QUESTION_MARK: 63,
- /**
- * A
- */
- A: 65,
- /**
- * B
- */
- B: 66,
- /**
- * C
- */
- C: 67,
- /**
- * D
- */
- D: 68,
- /**
- * E
- */
- E: 69,
- /**
- * F
- */
- F: 70,
- /**
- * G
- */
- G: 71,
- /**
- * H
- */
- H: 72,
- /**
- * I
- */
- I: 73,
- /**
- * J
- */
- J: 74,
- /**
- * K
- */
- K: 75,
- /**
- * L
- */
- L: 76,
- /**
- * M
- */
- M: 77,
- /**
- * N
- */
- N: 78,
- /**
- * O
- */
- O: 79,
- /**
- * P
- */
- P: 80,
- /**
- * Q
- */
- Q: 81,
- /**
- * R
- */
- R: 82,
- /**
- * S
- */
- S: 83,
- /**
- * T
- */
- T: 84,
- /**
- * U
- */
- U: 85,
- /**
- * V
- */
- V: 86,
- /**
- * W
- */
- W: 87,
- /**
- * X
- */
- X: 88,
- /**
- * Y
- */
- Y: 89,
- /**
- * Z
- */
- Z: 90,
- /**
- * META
- */
- META: 91,
- /**
- * WIN_KEY_RIGHT
- */
- WIN_KEY_RIGHT: 92,
- /**
- * CONTEXT_MENU
- */
- CONTEXT_MENU: 93,
- /**
- * NUM_ZERO
- */
- NUM_ZERO: 96,
- /**
- * NUM_ONE
- */
- NUM_ONE: 97,
- /**
- * NUM_TWO
- */
- NUM_TWO: 98,
- /**
- * NUM_THREE
- */
- NUM_THREE: 99,
- /**
- * NUM_FOUR
- */
- NUM_FOUR: 100,
- /**
- * NUM_FIVE
- */
- NUM_FIVE: 101,
- /**
- * NUM_SIX
- */
- NUM_SIX: 102,
- /**
- * NUM_SEVEN
- */
- NUM_SEVEN: 103,
- /**
- * NUM_EIGHT
- */
- NUM_EIGHT: 104,
- /**
- * NUM_NINE
- */
- NUM_NINE: 105,
- /**
- * NUM_MULTIPLY
- */
- NUM_MULTIPLY: 106,
- /**
- * NUM_PLUS
- */
- NUM_PLUS: 107,
- /**
- * NUM_MINUS
- */
- NUM_MINUS: 109,
- /**
- * NUM_PERIOD
- */
- NUM_PERIOD: 110,
- /**
- * NUM_DIVISION
- */
- NUM_DIVISION: 111,
- /**
- * F1
- */
- F1: 112,
- /**
- * F2
- */
- F2: 113,
- /**
- * F3
- */
- F3: 114,
- /**
- * F4
- */
- F4: 115,
- /**
- * F5
- */
- F5: 116,
- /**
- * F6
- */
- F6: 117,
- /**
- * F7
- */
- F7: 118,
- /**
- * F8
- */
- F8: 119,
- /**
- * F9
- */
- F9: 120,
- /**
- * F10
- */
- F10: 121,
- /**
- * F11
- */
- F11: 122,
- /**
- * F12
- */
- F12: 123,
- /**
- * NUMLOCK
- */
- NUMLOCK: 144,
- /**
- * SEMICOLON
- */
- SEMICOLON: 186,
- /**
- * DASH
- */
- DASH: 189,
- /**
- * EQUALS
- */
- EQUALS: 187,
- /**
- * COMMA
- */
- COMMA: 188,
- /**
- * PERIOD
- */
- PERIOD: 190,
- /**
- * SLASH
- */
- SLASH: 191,
- /**
- * APOSTROPHE
- */
- APOSTROPHE: 192,
- /**
- * SINGLE_QUOTE
- */
- SINGLE_QUOTE: 222,
- /**
- * OPEN_SQUARE_BRACKET
- */
- OPEN_SQUARE_BRACKET: 219,
- /**
- * BACKSLASH
- */
- BACKSLASH: 220,
- /**
- * CLOSE_SQUARE_BRACKET
- */
- CLOSE_SQUARE_BRACKET: 221,
- /**
- * WIN_KEY
- */
- WIN_KEY: 224,
- /**
- * MAC_FF_META
- */
- MAC_FF_META: 224,
- /**
- * WIN_IME
- */
- WIN_IME: 229,
- // ======================== Function ========================
- /**
- * whether text and modified key is entered at the same time.
- */
- isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e3) {
- var keyCode = e3.keyCode;
- if (e3.altKey && !e3.ctrlKey || e3.metaKey || // Function keys don't generate text
- keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
- return false;
- }
- switch (keyCode) {
- case KeyCode.ALT:
- case KeyCode.CAPS_LOCK:
- case KeyCode.CONTEXT_MENU:
- case KeyCode.CTRL:
- case KeyCode.DOWN:
- case KeyCode.END:
- case KeyCode.ESC:
- case KeyCode.HOME:
- case KeyCode.INSERT:
- case KeyCode.LEFT:
- case KeyCode.MAC_FF_META:
- case KeyCode.META:
- case KeyCode.NUMLOCK:
- case KeyCode.NUM_CENTER:
- case KeyCode.PAGE_DOWN:
- case KeyCode.PAGE_UP:
- case KeyCode.PAUSE:
- case KeyCode.PRINT_SCREEN:
- case KeyCode.RIGHT:
- case KeyCode.SHIFT:
- case KeyCode.UP:
- case KeyCode.WIN_KEY:
- case KeyCode.WIN_KEY_RIGHT:
- return false;
- default:
- return true;
- }
- },
- /**
- * whether character is entered.
- */
- isCharacterKey: function isCharacterKey(keyCode) {
- if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
- return true;
- }
- if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
- return true;
- }
- if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
- return true;
- }
- if (window.navigator.userAgent.indexOf("WebKit") !== -1 && keyCode === 0) {
- return true;
- }
- switch (keyCode) {
- case KeyCode.SPACE:
- case KeyCode.QUESTION_MARK:
- case KeyCode.NUM_PLUS:
- case KeyCode.NUM_MINUS:
- case KeyCode.NUM_PERIOD:
- case KeyCode.NUM_DIVISION:
- case KeyCode.SEMICOLON:
- case KeyCode.DASH:
- case KeyCode.EQUALS:
- case KeyCode.COMMA:
- case KeyCode.PERIOD:
- case KeyCode.SLASH:
- case KeyCode.APOSTROPHE:
- case KeyCode.SINGLE_QUOTE:
- case KeyCode.OPEN_SQUARE_BRACKET:
- case KeyCode.BACKSLASH:
- case KeyCode.CLOSE_SQUARE_BRACKET:
- return true;
- default:
- return false;
- }
- }
- };
- var KeyCode_default = KeyCode;
- // node_modules/ant-design-vue/es/vc-select/TransBtn.js
- var TransBtn = function TransBtn2(props5, _ref) {
- var _slots$default;
- var slots = _ref.slots;
- var className = props5.class, customizeIcon = props5.customizeIcon, customizeIconProps = props5.customizeIconProps, _onMousedown = props5.onMousedown, onClick2 = props5.onClick;
- var icon;
- if (typeof customizeIcon === "function") {
- icon = customizeIcon(customizeIconProps);
- } else {
- icon = customizeIcon;
- }
- return createVNode("span", {
- "class": className,
- "onMousedown": function onMousedown2(event) {
- event.preventDefault();
- if (_onMousedown) {
- _onMousedown(event);
- }
- },
- "style": {
- userSelect: "none",
- WebkitUserSelect: "none"
- },
- "unselectable": "on",
- "onClick": onClick2,
- "aria-hidden": true
- }, [icon !== void 0 ? icon : createVNode("span", {
- "class": className.split(/\s+/).map(function(cls) {
- return "".concat(cls, "-icon");
- })
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)])]);
- };
- TransBtn.inheritAttrs = false;
- TransBtn.displayName = "TransBtn";
- TransBtn.props = {
- class: String,
- customizeIcon: vue_types_default.any,
- customizeIconProps: vue_types_default.any,
- onMousedown: Function,
- onClick: Function
- };
- var TransBtn_default = TransBtn;
- // node_modules/ant-design-vue/es/_util/antInputDirective.js
- function onCompositionStart(e3) {
- e3.target.composing = true;
- }
- function onCompositionEnd(e3) {
- if (!e3.target.composing)
- return;
- e3.target.composing = false;
- trigger(e3.target, "input");
- }
- function trigger(el, type4) {
- var e3 = document.createEvent("HTMLEvents");
- e3.initEvent(type4, true, true);
- el.dispatchEvent(e3);
- }
- function addEventListener(el, event, handler5, options) {
- el.addEventListener(event, handler5, options);
- }
- var antInput = {
- created: function created2(el, binding) {
- if (!binding.modifiers || !binding.modifiers.lazy) {
- addEventListener(el, "compositionstart", onCompositionStart);
- addEventListener(el, "compositionend", onCompositionEnd);
- addEventListener(el, "change", onCompositionEnd);
- }
- }
- };
- var antInputDirective_default = antInput;
- // node_modules/ant-design-vue/es/vc-select/Selector/Input.js
- var inputProps = {
- inputRef: vue_types_default.any,
- prefixCls: String,
- id: String,
- inputElement: vue_types_default.VueNode,
- disabled: {
- type: Boolean,
- default: void 0
- },
- autofocus: {
- type: Boolean,
- default: void 0
- },
- autocomplete: String,
- editable: {
- type: Boolean,
- default: void 0
- },
- activeDescendantId: String,
- value: String,
- open: {
- type: Boolean,
- default: void 0
- },
- tabindex: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- /** Pass accessibility props to input */
- attrs: vue_types_default.object,
- onKeydown: {
- type: Function
- },
- onMousedown: {
- type: Function
- },
- onChange: {
- type: Function
- },
- onPaste: {
- type: Function
- },
- onCompositionstart: {
- type: Function
- },
- onCompositionend: {
- type: Function
- },
- onFocus: {
- type: Function
- },
- onBlur: {
- type: Function
- }
- };
- var Input = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Input",
- inheritAttrs: false,
- props: inputProps,
- setup: function setup17(props5) {
- var blurTimeout = null;
- var VCSelectContainerEvent = inject("VCSelectContainerEvent");
- return function() {
- var _inputNode, _inputNode$props;
- var prefixCls = props5.prefixCls, id = props5.id, inputElement = props5.inputElement, disabled = props5.disabled, tabindex = props5.tabindex, autofocus = props5.autofocus, autocomplete = props5.autocomplete, editable = props5.editable, activeDescendantId = props5.activeDescendantId, value = props5.value, _onKeydown = props5.onKeydown, _onMousedown = props5.onMousedown, onChange3 = props5.onChange, onPaste = props5.onPaste, _onCompositionstart = props5.onCompositionstart, _onCompositionend = props5.onCompositionend, _onFocus = props5.onFocus, _onBlur = props5.onBlur, open2 = props5.open, inputRef = props5.inputRef, attrs = props5.attrs;
- var inputNode = inputElement || withDirectives(createVNode("input", null, null), [[antInputDirective_default]]);
- var inputProps4 = inputNode.props || {};
- var onOriginKeyDown = inputProps4.onKeydown, onOriginInput = inputProps4.onInput, onOriginFocus = inputProps4.onFocus, onOriginBlur = inputProps4.onBlur, onOriginMouseDown = inputProps4.onMousedown, onOriginCompositionStart = inputProps4.onCompositionstart, onOriginCompositionEnd = inputProps4.onCompositionend, style = inputProps4.style;
- inputNode = cloneElement(inputNode, _extends(_objectSpread2(_objectSpread2(_objectSpread2({
- type: "search"
- }, inputProps4), {}, {
- id,
- ref: inputRef,
- disabled,
- tabindex,
- autocomplete: autocomplete || "off",
- autofocus,
- class: classNames_default("".concat(prefixCls, "-selection-search-input"), (_inputNode = inputNode) === null || _inputNode === void 0 ? void 0 : (_inputNode$props = _inputNode.props) === null || _inputNode$props === void 0 ? void 0 : _inputNode$props.class),
- role: "combobox",
- "aria-expanded": open2,
- "aria-haspopup": "listbox",
- "aria-owns": "".concat(id, "_list"),
- "aria-autocomplete": "list",
- "aria-controls": "".concat(id, "_list"),
- "aria-activedescendant": activeDescendantId
- }, attrs), {}, {
- value: editable ? value : "",
- readonly: !editable,
- unselectable: !editable ? "on" : null,
- style: _objectSpread2(_objectSpread2({}, style), {}, {
- opacity: editable ? null : 0
- }),
- onKeydown: function onKeydown(event) {
- _onKeydown(event);
- if (onOriginKeyDown) {
- onOriginKeyDown(event);
- }
- },
- onMousedown: function onMousedown2(event) {
- _onMousedown(event);
- if (onOriginMouseDown) {
- onOriginMouseDown(event);
- }
- },
- onInput: function onInput(event) {
- onChange3(event);
- if (onOriginInput) {
- onOriginInput(event);
- }
- },
- onCompositionstart: function onCompositionstart(event) {
- _onCompositionstart(event);
- if (onOriginCompositionStart) {
- onOriginCompositionStart(event);
- }
- },
- onCompositionend: function onCompositionend(event) {
- _onCompositionend(event);
- if (onOriginCompositionEnd) {
- onOriginCompositionEnd(event);
- }
- },
- onPaste,
- onFocus: function onFocus2() {
- clearTimeout(blurTimeout);
- onOriginFocus && onOriginFocus(arguments.length <= 0 ? void 0 : arguments[0]);
- _onFocus && _onFocus(arguments.length <= 0 ? void 0 : arguments[0]);
- VCSelectContainerEvent === null || VCSelectContainerEvent === void 0 ? void 0 : VCSelectContainerEvent.focus(arguments.length <= 0 ? void 0 : arguments[0]);
- },
- onBlur: function onBlur2() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- blurTimeout = setTimeout(function() {
- onOriginBlur && onOriginBlur(args[0]);
- _onBlur && _onBlur(args[0]);
- VCSelectContainerEvent === null || VCSelectContainerEvent === void 0 ? void 0 : VCSelectContainerEvent.blur(args[0]);
- }, 100);
- }
- }), inputNode.type === "textarea" ? {} : {
- type: "search"
- }), true, true);
- return inputNode;
- };
- }
- });
- var Input_default = Input;
- // node_modules/ant-design-vue/es/_util/pickAttrs.js
- var attributes = "accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid classname colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap";
- var eventsName = "onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError";
- var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
- var ariaPrefix = "aria-";
- var dataPrefix = "data-";
- function match(key2, prefix) {
- return key2.indexOf(prefix) === 0;
- }
- function pickAttrs(props5) {
- var ariaOnly = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var mergedConfig;
- if (ariaOnly === false) {
- mergedConfig = {
- aria: true,
- data: true,
- attr: true
- };
- } else if (ariaOnly === true) {
- mergedConfig = {
- aria: true
- };
- } else {
- mergedConfig = _objectSpread2({}, ariaOnly);
- }
- var attrs = {};
- Object.keys(props5).forEach(function(key2) {
- if (
- // Aria
- mergedConfig.aria && (key2 === "role" || match(key2, ariaPrefix)) || // Data
- mergedConfig.data && match(key2, dataPrefix) || // Attr
- mergedConfig.attr && (propList.includes(key2) || propList.includes(key2.toLowerCase()))
- ) {
- attrs[key2] = props5[key2];
- }
- });
- return attrs;
- }
- // node_modules/ant-design-vue/es/vc-overflow/context.js
- var OverflowContextProviderKey = Symbol("OverflowContextProviderKey");
- var OverflowContextProvider = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "OverflowContextProvider",
- inheritAttrs: false,
- props: {
- value: {
- type: Object
- }
- },
- setup: function setup18(props5, _ref) {
- var slots = _ref.slots;
- provide(OverflowContextProviderKey, computed(function() {
- return props5.value;
- }));
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- var useInjectOverflowContext = function useInjectOverflowContext2() {
- return inject(OverflowContextProviderKey, computed(function() {
- return null;
- }));
- };
- // node_modules/ant-design-vue/es/vc-overflow/Item.js
- var _excluded4 = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "display", "order", "component"];
- var UNDEFINED = void 0;
- var Item_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Item",
- props: {
- prefixCls: String,
- item: vue_types_default.any,
- renderItem: Function,
- responsive: Boolean,
- itemKey: {
- type: [String, Number]
- },
- registerSize: Function,
- display: Boolean,
- order: Number,
- component: vue_types_default.any,
- invalidate: Boolean
- },
- setup: function setup19(props5, _ref) {
- var slots = _ref.slots, expose = _ref.expose;
- var mergedHidden = computed(function() {
- return props5.responsive && !props5.display;
- });
- var itemNodeRef = ref();
- expose({
- itemNodeRef
- });
- function internalRegisterSize(width) {
- props5.registerSize(props5.itemKey, width);
- }
- onUnmounted(function() {
- internalRegisterSize(null);
- });
- return function() {
- var _slots$default;
- var prefixCls = props5.prefixCls, invalidate = props5.invalidate, item = props5.item, renderItem = props5.renderItem, responsive = props5.responsive, registerSize = props5.registerSize, itemKey2 = props5.itemKey, display = props5.display, order = props5.order, _props$component = props5.component, Component = _props$component === void 0 ? "div" : _props$component, restProps = _objectWithoutProperties(props5, _excluded4);
- var children = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- var childNode = renderItem && item !== UNDEFINED ? renderItem(item) : children;
- var overflowStyle;
- if (!invalidate) {
- overflowStyle = {
- opacity: mergedHidden.value ? 0 : 1,
- height: mergedHidden.value ? 0 : UNDEFINED,
- overflowY: mergedHidden.value ? "hidden" : UNDEFINED,
- order: responsive ? order : UNDEFINED,
- pointerEvents: mergedHidden.value ? "none" : UNDEFINED,
- position: mergedHidden.value ? "absolute" : UNDEFINED
- };
- }
- var overflowProps3 = {};
- if (mergedHidden.value) {
- overflowProps3["aria-hidden"] = true;
- }
- return createVNode(vc_resize_observer_default, {
- "disabled": !responsive,
- "onResize": function onResize(_ref2) {
- var offsetWidth = _ref2.offsetWidth;
- internalRegisterSize(offsetWidth);
- }
- }, {
- default: function _default9() {
- return createVNode(Component, _objectSpread2(_objectSpread2(_objectSpread2({
- "class": classNames_default(!invalidate && prefixCls),
- "style": overflowStyle
- }, overflowProps3), restProps), {}, {
- "ref": itemNodeRef
- }), {
- default: function _default10() {
- return [childNode];
- }
- });
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-overflow/RawItem.js
- var _excluded5 = ["component"];
- var _excluded22 = ["className"];
- var _excluded32 = ["class"];
- var RawItem_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "RawItem",
- inheritAttrs: false,
- props: {
- component: vue_types_default.any,
- title: vue_types_default.any,
- id: String,
- onMouseenter: {
- type: Function
- },
- onMouseleave: {
- type: Function
- },
- onClick: {
- type: Function
- },
- onKeydown: {
- type: Function
- },
- onFocus: {
- type: Function
- }
- },
- setup: function setup20(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var context2 = useInjectOverflowContext();
- return function() {
- if (!context2.value) {
- var _slots$default;
- var _props$component = props5.component, Component = _props$component === void 0 ? "div" : _props$component, _restProps = _objectWithoutProperties(props5, _excluded5);
- return createVNode(Component, _objectSpread2(_objectSpread2({}, _restProps), attrs), {
- default: function _default9() {
- return [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)];
- }
- });
- }
- var _context$value = context2.value, contextClassName = _context$value.className, restContext = _objectWithoutProperties(_context$value, _excluded22);
- var className = attrs.class, restProps = _objectWithoutProperties(attrs, _excluded32);
- return createVNode(OverflowContextProvider, {
- "value": null
- }, {
- default: function _default9() {
- return [createVNode(Item_default, _objectSpread2(_objectSpread2(_objectSpread2({
- "class": classNames_default(contextClassName, className)
- }, restContext), restProps), props5), slots)];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-overflow/Overflow.js
- var _excluded6 = ["class", "style"];
- var RESPONSIVE = "responsive";
- var INVALIDATE = "invalidate";
- function defaultRenderRest(omittedItems) {
- return "+ ".concat(omittedItems.length, " ...");
- }
- var overflowProps = function overflowProps2() {
- return {
- id: String,
- prefixCls: String,
- data: Array,
- itemKey: [String, Number, Function],
- /** Used for `responsive`. It will limit render node to avoid perf issue */
- itemWidth: {
- type: Number,
- default: 10
- },
- renderItem: Function,
- /** @private Do not use in your production. Render raw node that need wrap Item by developer self */
- renderRawItem: Function,
- maxCount: [Number, String],
- renderRest: Function,
- /** @private Do not use in your production. Render raw node that need wrap Item by developer self */
- renderRawRest: Function,
- suffix: vue_types_default.any,
- component: String,
- itemComponent: vue_types_default.any,
- /** @private This API may be refactor since not well design */
- onVisibleChange: Function,
- /** When set to `full`, ssr will render full items by default and remove at client side */
- ssr: String,
- onMousedown: Function
- };
- };
- var Overflow = defineComponent({
- name: "Overflow",
- inheritAttrs: false,
- props: overflowProps(),
- emits: ["visibleChange"],
- setup: function setup21(props5, _ref) {
- var attrs = _ref.attrs, emit = _ref.emit, slots = _ref.slots;
- var fullySSR = computed(function() {
- return props5.ssr === "full";
- });
- var containerWidth = ref(null);
- var mergedContainerWidth = computed(function() {
- return containerWidth.value || 0;
- });
- var itemWidths = ref(/* @__PURE__ */ new Map());
- var prevRestWidth = ref(0);
- var restWidth = ref(0);
- var suffixWidth = ref(0);
- var suffixFixedStart = ref(null);
- var displayCount = ref(null);
- var mergedDisplayCount = computed(function() {
- if (displayCount.value === null && fullySSR.value) {
- return Number.MAX_SAFE_INTEGER;
- }
- return displayCount.value || 0;
- });
- var restReady = ref(false);
- var itemPrefixCls = computed(function() {
- return "".concat(props5.prefixCls, "-item");
- });
- var mergedRestWidth = computed(function() {
- return Math.max(prevRestWidth.value, restWidth.value);
- });
- var isResponsive = computed(function() {
- return !!(props5.data.length && props5.maxCount === RESPONSIVE);
- });
- var invalidate = computed(function() {
- return props5.maxCount === INVALIDATE;
- });
- var showRest = computed(function() {
- return isResponsive.value || typeof props5.maxCount === "number" && props5.data.length > props5.maxCount;
- });
- var mergedData = computed(function() {
- var items = props5.data;
- if (isResponsive.value) {
- if (containerWidth.value === null && fullySSR.value) {
- items = props5.data;
- } else {
- items = props5.data.slice(0, Math.min(props5.data.length, mergedContainerWidth.value / props5.itemWidth));
- }
- } else if (typeof props5.maxCount === "number") {
- items = props5.data.slice(0, props5.maxCount);
- }
- return items;
- });
- var omittedItems = computed(function() {
- if (isResponsive.value) {
- return props5.data.slice(mergedDisplayCount.value + 1);
- }
- return props5.data.slice(mergedData.value.length);
- });
- var getKey5 = function getKey6(item, index3) {
- var _ref2;
- if (typeof props5.itemKey === "function") {
- return props5.itemKey(item);
- }
- return (_ref2 = props5.itemKey && (item === null || item === void 0 ? void 0 : item[props5.itemKey])) !== null && _ref2 !== void 0 ? _ref2 : index3;
- };
- var mergedRenderItem = computed(function() {
- return props5.renderItem || function(item) {
- return item;
- };
- });
- var updateDisplayCount = function updateDisplayCount2(count, notReady) {
- displayCount.value = count;
- if (!notReady) {
- restReady.value = count < props5.data.length - 1;
- emit("visibleChange", count);
- }
- };
- var onOverflowResize = function onOverflowResize2(_2, element) {
- containerWidth.value = element.clientWidth;
- };
- var registerSize = function registerSize2(key2, width) {
- var clone2 = new Map(itemWidths.value);
- if (width === null) {
- clone2.delete(key2);
- } else {
- clone2.set(key2, width);
- }
- itemWidths.value = clone2;
- };
- var registerOverflowSize = function registerOverflowSize2(_2, width) {
- prevRestWidth.value = restWidth.value;
- restWidth.value = width;
- };
- var registerSuffixSize = function registerSuffixSize2(_2, width) {
- suffixWidth.value = width;
- };
- var getItemWidth = function getItemWidth2(index3) {
- return itemWidths.value.get(getKey5(mergedData.value[index3], index3));
- };
- watch([mergedContainerWidth, itemWidths, restWidth, suffixWidth, function() {
- return props5.itemKey;
- }, mergedData], function() {
- if (mergedContainerWidth.value && mergedRestWidth.value && mergedData.value) {
- var totalWidth = suffixWidth.value;
- var len = mergedData.value.length;
- var lastIndex = len - 1;
- if (!len) {
- updateDisplayCount(0);
- suffixFixedStart.value = null;
- return;
- }
- for (var i3 = 0; i3 < len; i3 += 1) {
- var currentItemWidth = getItemWidth(i3);
- if (currentItemWidth === void 0) {
- updateDisplayCount(i3 - 1, true);
- break;
- }
- totalWidth += currentItemWidth;
- if (
- // Only one means `totalWidth` is the final width
- lastIndex === 0 && totalWidth <= mergedContainerWidth.value || // Last two width will be the final width
- i3 === lastIndex - 1 && totalWidth + getItemWidth(lastIndex) <= mergedContainerWidth.value
- ) {
- updateDisplayCount(lastIndex);
- suffixFixedStart.value = null;
- break;
- } else if (totalWidth + mergedRestWidth.value > mergedContainerWidth.value) {
- updateDisplayCount(i3 - 1);
- suffixFixedStart.value = totalWidth - currentItemWidth - suffixWidth.value + restWidth.value;
- break;
- }
- }
- if (props5.suffix && getItemWidth(0) + suffixWidth.value > mergedContainerWidth.value) {
- suffixFixedStart.value = null;
- }
- }
- });
- return function() {
- var displayRest = restReady.value && !!omittedItems.value.length;
- var itemComponent = props5.itemComponent, renderRawItem = props5.renderRawItem, renderRawRest = props5.renderRawRest, renderRest = props5.renderRest, _props$prefixCls = props5.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-overflow" : _props$prefixCls, suffix = props5.suffix, _props$component = props5.component, Component = _props$component === void 0 ? "div" : _props$component, id = props5.id, onMousedown2 = props5.onMousedown;
- var className = attrs.class, style = attrs.style, restAttrs = _objectWithoutProperties(attrs, _excluded6);
- var suffixStyle = {};
- if (suffixFixedStart.value !== null && isResponsive.value) {
- suffixStyle = {
- position: "absolute",
- left: "".concat(suffixFixedStart.value, "px"),
- top: 0
- };
- }
- var itemSharedProps = {
- prefixCls: itemPrefixCls.value,
- responsive: isResponsive.value,
- component: itemComponent,
- invalidate: invalidate.value
- };
- var internalRenderItemNode = renderRawItem ? function(item, index3) {
- var key2 = getKey5(item, index3);
- return createVNode(OverflowContextProvider, {
- "key": key2,
- "value": _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
- order: index3,
- item,
- itemKey: key2,
- registerSize,
- display: index3 <= mergedDisplayCount.value
- })
- }, {
- default: function _default9() {
- return [renderRawItem(item, index3)];
- }
- });
- } : function(item, index3) {
- var key2 = getKey5(item, index3);
- return createVNode(Item_default, _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
- "order": index3,
- "key": key2,
- "item": item,
- "renderItem": mergedRenderItem.value,
- "itemKey": key2,
- "registerSize": registerSize,
- "display": index3 <= mergedDisplayCount.value
- }), null);
- };
- var restNode = function restNode2() {
- return null;
- };
- var restContextProps = {
- order: displayRest ? mergedDisplayCount.value : Number.MAX_SAFE_INTEGER,
- className: "".concat(itemPrefixCls.value, " ").concat(itemPrefixCls.value, "-rest"),
- registerSize: registerOverflowSize,
- display: displayRest
- };
- if (!renderRawRest) {
- var mergedRenderRest = renderRest || defaultRenderRest;
- restNode = function restNode2() {
- return createVNode(Item_default, _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps), {
- default: function _default9() {
- return typeof mergedRenderRest === "function" ? mergedRenderRest(omittedItems.value) : mergedRenderRest;
- }
- });
- };
- } else if (renderRawRest) {
- restNode = function restNode2() {
- return createVNode(OverflowContextProvider, {
- "value": _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
- }, {
- default: function _default9() {
- return [renderRawRest(omittedItems.value)];
- }
- });
- };
- }
- var overflowNode = function overflowNode2() {
- var _slots$default;
- return createVNode(Component, _objectSpread2({
- "id": id,
- "class": classNames_default(!invalidate.value && prefixCls, className),
- "style": style,
- "onMousedown": onMousedown2
- }, restAttrs), {
- default: function _default9() {
- return [mergedData.value.map(internalRenderItemNode), showRest.value ? restNode() : null, suffix && createVNode(Item_default, _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
- "order": mergedDisplayCount.value,
- "class": "".concat(itemPrefixCls.value, "-suffix"),
- "registerSize": registerSuffixSize,
- "display": true,
- "style": suffixStyle
- }), {
- default: function _default10() {
- return suffix;
- }
- }), (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)];
- }
- });
- };
- return createVNode(vc_resize_observer_default, {
- "disabled": !isResponsive.value,
- "onResize": onOverflowResize
- }, {
- default: overflowNode
- });
- };
- }
- });
- Overflow.Item = RawItem_default;
- Overflow.RESPONSIVE = RESPONSIVE;
- Overflow.INVALIDATE = INVALIDATE;
- var Overflow_default = Overflow;
- // node_modules/ant-design-vue/es/vc-overflow/index.js
- var vc_overflow_default = Overflow_default;
- // node_modules/ant-design-vue/es/vc-tree-select/LegacyContext.js
- var TreeSelectLegacyContextPropsKey = Symbol("TreeSelectLegacyContextPropsKey");
- function useProvideLegacySelectContext(props5) {
- return provide(TreeSelectLegacyContextPropsKey, props5);
- }
- function useInjectLegacySelectContext() {
- return inject(TreeSelectLegacyContextPropsKey, {});
- }
- // node_modules/ant-design-vue/es/vc-select/Selector/MultipleSelector.js
- var props = {
- id: String,
- prefixCls: String,
- values: vue_types_default.array,
- open: {
- type: Boolean,
- default: void 0
- },
- searchValue: String,
- inputRef: vue_types_default.any,
- placeholder: vue_types_default.any,
- disabled: {
- type: Boolean,
- default: void 0
- },
- mode: String,
- showSearch: {
- type: Boolean,
- default: void 0
- },
- autofocus: {
- type: Boolean,
- default: void 0
- },
- autocomplete: String,
- activeDescendantId: String,
- tabindex: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- removeIcon: vue_types_default.any,
- choiceTransitionName: String,
- maxTagCount: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- maxTagTextLength: Number,
- maxTagPlaceholder: vue_types_default.any.def(function() {
- return function(omittedValues) {
- return "+ ".concat(omittedValues.length, " ...");
- };
- }),
- tagRender: Function,
- onToggleOpen: {
- type: Function
- },
- onRemove: Function,
- onInputChange: Function,
- onInputPaste: Function,
- onInputKeyDown: Function,
- onInputMouseDown: Function,
- onInputCompositionStart: Function,
- onInputCompositionEnd: Function
- };
- var onPreventMouseDown = function onPreventMouseDown2(event) {
- event.preventDefault();
- event.stopPropagation();
- };
- var SelectSelector = defineComponent({
- name: "MultipleSelectSelector",
- inheritAttrs: false,
- props,
- setup: function setup22(props5) {
- var measureRef = ref();
- var inputWidth = ref(0);
- var focused = ref(false);
- var legacyTreeSelectContext = useInjectLegacySelectContext();
- var selectionPrefixCls = computed(function() {
- return "".concat(props5.prefixCls, "-selection");
- });
- var inputValue = computed(function() {
- return props5.open || props5.mode === "tags" ? props5.searchValue : "";
- });
- var inputEditable = computed(function() {
- return props5.mode === "tags" || props5.showSearch && (props5.open || focused.value);
- });
- onMounted(function() {
- watch(inputValue, function() {
- inputWidth.value = measureRef.value.scrollWidth;
- }, {
- flush: "post",
- immediate: true
- });
- });
- function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
- return createVNode("span", {
- "class": classNames_default("".concat(selectionPrefixCls.value, "-item"), _defineProperty({}, "".concat(selectionPrefixCls.value, "-item-disabled"), itemDisabled)),
- "title": typeof title === "string" || typeof title === "number" ? title.toString() : void 0
- }, [createVNode("span", {
- "class": "".concat(selectionPrefixCls.value, "-item-content")
- }, [content]), closable && createVNode(TransBtn_default, {
- "class": "".concat(selectionPrefixCls.value, "-item-remove"),
- "onMousedown": onPreventMouseDown,
- "onClick": onClose,
- "customizeIcon": props5.removeIcon
- }, {
- default: function _default9() {
- return [createTextVNode("×")];
- }
- })]);
- }
- function customizeRenderSelector(value, content, itemDisabled, closable, onClose, option) {
- var onMouseDown2 = function onMouseDown3(e3) {
- onPreventMouseDown(e3);
- props5.onToggleOpen(!open);
- };
- var originData = option;
- if (legacyTreeSelectContext.keyEntities) {
- var _legacyTreeSelectCont;
- originData = ((_legacyTreeSelectCont = legacyTreeSelectContext.keyEntities[value]) === null || _legacyTreeSelectCont === void 0 ? void 0 : _legacyTreeSelectCont.node) || {};
- }
- return createVNode("span", {
- "key": value,
- "onMousedown": onMouseDown2
- }, [props5.tagRender({
- label: content,
- value,
- disabled: itemDisabled,
- closable,
- onClose,
- option: originData
- })]);
- }
- function renderItem(valueItem) {
- var itemDisabled = valueItem.disabled, label = valueItem.label, value = valueItem.value, option = valueItem.option;
- var closable = !props5.disabled && !itemDisabled;
- var displayLabel = label;
- if (typeof props5.maxTagTextLength === "number") {
- if (typeof label === "string" || typeof label === "number") {
- var strLabel = String(displayLabel);
- if (strLabel.length > props5.maxTagTextLength) {
- displayLabel = "".concat(strLabel.slice(0, props5.maxTagTextLength), "...");
- }
- }
- }
- var onClose = function onClose2(event) {
- var _props$onRemove;
- if (event)
- event.stopPropagation();
- (_props$onRemove = props5.onRemove) === null || _props$onRemove === void 0 ? void 0 : _props$onRemove.call(props5, valueItem);
- };
- return typeof props5.tagRender === "function" ? customizeRenderSelector(value, displayLabel, itemDisabled, closable, onClose, option) : defaultRenderSelector(label, displayLabel, itemDisabled, closable, onClose);
- }
- function renderRest(omittedValues) {
- var _props$maxTagPlacehol = props5.maxTagPlaceholder, maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function(omittedValues2) {
- return "+ ".concat(omittedValues2.length, " ...");
- } : _props$maxTagPlacehol;
- var content = typeof maxTagPlaceholder === "function" ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
- return defaultRenderSelector(content, content, false);
- }
- return function() {
- var id = props5.id, prefixCls = props5.prefixCls, values = props5.values, open2 = props5.open, inputRef = props5.inputRef, placeholder = props5.placeholder, disabled = props5.disabled, autofocus = props5.autofocus, autocomplete = props5.autocomplete, activeDescendantId = props5.activeDescendantId, tabindex = props5.tabindex, onInputChange = props5.onInputChange, onInputPaste = props5.onInputPaste, onInputKeyDown = props5.onInputKeyDown, onInputMouseDown = props5.onInputMouseDown, onInputCompositionStart = props5.onInputCompositionStart, onInputCompositionEnd = props5.onInputCompositionEnd;
- var inputNode = createVNode("div", {
- "class": "".concat(selectionPrefixCls.value, "-search"),
- "style": {
- width: inputWidth.value + "px"
- },
- "key": "input"
- }, [createVNode(Input_default, {
- "inputRef": inputRef,
- "open": open2,
- "prefixCls": prefixCls,
- "id": id,
- "inputElement": null,
- "disabled": disabled,
- "autofocus": autofocus,
- "autocomplete": autocomplete,
- "editable": inputEditable.value,
- "activeDescendantId": activeDescendantId,
- "value": inputValue.value,
- "onKeydown": onInputKeyDown,
- "onMousedown": onInputMouseDown,
- "onChange": onInputChange,
- "onPaste": onInputPaste,
- "onCompositionstart": onInputCompositionStart,
- "onCompositionend": onInputCompositionEnd,
- "tabindex": tabindex,
- "attrs": pickAttrs(props5, true),
- "onFocus": function onFocus2() {
- return focused.value = true;
- },
- "onBlur": function onBlur2() {
- return focused.value = false;
- }
- }, null), createVNode("span", {
- "ref": measureRef,
- "class": "".concat(selectionPrefixCls.value, "-search-mirror"),
- "aria-hidden": true
- }, [inputValue.value, createTextVNode(" ")])]);
- var selectionNode = createVNode(vc_overflow_default, {
- "prefixCls": "".concat(selectionPrefixCls.value, "-overflow"),
- "data": values,
- "renderItem": renderItem,
- "renderRest": renderRest,
- "suffix": inputNode,
- "itemKey": "key",
- "maxCount": props5.maxTagCount,
- "key": "overflow"
- }, null);
- return createVNode(Fragment, null, [selectionNode, !values.length && !inputValue.value && createVNode("span", {
- "class": "".concat(selectionPrefixCls.value, "-placeholder")
- }, [placeholder])]);
- };
- }
- });
- var MultipleSelector_default = SelectSelector;
- // node_modules/ant-design-vue/es/vc-select/Selector/SingleSelector.js
- var props2 = {
- inputElement: vue_types_default.any,
- id: String,
- prefixCls: String,
- values: vue_types_default.array,
- open: {
- type: Boolean,
- default: void 0
- },
- searchValue: String,
- inputRef: vue_types_default.any,
- placeholder: vue_types_default.any,
- disabled: {
- type: Boolean,
- default: void 0
- },
- mode: String,
- showSearch: {
- type: Boolean,
- default: void 0
- },
- autofocus: {
- type: Boolean,
- default: void 0
- },
- autocomplete: String,
- activeDescendantId: String,
- tabindex: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- activeValue: String,
- backfill: {
- type: Boolean,
- default: void 0
- },
- optionLabelRender: Function,
- onInputChange: Function,
- onInputPaste: Function,
- onInputKeyDown: Function,
- onInputMouseDown: Function,
- onInputCompositionStart: Function,
- onInputCompositionEnd: Function
- };
- var SingleSelector = defineComponent({
- name: "SingleSelector",
- setup: function setup23(props5) {
- var inputChanged = ref(false);
- var combobox = computed(function() {
- return props5.mode === "combobox";
- });
- var inputEditable = computed(function() {
- return combobox.value || props5.showSearch;
- });
- var inputValue = computed(function() {
- var inputValue2 = props5.searchValue || "";
- if (combobox.value && props5.activeValue && !inputChanged.value) {
- inputValue2 = props5.activeValue;
- }
- return inputValue2;
- });
- var legacyTreeSelectContext = useInjectLegacySelectContext();
- watch([combobox, function() {
- return props5.activeValue;
- }], function() {
- if (combobox.value) {
- inputChanged.value = false;
- }
- }, {
- immediate: true
- });
- var hasTextInput = computed(function() {
- return props5.mode !== "combobox" && !props5.open && !props5.showSearch ? false : !!inputValue.value;
- });
- var title = computed(function() {
- var item = props5.values[0];
- return item && (typeof item.label === "string" || typeof item.label === "number") ? item.label.toString() : void 0;
- });
- var renderPlaceholder = function renderPlaceholder2() {
- if (props5.values[0]) {
- return null;
- }
- var hiddenStyle = hasTextInput.value ? {
- visibility: "hidden"
- } : void 0;
- return createVNode("span", {
- "class": "".concat(props5.prefixCls, "-selection-placeholder"),
- "style": hiddenStyle
- }, [props5.placeholder]);
- };
- return function() {
- var _item$key2;
- var inputElement = props5.inputElement, prefixCls = props5.prefixCls, id = props5.id, values = props5.values, inputRef = props5.inputRef, disabled = props5.disabled, autofocus = props5.autofocus, autocomplete = props5.autocomplete, activeDescendantId = props5.activeDescendantId, open2 = props5.open, tabindex = props5.tabindex, optionLabelRender = props5.optionLabelRender, onInputKeyDown = props5.onInputKeyDown, onInputMouseDown = props5.onInputMouseDown, onInputChange = props5.onInputChange, onInputPaste = props5.onInputPaste, onInputCompositionStart = props5.onInputCompositionStart, onInputCompositionEnd = props5.onInputCompositionEnd;
- var item = values[0];
- var titleNode = null;
- if (item && legacyTreeSelectContext.customSlots) {
- var _item$key, _legacyTreeSelectCont, _originData$slots;
- var key2 = (_item$key = item.key) !== null && _item$key !== void 0 ? _item$key : item.value;
- var originData = ((_legacyTreeSelectCont = legacyTreeSelectContext.keyEntities[key2]) === null || _legacyTreeSelectCont === void 0 ? void 0 : _legacyTreeSelectCont.node) || {};
- titleNode = legacyTreeSelectContext.customSlots[(_originData$slots = originData.slots) === null || _originData$slots === void 0 ? void 0 : _originData$slots.title] || legacyTreeSelectContext.customSlots.title || item.label;
- if (typeof titleNode === "function") {
- titleNode = titleNode(originData);
- }
- } else {
- titleNode = optionLabelRender && item ? optionLabelRender(item.option) : item === null || item === void 0 ? void 0 : item.label;
- }
- return createVNode(Fragment, null, [createVNode("span", {
- "class": "".concat(prefixCls, "-selection-search")
- }, [createVNode(Input_default, {
- "inputRef": inputRef,
- "prefixCls": prefixCls,
- "id": id,
- "open": open2,
- "inputElement": inputElement,
- "disabled": disabled,
- "autofocus": autofocus,
- "autocomplete": autocomplete,
- "editable": inputEditable.value,
- "activeDescendantId": activeDescendantId,
- "value": inputValue.value,
- "onKeydown": onInputKeyDown,
- "onMousedown": onInputMouseDown,
- "onChange": function onChange3(e3) {
- inputChanged.value = true;
- onInputChange(e3);
- },
- "onPaste": onInputPaste,
- "onCompositionstart": onInputCompositionStart,
- "onCompositionend": onInputCompositionEnd,
- "tabindex": tabindex,
- "attrs": pickAttrs(props5, true)
- }, null)]), !combobox.value && item && !hasTextInput.value && createVNode("span", {
- "class": "".concat(prefixCls, "-selection-item"),
- "title": title.value
- }, [createVNode(Fragment, {
- "key": (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : item.value
- }, [titleNode])]), renderPlaceholder()]);
- };
- }
- });
- SingleSelector.props = props2;
- SingleSelector.inheritAttrs = false;
- var SingleSelector_default = SingleSelector;
- // node_modules/ant-design-vue/es/vc-select/utils/keyUtil.js
- function isValidateOpenKey(currentKeyCode) {
- return ![
- // System function button
- KeyCode_default.ESC,
- KeyCode_default.SHIFT,
- KeyCode_default.BACKSPACE,
- KeyCode_default.TAB,
- KeyCode_default.WIN_KEY,
- KeyCode_default.ALT,
- KeyCode_default.META,
- KeyCode_default.WIN_KEY_RIGHT,
- KeyCode_default.CTRL,
- KeyCode_default.SEMICOLON,
- KeyCode_default.EQUALS,
- KeyCode_default.CAPS_LOCK,
- KeyCode_default.CONTEXT_MENU,
- // F1-F12
- KeyCode_default.F1,
- KeyCode_default.F2,
- KeyCode_default.F3,
- KeyCode_default.F4,
- KeyCode_default.F5,
- KeyCode_default.F6,
- KeyCode_default.F7,
- KeyCode_default.F8,
- KeyCode_default.F9,
- KeyCode_default.F10,
- KeyCode_default.F11,
- KeyCode_default.F12
- ].includes(currentKeyCode);
- }
- // node_modules/ant-design-vue/es/vc-select/hooks/useLock.js
- function useLock() {
- var duration = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250;
- var lock = null;
- var timeout;
- onBeforeUnmount(function() {
- clearTimeout(timeout);
- });
- function doLock(locked) {
- if (locked || lock === null) {
- lock = locked;
- }
- clearTimeout(timeout);
- timeout = setTimeout(function() {
- lock = null;
- }, duration);
- }
- return [function() {
- return lock;
- }, doLock];
- }
- // node_modules/ant-design-vue/es/_util/createRef.js
- function createRef() {
- var func = function func2(node) {
- func2.current = node;
- };
- return func;
- }
- var createRef_default = createRef;
- // node_modules/ant-design-vue/es/vc-select/Selector/index.js
- var Selector = defineComponent({
- name: "Selector",
- inheritAttrs: false,
- props: {
- id: String,
- prefixCls: String,
- showSearch: {
- type: Boolean,
- default: void 0
- },
- open: {
- type: Boolean,
- default: void 0
- },
- /** Display in the Selector value, it's not same as `value` prop */
- values: vue_types_default.array,
- multiple: {
- type: Boolean,
- default: void 0
- },
- mode: String,
- searchValue: String,
- activeValue: String,
- inputElement: vue_types_default.any,
- autofocus: {
- type: Boolean,
- default: void 0
- },
- activeDescendantId: String,
- tabindex: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- disabled: {
- type: Boolean,
- default: void 0
- },
- placeholder: vue_types_default.any,
- removeIcon: vue_types_default.any,
- // Tags
- maxTagCount: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- maxTagTextLength: Number,
- maxTagPlaceholder: vue_types_default.any,
- tagRender: Function,
- optionLabelRender: Function,
- /** Check if `tokenSeparators` contains `\n` or `\r\n` */
- tokenWithEnter: {
- type: Boolean,
- default: void 0
- },
- // Motion
- choiceTransitionName: String,
- onToggleOpen: {
- type: Function
- },
- /** `onSearch` returns go next step boolean to check if need do toggle open */
- onSearch: Function,
- onSearchSubmit: Function,
- onRemove: Function,
- onInputKeyDown: {
- type: Function
- },
- /**
- * @private get real dom for trigger align.
- * This may be removed after React provides replacement of `findDOMNode`
- */
- domRef: Function
- },
- setup: function setup24(props5, _ref) {
- var expose = _ref.expose;
- var inputRef = createRef_default();
- var compositionStatus = false;
- var _useLock = useLock(0), _useLock2 = _slicedToArray(_useLock, 2), getInputMouseDown = _useLock2[0], setInputMouseDown = _useLock2[1];
- var onInternalInputKeyDown = function onInternalInputKeyDown2(event) {
- var which = event.which;
- if (which === KeyCode_default.UP || which === KeyCode_default.DOWN) {
- event.preventDefault();
- }
- if (props5.onInputKeyDown) {
- props5.onInputKeyDown(event);
- }
- if (which === KeyCode_default.ENTER && props5.mode === "tags" && !compositionStatus && !props5.open) {
- props5.onSearchSubmit(event.target.value);
- }
- if (isValidateOpenKey(which)) {
- props5.onToggleOpen(true);
- }
- };
- var onInternalInputMouseDown = function onInternalInputMouseDown2() {
- setInputMouseDown(true);
- };
- var pastedText = null;
- var triggerOnSearch = function triggerOnSearch2(value) {
- if (props5.onSearch(value, true, compositionStatus) !== false) {
- props5.onToggleOpen(true);
- }
- };
- var onInputCompositionStart = function onInputCompositionStart2() {
- compositionStatus = true;
- };
- var onInputCompositionEnd = function onInputCompositionEnd2(e3) {
- compositionStatus = false;
- if (props5.mode !== "combobox") {
- triggerOnSearch(e3.target.value);
- }
- };
- var onInputChange = function onInputChange2(event) {
- var value = event.target.value;
- if (props5.tokenWithEnter && pastedText && /[\r\n]/.test(pastedText)) {
- var replacedText = pastedText.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
- value = value.replace(replacedText, pastedText);
- }
- pastedText = null;
- triggerOnSearch(value);
- };
- var onInputPaste = function onInputPaste2(e3) {
- var clipboardData = e3.clipboardData;
- var value = clipboardData.getData("text");
- pastedText = value;
- };
- var onClick2 = function onClick3(_ref2) {
- var target = _ref2.target;
- if (target !== inputRef.current) {
- var isIE = document.body.style.msTouchAction !== void 0;
- if (isIE) {
- setTimeout(function() {
- inputRef.current.focus();
- });
- } else {
- inputRef.current.focus();
- }
- }
- };
- var onMousedown2 = function onMousedown3(event) {
- var inputMouseDown = getInputMouseDown();
- if (event.target !== inputRef.current && !inputMouseDown) {
- event.preventDefault();
- }
- if (props5.mode !== "combobox" && (!props5.showSearch || !inputMouseDown) || !props5.open) {
- if (props5.open) {
- props5.onSearch("", true, false);
- }
- props5.onToggleOpen();
- }
- };
- expose({
- focus: function focus() {
- inputRef.current.focus();
- },
- blur: function blur() {
- inputRef.current.blur();
- }
- });
- return function() {
- var prefixCls = props5.prefixCls, domRef = props5.domRef, mode = props5.mode;
- var sharedProps = {
- inputRef,
- onInputKeyDown: onInternalInputKeyDown,
- onInputMouseDown: onInternalInputMouseDown,
- onInputChange,
- onInputPaste,
- onInputCompositionStart,
- onInputCompositionEnd
- };
- var selectNode = mode === "multiple" || mode === "tags" ? createVNode(MultipleSelector_default, _objectSpread2(_objectSpread2({}, props5), sharedProps), null) : createVNode(SingleSelector_default, _objectSpread2(_objectSpread2({}, props5), sharedProps), null);
- return createVNode("div", {
- "ref": domRef,
- "class": "".concat(prefixCls, "-selector"),
- "onClick": onClick2,
- "onMousedown": onMousedown2
- }, [selectNode]);
- };
- }
- });
- var Selector_default = Selector;
- // node_modules/ant-design-vue/es/vc-select/hooks/useSelectTriggerControl.js
- function useSelectTriggerControl(refs, open2, triggerOpen) {
- function onGlobalMouseDown(event) {
- var _refs$, _refs$2, _refs$2$value;
- var target = event.target;
- if (target.shadowRoot && event.composed) {
- target = event.composedPath()[0] || target;
- }
- var elements = [(_refs$ = refs[0]) === null || _refs$ === void 0 ? void 0 : _refs$.value, (_refs$2 = refs[1]) === null || _refs$2 === void 0 ? void 0 : (_refs$2$value = _refs$2.value) === null || _refs$2$value === void 0 ? void 0 : _refs$2$value.getPopupElement()];
- if (open2.value && elements.every(function(element) {
- return element && !element.contains(target) && element !== target;
- })) {
- triggerOpen(false);
- }
- }
- onMounted(function() {
- window.addEventListener("mousedown", onGlobalMouseDown);
- });
- onBeforeUnmount(function() {
- window.removeEventListener("mousedown", onGlobalMouseDown);
- });
- }
- // node_modules/ant-design-vue/es/vc-select/hooks/useDelayReset.js
- function useDelayReset() {
- var timeout = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10;
- var bool = ref(false);
- var delay;
- var cancelLatest = function cancelLatest2() {
- clearTimeout(delay);
- };
- onMounted(function() {
- cancelLatest();
- });
- var delaySetBool = function delaySetBool2(value, callback) {
- cancelLatest();
- delay = setTimeout(function() {
- bool.value = value;
- if (callback) {
- callback();
- }
- }, timeout);
- };
- return [bool, delaySetBool, cancelLatest];
- }
- // node_modules/ant-design-vue/es/vc-select/hooks/useBaseProps.js
- var BaseSelectContextKey = Symbol("BaseSelectContextKey");
- function useProvideBaseSelectProps(props5) {
- return provide(BaseSelectContextKey, props5);
- }
- function useBaseProps() {
- return inject(BaseSelectContextKey, {});
- }
- // node_modules/ant-design-vue/es/vc-util/isMobile.js
- var isMobile_default = function() {
- if (typeof navigator === "undefined" || typeof window === "undefined") {
- return false;
- }
- var agent = navigator.userAgent || navigator.vendor || window.opera;
- if (/(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(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(agent === null || agent === void 0 ? void 0 : agent.substr(0, 4))) {
- return true;
- }
- return false;
- };
- // node_modules/ant-design-vue/es/_util/toReactive.js
- function toReactive(objectRef) {
- if (!isRef(objectRef))
- return reactive(objectRef);
- var proxy = new Proxy({}, {
- get: function get3(_2, p, receiver) {
- return Reflect.get(objectRef.value, p, receiver);
- },
- set: function set2(_2, p, value) {
- objectRef.value[p] = value;
- return true;
- },
- deleteProperty: function deleteProperty(_2, p) {
- return Reflect.deleteProperty(objectRef.value, p);
- },
- has: function has(_2, p) {
- return Reflect.has(objectRef.value, p);
- },
- ownKeys: function ownKeys2() {
- return Object.keys(objectRef.value);
- },
- getOwnPropertyDescriptor: function getOwnPropertyDescriptor() {
- return {
- enumerable: true,
- configurable: true
- };
- }
- });
- return reactive(proxy);
- }
- // node_modules/ant-design-vue/es/vc-select/BaseSelect.js
- var _excluded7 = ["prefixCls", "id", "open", "defaultOpen", "mode", "showSearch", "searchValue", "onSearch", "allowClear", "clearIcon", "showArrow", "inputIcon", "disabled", "loading", "getInputElement", "getPopupContainer", "placement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "optionLabelRender", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyup", "onKeydown", "onMousedown", "onClear", "omitDomProps", "getRawInputElement", "displayValues", "onDisplayValuesChange", "emptyOptions", "activeDescendantId", "activeValue", "OptionList"];
- var DEFAULT_OMIT_PROPS = ["value", "onChange", "removeIcon", "placeholder", "autofocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabindex", "OptionList", "notFoundContent"];
- var baseSelectPrivateProps = function baseSelectPrivateProps2() {
- return {
- prefixCls: String,
- id: String,
- omitDomProps: Array,
- // >>> Value
- displayValues: Array,
- onDisplayValuesChange: Function,
- // >>> Active
- /** Current dropdown list active item string value */
- activeValue: String,
- /** Link search input with target element */
- activeDescendantId: String,
- onActiveValueChange: Function,
- // >>> Search
- searchValue: String,
- /** Trigger onSearch, return false to prevent trigger open event */
- onSearch: Function,
- /** Trigger when search text match the `tokenSeparators`. Will provide split content */
- onSearchSplit: Function,
- maxLength: Number,
- OptionList: vue_types_default.any,
- /** Tell if provided `options` is empty */
- emptyOptions: Boolean
- };
- };
- var baseSelectPropsWithoutPrivate = function baseSelectPropsWithoutPrivate2() {
- return {
- showSearch: {
- type: Boolean,
- default: void 0
- },
- tagRender: {
- type: Function
- },
- optionLabelRender: {
- type: Function
- },
- direction: {
- type: String
- },
- // MISC
- tabindex: Number,
- autofocus: Boolean,
- notFoundContent: vue_types_default.any,
- placeholder: vue_types_default.any,
- onClear: Function,
- choiceTransitionName: String,
- // >>> Mode
- mode: String,
- // >>> Status
- disabled: {
- type: Boolean,
- default: void 0
- },
- loading: {
- type: Boolean,
- default: void 0
- },
- // >>> Open
- open: {
- type: Boolean,
- default: void 0
- },
- defaultOpen: {
- type: Boolean,
- default: void 0
- },
- onDropdownVisibleChange: {
- type: Function
- },
- // >>> Customize Input
- /** @private Internal usage. Do not use in your production. */
- getInputElement: {
- type: Function
- },
- /** @private Internal usage. Do not use in your production. */
- getRawInputElement: {
- type: Function
- },
- // >>> Selector
- maxTagTextLength: Number,
- maxTagCount: {
- type: [String, Number]
- },
- maxTagPlaceholder: vue_types_default.any,
- // >>> Search
- tokenSeparators: {
- type: Array
- },
- // >>> Icons
- allowClear: {
- type: Boolean,
- default: void 0
- },
- showArrow: {
- type: Boolean,
- default: void 0
- },
- inputIcon: vue_types_default.any,
- /** Clear all icon */
- clearIcon: vue_types_default.any,
- /** Selector remove icon */
- removeIcon: vue_types_default.any,
- // >>> Dropdown
- animation: String,
- transitionName: String,
- dropdownStyle: {
- type: Object
- },
- dropdownClassName: String,
- dropdownMatchSelectWidth: {
- type: [Boolean, Number],
- default: void 0
- },
- dropdownRender: {
- type: Function
- },
- dropdownAlign: Object,
- placement: {
- type: String
- },
- getPopupContainer: {
- type: Function
- },
- // >>> Focus
- showAction: {
- type: Array
- },
- onBlur: {
- type: Function
- },
- onFocus: {
- type: Function
- },
- // >>> Rest Events
- onKeyup: Function,
- onKeydown: Function,
- onMousedown: Function,
- onPopupScroll: Function,
- onInputKeyDown: Function,
- onMouseenter: Function,
- onMouseleave: Function,
- onClick: Function
- };
- };
- var baseSelectProps = function baseSelectProps2() {
- return _objectSpread2(_objectSpread2({}, baseSelectPrivateProps()), baseSelectPropsWithoutPrivate());
- };
- function isMultiple(mode) {
- return mode === "tags" || mode === "multiple";
- }
- var BaseSelect_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "BaseSelect",
- inheritAttrs: false,
- props: initDefaultProps_default(baseSelectProps(), {
- showAction: [],
- notFoundContent: "Not Found"
- }),
- setup: function setup25(props5, _ref) {
- var attrs = _ref.attrs, expose = _ref.expose, slots = _ref.slots;
- var multiple = computed(function() {
- return isMultiple(props5.mode);
- });
- var mergedShowSearch = computed(function() {
- return props5.showSearch !== void 0 ? props5.showSearch : multiple.value || props5.mode === "combobox";
- });
- var mobile = ref(false);
- onMounted(function() {
- mobile.value = isMobile_default();
- });
- var legacyTreeSelectContext = useInjectLegacySelectContext();
- var containerRef = ref(null);
- var selectorDomRef = createRef_default();
- var triggerRef = ref(null);
- var selectorRef = ref(null);
- var listRef = ref(null);
- var _useDelayReset = useDelayReset(), _useDelayReset2 = _slicedToArray(_useDelayReset, 3), mockFocused = _useDelayReset2[0], setMockFocused = _useDelayReset2[1], cancelSetMockFocused = _useDelayReset2[2];
- var focus = function focus2() {
- var _selectorRef$value;
- (_selectorRef$value = selectorRef.value) === null || _selectorRef$value === void 0 ? void 0 : _selectorRef$value.focus();
- };
- var blur = function blur2() {
- var _selectorRef$value2;
- (_selectorRef$value2 = selectorRef.value) === null || _selectorRef$value2 === void 0 ? void 0 : _selectorRef$value2.blur();
- };
- expose({
- focus,
- blur,
- scrollTo: function scrollTo3(arg) {
- var _listRef$value;
- return (_listRef$value = listRef.value) === null || _listRef$value === void 0 ? void 0 : _listRef$value.scrollTo(arg);
- }
- });
- var mergedSearchValue = computed(function() {
- var _props$displayValues$;
- if (props5.mode !== "combobox") {
- return props5.searchValue;
- }
- var val = (_props$displayValues$ = props5.displayValues[0]) === null || _props$displayValues$ === void 0 ? void 0 : _props$displayValues$.value;
- return typeof val === "string" || typeof val === "number" ? String(val) : "";
- });
- var initOpen = props5.open !== void 0 ? props5.open : props5.defaultOpen;
- var innerOpen = ref(initOpen);
- var mergedOpen = ref(initOpen);
- var setInnerOpen = function setInnerOpen2(val) {
- innerOpen.value = props5.open !== void 0 ? props5.open : val;
- mergedOpen.value = innerOpen.value;
- };
- watch(function() {
- return props5.open;
- }, function() {
- setInnerOpen(props5.open);
- });
- var emptyListContent = computed(function() {
- return !props5.notFoundContent && props5.emptyOptions;
- });
- watchEffect(function() {
- mergedOpen.value = innerOpen.value;
- if (props5.disabled || emptyListContent.value && mergedOpen.value && props5.mode === "combobox") {
- mergedOpen.value = false;
- }
- });
- var triggerOpen = computed(function() {
- return emptyListContent.value ? false : mergedOpen.value;
- });
- var onToggleOpen = function onToggleOpen2(newOpen) {
- var nextOpen = newOpen !== void 0 ? newOpen : !mergedOpen.value;
- if (innerOpen.value !== nextOpen && !props5.disabled) {
- setInnerOpen(nextOpen);
- if (props5.onDropdownVisibleChange) {
- props5.onDropdownVisibleChange(nextOpen);
- }
- }
- };
- var tokenWithEnter = computed(function() {
- return (props5.tokenSeparators || []).some(function(tokenSeparator) {
- return ["\n", "\r\n"].includes(tokenSeparator);
- });
- });
- var onInternalSearch = function onInternalSearch2(searchText, fromTyping, isCompositing) {
- var _props$onActiveValueC;
- var ret = true;
- var newSearchText = searchText;
- (_props$onActiveValueC = props5.onActiveValueChange) === null || _props$onActiveValueC === void 0 ? void 0 : _props$onActiveValueC.call(props5, null);
- var patchLabels = isCompositing ? null : getSeparatedContent(searchText, props5.tokenSeparators);
- if (props5.mode !== "combobox" && patchLabels) {
- var _props$onSearchSplit;
- newSearchText = "";
- (_props$onSearchSplit = props5.onSearchSplit) === null || _props$onSearchSplit === void 0 ? void 0 : _props$onSearchSplit.call(props5, patchLabels);
- onToggleOpen(false);
- ret = false;
- }
- if (props5.onSearch && mergedSearchValue.value !== newSearchText) {
- props5.onSearch(newSearchText, {
- source: fromTyping ? "typing" : "effect"
- });
- }
- return ret;
- };
- var onInternalSearchSubmit = function onInternalSearchSubmit2(searchText) {
- var _props$onSearch;
- if (!searchText || !searchText.trim()) {
- return;
- }
- (_props$onSearch = props5.onSearch) === null || _props$onSearch === void 0 ? void 0 : _props$onSearch.call(props5, searchText, {
- source: "submit"
- });
- };
- watch(mergedOpen, function() {
- if (!mergedOpen.value && !multiple.value && props5.mode !== "combobox") {
- onInternalSearch("", false, false);
- }
- }, {
- immediate: true,
- flush: "post"
- });
- watch(function() {
- return props5.disabled;
- }, function() {
- if (innerOpen.value && !!props5.disabled) {
- setInnerOpen(false);
- }
- }, {
- immediate: true
- });
- var _useLock = useLock(), _useLock2 = _slicedToArray(_useLock, 2), getClearLock = _useLock2[0], setClearLock = _useLock2[1];
- var onInternalKeyDown = function onInternalKeyDown2(event) {
- var _props$onKeydown;
- var clearLock = getClearLock();
- var which = event.which;
- if (which === KeyCode_default.ENTER) {
- if (props5.mode !== "combobox") {
- event.preventDefault();
- }
- if (!mergedOpen.value) {
- onToggleOpen(true);
- }
- }
- setClearLock(!!mergedSearchValue.value);
- if (which === KeyCode_default.BACKSPACE && !clearLock && multiple.value && !mergedSearchValue.value && props5.displayValues.length) {
- var cloneDisplayValues = _toConsumableArray(props5.displayValues);
- var removedDisplayValue = null;
- for (var i3 = cloneDisplayValues.length - 1; i3 >= 0; i3 -= 1) {
- var current2 = cloneDisplayValues[i3];
- if (!current2.disabled) {
- cloneDisplayValues.splice(i3, 1);
- removedDisplayValue = current2;
- break;
- }
- }
- if (removedDisplayValue) {
- props5.onDisplayValuesChange(cloneDisplayValues, {
- type: "remove",
- values: [removedDisplayValue]
- });
- }
- }
- for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- rest[_key - 1] = arguments[_key];
- }
- if (mergedOpen.value && listRef.value) {
- var _listRef$value2;
- (_listRef$value2 = listRef.value).onKeydown.apply(_listRef$value2, [event].concat(rest));
- }
- (_props$onKeydown = props5.onKeydown) === null || _props$onKeydown === void 0 ? void 0 : _props$onKeydown.call.apply(_props$onKeydown, [props5, event].concat(rest));
- };
- var onInternalKeyUp = function onInternalKeyUp2(event) {
- for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
- rest[_key2 - 1] = arguments[_key2];
- }
- if (mergedOpen.value && listRef.value) {
- var _listRef$value3;
- (_listRef$value3 = listRef.value).onKeyup.apply(_listRef$value3, [event].concat(rest));
- }
- if (props5.onKeyup) {
- props5.onKeyup.apply(props5, [event].concat(rest));
- }
- };
- var onSelectorRemove = function onSelectorRemove2(val) {
- var newValues = props5.displayValues.filter(function(i3) {
- return i3 !== val;
- });
- props5.onDisplayValuesChange(newValues, {
- type: "remove",
- values: [val]
- });
- };
- var focusRef = ref(false);
- var onContainerFocus = function onContainerFocus2() {
- setMockFocused(true);
- if (!props5.disabled) {
- if (props5.onFocus && !focusRef.value) {
- props5.onFocus.apply(props5, arguments);
- }
- if (props5.showAction && props5.showAction.includes("focus")) {
- onToggleOpen(true);
- }
- }
- focusRef.value = true;
- };
- var onContainerBlur = function onContainerBlur2() {
- setMockFocused(false, function() {
- focusRef.value = false;
- onToggleOpen(false);
- });
- if (props5.disabled) {
- return;
- }
- var searchVal = mergedSearchValue.value;
- if (searchVal) {
- if (props5.mode === "tags") {
- props5.onSearch(searchVal, {
- source: "submit"
- });
- } else if (props5.mode === "multiple") {
- props5.onSearch("", {
- source: "blur"
- });
- }
- }
- if (props5.onBlur) {
- props5.onBlur.apply(props5, arguments);
- }
- };
- provide("VCSelectContainerEvent", {
- focus: onContainerFocus,
- blur: onContainerBlur
- });
- var activeTimeoutIds = [];
- onMounted(function() {
- activeTimeoutIds.forEach(function(timeoutId) {
- return clearTimeout(timeoutId);
- });
- activeTimeoutIds.splice(0, activeTimeoutIds.length);
- });
- onBeforeUnmount(function() {
- activeTimeoutIds.forEach(function(timeoutId) {
- return clearTimeout(timeoutId);
- });
- activeTimeoutIds.splice(0, activeTimeoutIds.length);
- });
- var onInternalMouseDown = function onInternalMouseDown2(event) {
- var _triggerRef$value, _props$onMousedown;
- var target = event.target;
- var popupElement = (_triggerRef$value = triggerRef.value) === null || _triggerRef$value === void 0 ? void 0 : _triggerRef$value.getPopupElement();
- if (popupElement && popupElement.contains(target)) {
- var timeoutId = setTimeout(function() {
- var index3 = activeTimeoutIds.indexOf(timeoutId);
- if (index3 !== -1) {
- activeTimeoutIds.splice(index3, 1);
- }
- cancelSetMockFocused();
- if (!mobile.value && !popupElement.contains(document.activeElement)) {
- var _selectorRef$value3;
- (_selectorRef$value3 = selectorRef.value) === null || _selectorRef$value3 === void 0 ? void 0 : _selectorRef$value3.focus();
- }
- });
- activeTimeoutIds.push(timeoutId);
- }
- for (var _len3 = arguments.length, restArgs = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
- restArgs[_key3 - 1] = arguments[_key3];
- }
- (_props$onMousedown = props5.onMousedown) === null || _props$onMousedown === void 0 ? void 0 : _props$onMousedown.call.apply(_props$onMousedown, [props5, event].concat(restArgs));
- };
- var containerWidth = ref(null);
- var instance = getCurrentInstance();
- var onPopupMouseEnter = function onPopupMouseEnter2() {
- instance.update();
- };
- onMounted(function() {
- watch(triggerOpen, function() {
- if (triggerOpen.value) {
- var _containerRef$value;
- var newWidth = Math.ceil((_containerRef$value = containerRef.value) === null || _containerRef$value === void 0 ? void 0 : _containerRef$value.offsetWidth);
- if (containerWidth.value !== newWidth && !Number.isNaN(newWidth)) {
- containerWidth.value = newWidth;
- }
- }
- }, {
- immediate: true,
- flush: "post"
- });
- });
- useSelectTriggerControl([containerRef, triggerRef], triggerOpen, onToggleOpen);
- useProvideBaseSelectProps(toReactive(_objectSpread2(_objectSpread2({}, toRefs(props5)), {}, {
- open: mergedOpen,
- triggerOpen,
- showSearch: mergedShowSearch,
- multiple,
- toggleOpen: onToggleOpen
- })));
- return function() {
- var _classNames2;
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), prefixCls = _props$attrs.prefixCls, id = _props$attrs.id, open2 = _props$attrs.open, defaultOpen = _props$attrs.defaultOpen, mode = _props$attrs.mode, showSearch = _props$attrs.showSearch, searchValue = _props$attrs.searchValue, onSearch = _props$attrs.onSearch, allowClear = _props$attrs.allowClear, clearIcon = _props$attrs.clearIcon, showArrow = _props$attrs.showArrow, inputIcon = _props$attrs.inputIcon, disabled = _props$attrs.disabled, loading = _props$attrs.loading, getInputElement = _props$attrs.getInputElement, getPopupContainer = _props$attrs.getPopupContainer, placement = _props$attrs.placement, animation = _props$attrs.animation, transitionName2 = _props$attrs.transitionName, dropdownStyle = _props$attrs.dropdownStyle, dropdownClassName = _props$attrs.dropdownClassName, dropdownMatchSelectWidth = _props$attrs.dropdownMatchSelectWidth, dropdownRender = _props$attrs.dropdownRender, dropdownAlign = _props$attrs.dropdownAlign, showAction = _props$attrs.showAction, direction = _props$attrs.direction, tokenSeparators = _props$attrs.tokenSeparators, tagRender = _props$attrs.tagRender, optionLabelRender = _props$attrs.optionLabelRender, onPopupScroll = _props$attrs.onPopupScroll, onDropdownVisibleChange = _props$attrs.onDropdownVisibleChange, onFocus2 = _props$attrs.onFocus, onBlur2 = _props$attrs.onBlur, onKeyup = _props$attrs.onKeyup, onKeydown = _props$attrs.onKeydown, onMousedown2 = _props$attrs.onMousedown, onClear = _props$attrs.onClear, omitDomProps = _props$attrs.omitDomProps, getRawInputElement = _props$attrs.getRawInputElement, displayValues = _props$attrs.displayValues, onDisplayValuesChange = _props$attrs.onDisplayValuesChange, emptyOptions = _props$attrs.emptyOptions, activeDescendantId = _props$attrs.activeDescendantId, activeValue = _props$attrs.activeValue, OptionList2 = _props$attrs.OptionList, restProps = _objectWithoutProperties(_props$attrs, _excluded7);
- var customizeInputElement = mode === "combobox" && getInputElement && getInputElement() || null;
- var customizeRawInputElement = typeof getRawInputElement === "function" && getRawInputElement();
- var domProps = _objectSpread2({}, restProps);
- var onTriggerVisibleChange;
- if (customizeRawInputElement) {
- onTriggerVisibleChange = function onTriggerVisibleChange2(newOpen) {
- onToggleOpen(newOpen);
- };
- }
- DEFAULT_OMIT_PROPS.forEach(function(propName) {
- delete domProps[propName];
- });
- omitDomProps === null || omitDomProps === void 0 ? void 0 : omitDomProps.forEach(function(propName) {
- delete domProps[propName];
- });
- var mergedShowArrow = showArrow !== void 0 ? showArrow : loading || !multiple.value && mode !== "combobox";
- var arrowNode;
- if (mergedShowArrow) {
- arrowNode = createVNode(TransBtn_default, {
- "class": classNames_default("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
- "customizeIcon": inputIcon,
- "customizeIconProps": {
- loading,
- searchValue: mergedSearchValue.value,
- open: mergedOpen.value,
- focused: mockFocused.value,
- showSearch: mergedShowSearch.value
- }
- }, null);
- }
- var clearNode;
- var onClearMouseDown = function onClearMouseDown2() {
- onClear === null || onClear === void 0 ? void 0 : onClear();
- onDisplayValuesChange([], {
- type: "clear",
- values: displayValues
- });
- onInternalSearch("", false, false);
- };
- if (!disabled && allowClear && (displayValues.length || mergedSearchValue.value)) {
- clearNode = createVNode(TransBtn_default, {
- "class": "".concat(prefixCls, "-clear"),
- "onMousedown": onClearMouseDown,
- "customizeIcon": clearIcon
- }, {
- default: function _default9() {
- return [createTextVNode("×")];
- }
- });
- }
- var optionList = createVNode(OptionList2, {
- "ref": listRef
- }, _objectSpread2(_objectSpread2({}, legacyTreeSelectContext.customSlots), {}, {
- option: slots.option
- }));
- var mergedClassName = classNames_default(prefixCls, attrs.class, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused.value), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), multiple.value), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !multiple.value), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen.value), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch.value), _classNames2));
- var selectorNode = createVNode(SelectTrigger_default, {
- "ref": triggerRef,
- "disabled": disabled,
- "prefixCls": prefixCls,
- "visible": triggerOpen.value,
- "popupElement": optionList,
- "containerWidth": containerWidth.value,
- "animation": animation,
- "transitionName": transitionName2,
- "dropdownStyle": dropdownStyle,
- "dropdownClassName": dropdownClassName,
- "direction": direction,
- "dropdownMatchSelectWidth": dropdownMatchSelectWidth,
- "dropdownRender": dropdownRender,
- "dropdownAlign": dropdownAlign,
- "placement": placement,
- "getPopupContainer": getPopupContainer,
- "empty": emptyOptions,
- "getTriggerDOMNode": function getTriggerDOMNode() {
- return selectorDomRef.current;
- },
- "onPopupVisibleChange": onTriggerVisibleChange,
- "onPopupMouseEnter": onPopupMouseEnter
- }, {
- default: function _default9() {
- return customizeRawInputElement ? isValidElement(customizeRawInputElement) && cloneElement(customizeRawInputElement, {
- ref: selectorDomRef
- }, false, true) : createVNode(Selector_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "domRef": selectorDomRef,
- "prefixCls": prefixCls,
- "inputElement": customizeInputElement,
- "ref": selectorRef,
- "id": id,
- "showSearch": mergedShowSearch.value,
- "mode": mode,
- "activeDescendantId": activeDescendantId,
- "tagRender": tagRender,
- "optionLabelRender": optionLabelRender,
- "values": displayValues,
- "open": mergedOpen.value,
- "onToggleOpen": onToggleOpen,
- "activeValue": activeValue,
- "searchValue": mergedSearchValue.value,
- "onSearch": onInternalSearch,
- "onSearchSubmit": onInternalSearchSubmit,
- "onRemove": onSelectorRemove,
- "tokenWithEnter": tokenWithEnter.value
- }), null);
- }
- });
- var renderNode;
- if (customizeRawInputElement) {
- renderNode = selectorNode;
- } else {
- renderNode = createVNode("div", _objectSpread2(_objectSpread2({}, domProps), {}, {
- "class": mergedClassName,
- "ref": containerRef,
- "onMousedown": onInternalMouseDown,
- "onKeydown": onInternalKeyDown,
- "onKeyup": onInternalKeyUp
- }), [mockFocused.value && !mergedOpen.value && createVNode("span", {
- "style": {
- width: 0,
- height: 0,
- position: "absolute",
- overflow: "hidden",
- opacity: 0
- },
- "aria-live": "polite"
- }, ["".concat(displayValues.map(function(_ref2) {
- var label = _ref2.label, value = _ref2.value;
- return ["number", "string"].includes(_typeof(label)) ? label : value;
- }).join(", "))]), selectorNode, arrowNode, clearNode]);
- }
- return renderNode;
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-virtual-list/Filler.js
- var Filter = function Filter2(_ref, _ref2) {
- var _slots$default;
- var height = _ref.height, offset4 = _ref.offset, prefixCls = _ref.prefixCls, onInnerResize = _ref.onInnerResize;
- var slots = _ref2.slots;
- var outerStyle = {};
- var innerStyle = {
- display: "flex",
- flexDirection: "column"
- };
- if (offset4 !== void 0) {
- outerStyle = {
- height: "".concat(height, "px"),
- position: "relative",
- overflow: "hidden"
- };
- innerStyle = _objectSpread2(_objectSpread2({}, innerStyle), {}, {
- transform: "translateY(".concat(offset4, "px)"),
- position: "absolute",
- left: 0,
- right: 0,
- top: 0
- });
- }
- return createVNode("div", {
- "style": outerStyle
- }, [createVNode(vc_resize_observer_default, {
- "onResize": function onResize(_ref3) {
- var offsetHeight = _ref3.offsetHeight;
- if (offsetHeight && onInnerResize) {
- onInnerResize();
- }
- }
- }, {
- default: function _default9() {
- return [createVNode("div", {
- "style": innerStyle,
- "class": classNames_default(_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls))
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)])];
- }
- })]);
- };
- Filter.displayName = "Filter";
- Filter.inheritAttrs = false;
- Filter.props = {
- prefixCls: String,
- /** Virtual filler height. Should be `count * itemMinHeight` */
- height: Number,
- /** Set offset of visible items. Should be the top of start item position */
- offset: Number,
- onInnerResize: Function
- };
- var Filler_default = Filter;
- // node_modules/ant-design-vue/es/vc-virtual-list/Item.js
- var Item = function Item2(_ref, _ref2) {
- var _slots$default;
- var setRef = _ref.setRef;
- var slots = _ref2.slots;
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- return children && children.length ? cloneVNode(children[0], {
- ref: setRef
- }) : children;
- };
- Item.props = {
- setRef: {
- type: Function,
- default: function _default() {
- }
- }
- };
- var Item_default2 = Item;
- // node_modules/ant-design-vue/es/vc-virtual-list/ScrollBar.js
- var MIN_SIZE = 20;
- function getPageY(e3) {
- return "touches" in e3 ? e3.touches[0].pageY : e3.pageY;
- }
- var ScrollBar_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ScrollBar",
- inheritAttrs: false,
- props: {
- prefixCls: String,
- scrollTop: Number,
- scrollHeight: Number,
- height: Number,
- count: Number,
- onScroll: {
- type: Function
- },
- onStartMove: {
- type: Function
- },
- onStopMove: {
- type: Function
- }
- },
- setup: function setup26() {
- return {
- moveRaf: null,
- scrollbarRef: createRef_default(),
- thumbRef: createRef_default(),
- visibleTimeout: null,
- state: reactive({
- dragging: false,
- pageY: null,
- startTop: null,
- visible: false
- })
- };
- },
- watch: {
- scrollTop: {
- handler: function handler() {
- this.delayHidden();
- },
- flush: "post"
- }
- },
- mounted: function mounted2() {
- var _this$scrollbarRef$cu, _this$thumbRef$curren;
- (_this$scrollbarRef$cu = this.scrollbarRef.current) === null || _this$scrollbarRef$cu === void 0 ? void 0 : _this$scrollbarRef$cu.addEventListener("touchstart", this.onScrollbarTouchStart, supportsPassive_default ? {
- passive: false
- } : false);
- (_this$thumbRef$curren = this.thumbRef.current) === null || _this$thumbRef$curren === void 0 ? void 0 : _this$thumbRef$curren.addEventListener("touchstart", this.onMouseDown, supportsPassive_default ? {
- passive: false
- } : false);
- },
- beforeUnmount: function beforeUnmount2() {
- this.removeEvents();
- clearTimeout(this.visibleTimeout);
- },
- methods: {
- delayHidden: function delayHidden() {
- var _this = this;
- clearTimeout(this.visibleTimeout);
- this.state.visible = true;
- this.visibleTimeout = setTimeout(function() {
- _this.state.visible = false;
- }, 2e3);
- },
- onScrollbarTouchStart: function onScrollbarTouchStart(e3) {
- e3.preventDefault();
- },
- onContainerMouseDown: function onContainerMouseDown(e3) {
- e3.stopPropagation();
- e3.preventDefault();
- },
- // ======================= Clean =======================
- patchEvents: function patchEvents() {
- window.addEventListener("mousemove", this.onMouseMove);
- window.addEventListener("mouseup", this.onMouseUp);
- this.thumbRef.current.addEventListener("touchmove", this.onMouseMove, supportsPassive_default ? {
- passive: false
- } : false);
- this.thumbRef.current.addEventListener("touchend", this.onMouseUp);
- },
- removeEvents: function removeEvents() {
- window.removeEventListener("mousemove", this.onMouseMove);
- window.removeEventListener("mouseup", this.onMouseUp);
- this.scrollbarRef.current.removeEventListener("touchstart", this.onScrollbarTouchStart, supportsPassive_default ? {
- passive: false
- } : false);
- if (this.thumbRef.current) {
- this.thumbRef.current.removeEventListener("touchstart", this.onMouseDown, supportsPassive_default ? {
- passive: false
- } : false);
- this.thumbRef.current.removeEventListener("touchmove", this.onMouseMove, supportsPassive_default ? {
- passive: false
- } : false);
- this.thumbRef.current.removeEventListener("touchend", this.onMouseUp);
- }
- wrapperRaf.cancel(this.moveRaf);
- },
- // ======================= Thumb =======================
- onMouseDown: function onMouseDown(e3) {
- var onStartMove = this.$props.onStartMove;
- _extends(this.state, {
- dragging: true,
- pageY: getPageY(e3),
- startTop: this.getTop()
- });
- onStartMove();
- this.patchEvents();
- e3.stopPropagation();
- e3.preventDefault();
- },
- onMouseMove: function onMouseMove2(e3) {
- var _this$state = this.state, dragging = _this$state.dragging, pageY = _this$state.pageY, startTop = _this$state.startTop;
- var onScroll = this.$props.onScroll;
- wrapperRaf.cancel(this.moveRaf);
- if (dragging) {
- var offsetY = getPageY(e3) - pageY;
- var newTop = startTop + offsetY;
- var enableScrollRange = this.getEnableScrollRange();
- var enableHeightRange = this.getEnableHeightRange();
- var ptg = enableHeightRange ? newTop / enableHeightRange : 0;
- var newScrollTop = Math.ceil(ptg * enableScrollRange);
- this.moveRaf = wrapperRaf(function() {
- onScroll(newScrollTop);
- });
- }
- },
- onMouseUp: function onMouseUp() {
- var onStopMove = this.$props.onStopMove;
- this.state.dragging = false;
- onStopMove();
- this.removeEvents();
- },
- // ===================== Calculate =====================
- getSpinHeight: function getSpinHeight() {
- var _this$$props = this.$props, height = _this$$props.height, count = _this$$props.count;
- var baseHeight = height / count * 10;
- baseHeight = Math.max(baseHeight, MIN_SIZE);
- baseHeight = Math.min(baseHeight, height / 2);
- return Math.floor(baseHeight);
- },
- getEnableScrollRange: function getEnableScrollRange() {
- var _this$$props2 = this.$props, scrollHeight = _this$$props2.scrollHeight, height = _this$$props2.height;
- return scrollHeight - height || 0;
- },
- getEnableHeightRange: function getEnableHeightRange() {
- var height = this.$props.height;
- var spinHeight = this.getSpinHeight();
- return height - spinHeight || 0;
- },
- getTop: function getTop() {
- var scrollTop = this.$props.scrollTop;
- var enableScrollRange = this.getEnableScrollRange();
- var enableHeightRange = this.getEnableHeightRange();
- if (scrollTop === 0 || enableScrollRange === 0) {
- return 0;
- }
- var ptg = scrollTop / enableScrollRange;
- return ptg * enableHeightRange;
- },
- // Not show scrollbar when height is large than scrollHeight
- showScroll: function showScroll() {
- var _this$$props3 = this.$props, height = _this$$props3.height, scrollHeight = _this$$props3.scrollHeight;
- return scrollHeight > height;
- }
- },
- render: function render3() {
- var _this$state2 = this.state, dragging = _this$state2.dragging, visible = _this$state2.visible;
- var prefixCls = this.$props.prefixCls;
- var spinHeight = this.getSpinHeight() + "px";
- var top = this.getTop() + "px";
- var canScroll = this.showScroll();
- var mergedVisible = canScroll && visible;
- return createVNode("div", {
- "ref": this.scrollbarRef,
- "class": classNames_default("".concat(prefixCls, "-scrollbar"), _defineProperty({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
- "style": {
- width: "8px",
- top: 0,
- bottom: 0,
- right: 0,
- position: "absolute",
- display: mergedVisible ? void 0 : "none"
- },
- "onMousedown": this.onContainerMouseDown,
- "onMousemove": this.delayHidden
- }, [createVNode("div", {
- "ref": this.thumbRef,
- "class": classNames_default("".concat(prefixCls, "-scrollbar-thumb"), _defineProperty({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
- "style": {
- width: "100%",
- height: spinHeight,
- top,
- left: 0,
- position: "absolute",
- background: "rgba(0, 0, 0, 0.5)",
- borderRadius: "99px",
- cursor: "pointer",
- userSelect: "none"
- },
- "onMousedown": this.onMouseDown
- }, null)]);
- }
- });
- // node_modules/ant-design-vue/es/vc-virtual-list/hooks/useHeights.js
- function useHeights(mergedData, getKey5, onItemAdd, onItemRemove) {
- var instance = /* @__PURE__ */ new Map();
- var heights = /* @__PURE__ */ new Map();
- var updatedMark = ref(Symbol("update"));
- watch(mergedData, function() {
- updatedMark.value = Symbol("update");
- });
- var collectRaf = void 0;
- function cancelRaf() {
- wrapperRaf.cancel(collectRaf);
- }
- function collectHeight() {
- cancelRaf();
- collectRaf = wrapperRaf(function() {
- instance.forEach(function(element, key2) {
- if (element && element.offsetParent) {
- var offsetHeight = element.offsetHeight;
- if (heights.get(key2) !== offsetHeight) {
- updatedMark.value = Symbol("update");
- heights.set(key2, element.offsetHeight);
- }
- }
- });
- });
- }
- function setInstance(item, ins) {
- var key2 = getKey5(item);
- var origin = instance.get(key2);
- if (ins) {
- instance.set(key2, ins.$el || ins);
- collectHeight();
- } else {
- instance.delete(key2);
- }
- if (!origin !== !ins) {
- if (ins) {
- onItemAdd === null || onItemAdd === void 0 ? void 0 : onItemAdd(item);
- } else {
- onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(item);
- }
- }
- }
- onUnmounted(function() {
- cancelRaf();
- });
- return [setInstance, collectHeight, heights, updatedMark];
- }
- // node_modules/ant-design-vue/es/vc-virtual-list/hooks/useScrollTo.js
- function useScrollTo(containerRef, mergedData, heights, props5, getKey5, collectHeight, syncScrollTop, triggerFlash) {
- var scroll;
- return function(arg) {
- if (arg === null || arg === void 0) {
- triggerFlash();
- return;
- }
- wrapperRaf.cancel(scroll);
- var data8 = mergedData.value;
- var itemHeight = props5.itemHeight;
- if (typeof arg === "number") {
- syncScrollTop(arg);
- } else if (arg && _typeof(arg) === "object") {
- var index3;
- var align = arg.align;
- if ("index" in arg) {
- index3 = arg.index;
- } else {
- index3 = data8.findIndex(function(item) {
- return getKey5(item) === arg.key;
- });
- }
- var _arg$offset = arg.offset, offset4 = _arg$offset === void 0 ? 0 : _arg$offset;
- var syncScroll = function syncScroll2(times, targetAlign) {
- if (times < 0 || !containerRef.value)
- return;
- var height = containerRef.value.clientHeight;
- var needCollectHeight = false;
- var newTargetAlign = targetAlign;
- if (height) {
- var mergedAlign = targetAlign || align;
- var stackTop = 0;
- var itemTop = 0;
- var itemBottom = 0;
- var maxLen = Math.min(data8.length, index3);
- for (var i3 = 0; i3 <= maxLen; i3 += 1) {
- var key2 = getKey5(data8[i3]);
- itemTop = stackTop;
- var cacheHeight = heights.get(key2);
- itemBottom = itemTop + (cacheHeight === void 0 ? itemHeight : cacheHeight);
- stackTop = itemBottom;
- if (i3 === index3 && cacheHeight === void 0) {
- needCollectHeight = true;
- }
- }
- var scrollTop = containerRef.value.scrollTop;
- var targetTop = null;
- switch (mergedAlign) {
- case "top":
- targetTop = itemTop - offset4;
- break;
- case "bottom":
- targetTop = itemBottom - height + offset4;
- break;
- default: {
- var scrollBottom = scrollTop + height;
- if (itemTop < scrollTop) {
- newTargetAlign = "top";
- } else if (itemBottom > scrollBottom) {
- newTargetAlign = "bottom";
- }
- }
- }
- if (targetTop !== null && targetTop !== scrollTop) {
- syncScrollTop(targetTop);
- }
- }
- scroll = wrapperRaf(function() {
- if (needCollectHeight) {
- collectHeight();
- }
- syncScroll2(times - 1, newTargetAlign);
- }, 2);
- };
- syncScroll(5);
- }
- };
- }
- // node_modules/ant-design-vue/es/vc-virtual-list/utils/isFirefox.js
- var isFF = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
- var isFirefox_default = isFF;
- // node_modules/ant-design-vue/es/vc-virtual-list/hooks/useOriginScroll.js
- var useOriginScroll_default = function(isScrollAtTop, isScrollAtBottom) {
- var lock = false;
- var lockTimeout = null;
- function lockScroll() {
- clearTimeout(lockTimeout);
- lock = true;
- lockTimeout = setTimeout(function() {
- lock = false;
- }, 50);
- }
- return function(deltaY) {
- var smoothOffset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var originScroll = (
- // Pass origin wheel when on the top
- deltaY < 0 && isScrollAtTop.value || // Pass origin wheel when on the bottom
- deltaY > 0 && isScrollAtBottom.value
- );
- if (smoothOffset && originScroll) {
- clearTimeout(lockTimeout);
- lock = false;
- } else if (!originScroll || lock) {
- lockScroll();
- }
- return !lock && originScroll;
- };
- };
- // node_modules/ant-design-vue/es/vc-virtual-list/hooks/useFrameWheel.js
- function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, onWheelDelta) {
- var offsetRef = 0;
- var nextFrame = null;
- var wheelValue = null;
- var isMouseScroll = false;
- var originScroll = useOriginScroll_default(isScrollAtTop, isScrollAtBottom);
- function onWheel(event) {
- if (!inVirtual.value)
- return;
- wrapperRaf.cancel(nextFrame);
- var deltaY = event.deltaY;
- offsetRef += deltaY;
- wheelValue = deltaY;
- if (originScroll(deltaY))
- return;
- if (!isFirefox_default) {
- event.preventDefault();
- }
- nextFrame = wrapperRaf(function() {
- var patchMultiple = isMouseScroll ? 10 : 1;
- onWheelDelta(offsetRef * patchMultiple);
- offsetRef = 0;
- });
- }
- function onFireFoxScroll(event) {
- if (!inVirtual.value)
- return;
- isMouseScroll = event.detail === wheelValue;
- }
- return [onWheel, onFireFoxScroll];
- }
- // node_modules/ant-design-vue/es/vc-virtual-list/hooks/useMobileTouchMove.js
- var SMOOTH_PTG = 14 / 15;
- function useMobileTouchMove(inVirtual, listRef, callback) {
- var touched = false;
- var touchY = 0;
- var element = null;
- var interval = null;
- var cleanUpEvents = function cleanUpEvents2() {
- if (element) {
- element.removeEventListener("touchmove", onTouchMove);
- element.removeEventListener("touchend", onTouchEnd);
- }
- };
- var onTouchMove = function onTouchMove2(e3) {
- if (touched) {
- var currentY = Math.ceil(e3.touches[0].pageY);
- var offsetY = touchY - currentY;
- touchY = currentY;
- if (callback(offsetY)) {
- e3.preventDefault();
- }
- clearInterval(interval);
- interval = setInterval(function() {
- offsetY *= SMOOTH_PTG;
- if (!callback(offsetY, true) || Math.abs(offsetY) <= 0.1) {
- clearInterval(interval);
- }
- }, 16);
- }
- };
- var onTouchEnd = function onTouchEnd2() {
- touched = false;
- cleanUpEvents();
- };
- var onTouchStart = function onTouchStart2(e3) {
- cleanUpEvents();
- if (e3.touches.length === 1 && !touched) {
- touched = true;
- touchY = Math.ceil(e3.touches[0].pageY);
- element = e3.target;
- element.addEventListener("touchmove", onTouchMove, {
- passive: false
- });
- element.addEventListener("touchend", onTouchEnd);
- }
- };
- var noop15 = function noop16() {
- };
- onMounted(function() {
- document.addEventListener("touchmove", noop15, {
- passive: false
- });
- watch(inVirtual, function(val) {
- listRef.value.removeEventListener("touchstart", onTouchStart);
- cleanUpEvents();
- clearInterval(interval);
- if (val) {
- listRef.value.addEventListener("touchstart", onTouchStart, {
- passive: false
- });
- }
- }, {
- immediate: true
- });
- });
- onBeforeUnmount(function() {
- document.removeEventListener("touchmove", noop15);
- });
- }
- // node_modules/ant-design-vue/es/vc-virtual-list/List.js
- var _excluded8 = ["prefixCls", "height", "itemHeight", "fullHeight", "data", "itemKey", "virtual", "component", "onScroll", "children", "style", "class"];
- var EMPTY_DATA = [];
- var ScrollStyle = {
- overflowY: "auto",
- overflowAnchor: "none"
- };
- function renderChildren(list, startIndex, endIndex, setNodeRef, renderFunc, _ref) {
- var getKey5 = _ref.getKey;
- return list.slice(startIndex, endIndex + 1).map(function(item, index3) {
- var eleIndex = startIndex + index3;
- var node = renderFunc(item, eleIndex, {
- // style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
- });
- var key2 = getKey5(item);
- return createVNode(Item_default2, {
- "key": key2,
- "setRef": function setRef(ele) {
- return setNodeRef(item, ele);
- }
- }, {
- default: function _default9() {
- return [node];
- }
- });
- });
- }
- var List = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "List",
- inheritAttrs: false,
- props: {
- prefixCls: String,
- data: vue_types_default.array,
- height: Number,
- itemHeight: Number,
- /** If not match virtual scroll condition, Set List still use height of container. */
- fullHeight: {
- type: Boolean,
- default: void 0
- },
- itemKey: {
- type: [String, Number, Function],
- required: true
- },
- component: {
- type: [String, Object]
- },
- /** Set `false` will always use real scroll instead of virtual one */
- virtual: {
- type: Boolean,
- default: void 0
- },
- children: Function,
- onScroll: Function,
- onMousedown: Function,
- onMouseenter: Function,
- onVisibleChange: Function
- },
- setup: function setup27(props5, _ref2) {
- var expose = _ref2.expose;
- var useVirtual = computed(function() {
- var height = props5.height, itemHeight = props5.itemHeight, virtual = props5.virtual;
- return !!(virtual !== false && height && itemHeight);
- });
- var inVirtual = computed(function() {
- var height = props5.height, itemHeight = props5.itemHeight, data9 = props5.data;
- return useVirtual.value && data9 && itemHeight * data9.length > height;
- });
- var state = reactive({
- scrollTop: 0,
- scrollMoving: false
- });
- var data8 = computed(function() {
- return props5.data || EMPTY_DATA;
- });
- var mergedData = shallowRef([]);
- watch(data8, function() {
- mergedData.value = toRaw(data8.value).slice();
- }, {
- immediate: true
- });
- var itemKey2 = shallowRef(function(_item) {
- return void 0;
- });
- watch(function() {
- return props5.itemKey;
- }, function(val) {
- if (typeof val === "function") {
- itemKey2.value = val;
- } else {
- itemKey2.value = function(item) {
- return item === null || item === void 0 ? void 0 : item[val];
- };
- }
- }, {
- immediate: true
- });
- var componentRef = ref();
- var fillerInnerRef = ref();
- var scrollBarRef = ref();
- var getKey5 = function getKey6(item) {
- return itemKey2.value(item);
- };
- var sharedConfig = {
- getKey: getKey5
- };
- function syncScrollTop(newTop) {
- var value;
- if (typeof newTop === "function") {
- value = newTop(state.scrollTop);
- } else {
- value = newTop;
- }
- var alignedTop = keepInRange(value);
- if (componentRef.value) {
- componentRef.value.scrollTop = alignedTop;
- }
- state.scrollTop = alignedTop;
- }
- var _useHeights = useHeights(mergedData, getKey5, null, null), _useHeights2 = _slicedToArray(_useHeights, 4), setInstance = _useHeights2[0], collectHeight = _useHeights2[1], heights = _useHeights2[2], updatedMark = _useHeights2[3];
- var calRes = reactive({
- scrollHeight: void 0,
- start: 0,
- end: 0,
- offset: void 0
- });
- var offsetHeight = ref(0);
- onMounted(function() {
- nextTick(function() {
- var _fillerInnerRef$value;
- offsetHeight.value = ((_fillerInnerRef$value = fillerInnerRef.value) === null || _fillerInnerRef$value === void 0 ? void 0 : _fillerInnerRef$value.offsetHeight) || 0;
- });
- });
- onUpdated(function() {
- nextTick(function() {
- var _fillerInnerRef$value2;
- offsetHeight.value = ((_fillerInnerRef$value2 = fillerInnerRef.value) === null || _fillerInnerRef$value2 === void 0 ? void 0 : _fillerInnerRef$value2.offsetHeight) || 0;
- });
- });
- watch([useVirtual, mergedData], function() {
- if (!useVirtual.value) {
- _extends(calRes, {
- scrollHeight: void 0,
- start: 0,
- end: mergedData.value.length - 1,
- offset: void 0
- });
- }
- }, {
- immediate: true
- });
- watch([useVirtual, mergedData, offsetHeight, inVirtual], function() {
- if (useVirtual.value && !inVirtual.value) {
- _extends(calRes, {
- scrollHeight: offsetHeight.value,
- start: 0,
- end: mergedData.value.length - 1,
- offset: void 0
- });
- }
- if (componentRef.value) {
- state.scrollTop = componentRef.value.scrollTop;
- }
- }, {
- immediate: true
- });
- watch([inVirtual, useVirtual, function() {
- return state.scrollTop;
- }, mergedData, updatedMark, function() {
- return props5.height;
- }, offsetHeight], function() {
- if (!useVirtual.value || !inVirtual.value) {
- return;
- }
- var itemTop = 0;
- var startIndex;
- var startOffset;
- var endIndex;
- var dataLen = mergedData.value.length;
- var data9 = mergedData.value;
- var scrollTop = state.scrollTop;
- var itemHeight = props5.itemHeight, height = props5.height;
- var scrollTopHeight = scrollTop + height;
- for (var i3 = 0; i3 < dataLen; i3 += 1) {
- var item = data9[i3];
- var key2 = getKey5(item);
- var cacheHeight = heights.get(key2);
- if (cacheHeight === void 0) {
- cacheHeight = itemHeight;
- }
- var currentItemBottom = itemTop + cacheHeight;
- if (startIndex === void 0 && currentItemBottom >= scrollTop) {
- startIndex = i3;
- startOffset = itemTop;
- }
- if (endIndex === void 0 && currentItemBottom > scrollTopHeight) {
- endIndex = i3;
- }
- itemTop = currentItemBottom;
- }
- if (startIndex === void 0) {
- startIndex = 0;
- startOffset = 0;
- endIndex = Math.ceil(height / itemHeight);
- }
- if (endIndex === void 0) {
- endIndex = dataLen - 1;
- }
- endIndex = Math.min(endIndex + 1, dataLen);
- _extends(calRes, {
- scrollHeight: itemTop,
- start: startIndex,
- end: endIndex,
- offset: startOffset
- });
- }, {
- immediate: true
- });
- var maxScrollHeight = computed(function() {
- return calRes.scrollHeight - props5.height;
- });
- function keepInRange(newScrollTop) {
- var newTop = newScrollTop;
- if (!Number.isNaN(maxScrollHeight.value)) {
- newTop = Math.min(newTop, maxScrollHeight.value);
- }
- newTop = Math.max(newTop, 0);
- return newTop;
- }
- var isScrollAtTop = computed(function() {
- return state.scrollTop <= 0;
- });
- var isScrollAtBottom = computed(function() {
- return state.scrollTop >= maxScrollHeight.value;
- });
- var originScroll = useOriginScroll_default(isScrollAtTop, isScrollAtBottom);
- function onScrollBar(newScrollTop) {
- var newTop = newScrollTop;
- syncScrollTop(newTop);
- }
- function onFallbackScroll(e3) {
- var _props$onScroll;
- var newScrollTop = e3.currentTarget.scrollTop;
- if (newScrollTop !== state.scrollTop) {
- syncScrollTop(newScrollTop);
- }
- (_props$onScroll = props5.onScroll) === null || _props$onScroll === void 0 ? void 0 : _props$onScroll.call(props5, e3);
- }
- var _useFrameWheel = useFrameWheel(useVirtual, isScrollAtTop, isScrollAtBottom, function(offsetY) {
- syncScrollTop(function(top) {
- var newTop = top + offsetY;
- return newTop;
- });
- }), _useFrameWheel2 = _slicedToArray(_useFrameWheel, 2), onRawWheel = _useFrameWheel2[0], onFireFoxScroll = _useFrameWheel2[1];
- useMobileTouchMove(useVirtual, componentRef, function(deltaY, smoothOffset) {
- if (originScroll(deltaY, smoothOffset)) {
- return false;
- }
- onRawWheel({
- preventDefault: function preventDefault() {
- },
- deltaY
- });
- return true;
- });
- function onMozMousePixelScroll(e3) {
- if (useVirtual.value) {
- e3.preventDefault();
- }
- }
- var removeEventListener3 = function removeEventListener4() {
- if (componentRef.value) {
- componentRef.value.removeEventListener("wheel", onRawWheel, supportsPassive_default ? {
- passive: false
- } : false);
- componentRef.value.removeEventListener("DOMMouseScroll", onFireFoxScroll);
- componentRef.value.removeEventListener("MozMousePixelScroll", onMozMousePixelScroll);
- }
- };
- watchEffect(function() {
- nextTick(function() {
- if (componentRef.value) {
- removeEventListener3();
- componentRef.value.addEventListener("wheel", onRawWheel, supportsPassive_default ? {
- passive: false
- } : false);
- componentRef.value.addEventListener("DOMMouseScroll", onFireFoxScroll);
- componentRef.value.addEventListener("MozMousePixelScroll", onMozMousePixelScroll);
- }
- });
- });
- onBeforeUnmount(function() {
- removeEventListener3();
- });
- var scrollTo3 = useScrollTo(componentRef, mergedData, heights, props5, getKey5, collectHeight, syncScrollTop, function() {
- var _scrollBarRef$value;
- (_scrollBarRef$value = scrollBarRef.value) === null || _scrollBarRef$value === void 0 ? void 0 : _scrollBarRef$value.delayHidden();
- });
- expose({
- scrollTo: scrollTo3
- });
- var componentStyle = computed(function() {
- var cs = null;
- if (props5.height) {
- cs = _objectSpread2(_defineProperty({}, props5.fullHeight ? "height" : "maxHeight", props5.height + "px"), ScrollStyle);
- if (useVirtual.value) {
- cs.overflowY = "hidden";
- if (state.scrollMoving) {
- cs.pointerEvents = "none";
- }
- }
- }
- return cs;
- });
- watch([function() {
- return calRes.start;
- }, function() {
- return calRes.end;
- }, mergedData], function() {
- if (props5.onVisibleChange) {
- var renderList = mergedData.value.slice(calRes.start, calRes.end + 1);
- props5.onVisibleChange(renderList, mergedData.value);
- }
- }, {
- flush: "post"
- });
- return {
- state,
- mergedData,
- componentStyle,
- onFallbackScroll,
- onScrollBar,
- componentRef,
- useVirtual,
- calRes,
- collectHeight,
- setInstance,
- sharedConfig,
- scrollBarRef,
- fillerInnerRef
- };
- },
- render: function render4() {
- var _this = this;
- var _this$$props$this$$at = _objectSpread2(_objectSpread2({}, this.$props), this.$attrs), _this$$props$this$$at2 = _this$$props$this$$at.prefixCls, prefixCls = _this$$props$this$$at2 === void 0 ? "rc-virtual-list" : _this$$props$this$$at2, height = _this$$props$this$$at.height, itemHeight = _this$$props$this$$at.itemHeight, fullHeight = _this$$props$this$$at.fullHeight, data8 = _this$$props$this$$at.data, itemKey2 = _this$$props$this$$at.itemKey, virtual = _this$$props$this$$at.virtual, _this$$props$this$$at3 = _this$$props$this$$at.component, Component = _this$$props$this$$at3 === void 0 ? "div" : _this$$props$this$$at3, onScroll = _this$$props$this$$at.onScroll, _this$$props$this$$at4 = _this$$props$this$$at.children, children = _this$$props$this$$at4 === void 0 ? this.$slots.default : _this$$props$this$$at4, style = _this$$props$this$$at.style, className = _this$$props$this$$at.class, restProps = _objectWithoutProperties(_this$$props$this$$at, _excluded8);
- var mergedClassName = classNames_default(prefixCls, className);
- var scrollTop = this.state.scrollTop;
- var _this$calRes = this.calRes, scrollHeight = _this$calRes.scrollHeight, offset4 = _this$calRes.offset, start = _this$calRes.start, end = _this$calRes.end;
- var componentStyle = this.componentStyle, onFallbackScroll = this.onFallbackScroll, onScrollBar = this.onScrollBar, useVirtual = this.useVirtual, collectHeight = this.collectHeight, sharedConfig = this.sharedConfig, setInstance = this.setInstance, mergedData = this.mergedData;
- return createVNode("div", _objectSpread2({
- "style": _objectSpread2(_objectSpread2({}, style), {}, {
- position: "relative"
- }),
- "class": mergedClassName
- }, restProps), [createVNode(Component, {
- "class": "".concat(prefixCls, "-holder"),
- "style": componentStyle,
- "ref": "componentRef",
- "onScroll": onFallbackScroll
- }, {
- default: function _default9() {
- return [createVNode(Filler_default, {
- "prefixCls": prefixCls,
- "height": scrollHeight,
- "offset": offset4,
- "onInnerResize": collectHeight,
- "ref": "fillerInnerRef"
- }, {
- default: function _default10() {
- return renderChildren(mergedData, start, end, setInstance, children, sharedConfig);
- }
- })];
- }
- }), useVirtual && createVNode(ScrollBar_default, {
- "ref": "scrollBarRef",
- "prefixCls": prefixCls,
- "scrollTop": scrollTop,
- "height": height,
- "scrollHeight": scrollHeight,
- "count": mergedData.length,
- "onScroll": onScrollBar,
- "onStartMove": function onStartMove() {
- _this.state.scrollMoving = true;
- },
- "onStopMove": function onStopMove() {
- _this.state.scrollMoving = false;
- }
- }, null)]);
- }
- });
- var List_default = List;
- // node_modules/ant-design-vue/es/vc-virtual-list/index.js
- var vc_virtual_list_default = List_default;
- // node_modules/ant-design-vue/es/_util/hooks/useMemo.js
- function useMemo(getValue5, condition, shouldUpdate) {
- var cacheRef = ref(getValue5());
- watch(condition, function(next2, pre) {
- if (shouldUpdate) {
- if (shouldUpdate(next2, pre)) {
- cacheRef.value = getValue5();
- }
- } else {
- cacheRef.value = getValue5();
- }
- });
- return cacheRef;
- }
- // node_modules/ant-design-vue/es/vc-select/utils/platformUtil.js
- function isPlatformMac() {
- return /(mac\sos|macintosh)/i.test(navigator.appVersion);
- }
- // node_modules/ant-design-vue/es/vc-select/SelectContext.js
- var SelectContextKey = Symbol("SelectContextKey");
- function useProvideSelectProps(props5) {
- return provide(SelectContextKey, props5);
- }
- function useSelectProps() {
- return inject(SelectContextKey, {});
- }
- // node_modules/ant-design-vue/es/vc-select/OptionList.js
- var _excluded9 = ["disabled", "title", "children", "style", "class", "className"];
- function isTitleType(content) {
- return typeof content === "string" || typeof content === "number";
- }
- var OptionList = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "OptionList",
- inheritAttrs: false,
- slots: ["option"],
- setup: function setup28(_2, _ref) {
- var expose = _ref.expose, slots = _ref.slots;
- var baseProps4 = useBaseProps();
- var props5 = useSelectProps();
- var itemPrefixCls = computed(function() {
- return "".concat(baseProps4.prefixCls, "-item");
- });
- var memoFlattenOptions = useMemo(function() {
- return props5.flattenOptions;
- }, [function() {
- return baseProps4.open;
- }, function() {
- return props5.flattenOptions;
- }], function(next2) {
- return next2[0];
- });
- var listRef = createRef_default();
- var onListMouseDown = function onListMouseDown2(event) {
- event.preventDefault();
- };
- var scrollIntoView2 = function scrollIntoView3(args) {
- if (listRef.current) {
- listRef.current.scrollTo(typeof args === "number" ? {
- index: args
- } : args);
- }
- };
- var getEnabledActiveIndex = function getEnabledActiveIndex2(index3) {
- var offset4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
- var len = memoFlattenOptions.value.length;
- for (var i3 = 0; i3 < len; i3 += 1) {
- var current2 = (index3 + i3 * offset4 + len) % len;
- var _memoFlattenOptions$v = memoFlattenOptions.value[current2], group = _memoFlattenOptions$v.group, data8 = _memoFlattenOptions$v.data;
- if (!group && !data8.disabled) {
- return current2;
- }
- }
- return -1;
- };
- var state = reactive({
- activeIndex: getEnabledActiveIndex(0)
- });
- var setActive = function setActive2(index3) {
- var fromKeyboard = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- state.activeIndex = index3;
- var info = {
- source: fromKeyboard ? "keyboard" : "mouse"
- };
- var flattenItem = memoFlattenOptions.value[index3];
- if (!flattenItem) {
- props5.onActiveValue(null, -1, info);
- return;
- }
- props5.onActiveValue(flattenItem.value, index3, info);
- };
- watch([function() {
- return memoFlattenOptions.value.length;
- }, function() {
- return baseProps4.searchValue;
- }], function() {
- setActive(props5.defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1);
- }, {
- immediate: true
- });
- var isSelected = function isSelected2(value) {
- return props5.rawValues.has(value) && baseProps4.mode !== "combobox";
- };
- watch([function() {
- return baseProps4.open;
- }, function() {
- return baseProps4.searchValue;
- }], function() {
- if (!baseProps4.multiple && baseProps4.open && props5.rawValues.size === 1) {
- var value = Array.from(props5.rawValues)[0];
- var index3 = toRaw(memoFlattenOptions.value).findIndex(function(_ref2) {
- var data8 = _ref2.data;
- return data8[props5.fieldNames.value] === value;
- });
- if (index3 !== -1) {
- setActive(index3);
- nextTick(function() {
- scrollIntoView2(index3);
- });
- }
- }
- if (baseProps4.open) {
- nextTick(function() {
- var _listRef$current;
- (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollTo(void 0);
- });
- }
- }, {
- immediate: true,
- flush: "post"
- });
- var onSelectValue = function onSelectValue2(value) {
- if (value !== void 0) {
- props5.onSelect(value, {
- selected: !props5.rawValues.has(value)
- });
- }
- if (!baseProps4.multiple) {
- baseProps4.toggleOpen(false);
- }
- };
- var getLabel = function getLabel2(item) {
- return typeof item.label === "function" ? item.label() : item.label;
- };
- function renderItem(index3) {
- var item = memoFlattenOptions.value[index3];
- if (!item)
- return null;
- var itemData = item.data || {};
- var value = itemData.value;
- var group = item.group;
- var attrs = pickAttrs(itemData, true);
- var mergedLabel = getLabel(item);
- return item ? createVNode("div", _objectSpread2(_objectSpread2({
- "aria-label": typeof mergedLabel === "string" && !group ? mergedLabel : null
- }, attrs), {}, {
- "key": index3,
- "role": group ? "presentation" : "option",
- "id": "".concat(baseProps4.id, "_list_").concat(index3),
- "aria-selected": isSelected(value)
- }), [value]) : null;
- }
- var onKeydown = function onKeydown2(event) {
- var which = event.which, ctrlKey = event.ctrlKey;
- switch (which) {
- case KeyCode_default.N:
- case KeyCode_default.P:
- case KeyCode_default.UP:
- case KeyCode_default.DOWN: {
- var offset4 = 0;
- if (which === KeyCode_default.UP) {
- offset4 = -1;
- } else if (which === KeyCode_default.DOWN) {
- offset4 = 1;
- } else if (isPlatformMac() && ctrlKey) {
- if (which === KeyCode_default.N) {
- offset4 = 1;
- } else if (which === KeyCode_default.P) {
- offset4 = -1;
- }
- }
- if (offset4 !== 0) {
- var nextActiveIndex = getEnabledActiveIndex(state.activeIndex + offset4, offset4);
- scrollIntoView2(nextActiveIndex);
- setActive(nextActiveIndex, true);
- }
- break;
- }
- case KeyCode_default.ENTER: {
- var item = memoFlattenOptions.value[state.activeIndex];
- if (item && !item.data.disabled) {
- onSelectValue(item.value);
- } else {
- onSelectValue(void 0);
- }
- if (baseProps4.open) {
- event.preventDefault();
- }
- break;
- }
- case KeyCode_default.ESC: {
- baseProps4.toggleOpen(false);
- if (baseProps4.open) {
- event.stopPropagation();
- }
- }
- }
- };
- var onKeyup = function onKeyup2() {
- };
- var scrollTo3 = function scrollTo4(index3) {
- scrollIntoView2(index3);
- };
- expose({
- onKeydown,
- onKeyup,
- scrollTo: scrollTo3
- });
- return function() {
- var id = baseProps4.id, notFoundContent = baseProps4.notFoundContent, onPopupScroll = baseProps4.onPopupScroll;
- var menuItemSelectedIcon = props5.menuItemSelectedIcon, fieldNames = props5.fieldNames, virtual = props5.virtual, listHeight = props5.listHeight, listItemHeight = props5.listItemHeight;
- var renderOption = slots.option;
- var activeIndex = state.activeIndex;
- var omitFieldNameList = Object.keys(fieldNames).map(function(key2) {
- return fieldNames[key2];
- });
- if (memoFlattenOptions.value.length === 0) {
- return createVNode("div", {
- "role": "listbox",
- "id": "".concat(id, "_list"),
- "class": "".concat(itemPrefixCls.value, "-empty"),
- "onMousedown": onListMouseDown
- }, [notFoundContent]);
- }
- return createVNode(Fragment, null, [createVNode("div", {
- "role": "listbox",
- "id": "".concat(id, "_list"),
- "style": {
- height: 0,
- width: 0,
- overflow: "hidden"
- }
- }, [renderItem(activeIndex - 1), renderItem(activeIndex), renderItem(activeIndex + 1)]), createVNode(vc_virtual_list_default, {
- "itemKey": "key",
- "ref": listRef,
- "data": memoFlattenOptions.value,
- "height": listHeight,
- "itemHeight": listItemHeight,
- "fullHeight": false,
- "onMousedown": onListMouseDown,
- "onScroll": onPopupScroll,
- "virtual": virtual
- }, {
- default: function _default9(item, itemIndex) {
- var _classNames;
- var group = item.group, groupOption = item.groupOption, data8 = item.data, value = item.value;
- var key2 = data8.key;
- var label = typeof item.label === "function" ? item.label() : item.label;
- if (group) {
- var _data$title;
- var groupTitle = (_data$title = data8.title) !== null && _data$title !== void 0 ? _data$title : isTitleType(label) && label;
- return createVNode("div", {
- "class": classNames_default(itemPrefixCls.value, "".concat(itemPrefixCls.value, "-group")),
- "title": groupTitle
- }, [renderOption ? renderOption(data8) : label !== void 0 ? label : key2]);
- }
- var disabled = data8.disabled, title = data8.title, children = data8.children, style = data8.style, cls = data8.class, className = data8.className, otherProps = _objectWithoutProperties(data8, _excluded9);
- var passedProps = omit_default(otherProps, omitFieldNameList);
- var selected = isSelected(value);
- var optionPrefixCls = "".concat(itemPrefixCls.value, "-option");
- var optionClassName = classNames_default(itemPrefixCls.value, optionPrefixCls, cls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
- var mergedLabel = getLabel(item);
- var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === "function" || selected;
- var content = typeof mergedLabel === "number" ? mergedLabel : mergedLabel || value;
- var optionTitle = isTitleType(content) ? content.toString() : void 0;
- if (title !== void 0) {
- optionTitle = title;
- }
- return createVNode("div", _objectSpread2(_objectSpread2({}, passedProps), {}, {
- "aria-selected": selected,
- "class": optionClassName,
- "title": optionTitle,
- "onMousemove": function onMousemove(e3) {
- if (otherProps.onMousemove) {
- otherProps.onMousemove(e3);
- }
- if (activeIndex === itemIndex || disabled) {
- return;
- }
- setActive(itemIndex);
- },
- "onClick": function onClick2(e3) {
- if (!disabled) {
- onSelectValue(value);
- }
- if (otherProps.onClick) {
- otherProps.onClick(e3);
- }
- },
- "style": style
- }), [createVNode("div", {
- "class": "".concat(optionPrefixCls, "-content")
- }, [renderOption ? renderOption(data8) : content]), isValidElement(menuItemSelectedIcon) || selected, iconVisible && createVNode(TransBtn_default, {
- "class": "".concat(itemPrefixCls.value, "-option-state"),
- "customizeIcon": menuItemSelectedIcon,
- "customizeIconProps": {
- isSelected: selected
- }
- }, {
- default: function _default10() {
- return [selected ? "✓" : null];
- }
- })]);
- }
- })]);
- };
- }
- });
- var OptionList_default = OptionList;
- // node_modules/ant-design-vue/es/vc-select/utils/legacyUtil.js
- var _excluded10 = ["value", "disabled"];
- function convertNodeToOption(node) {
- var key2 = node.key, children = node.children, _node$props = node.props, value = _node$props.value, disabled = _node$props.disabled, restProps = _objectWithoutProperties(_node$props, _excluded10);
- var child = children === null || children === void 0 ? void 0 : children.default;
- return _objectSpread2({
- key: key2,
- value: value !== void 0 ? value : key2,
- children: child,
- disabled: disabled || disabled === ""
- }, restProps);
- }
- function convertChildrenToData(nodes) {
- var optionOnly = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var dd = flattenChildren(nodes).map(function(node, index3) {
- var _children$label;
- if (!isValidElement(node) || !node.type) {
- return null;
- }
- var isSelectOptGroup = node.type.isSelectOptGroup, key2 = node.key, children = node.children, props5 = node.props;
- if (optionOnly || !isSelectOptGroup) {
- return convertNodeToOption(node);
- }
- var child = children && children.default ? children.default() : void 0;
- var label = (props5 === null || props5 === void 0 ? void 0 : props5.label) || ((_children$label = children.label) === null || _children$label === void 0 ? void 0 : _children$label.call(children)) || key2;
- return _objectSpread2(_objectSpread2({
- key: "__RC_SELECT_GRP__".concat(key2 === null ? index3 : String(key2), "__")
- }, props5), {}, {
- label,
- options: convertChildrenToData(child || [])
- });
- }).filter(function(data8) {
- return data8;
- });
- return dd;
- }
- // node_modules/ant-design-vue/es/vc-select/hooks/useOptions.js
- function useOptions(options, children, fieldNames) {
- var mergedOptions = shallowRef();
- var valueOptions = shallowRef();
- var labelOptions = shallowRef();
- var tempMergedOptions = shallowRef([]);
- watch([options, children], function() {
- if (options.value) {
- tempMergedOptions.value = toRaw(options.value).slice();
- } else {
- tempMergedOptions.value = convertChildrenToData(children.value);
- }
- }, {
- immediate: true,
- deep: true
- });
- watchEffect(function() {
- var newOptions = tempMergedOptions.value;
- var newValueOptions = /* @__PURE__ */ new Map();
- var newLabelOptions = /* @__PURE__ */ new Map();
- var fieldNamesValue = fieldNames.value;
- function dig(optionList) {
- var isChildren = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- for (var i3 = 0; i3 < optionList.length; i3 += 1) {
- var option = optionList[i3];
- if (!option[fieldNamesValue.options] || isChildren) {
- newValueOptions.set(option[fieldNamesValue.value], option);
- newLabelOptions.set(option[fieldNamesValue.label], option);
- } else {
- dig(option[fieldNamesValue.options], true);
- }
- }
- }
- dig(newOptions);
- mergedOptions.value = newOptions;
- valueOptions.value = newValueOptions;
- labelOptions.value = newLabelOptions;
- });
- return {
- options: mergedOptions,
- valueOptions,
- labelOptions
- };
- }
- // node_modules/ant-design-vue/es/vc-select/hooks/useId.js
- var uuid = 0;
- var isBrowserClient = canUseDom_default();
- function getUUID() {
- var retId;
- if (isBrowserClient) {
- retId = uuid;
- uuid += 1;
- } else {
- retId = "TEST_OR_SSR";
- }
- return retId;
- }
- function useId() {
- var id = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ref("");
- var innerId = "rc_select_".concat(getUUID());
- return id.value || innerId;
- }
- // node_modules/ant-design-vue/es/vc-select/utils/commonUtil.js
- function toArray(value) {
- if (Array.isArray(value)) {
- return value;
- }
- return value !== void 0 ? [value] : [];
- }
- var isClient = typeof window !== "undefined" && window.document && window.document.documentElement;
- // node_modules/ant-design-vue/es/vc-select/utils/warningPropsUtil.js
- function warningProps(props5) {
- var mode = props5.mode, options = props5.options, children = props5.children, backfill = props5.backfill, allowClear = props5.allowClear, placeholder = props5.placeholder, getInputElement = props5.getInputElement, showSearch = props5.showSearch, onSearch = props5.onSearch, defaultOpen = props5.defaultOpen, autofocus = props5.autofocus, labelInValue = props5.labelInValue, value = props5.value, inputValue = props5.inputValue, optionLabelProp = props5.optionLabelProp;
- var multiple = isMultiple(mode);
- var mergedShowSearch = showSearch !== void 0 ? showSearch : multiple || mode === "combobox";
- var mergedOptions = options || convertChildrenToData(children);
- warning_default(mode !== "tags" || mergedOptions.every(function(opt) {
- return !opt.disabled;
- }), "Please avoid setting option to disabled in tags mode since user can always type text as tag.");
- warning_default(mode !== "combobox" || !optionLabelProp, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly.");
- warning_default(mode === "combobox" || !backfill, "`backfill` only works with `combobox` mode.");
- warning_default(mode === "combobox" || !getInputElement, "`getInputElement` only work with `combobox` mode.");
- noteOnce(mode !== "combobox" || !getInputElement || !allowClear || !placeholder, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`.");
- if (onSearch && !mergedShowSearch && mode !== "combobox" && mode !== "tags") {
- warning_default(false, "`onSearch` should work with `showSearch` instead of use alone.");
- }
- noteOnce(!defaultOpen || autofocus, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed.");
- if (value !== void 0 && value !== null) {
- var values = toArray(value);
- warning_default(!labelInValue || values.every(function(val) {
- return _typeof(val) === "object" && ("key" in val || "value" in val);
- }), "`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`");
- warning_default(!multiple || Array.isArray(value), "`value` should be array when `mode` is `multiple` or `tags`");
- }
- if (children) {
- var invalidateChildType = null;
- children.some(function(node) {
- if (!isValidElement(node) || !node.type) {
- return false;
- }
- var type4 = node.type;
- if (type4.isSelectOption) {
- return false;
- }
- if (type4.isSelectOptGroup) {
- var _node$children;
- var childs = ((_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children.default()) || [];
- var allChildrenValid = childs.every(function(subNode) {
- if (!isValidElement(subNode) || !node.type || subNode.type.isSelectOption) {
- return true;
- }
- invalidateChildType = subNode.type;
- return false;
- });
- if (allChildrenValid) {
- return false;
- }
- return true;
- }
- invalidateChildType = type4;
- return true;
- });
- if (invalidateChildType) {
- warning_default(false, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(invalidateChildType.displayName || invalidateChildType.name || invalidateChildType, "`."));
- }
- warning_default(inputValue === void 0, "`inputValue` is deprecated, please use `searchValue` instead.");
- }
- }
- var warningPropsUtil_default = warningProps;
- // node_modules/ant-design-vue/es/vc-select/hooks/useFilterOptions.js
- function includes(test, search) {
- return toArray(test).join("").toUpperCase().includes(search);
- }
- var useFilterOptions_default = function(options, fieldNames, searchValue, filterOption3, optionFilterProp) {
- return computed(function() {
- var searchValueVal = searchValue.value;
- var optionFilterPropValue = optionFilterProp === null || optionFilterProp === void 0 ? void 0 : optionFilterProp.value;
- var filterOptionValue = filterOption3 === null || filterOption3 === void 0 ? void 0 : filterOption3.value;
- if (!searchValueVal || filterOptionValue === false) {
- return options.value;
- }
- var _fieldNames$value = fieldNames.value, fieldOptions = _fieldNames$value.options, fieldLabel = _fieldNames$value.label, fieldValue = _fieldNames$value.value;
- var filteredOptions = [];
- var customizeFilter = typeof filterOptionValue === "function";
- var upperSearch = searchValueVal.toUpperCase();
- var filterFunc = customizeFilter ? filterOptionValue : function(_2, option) {
- if (optionFilterPropValue) {
- return includes(option[optionFilterPropValue], upperSearch);
- }
- if (option[fieldOptions]) {
- return includes(option[fieldLabel !== "children" ? fieldLabel : "label"], upperSearch);
- }
- return includes(option[fieldValue], upperSearch);
- };
- var wrapOption = customizeFilter ? function(opt) {
- return injectPropsWithOption(opt);
- } : function(opt) {
- return opt;
- };
- options.value.forEach(function(item) {
- if (item[fieldOptions]) {
- var matchGroup = filterFunc(searchValueVal, wrapOption(item));
- if (matchGroup) {
- filteredOptions.push(item);
- } else {
- var subOptions = item[fieldOptions].filter(function(subItem) {
- return filterFunc(searchValueVal, wrapOption(subItem));
- });
- if (subOptions.length) {
- filteredOptions.push(_objectSpread2(_objectSpread2({}, item), {}, _defineProperty({}, fieldOptions, subOptions)));
- }
- }
- return;
- }
- if (filterFunc(searchValueVal, wrapOption(item))) {
- filteredOptions.push(item);
- }
- });
- return filteredOptions;
- });
- };
- // node_modules/ant-design-vue/es/vc-select/hooks/useCache.js
- var useCache_default = function(labeledValues, valueOptions) {
- var cacheRef = shallowRef({
- values: /* @__PURE__ */ new Map(),
- options: /* @__PURE__ */ new Map()
- });
- var filledLabeledValues = computed(function() {
- var _cacheRef$value = cacheRef.value, prevValueCache = _cacheRef$value.values, prevOptionCache = _cacheRef$value.options;
- var patchedValues = labeledValues.value.map(function(item) {
- if (item.label === void 0) {
- var _prevValueCache$get;
- return _objectSpread2(_objectSpread2({}, item), {}, {
- label: (_prevValueCache$get = prevValueCache.get(item.value)) === null || _prevValueCache$get === void 0 ? void 0 : _prevValueCache$get.label
- });
- }
- return item;
- });
- var valueCache = /* @__PURE__ */ new Map();
- var optionCache = /* @__PURE__ */ new Map();
- patchedValues.forEach(function(item) {
- valueCache.set(item.value, item);
- optionCache.set(item.value, valueOptions.value.get(item.value) || prevOptionCache.get(item.value));
- });
- cacheRef.value.values = valueCache;
- cacheRef.value.options = optionCache;
- return patchedValues;
- });
- var getOption = function getOption2(val) {
- return valueOptions.value.get(val) || cacheRef.value.options.get(val);
- };
- return [filledLabeledValues, getOption];
- };
- // node_modules/ant-design-vue/es/_util/hooks/useMergedState.js
- function useMergedState(defaultStateValue, option) {
- var _ref = option || {}, defaultValue = _ref.defaultValue, _ref$value = _ref.value, value = _ref$value === void 0 ? ref() : _ref$value;
- var initValue = typeof defaultStateValue === "function" ? defaultStateValue() : defaultStateValue;
- if (value.value !== void 0) {
- initValue = unref(value);
- }
- if (defaultValue !== void 0) {
- initValue = typeof defaultValue === "function" ? defaultValue() : defaultValue;
- }
- var innerValue = ref(initValue);
- var mergedValue = ref(initValue);
- watchEffect(function() {
- var val = value.value !== void 0 ? value.value : innerValue.value;
- if (option.postState) {
- val = option.postState(val);
- }
- mergedValue.value = val;
- });
- function triggerChange(newValue) {
- var preVal = mergedValue.value;
- innerValue.value = newValue;
- if (toRaw(mergedValue.value) !== newValue && option.onChange) {
- option.onChange(newValue, preVal);
- }
- }
- watch(value, function() {
- innerValue.value = value.value;
- });
- return [mergedValue, triggerChange];
- }
- // node_modules/ant-design-vue/es/_util/hooks/useState.js
- function useState(defaultStateValue) {
- var initValue = typeof defaultStateValue === "function" ? defaultStateValue() : defaultStateValue;
- var innerValue = ref(initValue);
- function triggerChange(newValue) {
- innerValue.value = newValue;
- }
- return [innerValue, triggerChange];
- }
- // node_modules/ant-design-vue/es/vc-select/Select.js
- var OMIT_DOM_PROPS = ["inputValue"];
- function selectProps() {
- return _objectSpread2(_objectSpread2({}, baseSelectPropsWithoutPrivate()), {}, {
- prefixCls: String,
- id: String,
- backfill: {
- type: Boolean,
- default: void 0
- },
- // >>> Field Names
- fieldNames: Object,
- // >>> Search
- /** @deprecated Use `searchValue` instead */
- inputValue: String,
- searchValue: String,
- onSearch: Function,
- autoClearSearchValue: {
- type: Boolean,
- default: void 0
- },
- // >>> Select
- onSelect: Function,
- onDeselect: Function,
- // >>> Options
- /**
- * In Select, `false` means do nothing.
- * In TreeSelect, `false` will highlight match item.
- * It's by design.
- */
- filterOption: {
- type: [Boolean, Function],
- default: void 0
- },
- filterSort: Function,
- optionFilterProp: String,
- optionLabelProp: String,
- options: Array,
- defaultActiveFirstOption: {
- type: Boolean,
- default: void 0
- },
- virtual: {
- type: Boolean,
- default: void 0
- },
- listHeight: Number,
- listItemHeight: Number,
- // >>> Icon
- menuItemSelectedIcon: vue_types_default.any,
- mode: String,
- labelInValue: {
- type: Boolean,
- default: void 0
- },
- value: vue_types_default.any,
- defaultValue: vue_types_default.any,
- onChange: Function,
- children: Array
- });
- }
- function isRawValue(value) {
- return !value || _typeof(value) !== "object";
- }
- var Select_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Select",
- inheritAttrs: false,
- props: initDefaultProps_default(selectProps(), {
- prefixCls: "vc-select",
- autoClearSearchValue: true,
- listHeight: 200,
- listItemHeight: 20,
- dropdownMatchSelectWidth: true
- }),
- setup: function setup29(props5, _ref) {
- var expose = _ref.expose, attrs = _ref.attrs, slots = _ref.slots;
- var mergedId = useId(toRef(props5, "id"));
- var multiple = computed(function() {
- return isMultiple(props5.mode);
- });
- var childrenAsData = computed(function() {
- return !!(!props5.options && props5.children);
- });
- var mergedFilterOption = computed(function() {
- if (props5.filterOption === void 0 && props5.mode === "combobox") {
- return false;
- }
- return props5.filterOption;
- });
- var mergedFieldNames = computed(function() {
- return fillFieldNames(props5.fieldNames, childrenAsData.value);
- });
- var _useMergedState = useMergedState("", {
- value: computed(function() {
- return props5.searchValue !== void 0 ? props5.searchValue : props5.inputValue;
- }),
- postState: function postState(search) {
- return search || "";
- }
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedSearchValue = _useMergedState2[0], setSearchValue = _useMergedState2[1];
- var parsedOptions = useOptions(toRef(props5, "options"), toRef(props5, "children"), mergedFieldNames);
- var valueOptions = parsedOptions.valueOptions, labelOptions = parsedOptions.labelOptions, mergedOptions = parsedOptions.options;
- var convert2LabelValues = function convert2LabelValues2(draftValues) {
- var valueList = toArray(draftValues);
- return valueList.map(function(val) {
- var rawValue;
- var rawLabel;
- var rawKey;
- var rawDisabled;
- if (isRawValue(val)) {
- rawValue = val;
- } else {
- var _val$value;
- rawKey = val.key;
- rawLabel = val.label;
- rawValue = (_val$value = val.value) !== null && _val$value !== void 0 ? _val$value : rawKey;
- }
- var option = valueOptions.value.get(rawValue);
- if (option) {
- var _option$key;
- if (rawLabel === void 0)
- rawLabel = option === null || option === void 0 ? void 0 : option[props5.optionLabelProp || mergedFieldNames.value.label];
- if (rawKey === void 0)
- rawKey = (_option$key = option === null || option === void 0 ? void 0 : option.key) !== null && _option$key !== void 0 ? _option$key : rawValue;
- rawDisabled = option === null || option === void 0 ? void 0 : option.disabled;
- }
- return {
- label: rawLabel,
- value: rawValue,
- key: rawKey,
- disabled: rawDisabled,
- option
- };
- });
- };
- var _useMergedState3 = useMergedState(props5.defaultValue, {
- value: toRef(props5, "value")
- }), _useMergedState4 = _slicedToArray(_useMergedState3, 2), internalValue = _useMergedState4[0], setInternalValue = _useMergedState4[1];
- var rawLabeledValues = computed(function() {
- var _values$;
- var values = convert2LabelValues(internalValue.value);
- if (props5.mode === "combobox" && !((_values$ = values[0]) !== null && _values$ !== void 0 && _values$.value)) {
- return [];
- }
- return values;
- });
- var _useCache = useCache_default(rawLabeledValues, valueOptions), _useCache2 = _slicedToArray(_useCache, 2), mergedValues = _useCache2[0], getMixedOption = _useCache2[1];
- var displayValues = computed(function() {
- if (!props5.mode && mergedValues.value.length === 1) {
- var firstValue = mergedValues.value[0];
- if (firstValue.value === null && (firstValue.label === null || firstValue.label === void 0)) {
- return [];
- }
- }
- return mergedValues.value.map(function(item) {
- var _ref2;
- return _objectSpread2(_objectSpread2({}, item), {}, {
- label: (_ref2 = typeof item.label === "function" ? item.label() : item.label) !== null && _ref2 !== void 0 ? _ref2 : item.value
- });
- });
- });
- var rawValues = computed(function() {
- return new Set(mergedValues.value.map(function(val) {
- return val.value;
- }));
- });
- watchEffect(function() {
- if (props5.mode === "combobox") {
- var _mergedValues$value$;
- var strValue = (_mergedValues$value$ = mergedValues.value[0]) === null || _mergedValues$value$ === void 0 ? void 0 : _mergedValues$value$.value;
- if (strValue !== void 0 && strValue !== null) {
- setSearchValue(String(strValue));
- }
- }
- }, {
- flush: "post"
- });
- var createTagOption = function createTagOption2(val, label) {
- var _ref3;
- var mergedLabel = label !== null && label !== void 0 ? label : val;
- return _ref3 = {}, _defineProperty(_ref3, mergedFieldNames.value.value, val), _defineProperty(_ref3, mergedFieldNames.value.label, mergedLabel), _ref3;
- };
- var filledTagOptions = shallowRef();
- watchEffect(function() {
- if (props5.mode !== "tags") {
- filledTagOptions.value = mergedOptions.value;
- return;
- }
- var cloneOptions = mergedOptions.value.slice();
- var existOptions = function existOptions2(val) {
- return valueOptions.value.has(val);
- };
- _toConsumableArray(mergedValues.value).sort(function(a2, b2) {
- return a2.value < b2.value ? -1 : 1;
- }).forEach(function(item) {
- var val = item.value;
- if (!existOptions(val)) {
- cloneOptions.push(createTagOption(val, item.label));
- }
- });
- filledTagOptions.value = cloneOptions;
- });
- var filteredOptions = useFilterOptions_default(filledTagOptions, mergedFieldNames, mergedSearchValue, mergedFilterOption, toRef(props5, "optionFilterProp"));
- var filledSearchOptions = computed(function() {
- if (props5.mode !== "tags" || !mergedSearchValue.value || filteredOptions.value.some(function(item) {
- return item[props5.optionFilterProp || "value"] === mergedSearchValue.value;
- })) {
- return filteredOptions.value;
- }
- return [createTagOption(mergedSearchValue.value)].concat(_toConsumableArray(filteredOptions.value));
- });
- var orderedFilteredOptions = computed(function() {
- if (!props5.filterSort) {
- return filledSearchOptions.value;
- }
- return _toConsumableArray(filledSearchOptions.value).sort(function(a2, b2) {
- return props5.filterSort(a2, b2);
- });
- });
- var displayOptions = computed(function() {
- return flattenOptions(orderedFilteredOptions.value, {
- fieldNames: mergedFieldNames.value,
- childrenAsData: childrenAsData.value
- });
- });
- var triggerChange = function triggerChange2(values) {
- var labeledValues = convert2LabelValues(values);
- setInternalValue(labeledValues);
- if (props5.onChange && // Trigger event only when value changed
- (labeledValues.length !== mergedValues.value.length || labeledValues.some(function(newVal, index3) {
- var _mergedValues$value$i;
- return ((_mergedValues$value$i = mergedValues.value[index3]) === null || _mergedValues$value$i === void 0 ? void 0 : _mergedValues$value$i.value) !== (newVal === null || newVal === void 0 ? void 0 : newVal.value);
- }))) {
- var returnValues = props5.labelInValue ? labeledValues.map(function(v2) {
- return _objectSpread2(_objectSpread2({}, v2), {}, {
- originLabel: v2.label,
- label: typeof v2.label === "function" ? v2.label() : v2.label
- });
- }) : labeledValues.map(function(v2) {
- return v2.value;
- });
- var returnOptions = labeledValues.map(function(v2) {
- return injectPropsWithOption(getMixedOption(v2.value));
- });
- props5.onChange(
- // Value
- multiple.value ? returnValues : returnValues[0],
- // Option
- multiple.value ? returnOptions : returnOptions[0]
- );
- }
- };
- var _useState = useState(null), _useState2 = _slicedToArray(_useState, 2), activeValue = _useState2[0], setActiveValue = _useState2[1];
- var _useState3 = useState(0), _useState4 = _slicedToArray(_useState3, 2), accessibilityIndex = _useState4[0], setAccessibilityIndex = _useState4[1];
- var mergedDefaultActiveFirstOption = computed(function() {
- return props5.defaultActiveFirstOption !== void 0 ? props5.defaultActiveFirstOption : props5.mode !== "combobox";
- });
- var onActiveValue = function onActiveValue2(active, index3) {
- var _ref4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, _ref4$source = _ref4.source, source = _ref4$source === void 0 ? "keyboard" : _ref4$source;
- setAccessibilityIndex(index3);
- if (props5.backfill && props5.mode === "combobox" && active !== null && source === "keyboard") {
- setActiveValue(String(active));
- }
- };
- var triggerSelect = function triggerSelect2(val, selected) {
- var getSelectEnt = function getSelectEnt2() {
- var _option$key2;
- var option2 = getMixedOption(val);
- var originLabel = option2 === null || option2 === void 0 ? void 0 : option2[mergedFieldNames.value.label];
- return [props5.labelInValue ? {
- label: typeof originLabel === "function" ? originLabel() : originLabel,
- originLabel,
- value: val,
- key: (_option$key2 = option2 === null || option2 === void 0 ? void 0 : option2.key) !== null && _option$key2 !== void 0 ? _option$key2 : val
- } : val, injectPropsWithOption(option2)];
- };
- if (selected && props5.onSelect) {
- var _getSelectEnt = getSelectEnt(), _getSelectEnt2 = _slicedToArray(_getSelectEnt, 2), wrappedValue = _getSelectEnt2[0], option = _getSelectEnt2[1];
- props5.onSelect(wrappedValue, option);
- } else if (!selected && props5.onDeselect) {
- var _getSelectEnt3 = getSelectEnt(), _getSelectEnt4 = _slicedToArray(_getSelectEnt3, 2), _wrappedValue = _getSelectEnt4[0], _option = _getSelectEnt4[1];
- props5.onDeselect(_wrappedValue, _option);
- }
- };
- var onInternalSelect = function onInternalSelect2(val, info) {
- var cloneValues;
- var mergedSelect = multiple.value ? info.selected : true;
- if (mergedSelect) {
- cloneValues = multiple.value ? [].concat(_toConsumableArray(mergedValues.value), [val]) : [val];
- } else {
- cloneValues = mergedValues.value.filter(function(v2) {
- return v2.value !== val;
- });
- }
- triggerChange(cloneValues);
- triggerSelect(val, mergedSelect);
- if (props5.mode === "combobox") {
- setActiveValue("");
- } else if (!multiple.value || props5.autoClearSearchValue) {
- setSearchValue("");
- setActiveValue("");
- }
- };
- var onDisplayValuesChange = function onDisplayValuesChange2(nextValues, info) {
- triggerChange(nextValues);
- if (info.type === "remove" || info.type === "clear") {
- info.values.forEach(function(item) {
- triggerSelect(item.value, false);
- });
- }
- };
- var onInternalSearch = function onInternalSearch2(searchText, info) {
- setSearchValue(searchText);
- setActiveValue(null);
- if (info.source === "submit") {
- var formatted = (searchText || "").trim();
- if (formatted) {
- var newRawValues = Array.from(new Set([].concat(_toConsumableArray(rawValues.value), [formatted])));
- triggerChange(newRawValues);
- triggerSelect(formatted, true);
- setSearchValue("");
- }
- return;
- }
- if (info.source !== "blur") {
- var _props$onSearch;
- if (props5.mode === "combobox") {
- triggerChange(searchText);
- }
- (_props$onSearch = props5.onSearch) === null || _props$onSearch === void 0 ? void 0 : _props$onSearch.call(props5, searchText);
- }
- };
- var onInternalSearchSplit = function onInternalSearchSplit2(words) {
- var patchValues = words;
- if (props5.mode !== "tags") {
- patchValues = words.map(function(word) {
- var opt = labelOptions.value.get(word);
- return opt === null || opt === void 0 ? void 0 : opt.value;
- }).filter(function(val) {
- return val !== void 0;
- });
- }
- var newRawValues = Array.from(new Set([].concat(_toConsumableArray(rawValues.value), _toConsumableArray(patchValues))));
- triggerChange(newRawValues);
- newRawValues.forEach(function(newRawValue) {
- triggerSelect(newRawValue, true);
- });
- };
- var realVirtual = computed(function() {
- return props5.virtual !== false && props5.dropdownMatchSelectWidth !== false;
- });
- useProvideSelectProps(toReactive(_objectSpread2(_objectSpread2({}, parsedOptions), {}, {
- flattenOptions: displayOptions,
- onActiveValue,
- defaultActiveFirstOption: mergedDefaultActiveFirstOption,
- onSelect: onInternalSelect,
- menuItemSelectedIcon: toRef(props5, "menuItemSelectedIcon"),
- rawValues,
- fieldNames: mergedFieldNames,
- virtual: realVirtual,
- listHeight: toRef(props5, "listHeight"),
- listItemHeight: toRef(props5, "listItemHeight"),
- childrenAsData
- })));
- if (true) {
- watchEffect(function() {
- warningPropsUtil_default(props5);
- }, {
- flush: "post"
- });
- }
- var selectRef = ref();
- expose({
- focus: function focus() {
- var _selectRef$value;
- (_selectRef$value = selectRef.value) === null || _selectRef$value === void 0 ? void 0 : _selectRef$value.focus();
- },
- blur: function blur() {
- var _selectRef$value2;
- (_selectRef$value2 = selectRef.value) === null || _selectRef$value2 === void 0 ? void 0 : _selectRef$value2.blur();
- },
- scrollTo: function scrollTo3(arg) {
- var _selectRef$value3;
- (_selectRef$value3 = selectRef.value) === null || _selectRef$value3 === void 0 ? void 0 : _selectRef$value3.scrollTo(arg);
- }
- });
- var pickProps = computed(function() {
- return omit_default(props5, [
- "id",
- "mode",
- "prefixCls",
- "backfill",
- "fieldNames",
- // Search
- "inputValue",
- "searchValue",
- "onSearch",
- "autoClearSearchValue",
- // Select
- "onSelect",
- "onDeselect",
- "dropdownMatchSelectWidth",
- // Options
- "filterOption",
- "filterSort",
- "optionFilterProp",
- "optionLabelProp",
- "options",
- "children",
- "defaultActiveFirstOption",
- "menuItemSelectedIcon",
- "virtual",
- "listHeight",
- "listItemHeight",
- // Value
- "value",
- "defaultValue",
- "labelInValue",
- "onChange"
- ]);
- });
- return function() {
- return createVNode(BaseSelect_default, _objectSpread2(_objectSpread2(_objectSpread2({}, pickProps.value), attrs), {}, {
- "id": mergedId,
- "prefixCls": props5.prefixCls,
- "ref": selectRef,
- "omitDomProps": OMIT_DOM_PROPS,
- "mode": props5.mode,
- "displayValues": displayValues.value,
- "onDisplayValuesChange": onDisplayValuesChange,
- "searchValue": mergedSearchValue.value,
- "onSearch": onInternalSearch,
- "onSearchSplit": onInternalSearchSplit,
- "dropdownMatchSelectWidth": props5.dropdownMatchSelectWidth,
- "OptionList": OptionList_default,
- "emptyOptions": !displayOptions.value.length,
- "activeValue": activeValue.value,
- "activeDescendantId": "".concat(mergedId, "_list_").concat(accessibilityIndex.value)
- }), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-select/Option.js
- var Option = function Option2() {
- return null;
- };
- Option.isSelectOption = true;
- Option.displayName = "ASelectOption";
- var Option_default = Option;
- // node_modules/ant-design-vue/es/vc-select/OptGroup.js
- var OptGroup = function OptGroup2() {
- return null;
- };
- OptGroup.isSelectOptGroup = true;
- OptGroup.displayName = "ASelectOptGroup";
- var OptGroup_default = OptGroup;
- // node_modules/ant-design-vue/es/vc-select/index.js
- var vc_select_default = Select_default;
- // node_modules/ant-design-vue/es/select/utils/iconUtil.js
- function getIcons(props5) {
- var slots = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var loading = props5.loading, multiple = props5.multiple, prefixCls = props5.prefixCls;
- var suffixIcon = props5.suffixIcon || slots.suffixIcon && slots.suffixIcon();
- var clearIcon = props5.clearIcon || slots.clearIcon && slots.clearIcon();
- var menuItemSelectedIcon = props5.menuItemSelectedIcon || slots.menuItemSelectedIcon && slots.menuItemSelectedIcon();
- var removeIcon = props5.removeIcon || slots.removeIcon && slots.removeIcon();
- var mergedClearIcon = clearIcon;
- if (!clearIcon) {
- mergedClearIcon = createVNode(CloseCircleFilled_default, null, null);
- }
- var mergedSuffixIcon = null;
- if (suffixIcon !== void 0) {
- mergedSuffixIcon = suffixIcon;
- } else if (loading) {
- mergedSuffixIcon = createVNode(LoadingOutlined_default, {
- "spin": true
- }, null);
- } else {
- var iconCls = "".concat(prefixCls, "-suffix");
- mergedSuffixIcon = function mergedSuffixIcon2(_ref) {
- var open2 = _ref.open, showSearch = _ref.showSearch;
- if (open2 && showSearch) {
- return createVNode(SearchOutlined_default, {
- "class": iconCls
- }, null);
- }
- return createVNode(DownOutlined_default, {
- "class": iconCls
- }, null);
- };
- }
- var mergedItemIcon = null;
- if (menuItemSelectedIcon !== void 0) {
- mergedItemIcon = menuItemSelectedIcon;
- } else if (multiple) {
- mergedItemIcon = createVNode(CheckOutlined_default, null, null);
- } else {
- mergedItemIcon = null;
- }
- var mergedRemoveIcon = null;
- if (removeIcon !== void 0) {
- mergedRemoveIcon = removeIcon;
- } else {
- mergedRemoveIcon = createVNode(CloseOutlined_default, null, null);
- }
- return {
- clearIcon: mergedClearIcon,
- suffixIcon: mergedSuffixIcon,
- itemIcon: mergedItemIcon,
- removeIcon: mergedRemoveIcon
- };
- }
- // node_modules/ant-design-vue/es/form/FormItemContext.js
- var ContextKey = Symbol("ContextProps");
- var InternalContextKey = Symbol("InternalContextProps");
- var useProvideFormItemContext = function useProvideFormItemContext2(props5) {
- var useValidation = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : computed(function() {
- return true;
- });
- var formItemFields = ref(/* @__PURE__ */ new Map());
- var addFormItemField2 = function addFormItemField3(key2, type4) {
- formItemFields.value.set(key2, type4);
- formItemFields.value = new Map(formItemFields.value);
- };
- var removeFormItemField2 = function removeFormItemField3(key2) {
- formItemFields.value.delete(key2);
- formItemFields.value = new Map(formItemFields.value);
- };
- var instance = getCurrentInstance();
- watch([useValidation, formItemFields], function() {
- if (true) {
- if (useValidation.value && formItemFields.value.size > 1) {
- devWarning_default(false, "Form.Item", "FormItem can only collect one field item, you haved set ".concat(_toConsumableArray(formItemFields.value.values()).map(function(v2) {
- return "`".concat(v2.name, "`");
- }).join(", "), " ").concat(formItemFields.value.size, " field items.\n You can set not need to be collected fields into `a-form-item-rest`"));
- var cur = instance;
- while (cur.parent) {
- console.warn("at", cur.type);
- cur = cur.parent;
- }
- }
- }
- });
- provide(ContextKey, props5);
- provide(InternalContextKey, {
- addFormItemField: addFormItemField2,
- removeFormItemField: removeFormItemField2
- });
- };
- var defaultContext = {
- id: computed(function() {
- return void 0;
- }),
- onFieldBlur: function onFieldBlur() {
- },
- onFieldChange: function onFieldChange() {
- },
- clearValidate: function clearValidate() {
- }
- };
- var defaultInternalContext = {
- addFormItemField: function addFormItemField() {
- },
- removeFormItemField: function removeFormItemField() {
- }
- };
- var useInjectFormItemContext = function useInjectFormItemContext2() {
- var internalContext = inject(InternalContextKey, defaultInternalContext);
- var formItemFieldKey = Symbol("FormItemFieldKey");
- var instance = getCurrentInstance();
- internalContext.addFormItemField(formItemFieldKey, instance.type);
- onBeforeUnmount(function() {
- internalContext.removeFormItemField(formItemFieldKey);
- });
- provide(InternalContextKey, defaultInternalContext);
- provide(ContextKey, defaultContext);
- return inject(ContextKey, defaultContext);
- };
- var FormItemContext_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AFormItemRest",
- setup: function setup30(_2, _ref) {
- var slots = _ref.slots;
- provide(InternalContextKey, defaultInternalContext);
- provide(ContextKey, defaultContext);
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/select/index.js
- var selectProps2 = function selectProps3() {
- return _objectSpread2(_objectSpread2({}, omit_default(selectProps(), ["inputIcon", "mode", "getInputElement", "getRawInputElement", "backfill"])), {}, {
- value: {
- type: [Array, Object, String, Number]
- },
- defaultValue: {
- type: [Array, Object, String, Number]
- },
- notFoundContent: vue_types_default.any,
- suffixIcon: vue_types_default.any,
- itemIcon: vue_types_default.any,
- size: String,
- mode: String,
- bordered: {
- type: Boolean,
- default: true
- },
- transitionName: String,
- choiceTransitionName: {
- type: String,
- default: ""
- },
- "onUpdate:value": Function
- });
- };
- var SECRET_COMBOBOX_MODE_DO_NOT_USE = "SECRET_COMBOBOX_MODE_DO_NOT_USE";
- var Select = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASelect",
- Option: Option_default,
- OptGroup: OptGroup_default,
- inheritAttrs: false,
- props: initDefaultProps_default(selectProps2(), {
- listHeight: 256,
- listItemHeight: 24
- }),
- SECRET_COMBOBOX_MODE_DO_NOT_USE,
- // emits: ['change', 'update:value', 'blur'],
- slots: [
- "notFoundContent",
- "suffixIcon",
- "itemIcon",
- "removeIcon",
- "clearIcon",
- "dropdownRender",
- "option",
- "placeholder",
- "tagRender",
- "maxTagPlaceholder",
- "optionLabel"
- // donot use, maybe remove it
- ],
- setup: function setup31(props5, _ref) {
- var attrs = _ref.attrs, emit = _ref.emit, slots = _ref.slots, expose = _ref.expose;
- var selectRef = ref();
- var formItemContext = useInjectFormItemContext();
- var focus = function focus2() {
- var _selectRef$value;
- (_selectRef$value = selectRef.value) === null || _selectRef$value === void 0 ? void 0 : _selectRef$value.focus();
- };
- var blur = function blur2() {
- var _selectRef$value2;
- (_selectRef$value2 = selectRef.value) === null || _selectRef$value2 === void 0 ? void 0 : _selectRef$value2.blur();
- };
- var scrollTo3 = function scrollTo4(arg) {
- var _selectRef$value3;
- (_selectRef$value3 = selectRef.value) === null || _selectRef$value3 === void 0 ? void 0 : _selectRef$value3.scrollTo(arg);
- };
- var mode = computed(function() {
- var mode2 = props5.mode;
- if (mode2 === "combobox") {
- return void 0;
- }
- if (mode2 === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
- return "combobox";
- }
- return mode2;
- });
- var _useConfigInject = useConfigInject_default("select", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, configProvider = _useConfigInject.configProvider, size = _useConfigInject.size, getPrefixCls2 = _useConfigInject.getPrefixCls;
- var rootPrefixCls = computed(function() {
- return getPrefixCls2();
- });
- var transitionName2 = computed(function() {
- return getTransitionName(rootPrefixCls.value, "slide-up", props5.transitionName);
- });
- var mergedClassName = computed(function() {
- var _classNames;
- return classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-lg"), size.value === "large"), _defineProperty(_classNames, "".concat(prefixCls.value, "-sm"), size.value === "small"), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames, "".concat(prefixCls.value, "-borderless"), !props5.bordered), _classNames));
- });
- var triggerChange = function triggerChange2() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- emit("update:value", args[0]);
- emit.apply(void 0, ["change"].concat(args));
- formItemContext.onFieldChange();
- };
- var handleBlur = function handleBlur2(e3) {
- emit("blur", e3);
- formItemContext.onFieldBlur();
- };
- expose({
- blur,
- focus,
- scrollTo: scrollTo3
- });
- var isMultiple2 = computed(function() {
- return mode.value === "multiple" || mode.value === "tags";
- });
- return function() {
- var _slots$placeholder, _slots$default;
- var notFoundContent = props5.notFoundContent, _props$listHeight = props5.listHeight, listHeight = _props$listHeight === void 0 ? 256 : _props$listHeight, _props$listItemHeight = props5.listItemHeight, listItemHeight = _props$listItemHeight === void 0 ? 24 : _props$listItemHeight, getPopupContainer = props5.getPopupContainer, dropdownClassName = props5.dropdownClassName, virtual = props5.virtual, dropdownMatchSelectWidth = props5.dropdownMatchSelectWidth, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id, _props$placeholder = props5.placeholder, placeholder = _props$placeholder === void 0 ? (_slots$placeholder = slots.placeholder) === null || _slots$placeholder === void 0 ? void 0 : _slots$placeholder.call(slots) : _props$placeholder;
- var renderEmpty2 = configProvider.renderEmpty, getContextPopupContainer = configProvider.getPopupContainer;
- var mergedNotFound;
- if (notFoundContent !== void 0) {
- mergedNotFound = notFoundContent;
- } else if (slots.notFoundContent) {
- mergedNotFound = slots.notFoundContent();
- } else if (mode.value === "combobox") {
- mergedNotFound = null;
- } else {
- mergedNotFound = renderEmpty2("Select");
- }
- var _getIcons = getIcons(_objectSpread2(_objectSpread2({}, props5), {}, {
- multiple: isMultiple2.value,
- prefixCls: prefixCls.value
- }), slots), suffixIcon = _getIcons.suffixIcon, itemIcon = _getIcons.itemIcon, removeIcon = _getIcons.removeIcon, clearIcon = _getIcons.clearIcon;
- var selectProps4 = omit_default(props5, ["prefixCls", "suffixIcon", "itemIcon", "removeIcon", "clearIcon", "size", "bordered"]);
- var rcSelectRtlDropDownClassName = classNames_default(dropdownClassName, _defineProperty({}, "".concat(prefixCls.value, "-dropdown-").concat(direction.value), direction.value === "rtl"));
- return createVNode(vc_select_default, _objectSpread2(_objectSpread2(_objectSpread2({
- "ref": selectRef,
- "virtual": virtual,
- "dropdownMatchSelectWidth": dropdownMatchSelectWidth
- }, selectProps4), attrs), {}, {
- "placeholder": placeholder,
- "listHeight": listHeight,
- "listItemHeight": listItemHeight,
- "mode": mode.value,
- "prefixCls": prefixCls.value,
- "direction": direction.value,
- "inputIcon": suffixIcon,
- "menuItemSelectedIcon": itemIcon,
- "removeIcon": removeIcon,
- "clearIcon": clearIcon,
- "notFoundContent": mergedNotFound,
- "class": [mergedClassName.value, attrs.class],
- "getPopupContainer": getPopupContainer || getContextPopupContainer,
- "dropdownClassName": rcSelectRtlDropDownClassName,
- "onChange": triggerChange,
- "onBlur": handleBlur,
- "id": id,
- "dropdownRender": selectProps4.dropdownRender || slots.dropdownRender,
- "transitionName": transitionName2.value,
- "children": (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots),
- "tagRender": props5.tagRender || slots.tagRender,
- "optionLabelRender": slots.optionLabel,
- "maxTagPlaceholder": props5.maxTagPlaceholder || slots.maxTagPlaceholder
- }), {
- option: slots.option
- });
- };
- }
- });
- Select.install = function(app) {
- app.component(Select.name, Select);
- app.component(Select.Option.displayName, Select.Option);
- app.component(Select.OptGroup.displayName, Select.OptGroup);
- return app;
- };
- var SelectOption = Select.Option;
- var SelectOptGroup = Select.OptGroup;
- var select_default = Select;
- // node_modules/ant-design-vue/es/auto-complete/Option.js
- var Option3 = function Option4() {
- return null;
- };
- Option3.isSelectOption = true;
- Option3.displayName = "AAutoCompleteOption";
- var Option_default2 = Option3;
- // node_modules/ant-design-vue/es/auto-complete/OptGroup.js
- var OptGroup3 = function OptGroup4() {
- return null;
- };
- OptGroup3.isSelectOptGroup = true;
- OptGroup3.displayName = "AAutoCompleteOptGroup";
- var OptGroup_default2 = OptGroup3;
- // node_modules/ant-design-vue/es/auto-complete/index.js
- function isSelectOptionOrSelectOptGroup(child) {
- var _child$type, _child$type2;
- return (child === null || child === void 0 ? void 0 : (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.isSelectOption) || (child === null || child === void 0 ? void 0 : (_child$type2 = child.type) === null || _child$type2 === void 0 ? void 0 : _child$type2.isSelectOptGroup);
- }
- var autoCompleteProps = function autoCompleteProps2() {
- return _objectSpread2(_objectSpread2({}, omit_default(selectProps2(), ["loading", "mode", "optionLabelProp", "labelInValue"])), {}, {
- dataSource: Array,
- dropdownMenuStyle: {
- type: Object,
- default: void 0
- },
- // optionLabelProp: String,
- dropdownMatchSelectWidth: {
- type: [Number, Boolean],
- default: true
- },
- prefixCls: String,
- showSearch: {
- type: Boolean,
- default: void 0
- },
- transitionName: String,
- choiceTransitionName: {
- type: String,
- default: "zoom"
- },
- autofocus: {
- type: Boolean,
- default: void 0
- },
- backfill: {
- type: Boolean,
- default: void 0
- },
- // optionLabelProp: PropTypes.string.def('children'),
- filterOption: {
- type: [Boolean, Function],
- default: false
- },
- defaultActiveFirstOption: {
- type: Boolean,
- default: true
- }
- });
- };
- var AutoCompleteOption = Option_default2;
- var AutoCompleteOptGroup = OptGroup_default2;
- var AutoComplete = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AAutoComplete",
- inheritAttrs: false,
- props: autoCompleteProps(),
- // emits: ['change', 'select', 'focus', 'blur'],
- slots: ["option"],
- setup: function setup32(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose;
- warning_default2(!("dataSource" in slots), "AutoComplete", "`dataSource` slot is deprecated, please use props `options` instead.");
- warning_default2(!("options" in slots), "AutoComplete", "`options` slot is deprecated, please use props `options` instead.");
- var selectRef = ref();
- var getInputElement = function getInputElement2() {
- var _slots$default;
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- var element = children.length ? children[0] : void 0;
- return element;
- };
- var focus = function focus2() {
- var _selectRef$value;
- (_selectRef$value = selectRef.value) === null || _selectRef$value === void 0 ? void 0 : _selectRef$value.focus();
- };
- var blur = function blur2() {
- var _selectRef$value2;
- (_selectRef$value2 = selectRef.value) === null || _selectRef$value2 === void 0 ? void 0 : _selectRef$value2.blur();
- };
- expose({
- focus,
- blur
- });
- var _useConfigInject = useConfigInject_default("select", props5), prefixCls = _useConfigInject.prefixCls;
- return function() {
- var _slots$notFoundConten, _cls;
- var size = props5.size, dataSource = props5.dataSource, _props$notFoundConten = props5.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? (_slots$notFoundConten = slots.notFoundContent) === null || _slots$notFoundConten === void 0 ? void 0 : _slots$notFoundConten.call(slots) : _props$notFoundConten;
- var optionChildren;
- var className = attrs.class;
- var cls = (_cls = {}, _defineProperty(_cls, className, !!className), _defineProperty(_cls, "".concat(prefixCls.value, "-lg"), size === "large"), _defineProperty(_cls, "".concat(prefixCls.value, "-sm"), size === "small"), _defineProperty(_cls, "".concat(prefixCls.value, "-show-search"), true), _defineProperty(_cls, "".concat(prefixCls.value, "-auto-complete"), true), _cls);
- if (props5.options === void 0) {
- var _slots$dataSource, _slots$options;
- var childArray = ((_slots$dataSource = slots.dataSource) === null || _slots$dataSource === void 0 ? void 0 : _slots$dataSource.call(slots)) || ((_slots$options = slots.options) === null || _slots$options === void 0 ? void 0 : _slots$options.call(slots)) || [];
- if (childArray.length && isSelectOptionOrSelectOptGroup(childArray[0])) {
- optionChildren = childArray;
- } else {
- optionChildren = dataSource ? dataSource.map(function(item) {
- if (isValidElement(item)) {
- return item;
- }
- switch (_typeof(item)) {
- case "string":
- return createVNode(Option_default2, {
- "key": item,
- "value": item
- }, {
- default: function _default9() {
- return [item];
- }
- });
- case "object":
- return createVNode(Option_default2, {
- "key": item.value,
- "value": item.value
- }, {
- default: function _default9() {
- return [item.text];
- }
- });
- default:
- throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.");
- }
- }) : [];
- }
- }
- var selectProps4 = omit_default(_objectSpread2(_objectSpread2(_objectSpread2({}, props5), attrs), {}, {
- mode: select_default.SECRET_COMBOBOX_MODE_DO_NOT_USE,
- // optionLabelProp,
- getInputElement,
- notFoundContent,
- // placeholder: '',
- class: cls,
- ref: selectRef
- }), ["dataSource", "loading"]);
- return createVNode(select_default, selectProps4, _objectSpread2({
- default: function _default9() {
- return [optionChildren];
- }
- }, omit_default(slots, ["default", "dataSource", "options"])));
- };
- }
- });
- var auto_complete_default = _extends(AutoComplete, {
- Option: Option_default2,
- OptGroup: OptGroup_default2,
- install: function install(app) {
- app.component(AutoComplete.name, AutoComplete);
- app.component(Option_default2.displayName, Option_default2);
- app.component(OptGroup_default2.displayName, OptGroup_default2);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/alert/index.js
- var iconMapFilled = {
- success: CheckCircleFilled_default,
- info: InfoCircleFilled_default,
- error: CloseCircleFilled_default,
- warning: ExclamationCircleFilled_default
- };
- var iconMapOutlined = {
- success: CheckCircleOutlined_default,
- info: InfoCircleOutlined_default,
- error: CloseCircleOutlined_default,
- warning: ExclamationCircleOutlined_default
- };
- var AlertTypes = tuple("success", "info", "warning", "error");
- var alertProps = function alertProps2() {
- return {
- /**
- * Type of Alert styles, options: `success`, `info`, `warning`, `error`
- */
- type: vue_types_default.oneOf(AlertTypes),
- /** Whether Alert can be closed */
- closable: {
- type: Boolean,
- default: void 0
- },
- /** Close text to show */
- closeText: vue_types_default.any,
- /** Content of Alert */
- message: vue_types_default.any,
- /** Additional content of Alert */
- description: vue_types_default.any,
- /** Trigger when animation ending of Alert */
- afterClose: Function,
- /** Whether to show icon */
- showIcon: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- banner: {
- type: Boolean,
- default: void 0
- },
- icon: vue_types_default.any,
- closeIcon: vue_types_default.any,
- onClose: Function
- };
- };
- var Alert = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AAlert",
- inheritAttrs: false,
- props: alertProps(),
- setup: function setup33(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, attrs = _ref.attrs, expose = _ref.expose;
- var _useConfigInject = useConfigInject_default("alert", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var closing = ref(false);
- var closed = ref(false);
- var alertNode = ref();
- var handleClose = function handleClose2(e3) {
- e3.preventDefault();
- var dom = alertNode.value;
- dom.style.height = "".concat(dom.offsetHeight, "px");
- dom.style.height = "".concat(dom.offsetHeight, "px");
- closing.value = true;
- emit("close", e3);
- };
- var animationEnd = function animationEnd2() {
- var _props$afterClose;
- closing.value = false;
- closed.value = true;
- (_props$afterClose = props5.afterClose) === null || _props$afterClose === void 0 ? void 0 : _props$afterClose.call(props5);
- };
- expose({
- animationEnd
- });
- var motionStyle = ref({});
- return function() {
- var _slots$closeIcon, _classNames;
- var banner = props5.banner, _props$closeIcon = props5.closeIcon, customCloseIcon = _props$closeIcon === void 0 ? (_slots$closeIcon = slots.closeIcon) === null || _slots$closeIcon === void 0 ? void 0 : _slots$closeIcon.call(slots) : _props$closeIcon;
- var closable = props5.closable, type4 = props5.type, showIcon = props5.showIcon;
- var closeText = getPropsSlot(slots, props5, "closeText");
- var description = getPropsSlot(slots, props5, "description");
- var message = getPropsSlot(slots, props5, "message");
- var icon = getPropsSlot(slots, props5, "icon");
- showIcon = banner && showIcon === void 0 ? true : showIcon;
- type4 = banner && type4 === void 0 ? "warning" : type4 || "info";
- var IconType = (description ? iconMapOutlined : iconMapFilled)[type4] || null;
- if (closeText) {
- closable = true;
- }
- var prefixClsValue = prefixCls.value;
- var alertCls = classNames_default(prefixClsValue, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixClsValue, "-").concat(type4), true), _defineProperty(_classNames, "".concat(prefixClsValue, "-closing"), closing.value), _defineProperty(_classNames, "".concat(prefixClsValue, "-with-description"), !!description), _defineProperty(_classNames, "".concat(prefixClsValue, "-no-icon"), !showIcon), _defineProperty(_classNames, "".concat(prefixClsValue, "-banner"), !!banner), _defineProperty(_classNames, "".concat(prefixClsValue, "-closable"), closable), _defineProperty(_classNames, "".concat(prefixClsValue, "-rtl"), direction.value === "rtl"), _classNames));
- var closeIcon = closable ? createVNode("button", {
- "type": "button",
- "onClick": handleClose,
- "class": "".concat(prefixClsValue, "-close-icon"),
- "tabindex": 0
- }, [closeText ? createVNode("span", {
- "class": "".concat(prefixClsValue, "-close-text")
- }, [closeText]) : customCloseIcon === void 0 ? createVNode(CloseOutlined_default, null, null) : customCloseIcon]) : null;
- var iconNode = icon && (isValidElement(icon) ? cloneElement(icon, {
- class: "".concat(prefixClsValue, "-icon")
- }) : createVNode("span", {
- "class": "".concat(prefixClsValue, "-icon")
- }, [icon])) || createVNode(IconType, {
- "class": "".concat(prefixClsValue, "-icon")
- }, null);
- var transitionProps = getTransitionProps("".concat(prefixClsValue, "-motion"), {
- appear: false,
- css: true,
- onAfterLeave: animationEnd,
- onBeforeLeave: function onBeforeLeave(node) {
- node.style.maxHeight = "".concat(node.offsetHeight, "px");
- },
- onLeave: function onLeave(node) {
- node.style.maxHeight = "0px";
- }
- });
- return closed.value ? null : createVNode(Transition, transitionProps, {
- default: function _default9() {
- return [withDirectives(createVNode("div", _objectSpread2(_objectSpread2({
- "role": "alert"
- }, attrs), {}, {
- "style": [attrs.style, motionStyle.value],
- "class": [attrs.class, alertCls],
- "data-show": !closing.value,
- "ref": alertNode
- }), [showIcon ? iconNode : null, createVNode("div", {
- "class": "".concat(prefixClsValue, "-content")
- }, [message ? createVNode("div", {
- "class": "".concat(prefixClsValue, "-message")
- }, [message]) : null, description ? createVNode("div", {
- "class": "".concat(prefixClsValue, "-description")
- }, [description]) : null]), closeIcon]), [[vShow, !closing.value]])];
- }
- });
- };
- }
- });
- var alert_default = withInstall(Alert);
- // node_modules/ant-design-vue/es/_util/responsiveObserve.js
- var responsiveArray = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"];
- var responsiveMap = {
- xs: "(max-width: 575px)",
- sm: "(min-width: 576px)",
- md: "(min-width: 768px)",
- lg: "(min-width: 992px)",
- xl: "(min-width: 1200px)",
- xxl: "(min-width: 1600px)",
- xxxl: "(min-width: 2000px)"
- };
- var subscribers = /* @__PURE__ */ new Map();
- var subUid = -1;
- var screens = {};
- var responsiveObserve = {
- matchHandlers: {},
- dispatch: function dispatch(pointMap) {
- screens = pointMap;
- subscribers.forEach(function(func) {
- return func(screens);
- });
- return subscribers.size >= 1;
- },
- subscribe: function subscribe(func) {
- if (!subscribers.size)
- this.register();
- subUid += 1;
- subscribers.set(subUid, func);
- func(screens);
- return subUid;
- },
- unsubscribe: function unsubscribe(token) {
- subscribers.delete(token);
- if (!subscribers.size)
- this.unregister();
- },
- unregister: function unregister() {
- var _this = this;
- Object.keys(responsiveMap).forEach(function(screen) {
- var matchMediaQuery = responsiveMap[screen];
- var handler5 = _this.matchHandlers[matchMediaQuery];
- handler5 === null || handler5 === void 0 ? void 0 : handler5.mql.removeListener(handler5 === null || handler5 === void 0 ? void 0 : handler5.listener);
- });
- subscribers.clear();
- },
- register: function register() {
- var _this2 = this;
- Object.keys(responsiveMap).forEach(function(screen) {
- var matchMediaQuery = responsiveMap[screen];
- var listener = function listener2(_ref) {
- var matches = _ref.matches;
- _this2.dispatch(_objectSpread2(_objectSpread2({}, screens), {}, _defineProperty({}, screen, matches)));
- };
- var mql = window.matchMedia(matchMediaQuery);
- mql.addListener(listener);
- _this2.matchHandlers[matchMediaQuery] = {
- mql,
- listener
- };
- listener(mql);
- });
- }
- };
- var responsiveObserve_default = responsiveObserve;
- // node_modules/ant-design-vue/es/_util/hooks/useBreakpoint.js
- function useBreakpoint() {
- var screens2 = ref({});
- var token = null;
- onMounted(function() {
- token = responsiveObserve_default.subscribe(function(supportScreens) {
- screens2.value = supportScreens;
- });
- });
- onUnmounted(function() {
- responsiveObserve_default.unsubscribe(token);
- });
- return screens2;
- }
- var useBreakpoint_default = useBreakpoint;
- // node_modules/ant-design-vue/es/_util/hooks/useSize.js
- var sizeProvider = Symbol("SizeProvider");
- var useProvideSize = function useProvideSize2(props5) {
- var configProvider = inject("configProvider", defaultConfigProvider);
- var size = computed(function() {
- return props5.size || configProvider.componentSize;
- });
- provide(sizeProvider, size);
- return size;
- };
- var useInjectSize = function useInjectSize2(props5) {
- var size = props5 ? computed(function() {
- return props5.size;
- }) : inject(sizeProvider, computed(function() {
- return "default";
- }));
- return size;
- };
- var useSize_default = useProvideSize;
- // node_modules/ant-design-vue/es/_util/eagerComputed.js
- function eagerComputed(fn) {
- var result = shallowRef();
- watchEffect(function() {
- result.value = fn();
- }, {
- flush: "sync"
- // needed so updates are immediate.
- });
- return result;
- }
- // node_modules/ant-design-vue/es/avatar/Avatar.js
- var avatarProps = function avatarProps2() {
- return {
- prefixCls: String,
- shape: {
- type: String,
- default: "circle"
- },
- size: {
- type: [Number, String, Object],
- default: function _default9() {
- return "default";
- }
- },
- src: String,
- /** Srcset of image avatar */
- srcset: String,
- icon: vue_types_default.any,
- alt: String,
- gap: Number,
- draggable: {
- type: Boolean,
- default: void 0
- },
- crossOrigin: String,
- loadError: {
- type: Function
- }
- };
- };
- var Avatar = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AAvatar",
- inheritAttrs: false,
- props: avatarProps(),
- slots: ["icon"],
- setup: function setup34(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var isImgExist = ref(true);
- var isMounted = ref(false);
- var scale = ref(1);
- var avatarChildrenRef = ref(null);
- var avatarNodeRef = ref(null);
- var _useConfigInject = useConfigInject_default("avatar", props5), prefixCls = _useConfigInject.prefixCls;
- var groupSize = useInjectSize();
- var size = computed(function() {
- return props5.size === "default" ? groupSize.value : props5.size;
- });
- var screens2 = useBreakpoint_default();
- var responsiveSize = eagerComputed(function() {
- if (_typeof(props5.size) !== "object") {
- return void 0;
- }
- var currentBreakpoint = responsiveArray.find(function(screen) {
- return screens2.value[screen];
- });
- var currentSize = props5.size[currentBreakpoint];
- return currentSize;
- });
- var responsiveSizeStyle = function responsiveSizeStyle2(hasIcon) {
- if (responsiveSize.value) {
- return {
- width: "".concat(responsiveSize.value, "px"),
- height: "".concat(responsiveSize.value, "px"),
- lineHeight: "".concat(responsiveSize.value, "px"),
- fontSize: "".concat(hasIcon ? responsiveSize.value / 2 : 18, "px")
- };
- }
- return {};
- };
- var setScaleParam = function setScaleParam2() {
- if (!avatarChildrenRef.value || !avatarNodeRef.value) {
- return;
- }
- var childrenWidth = avatarChildrenRef.value.offsetWidth;
- var nodeWidth = avatarNodeRef.value.offsetWidth;
- if (childrenWidth !== 0 && nodeWidth !== 0) {
- var _props$gap = props5.gap, gap = _props$gap === void 0 ? 4 : _props$gap;
- if (gap * 2 < nodeWidth) {
- scale.value = nodeWidth - gap * 2 < childrenWidth ? (nodeWidth - gap * 2) / childrenWidth : 1;
- }
- }
- };
- var handleImgLoadError = function handleImgLoadError2() {
- var loadError = props5.loadError;
- var errorFlag = loadError === null || loadError === void 0 ? void 0 : loadError();
- if (errorFlag !== false) {
- isImgExist.value = false;
- }
- };
- watch(function() {
- return props5.src;
- }, function() {
- nextTick(function() {
- isImgExist.value = true;
- scale.value = 1;
- });
- });
- watch(function() {
- return props5.gap;
- }, function() {
- nextTick(function() {
- setScaleParam();
- });
- });
- onMounted(function() {
- nextTick(function() {
- setScaleParam();
- isMounted.value = true;
- });
- });
- return function() {
- var _classString, _slots$default;
- var shape = props5.shape, src = props5.src, alt = props5.alt, srcset = props5.srcset, draggable = props5.draggable, crossOrigin = props5.crossOrigin;
- var icon = getPropsSlot(slots, props5, "icon");
- var pre = prefixCls.value;
- var classString = (_classString = {}, _defineProperty(_classString, "".concat(attrs.class), !!attrs.class), _defineProperty(_classString, pre, true), _defineProperty(_classString, "".concat(pre, "-lg"), size.value === "large"), _defineProperty(_classString, "".concat(pre, "-sm"), size.value === "small"), _defineProperty(_classString, "".concat(pre, "-").concat(shape), shape), _defineProperty(_classString, "".concat(pre, "-image"), src && isImgExist.value), _defineProperty(_classString, "".concat(pre, "-icon"), icon), _classString);
- var sizeStyle = typeof size.value === "number" ? {
- width: "".concat(size.value, "px"),
- height: "".concat(size.value, "px"),
- lineHeight: "".concat(size.value, "px"),
- fontSize: icon ? "".concat(size.value / 2, "px") : "18px"
- } : {};
- var children = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- var childrenToRender;
- if (src && isImgExist.value) {
- childrenToRender = createVNode("img", {
- "draggable": draggable,
- "src": src,
- "srcset": srcset,
- "onError": handleImgLoadError,
- "alt": alt,
- "crossorigin": crossOrigin
- }, null);
- } else if (icon) {
- childrenToRender = icon;
- } else if (isMounted.value || scale.value !== 1) {
- var transformString = "scale(".concat(scale.value, ") translateX(-50%)");
- var childrenStyle = {
- msTransform: transformString,
- WebkitTransform: transformString,
- transform: transformString
- };
- var sizeChildrenStyle = typeof size.value === "number" ? {
- lineHeight: "".concat(size.value, "px")
- } : {};
- childrenToRender = createVNode(vc_resize_observer_default, {
- "onResize": setScaleParam
- }, {
- default: function _default9() {
- return [createVNode("span", {
- "class": "".concat(pre, "-string"),
- "ref": avatarChildrenRef,
- "style": _objectSpread2(_objectSpread2({}, sizeChildrenStyle), childrenStyle)
- }, [children])];
- }
- });
- } else {
- childrenToRender = createVNode("span", {
- "class": "".concat(pre, "-string"),
- "ref": avatarChildrenRef,
- "style": {
- opacity: 0
- }
- }, [children]);
- }
- return createVNode("span", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "ref": avatarNodeRef,
- "class": classString,
- "style": [sizeStyle, responsiveSizeStyle(!!icon), attrs.style]
- }), [childrenToRender]);
- };
- }
- });
- var Avatar_default = Avatar;
- // node_modules/ant-design-vue/es/vc-tooltip/src/placements.js
- var autoAdjustOverflow = {
- adjustX: 1,
- adjustY: 1
- };
- var targetOffset = [0, 0];
- var placements = {
- left: {
- points: ["cr", "cl"],
- overflow: autoAdjustOverflow,
- offset: [-4, 0],
- targetOffset
- },
- right: {
- points: ["cl", "cr"],
- overflow: autoAdjustOverflow,
- offset: [4, 0],
- targetOffset
- },
- top: {
- points: ["bc", "tc"],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset
- },
- bottom: {
- points: ["tc", "bc"],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset
- },
- topLeft: {
- points: ["bl", "tl"],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset
- },
- leftTop: {
- points: ["tr", "tl"],
- overflow: autoAdjustOverflow,
- offset: [-4, 0],
- targetOffset
- },
- topRight: {
- points: ["br", "tr"],
- overflow: autoAdjustOverflow,
- offset: [0, -4],
- targetOffset
- },
- rightTop: {
- points: ["tl", "tr"],
- overflow: autoAdjustOverflow,
- offset: [4, 0],
- targetOffset
- },
- bottomRight: {
- points: ["tr", "br"],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset
- },
- rightBottom: {
- points: ["bl", "br"],
- overflow: autoAdjustOverflow,
- offset: [4, 0],
- targetOffset
- },
- bottomLeft: {
- points: ["tl", "bl"],
- overflow: autoAdjustOverflow,
- offset: [0, 4],
- targetOffset
- },
- leftBottom: {
- points: ["br", "bl"],
- overflow: autoAdjustOverflow,
- offset: [-4, 0],
- targetOffset
- }
- };
- // node_modules/ant-design-vue/es/vc-tooltip/src/Content.js
- var tooltipContentProps = {
- prefixCls: String,
- id: String,
- overlayInnerStyle: vue_types_default.any
- };
- var Content_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Content",
- props: tooltipContentProps,
- slots: ["overlay"],
- setup: function setup35(props5, _ref) {
- var slots = _ref.slots;
- return function() {
- var _slots$overlay;
- return createVNode("div", {
- "class": "".concat(props5.prefixCls, "-inner"),
- "id": props5.id,
- "role": "tooltip",
- "style": props5.overlayInnerStyle
- }, [(_slots$overlay = slots.overlay) === null || _slots$overlay === void 0 ? void 0 : _slots$overlay.call(slots)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tooltip/src/Tooltip.js
- var _excluded11 = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible"];
- function noop3() {
- }
- var Tooltip_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Tooltip",
- inheritAttrs: false,
- props: {
- trigger: vue_types_default.any.def(["hover"]),
- defaultVisible: {
- type: Boolean,
- default: void 0
- },
- visible: {
- type: Boolean,
- default: void 0
- },
- placement: vue_types_default.string.def("right"),
- transitionName: String,
- animation: vue_types_default.any,
- afterVisibleChange: vue_types_default.func.def(function() {
- }),
- overlayStyle: {
- type: Object,
- default: void 0
- },
- overlayClassName: String,
- prefixCls: vue_types_default.string.def("rc-tooltip"),
- mouseEnterDelay: vue_types_default.number.def(0.1),
- mouseLeaveDelay: vue_types_default.number.def(0.1),
- getPopupContainer: Function,
- destroyTooltipOnHide: {
- type: Boolean,
- default: false
- },
- align: vue_types_default.object.def(function() {
- return {};
- }),
- arrowContent: vue_types_default.any.def(null),
- tipId: String,
- builtinPlacements: vue_types_default.object,
- overlayInnerStyle: {
- type: Object,
- default: void 0
- },
- popupVisible: {
- type: Boolean,
- default: void 0
- },
- onVisibleChange: Function,
- onPopupAlign: Function
- },
- slots: ["arrowContent", "overlay"],
- setup: function setup36(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose;
- var triggerDOM = ref();
- var getPopupElement = function getPopupElement2() {
- var prefixCls = props5.prefixCls, tipId = props5.tipId, overlayInnerStyle = props5.overlayInnerStyle;
- return [createVNode("div", {
- "class": "".concat(prefixCls, "-arrow"),
- "key": "arrow"
- }, [getPropsSlot(slots, props5, "arrowContent")]), createVNode(Content_default, {
- "key": "content",
- "prefixCls": prefixCls,
- "id": tipId,
- "overlayInnerStyle": overlayInnerStyle
- }, {
- overlay: slots.overlay
- })];
- };
- var getPopupDomNode2 = function getPopupDomNode3() {
- return triggerDOM.value.getPopupDomNode();
- };
- expose({
- getPopupDomNode: getPopupDomNode2,
- triggerDOM,
- forcePopupAlign: function forcePopupAlign2() {
- var _triggerDOM$value;
- return (_triggerDOM$value = triggerDOM.value) === null || _triggerDOM$value === void 0 ? void 0 : _triggerDOM$value.forcePopupAlign();
- }
- });
- var destroyTooltip = ref(false);
- var autoDestroy = ref(false);
- watchEffect(function() {
- var destroyTooltipOnHide = props5.destroyTooltipOnHide;
- if (typeof destroyTooltipOnHide === "boolean") {
- destroyTooltip.value = destroyTooltipOnHide;
- } else if (destroyTooltipOnHide && _typeof(destroyTooltipOnHide) === "object") {
- var keepParent = destroyTooltipOnHide.keepParent;
- destroyTooltip.value = keepParent === true;
- autoDestroy.value = keepParent === false;
- }
- });
- return function() {
- var overlayClassName = props5.overlayClassName, trigger2 = props5.trigger, mouseEnterDelay = props5.mouseEnterDelay, mouseLeaveDelay = props5.mouseLeaveDelay, overlayStyle = props5.overlayStyle, prefixCls = props5.prefixCls, afterVisibleChange2 = props5.afterVisibleChange, transitionName2 = props5.transitionName, animation = props5.animation, placement = props5.placement, align = props5.align, destroyTooltipOnHide = props5.destroyTooltipOnHide, defaultVisible = props5.defaultVisible, restProps = _objectWithoutProperties(props5, _excluded11);
- var extraProps = _objectSpread2({}, restProps);
- if (props5.visible !== void 0) {
- extraProps.popupVisible = props5.visible;
- }
- var triggerProps = _objectSpread2(_objectSpread2(_objectSpread2({
- popupClassName: overlayClassName,
- prefixCls,
- action: trigger2,
- builtinPlacements: placements,
- popupPlacement: placement,
- popupAlign: align,
- afterPopupVisibleChange: afterVisibleChange2,
- popupTransitionName: transitionName2,
- popupAnimation: animation,
- defaultPopupVisible: defaultVisible,
- destroyPopupOnHide: destroyTooltip.value,
- autoDestroy: autoDestroy.value,
- mouseLeaveDelay,
- popupStyle: overlayStyle,
- mouseEnterDelay
- }, extraProps), attrs), {}, {
- onPopupVisibleChange: props5.onVisibleChange || noop3,
- onPopupAlign: props5.onPopupAlign || noop3,
- ref: triggerDOM,
- popup: getPopupElement()
- });
- return createVNode(vc_trigger_default, triggerProps, {
- default: slots.default
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tooltip/index.js
- var vc_tooltip_default = Tooltip_default;
- // node_modules/ant-design-vue/es/_util/colors.js
- var PresetStatusColorTypes = tuple("success", "processing", "error", "default", "warning");
- var PresetColorTypes = tuple("pink", "red", "yellow", "orange", "cyan", "green", "blue", "purple", "geekblue", "magenta", "volcano", "gold", "lime");
- // node_modules/ant-design-vue/es/tooltip/abstractTooltipProps.js
- var abstractTooltipProps_default = function() {
- return {
- trigger: [String, Array],
- visible: {
- type: Boolean,
- default: void 0
- },
- defaultVisible: {
- type: Boolean,
- default: void 0
- },
- placement: String,
- color: String,
- transitionName: String,
- overlayStyle: {
- type: Object,
- default: void 0
- },
- overlayClassName: String,
- openClassName: String,
- prefixCls: String,
- mouseEnterDelay: Number,
- mouseLeaveDelay: Number,
- getPopupContainer: Function,
- arrowPointAtCenter: {
- type: Boolean,
- default: void 0
- },
- autoAdjustOverflow: {
- type: [Boolean, Object],
- default: void 0
- },
- destroyTooltipOnHide: {
- type: Boolean,
- default: void 0
- },
- align: {
- type: Object,
- default: void 0
- },
- builtinPlacements: {
- type: Object,
- default: void 0
- },
- children: Array,
- onVisibleChange: Function,
- "onUpdate:visible": Function
- };
- };
- // node_modules/ant-design-vue/es/tooltip/placements.js
- var autoAdjustOverflowEnabled = {
- adjustX: 1,
- adjustY: 1
- };
- var autoAdjustOverflowDisabled = {
- adjustX: 0,
- adjustY: 0
- };
- var targetOffset2 = [0, 0];
- function getOverflowOptions(autoAdjustOverflow4) {
- if (typeof autoAdjustOverflow4 === "boolean") {
- return autoAdjustOverflow4 ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;
- }
- return _objectSpread2(_objectSpread2({}, autoAdjustOverflowDisabled), autoAdjustOverflow4);
- }
- function getPlacements(config) {
- var _config$arrowWidth = config.arrowWidth, arrowWidth = _config$arrowWidth === void 0 ? 4 : _config$arrowWidth, _config$horizontalArr = config.horizontalArrowShift, horizontalArrowShift = _config$horizontalArr === void 0 ? 16 : _config$horizontalArr, _config$verticalArrow = config.verticalArrowShift, verticalArrowShift = _config$verticalArrow === void 0 ? 8 : _config$verticalArrow, autoAdjustOverflow4 = config.autoAdjustOverflow, arrowPointAtCenter = config.arrowPointAtCenter;
- var placementMap = {
- left: {
- points: ["cr", "cl"],
- offset: [-4, 0]
- },
- right: {
- points: ["cl", "cr"],
- offset: [4, 0]
- },
- top: {
- points: ["bc", "tc"],
- offset: [0, -4]
- },
- bottom: {
- points: ["tc", "bc"],
- offset: [0, 4]
- },
- topLeft: {
- points: ["bl", "tc"],
- offset: [-(horizontalArrowShift + arrowWidth), -4]
- },
- leftTop: {
- points: ["tr", "cl"],
- offset: [-4, -(verticalArrowShift + arrowWidth)]
- },
- topRight: {
- points: ["br", "tc"],
- offset: [horizontalArrowShift + arrowWidth, -4]
- },
- rightTop: {
- points: ["tl", "cr"],
- offset: [4, -(verticalArrowShift + arrowWidth)]
- },
- bottomRight: {
- points: ["tr", "bc"],
- offset: [horizontalArrowShift + arrowWidth, 4]
- },
- rightBottom: {
- points: ["bl", "cr"],
- offset: [4, verticalArrowShift + arrowWidth]
- },
- bottomLeft: {
- points: ["tl", "bc"],
- offset: [-(horizontalArrowShift + arrowWidth), 4]
- },
- leftBottom: {
- points: ["br", "cl"],
- offset: [-4, verticalArrowShift + arrowWidth]
- }
- };
- Object.keys(placementMap).forEach(function(key2) {
- placementMap[key2] = arrowPointAtCenter ? _objectSpread2(_objectSpread2({}, placementMap[key2]), {}, {
- overflow: getOverflowOptions(autoAdjustOverflow4),
- targetOffset: targetOffset2
- }) : _objectSpread2(_objectSpread2({}, placements[key2]), {}, {
- overflow: getOverflowOptions(autoAdjustOverflow4)
- });
- placementMap[key2].ignoreShake = true;
- });
- return placementMap;
- }
- // node_modules/ant-design-vue/es/_util/firstNotUndefined.js
- function firstNotUndefined() {
- var arr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- for (var i3 = 0, len = arr.length; i3 < len; i3++) {
- if (arr[i3] !== void 0) {
- return arr[i3];
- }
- }
- return void 0;
- }
- var firstNotUndefined_default = firstNotUndefined;
- // node_modules/ant-design-vue/es/tooltip/Tooltip.js
- var splitObject = function splitObject2(obj, keys2) {
- var picked = {};
- var omitted = _objectSpread2({}, obj);
- keys2.forEach(function(key2) {
- if (obj && key2 in obj) {
- picked[key2] = obj[key2];
- delete omitted[key2];
- }
- });
- return {
- picked,
- omitted
- };
- };
- var PresetColorRegex = new RegExp("^(".concat(PresetColorTypes.join("|"), ")(-inverse)?$"));
- var tooltipProps = function tooltipProps2() {
- return _objectSpread2(_objectSpread2({}, abstractTooltipProps_default()), {}, {
- title: vue_types_default.any
- });
- };
- var tooltipDefaultProps = function tooltipDefaultProps2() {
- return {
- trigger: "hover",
- transitionName: "zoom-big-fast",
- align: {},
- placement: "top",
- mouseEnterDelay: 0.1,
- mouseLeaveDelay: 0.1,
- arrowPointAtCenter: false,
- autoAdjustOverflow: true
- };
- };
- var Tooltip_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATooltip",
- inheritAttrs: false,
- props: initDefaultProps_default(tooltipProps(), {
- trigger: "hover",
- transitionName: "zoom-big-fast",
- align: {},
- placement: "top",
- mouseEnterDelay: 0.1,
- mouseLeaveDelay: 0.1,
- arrowPointAtCenter: false,
- autoAdjustOverflow: true
- }),
- slots: ["title"],
- // emits: ['update:visible', 'visibleChange'],
- setup: function setup37(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, attrs = _ref.attrs, expose = _ref.expose;
- var _useConfigInject = useConfigInject_default("tooltip", props5), prefixCls = _useConfigInject.prefixCls, getPopupContainer = _useConfigInject.getPopupContainer;
- var visible = ref(firstNotUndefined_default([props5.visible, props5.defaultVisible]));
- var tooltip = ref();
- onMounted(function() {
- warning_default2(props5.defaultVisible === void 0, "Tooltip", "'defaultVisible' is deprecated, please use 'v-model:visible'");
- });
- var rafId;
- watch(function() {
- return props5.visible;
- }, function(val) {
- wrapperRaf.cancel(rafId);
- rafId = wrapperRaf(function() {
- visible.value = !!val;
- });
- });
- var isNoTitle = function isNoTitle2() {
- var _props$title;
- var title = (_props$title = props5.title) !== null && _props$title !== void 0 ? _props$title : slots.title;
- return !title && title !== 0;
- };
- var handleVisibleChange = function handleVisibleChange2(val) {
- var noTitle = isNoTitle();
- if (props5.visible === void 0) {
- visible.value = noTitle ? false : val;
- }
- if (!noTitle) {
- emit("update:visible", val);
- emit("visibleChange", val);
- }
- };
- var getPopupDomNode2 = function getPopupDomNode3() {
- return tooltip.value.getPopupDomNode();
- };
- expose({
- getPopupDomNode: getPopupDomNode2,
- visible,
- forcePopupAlign: function forcePopupAlign2() {
- var _tooltip$value;
- return (_tooltip$value = tooltip.value) === null || _tooltip$value === void 0 ? void 0 : _tooltip$value.forcePopupAlign();
- }
- });
- var tooltipPlacements = computed(function() {
- var builtinPlacements = props5.builtinPlacements, arrowPointAtCenter = props5.arrowPointAtCenter, autoAdjustOverflow4 = props5.autoAdjustOverflow;
- return builtinPlacements || getPlacements({
- arrowPointAtCenter,
- autoAdjustOverflow: autoAdjustOverflow4
- });
- });
- var isTrueProps = function isTrueProps2(val) {
- return val || val === "";
- };
- var getDisabledCompatibleChildren = function getDisabledCompatibleChildren2(ele) {
- var elementType = ele.type;
- if (_typeof(elementType) === "object" && ele.props) {
- if ((elementType.__ANT_BUTTON === true || elementType === "button") && isTrueProps(ele.props.disabled) || elementType.__ANT_SWITCH === true && (isTrueProps(ele.props.disabled) || isTrueProps(ele.props.loading))) {
- var _splitObject = splitObject(getStyle(ele), ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), picked = _splitObject.picked, omitted = _splitObject.omitted;
- var spanStyle = _objectSpread2(_objectSpread2({
- display: "inline-block"
- }, picked), {}, {
- cursor: "not-allowed",
- lineHeight: 1,
- width: ele.props && ele.props.block ? "100%" : null
- });
- var buttonStyle = _objectSpread2(_objectSpread2({}, omitted), {}, {
- pointerEvents: "none"
- });
- var child = cloneElement(ele, {
- style: buttonStyle
- }, true);
- return createVNode("span", {
- "style": spanStyle,
- "class": "".concat(prefixCls.value, "-disabled-compatible-wrapper")
- }, [child]);
- }
- }
- return ele;
- };
- var getOverlay = function getOverlay2() {
- var _props$title2, _slots$title;
- return (_props$title2 = props5.title) !== null && _props$title2 !== void 0 ? _props$title2 : (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots);
- };
- var onPopupAlign = function onPopupAlign2(domNode, align) {
- var placements4 = tooltipPlacements.value;
- var placement = Object.keys(placements4).filter(function(key2) {
- return placements4[key2].points[0] === align.points[0] && placements4[key2].points[1] === align.points[1];
- })[0];
- if (!placement) {
- return;
- }
- var rect = domNode.getBoundingClientRect();
- var transformOrigin = {
- top: "50%",
- left: "50%"
- };
- if (placement.indexOf("top") >= 0 || placement.indexOf("Bottom") >= 0) {
- transformOrigin.top = "".concat(rect.height - align.offset[1], "px");
- } else if (placement.indexOf("Top") >= 0 || placement.indexOf("bottom") >= 0) {
- transformOrigin.top = "".concat(-align.offset[1], "px");
- }
- if (placement.indexOf("left") >= 0 || placement.indexOf("Right") >= 0) {
- transformOrigin.left = "".concat(rect.width - align.offset[0], "px");
- } else if (placement.indexOf("right") >= 0 || placement.indexOf("Left") >= 0) {
- transformOrigin.left = "".concat(-align.offset[0], "px");
- }
- domNode.style.transformOrigin = "".concat(transformOrigin.left, " ").concat(transformOrigin.top);
- };
- return function() {
- var _filterEmpty, _slots$default, _classNames;
- var openClassName = props5.openClassName, color = props5.color, overlayClassName = props5.overlayClassName;
- var children = (_filterEmpty = filterEmpty((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots))) !== null && _filterEmpty !== void 0 ? _filterEmpty : null;
- children = children.length === 1 ? children[0] : children;
- var tempVisible = visible.value;
- if (props5.visible === void 0 && isNoTitle()) {
- tempVisible = false;
- }
- if (!children) {
- return null;
- }
- var child = getDisabledCompatibleChildren(isValidElement(children) ? children : createVNode("span", null, [children]));
- var childCls = classNames_default((_classNames = {}, _defineProperty(_classNames, openClassName || "".concat(prefixCls.value, "-open"), true), _defineProperty(_classNames, child.props && child.props.class, child.props && child.props.class), _classNames));
- var customOverlayClassName = classNames_default(overlayClassName, _defineProperty({}, "".concat(prefixCls.value, "-").concat(color), color && PresetColorRegex.test(color)));
- var formattedOverlayInnerStyle;
- var arrowContentStyle;
- if (color && !PresetColorRegex.test(color)) {
- formattedOverlayInnerStyle = {
- backgroundColor: color
- };
- arrowContentStyle = {
- backgroundColor: color
- };
- }
- var vcTooltipProps = _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), props5), {}, {
- prefixCls: prefixCls.value,
- getPopupContainer: getPopupContainer.value,
- builtinPlacements: tooltipPlacements.value,
- visible: tempVisible,
- ref: tooltip,
- overlayClassName: customOverlayClassName,
- overlayInnerStyle: formattedOverlayInnerStyle,
- onVisibleChange: handleVisibleChange,
- onPopupAlign
- });
- return createVNode(vc_tooltip_default, vcTooltipProps, {
- default: function _default9() {
- return [visible.value ? cloneElement(child, {
- class: childCls
- }) : child];
- },
- arrowContent: function arrowContent() {
- return createVNode("span", {
- "class": "".concat(prefixCls.value, "-arrow-content"),
- "style": arrowContentStyle
- }, null);
- },
- overlay: getOverlay
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/tooltip/index.js
- var tooltip_default = withInstall(Tooltip_default2);
- // node_modules/ant-design-vue/es/popover/index.js
- var popoverProps = function popoverProps2() {
- return _objectSpread2(_objectSpread2({}, abstractTooltipProps_default()), {}, {
- content: vue_types_default.any,
- title: vue_types_default.any
- });
- };
- var Popover = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "APopover",
- props: initDefaultProps_default(popoverProps(), _objectSpread2(_objectSpread2({}, tooltipDefaultProps()), {}, {
- trigger: "hover",
- transitionName: "zoom-big",
- placement: "top",
- mouseEnterDelay: 0.1,
- mouseLeaveDelay: 0.1
- })),
- setup: function setup38(props5, _ref) {
- var expose = _ref.expose, slots = _ref.slots;
- var tooltipRef = ref();
- expose({
- getPopupDomNode: function getPopupDomNode2() {
- var _tooltipRef$value, _tooltipRef$value$get;
- return (_tooltipRef$value = tooltipRef.value) === null || _tooltipRef$value === void 0 ? void 0 : (_tooltipRef$value$get = _tooltipRef$value.getPopupDomNode) === null || _tooltipRef$value$get === void 0 ? void 0 : _tooltipRef$value$get.call(_tooltipRef$value);
- }
- });
- var _useConfigInject = useConfigInject_default("popover", props5), prefixCls = _useConfigInject.prefixCls, configProvider = _useConfigInject.configProvider;
- var rootPrefixCls = computed(function() {
- return configProvider.getPrefixCls();
- });
- var getOverlay = function getOverlay2() {
- var _slots$title, _slots$content;
- var _props$title = props5.title, title = _props$title === void 0 ? filterEmpty((_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots)) : _props$title, _props$content = props5.content, content = _props$content === void 0 ? filterEmpty((_slots$content = slots.content) === null || _slots$content === void 0 ? void 0 : _slots$content.call(slots)) : _props$content;
- var hasTitle = !!(Array.isArray(title) ? title.length : title);
- var hasContent = !!(Array.isArray(content) ? content.length : title);
- if (!hasTitle && !hasContent)
- return void 0;
- return createVNode(Fragment, null, [hasTitle && createVNode("div", {
- "class": "".concat(prefixCls.value, "-title")
- }, [title]), createVNode("div", {
- "class": "".concat(prefixCls.value, "-inner-content")
- }, [content])]);
- };
- return function() {
- return createVNode(tooltip_default, _objectSpread2(_objectSpread2({}, omit_default(props5, ["title", "content"])), {}, {
- "prefixCls": prefixCls.value,
- "ref": tooltipRef,
- "transitionName": getTransitionName(rootPrefixCls.value, "zoom-big", props5.transitionName)
- }), {
- title: getOverlay,
- default: slots.default
- });
- };
- }
- });
- var popover_default = withInstall(Popover);
- // node_modules/ant-design-vue/es/avatar/Group.js
- var groupProps = function groupProps2() {
- return {
- prefixCls: String,
- maxCount: Number,
- maxStyle: {
- type: Object,
- default: void 0
- },
- maxPopoverPlacement: {
- type: String,
- default: "top"
- },
- maxPopoverTrigger: String,
- /*
- * Size of avatar, options: `large`, `small`, `default`
- * or a custom number size
- * */
- size: {
- type: [Number, String, Object],
- default: "default"
- }
- };
- };
- var Group = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AAvatarGroup",
- inheritAttrs: false,
- props: groupProps(),
- setup: function setup39(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("avatar-group", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- useSize_default(props5);
- return function() {
- var _cls;
- var _props$maxPopoverPlac = props5.maxPopoverPlacement, maxPopoverPlacement = _props$maxPopoverPlac === void 0 ? "top" : _props$maxPopoverPlac, maxCount3 = props5.maxCount, maxStyle = props5.maxStyle, _props$maxPopoverTrig = props5.maxPopoverTrigger, maxPopoverTrigger = _props$maxPopoverTrig === void 0 ? "hover" : _props$maxPopoverTrig;
- var cls = (_cls = {}, _defineProperty(_cls, prefixCls.value, true), _defineProperty(_cls, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_cls, "".concat(attrs.class), !!attrs.class), _cls);
- var children = getPropsSlot(slots, props5);
- var childrenWithProps = flattenChildren(children).map(function(child, index3) {
- return cloneElement(child, {
- key: "avatar-key-".concat(index3)
- });
- });
- var numOfChildren = childrenWithProps.length;
- if (maxCount3 && maxCount3 < numOfChildren) {
- var childrenShow = childrenWithProps.slice(0, maxCount3);
- var childrenHidden = childrenWithProps.slice(maxCount3, numOfChildren);
- childrenShow.push(createVNode(popover_default, {
- "key": "avatar-popover-key",
- "content": childrenHidden,
- "trigger": maxPopoverTrigger,
- "placement": maxPopoverPlacement,
- "overlayClassName": "".concat(prefixCls.value, "-popover")
- }, {
- default: function _default9() {
- return [createVNode(Avatar_default, {
- "style": maxStyle
- }, {
- default: function _default10() {
- return ["+".concat(numOfChildren - maxCount3)];
- }
- })];
- }
- }));
- return createVNode("div", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "class": cls,
- "style": attrs.style
- }), [childrenShow]);
- }
- return createVNode("div", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "class": cls,
- "style": attrs.style
- }), [childrenWithProps]);
- };
- }
- });
- var Group_default = Group;
- // node_modules/ant-design-vue/es/avatar/index.js
- Avatar_default.Group = Group_default;
- Avatar_default.install = function(app) {
- app.component(Avatar_default.name, Avatar_default);
- app.component(Group_default.name, Group_default);
- return app;
- };
- var avatar_default = Avatar_default;
- // node_modules/ant-design-vue/es/back-top/index.js
- var backTopProps = function backTopProps2() {
- return {
- visibilityHeight: {
- type: Number,
- default: 400
- },
- duration: {
- type: Number,
- default: 450
- },
- target: Function,
- prefixCls: String,
- onClick: Function
- // visible: { type: Boolean, default: undefined }, // Only for test. Don't use it.
- };
- };
- var BackTop = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ABackTop",
- inheritAttrs: false,
- props: backTopProps(),
- // emits: ['click'],
- setup: function setup40(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, emit = _ref.emit;
- var _useConfigInject = useConfigInject_default("back-top", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var domRef = ref();
- var state = reactive({
- visible: false,
- scrollEvent: null
- });
- var getDefaultTarget2 = function getDefaultTarget3() {
- return domRef.value && domRef.value.ownerDocument ? domRef.value.ownerDocument : window;
- };
- var scrollToTop = function scrollToTop2(e3) {
- var _props$target = props5.target, target = _props$target === void 0 ? getDefaultTarget2 : _props$target, duration = props5.duration;
- scrollTo(0, {
- getContainer: target,
- duration
- });
- emit("click", e3);
- };
- var handleScroll = throttleByAnimationFrame(function(e3) {
- var visibilityHeight = props5.visibilityHeight;
- var scrollTop = getScroll(e3.target, true);
- state.visible = scrollTop > visibilityHeight;
- });
- var bindScrollEvent = function bindScrollEvent2() {
- var target = props5.target;
- var getTarget = target || getDefaultTarget2;
- var container = getTarget();
- state.scrollEvent = addEventListenerWrap(container, "scroll", function(e3) {
- handleScroll(e3);
- });
- handleScroll({
- target: container
- });
- };
- var scrollRemove = function scrollRemove2() {
- if (state.scrollEvent) {
- state.scrollEvent.remove();
- }
- handleScroll.cancel();
- };
- watch(function() {
- return props5.target;
- }, function() {
- scrollRemove();
- nextTick(function() {
- bindScrollEvent();
- });
- });
- onMounted(function() {
- nextTick(function() {
- bindScrollEvent();
- });
- });
- onActivated(function() {
- nextTick(function() {
- bindScrollEvent();
- });
- });
- onDeactivated(function() {
- scrollRemove();
- });
- onBeforeUnmount(function() {
- scrollRemove();
- });
- return function() {
- var _class, _slots$default;
- var defaultElement = createVNode("div", {
- "class": "".concat(prefixCls.value, "-content")
- }, [createVNode("div", {
- "class": "".concat(prefixCls.value, "-icon")
- }, [createVNode(VerticalAlignTopOutlined_default, null, null)])]);
- var divProps = _objectSpread2(_objectSpread2({}, attrs), {}, {
- onClick: scrollToTop,
- class: (_class = {}, _defineProperty(_class, "".concat(prefixCls.value), true), _defineProperty(_class, "".concat(attrs.class), attrs.class), _defineProperty(_class, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _class)
- });
- var transitionProps = getTransitionProps("fade");
- return createVNode(Transition, transitionProps, {
- default: function _default9() {
- return [withDirectives(createVNode("div", _objectSpread2(_objectSpread2({}, divProps), {}, {
- "ref": domRef
- }), [((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)) || defaultElement]), [[vShow, state.visible]])];
- }
- });
- };
- }
- });
- var back_top_default = withInstall(BackTop);
- // node_modules/ant-design-vue/es/badge/SingleNumber.js
- function UnitNumber(_ref) {
- var prefixCls = _ref.prefixCls, value = _ref.value, current2 = _ref.current, _ref$offset = _ref.offset, offset4 = _ref$offset === void 0 ? 0 : _ref$offset;
- var style;
- if (offset4) {
- style = {
- position: "absolute",
- top: "".concat(offset4, "00%"),
- left: 0
- };
- }
- return createVNode("p", {
- "style": style,
- "class": classNames_default("".concat(prefixCls, "-only-unit"), {
- current: current2
- })
- }, [value]);
- }
- function getOffset2(start, end, unit) {
- var index3 = start;
- var offset4 = 0;
- while ((index3 + 10) % 10 !== end) {
- index3 += unit;
- offset4 += unit;
- }
- return offset4;
- }
- var SingleNumber_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "SingleNumber",
- props: {
- prefixCls: String,
- value: String,
- count: Number
- },
- setup: function setup41(props5) {
- var originValue = computed(function() {
- return Number(props5.value);
- });
- var originCount = computed(function() {
- return Math.abs(props5.count);
- });
- var state = reactive({
- prevValue: originValue.value,
- prevCount: originCount.value
- });
- var onTransitionEnd = function onTransitionEnd2() {
- state.prevValue = originValue.value;
- state.prevCount = originCount.value;
- };
- var timeout = ref();
- watch(originValue, function() {
- clearTimeout(timeout.value);
- timeout.value = setTimeout(function() {
- onTransitionEnd();
- }, 1e3);
- }, {
- flush: "post"
- });
- onUnmounted(function() {
- clearTimeout(timeout.value);
- });
- return function() {
- var unitNodes;
- var offsetStyle = {};
- var value = originValue.value;
- if (state.prevValue === value || Number.isNaN(value) || Number.isNaN(state.prevValue)) {
- unitNodes = [UnitNumber(_objectSpread2(_objectSpread2({}, props5), {}, {
- current: true
- }))];
- offsetStyle = {
- transition: "none"
- };
- } else {
- unitNodes = [];
- var end = value + 10;
- var unitNumberList = [];
- for (var index3 = value; index3 <= end; index3 += 1) {
- unitNumberList.push(index3);
- }
- var prevIndex = unitNumberList.findIndex(function(n3) {
- return n3 % 10 === state.prevValue;
- });
- unitNodes = unitNumberList.map(function(n3, index4) {
- var singleUnit = n3 % 10;
- return UnitNumber(_objectSpread2(_objectSpread2({}, props5), {}, {
- value: singleUnit,
- offset: index4 - prevIndex,
- current: index4 === prevIndex
- }));
- });
- var unit = state.prevCount < originCount.value ? 1 : -1;
- offsetStyle = {
- transform: "translateY(".concat(-getOffset2(state.prevValue, value, unit), "00%)")
- };
- }
- return createVNode("span", {
- "class": "".concat(props5.prefixCls, "-only"),
- "style": offsetStyle,
- "onTransitionend": function onTransitionend() {
- return onTransitionEnd();
- }
- }, [unitNodes]);
- };
- }
- });
- // node_modules/ant-design-vue/es/badge/ScrollNumber.js
- var _excluded12 = ["prefixCls", "count", "title", "show", "component", "class", "style"];
- var scrollNumberProps = {
- prefixCls: String,
- count: vue_types_default.any,
- component: String,
- title: vue_types_default.any,
- show: Boolean
- };
- var ScrollNumber_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ScrollNumber",
- inheritAttrs: false,
- props: scrollNumberProps,
- setup: function setup42(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("scroll-number", props5), prefixCls = _useConfigInject.prefixCls;
- return function() {
- var _slots$default;
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), customizePrefixCls = _props$attrs.prefixCls, count = _props$attrs.count, title = _props$attrs.title, show = _props$attrs.show, _props$attrs$componen = _props$attrs.component, Tag2 = _props$attrs$componen === void 0 ? "sup" : _props$attrs$componen, className = _props$attrs.class, style = _props$attrs.style, restProps = _objectWithoutProperties(_props$attrs, _excluded12);
- var newProps = _objectSpread2(_objectSpread2({}, restProps), {}, {
- style,
- "data-show": props5.show,
- class: classNames_default(prefixCls.value, className),
- title
- });
- var numberNodes = count;
- if (count && Number(count) % 1 === 0) {
- var numberList = String(count).split("");
- numberNodes = numberList.map(function(num, i3) {
- return createVNode(SingleNumber_default, {
- "prefixCls": prefixCls.value,
- "count": Number(count),
- "value": num,
- "key": numberList.length - i3
- }, null);
- });
- }
- if (style && style.borderColor) {
- newProps.style = _objectSpread2(_objectSpread2({}, style), {}, {
- boxShadow: "0 0 0 1px ".concat(style.borderColor, " inset")
- });
- }
- var children = filterEmpty((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- if (children && children.length) {
- return cloneElement(children, {
- class: classNames_default("".concat(prefixCls.value, "-custom-component"))
- }, false);
- }
- return createVNode(Tag2, newProps, {
- default: function _default9() {
- return [numberNodes];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/badge/utils.js
- function isPresetColor(color) {
- return PresetColorTypes.indexOf(color) !== -1;
- }
- // node_modules/ant-design-vue/es/badge/Ribbon.js
- var _excluded13 = ["class", "style"];
- var ribbonProps = function ribbonProps2() {
- return {
- prefix: String,
- color: {
- type: String
- },
- text: vue_types_default.any,
- placement: {
- type: String,
- default: "end"
- }
- };
- };
- var Ribbon_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ABadgeRibbon",
- inheritAttrs: false,
- props: ribbonProps(),
- slots: ["text"],
- setup: function setup43(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("ribbon", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var colorInPreset = computed(function() {
- return isPresetColor(props5.color);
- });
- var ribbonCls = computed(function() {
- var _ref2;
- return [prefixCls.value, "".concat(prefixCls.value, "-placement-").concat(props5.placement), (_ref2 = {}, _defineProperty(_ref2, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_ref2, "".concat(prefixCls.value, "-color-").concat(props5.color), colorInPreset.value), _ref2)];
- });
- return function() {
- var _slots$default, _slots$text;
- var className = attrs.class, style = attrs.style, restAttrs = _objectWithoutProperties(attrs, _excluded13);
- var colorStyle = {};
- var cornerColorStyle = {};
- if (props5.color && !colorInPreset.value) {
- colorStyle.background = props5.color;
- cornerColorStyle.color = props5.color;
- }
- return createVNode("div", _objectSpread2({
- "class": "".concat(prefixCls.value, "-wrapper")
- }, restAttrs), [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots), createVNode("div", {
- "class": [ribbonCls.value, className],
- "style": _objectSpread2(_objectSpread2({}, colorStyle), style)
- }, [createVNode("span", {
- "class": "".concat(prefixCls.value, "-text")
- }, [props5.text || ((_slots$text = slots.text) === null || _slots$text === void 0 ? void 0 : _slots$text.call(slots))]), createVNode("div", {
- "class": "".concat(prefixCls.value, "-corner"),
- "style": cornerColorStyle
- }, null)])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/_util/isNumeric.js
- var isNumeric = function isNumeric2(value) {
- return !isNaN(parseFloat(value)) && isFinite(value);
- };
- var isNumeric_default = isNumeric;
- // node_modules/ant-design-vue/es/badge/Badge.js
- var badgeProps = function badgeProps2() {
- return {
- /** Number to show in badge */
- count: vue_types_default.any,
- showZero: {
- type: Boolean,
- default: void 0
- },
- /** Max count to show */
- overflowCount: {
- type: Number,
- default: 99
- },
- /** whether to show red dot without number */
- dot: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- scrollNumberPrefixCls: String,
- status: {
- type: String
- },
- size: {
- type: String,
- default: "default"
- },
- color: String,
- text: vue_types_default.any,
- offset: Array,
- numberStyle: {
- type: Object,
- default: void 0
- },
- title: String
- };
- };
- var Badge_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ABadge",
- Ribbon: Ribbon_default,
- inheritAttrs: false,
- props: badgeProps(),
- slots: ["text", "count"],
- setup: function setup44(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("badge", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var numberedDisplayCount = computed(function() {
- return props5.count > props5.overflowCount ? "".concat(props5.overflowCount, "+") : props5.count;
- });
- var hasStatus = computed(function() {
- return props5.status !== null && props5.status !== void 0 || props5.color !== null && props5.color !== void 0;
- });
- var isZero = computed(function() {
- return numberedDisplayCount.value === "0" || numberedDisplayCount.value === 0;
- });
- var showAsDot = computed(function() {
- return props5.dot && !isZero.value;
- });
- var mergedCount = computed(function() {
- return showAsDot.value ? "" : numberedDisplayCount.value;
- });
- var isHidden2 = computed(function() {
- var isEmpty2 = mergedCount.value === null || mergedCount.value === void 0 || mergedCount.value === "";
- return (isEmpty2 || isZero.value && !props5.showZero) && !showAsDot.value;
- });
- var livingCount = ref(props5.count);
- var displayCount = ref(mergedCount.value);
- var isDotRef = ref(showAsDot.value);
- watch([function() {
- return props5.count;
- }, mergedCount, showAsDot], function() {
- if (!isHidden2.value) {
- livingCount.value = props5.count;
- displayCount.value = mergedCount.value;
- isDotRef.value = showAsDot.value;
- }
- }, {
- immediate: true
- });
- var statusCls = computed(function() {
- var _ref2;
- return _ref2 = {}, _defineProperty(_ref2, "".concat(prefixCls.value, "-status-dot"), hasStatus.value), _defineProperty(_ref2, "".concat(prefixCls.value, "-status-").concat(props5.status), !!props5.status), _defineProperty(_ref2, "".concat(prefixCls.value, "-status-").concat(props5.color), isPresetColor(props5.color)), _ref2;
- });
- var statusStyle = computed(function() {
- if (props5.color && !isPresetColor(props5.color)) {
- return {
- background: props5.color
- };
- } else {
- return {};
- }
- });
- var scrollNumberCls = computed(function() {
- var _ref3;
- return _ref3 = {}, _defineProperty(_ref3, "".concat(prefixCls.value, "-dot"), isDotRef.value), _defineProperty(_ref3, "".concat(prefixCls.value, "-count"), !isDotRef.value), _defineProperty(_ref3, "".concat(prefixCls.value, "-count-sm"), props5.size === "small"), _defineProperty(_ref3, "".concat(prefixCls.value, "-multiple-words"), !isDotRef.value && displayCount.value && displayCount.value.toString().length > 1), _defineProperty(_ref3, "".concat(prefixCls.value, "-status-").concat(props5.status), !!props5.status), _defineProperty(_ref3, "".concat(prefixCls.value, "-status-").concat(props5.color), isPresetColor(props5.color)), _ref3;
- });
- return function() {
- var _slots$default, _slots$count, _classNames;
- var offset4 = props5.offset, title = props5.title, color = props5.color;
- var style = attrs.style;
- var text = getPropsSlot(slots, props5, "text");
- var pre = prefixCls.value;
- var count = livingCount.value;
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- children = children.length ? children : null;
- var visible = !!(!isHidden2.value || slots.count);
- var mergedStyle = function() {
- if (!offset4) {
- return _objectSpread2({}, style);
- }
- var offsetStyle = {
- marginTop: isNumeric_default(offset4[1]) ? "".concat(offset4[1], "px") : offset4[1]
- };
- if (direction.value === "rtl") {
- offsetStyle.left = "".concat(parseInt(offset4[0], 10), "px");
- } else {
- offsetStyle.right = "".concat(-parseInt(offset4[0], 10), "px");
- }
- return _objectSpread2(_objectSpread2({}, offsetStyle), style);
- }();
- var titleNode = title !== null && title !== void 0 ? title : typeof count === "string" || typeof count === "number" ? count : void 0;
- var statusTextNode = visible || !text ? null : createVNode("span", {
- "class": "".concat(pre, "-status-text")
- }, [text]);
- var displayNode = _typeof(count) === "object" || count === void 0 && slots.count ? cloneElement(count !== null && count !== void 0 ? count : (_slots$count = slots.count) === null || _slots$count === void 0 ? void 0 : _slots$count.call(slots), {
- style: mergedStyle
- }, false) : null;
- var badgeClassName = classNames_default(pre, (_classNames = {}, _defineProperty(_classNames, "".concat(pre, "-status"), hasStatus.value), _defineProperty(_classNames, "".concat(pre, "-not-a-wrapper"), !children), _defineProperty(_classNames, "".concat(pre, "-rtl"), direction.value === "rtl"), _classNames), attrs.class);
- if (!children && hasStatus.value) {
- var statusTextColor = mergedStyle.color;
- return createVNode("span", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "class": badgeClassName,
- "style": mergedStyle
- }), [createVNode("span", {
- "class": statusCls.value,
- "style": statusStyle.value
- }, null), createVNode("span", {
- "style": {
- color: statusTextColor
- },
- "class": "".concat(pre, "-status-text")
- }, [text])]);
- }
- var transitionProps = getTransitionProps(children ? "".concat(pre, "-zoom") : "", {
- appear: false
- });
- var scrollNumberStyle = _objectSpread2(_objectSpread2({}, mergedStyle), props5.numberStyle);
- if (color && !isPresetColor(color)) {
- scrollNumberStyle = scrollNumberStyle || {};
- scrollNumberStyle.background = color;
- }
- return createVNode("span", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "class": badgeClassName
- }), [children, createVNode(Transition, transitionProps, {
- default: function _default9() {
- return [withDirectives(createVNode(ScrollNumber_default, {
- "prefixCls": props5.scrollNumberPrefixCls,
- "show": visible,
- "class": scrollNumberCls.value,
- "count": displayCount.value,
- "title": titleNode,
- "style": scrollNumberStyle,
- "key": "scrollNumber"
- }, {
- default: function _default10() {
- return [displayNode];
- }
- }), [[vShow, visible]])];
- }
- }), statusTextNode]);
- };
- }
- });
- // node_modules/ant-design-vue/es/badge/index.js
- Badge_default.install = function(app) {
- app.component(Badge_default.name, Badge_default);
- app.component(Ribbon_default.name, Ribbon_default);
- return app;
- };
- var badge_default = Badge_default;
- // node_modules/ant-design-vue/es/vc-dropdown/placements.js
- var autoAdjustOverflow2 = {
- adjustX: 1,
- adjustY: 1
- };
- var targetOffset3 = [0, 0];
- var placements2 = {
- topLeft: {
- points: ["bl", "tl"],
- overflow: autoAdjustOverflow2,
- offset: [0, -4],
- targetOffset: targetOffset3
- },
- topCenter: {
- points: ["bc", "tc"],
- overflow: autoAdjustOverflow2,
- offset: [0, -4],
- targetOffset: targetOffset3
- },
- topRight: {
- points: ["br", "tr"],
- overflow: autoAdjustOverflow2,
- offset: [0, -4],
- targetOffset: targetOffset3
- },
- bottomLeft: {
- points: ["tl", "bl"],
- overflow: autoAdjustOverflow2,
- offset: [0, 4],
- targetOffset: targetOffset3
- },
- bottomCenter: {
- points: ["tc", "bc"],
- overflow: autoAdjustOverflow2,
- offset: [0, 4],
- targetOffset: targetOffset3
- },
- bottomRight: {
- points: ["tr", "br"],
- overflow: autoAdjustOverflow2,
- offset: [0, 4],
- targetOffset: targetOffset3
- }
- };
- var placements_default = placements2;
- // node_modules/ant-design-vue/es/vc-dropdown/Dropdown.js
- var _excluded14 = ["prefixCls", "arrow", "showAction", "overlayStyle", "trigger", "placement", "align", "getPopupContainer", "transitionName", "animation", "overlayClassName"];
- var Dropdown_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- props: {
- minOverlayWidthMatchTrigger: {
- type: Boolean,
- default: void 0
- },
- arrow: {
- type: Boolean,
- default: false
- },
- prefixCls: vue_types_default.string.def("rc-dropdown"),
- transitionName: String,
- overlayClassName: vue_types_default.string.def(""),
- openClassName: String,
- animation: vue_types_default.any,
- align: vue_types_default.object,
- overlayStyle: {
- type: Object,
- default: void 0
- },
- placement: vue_types_default.string.def("bottomLeft"),
- overlay: vue_types_default.any,
- trigger: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.arrayOf(vue_types_default.string)]).def("hover"),
- alignPoint: {
- type: Boolean,
- default: void 0
- },
- showAction: vue_types_default.array,
- hideAction: vue_types_default.array,
- getPopupContainer: Function,
- visible: {
- type: Boolean,
- default: void 0
- },
- defaultVisible: {
- type: Boolean,
- default: false
- },
- mouseEnterDelay: vue_types_default.number.def(0.15),
- mouseLeaveDelay: vue_types_default.number.def(0.1)
- },
- emits: ["visibleChange", "overlayClick"],
- slots: ["overlay"],
- setup: function setup45(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, expose = _ref.expose;
- var triggerVisible = ref(!!props5.visible);
- watch(function() {
- return props5.visible;
- }, function(val) {
- if (val !== void 0) {
- triggerVisible.value = val;
- }
- });
- var triggerRef = ref();
- expose({
- triggerRef
- });
- var onClick2 = function onClick3(e3) {
- if (props5.visible === void 0) {
- triggerVisible.value = false;
- }
- emit("overlayClick", e3);
- };
- var onVisibleChange = function onVisibleChange2(visible) {
- if (props5.visible === void 0) {
- triggerVisible.value = visible;
- }
- emit("visibleChange", visible);
- };
- var getMenuElement = function getMenuElement2() {
- var _slots$overlay;
- var overlayElement = (_slots$overlay = slots.overlay) === null || _slots$overlay === void 0 ? void 0 : _slots$overlay.call(slots);
- var extraOverlayProps = {
- prefixCls: "".concat(props5.prefixCls, "-menu"),
- onClick: onClick2,
- getPopupContainer: function getPopupContainer() {
- return triggerRef.value.getPopupDomNode();
- }
- };
- return createVNode(Fragment, null, [props5.arrow && createVNode("div", {
- "class": "".concat(props5.prefixCls, "-arrow")
- }, null), cloneElement(overlayElement, extraOverlayProps, false)]);
- };
- var minOverlayWidthMatchTrigger = computed(function() {
- var _props$minOverlayWidt = props5.minOverlayWidthMatchTrigger, matchTrigger = _props$minOverlayWidt === void 0 ? !props5.alignPoint : _props$minOverlayWidt;
- return matchTrigger;
- });
- var renderChildren2 = function renderChildren3() {
- var _slots$default;
- var children = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- return triggerVisible.value && children ? cloneElement(children[0], {
- class: props5.openClassName || "".concat(props5.prefixCls, "-open")
- }, false) : children;
- };
- var triggerHideAction = computed(function() {
- if (!props5.hideAction && props5.trigger.indexOf("contextmenu") !== -1) {
- return ["click"];
- }
- return props5.hideAction;
- });
- return function() {
- var prefixCls = props5.prefixCls, arrow = props5.arrow, showAction = props5.showAction, overlayStyle = props5.overlayStyle, trigger2 = props5.trigger, placement = props5.placement, align = props5.align, getPopupContainer = props5.getPopupContainer, transitionName2 = props5.transitionName, animation = props5.animation, overlayClassName = props5.overlayClassName, otherProps = _objectWithoutProperties(props5, _excluded14);
- return createVNode(vc_trigger_default, _objectSpread2(_objectSpread2({}, otherProps), {}, {
- "prefixCls": prefixCls,
- "ref": triggerRef,
- "popupClassName": classNames_default(overlayClassName, _defineProperty({}, "".concat(prefixCls, "-show-arrow"), arrow)),
- "popupStyle": overlayStyle,
- "builtinPlacements": placements_default,
- "action": trigger2,
- "showAction": showAction,
- "hideAction": triggerHideAction.value || [],
- "popupPlacement": placement,
- "popupAlign": align,
- "popupTransitionName": transitionName2,
- "popupAnimation": animation,
- "popupVisible": triggerVisible.value,
- "stretch": minOverlayWidthMatchTrigger.value ? "minWidth" : "",
- "onPopupVisibleChange": onVisibleChange,
- "getPopupContainer": getPopupContainer
- }), {
- popup: getMenuElement,
- default: renderChildren2
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-dropdown/index.js
- var vc_dropdown_default = Dropdown_default;
- // node_modules/ant-design-vue/es/_util/css-animation/Event.js
- var START_EVENT_NAME_MAP = {
- transitionstart: {
- transition: "transitionstart",
- WebkitTransition: "webkitTransitionStart",
- MozTransition: "mozTransitionStart",
- OTransition: "oTransitionStart",
- msTransition: "MSTransitionStart"
- },
- animationstart: {
- animation: "animationstart",
- WebkitAnimation: "webkitAnimationStart",
- MozAnimation: "mozAnimationStart",
- OAnimation: "oAnimationStart",
- msAnimation: "MSAnimationStart"
- }
- };
- var END_EVENT_NAME_MAP = {
- transitionend: {
- transition: "transitionend",
- WebkitTransition: "webkitTransitionEnd",
- MozTransition: "mozTransitionEnd",
- OTransition: "oTransitionEnd",
- msTransition: "MSTransitionEnd"
- },
- animationend: {
- animation: "animationend",
- WebkitAnimation: "webkitAnimationEnd",
- MozAnimation: "mozAnimationEnd",
- OAnimation: "oAnimationEnd",
- msAnimation: "MSAnimationEnd"
- }
- };
- var startEvents = [];
- var endEvents = [];
- function detectEvents() {
- var testEl = document.createElement("div");
- var style = testEl.style;
- if (!("AnimationEvent" in window)) {
- delete START_EVENT_NAME_MAP.animationstart.animation;
- delete END_EVENT_NAME_MAP.animationend.animation;
- }
- if (!("TransitionEvent" in window)) {
- delete START_EVENT_NAME_MAP.transitionstart.transition;
- delete END_EVENT_NAME_MAP.transitionend.transition;
- }
- function process2(EVENT_NAME_MAP, events2) {
- for (var baseEventName in EVENT_NAME_MAP) {
- if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {
- var baseEvents = EVENT_NAME_MAP[baseEventName];
- for (var styleName in baseEvents) {
- if (styleName in style) {
- events2.push(baseEvents[styleName]);
- break;
- }
- }
- }
- }
- }
- process2(START_EVENT_NAME_MAP, startEvents);
- process2(END_EVENT_NAME_MAP, endEvents);
- }
- if (typeof window !== "undefined" && typeof document !== "undefined") {
- detectEvents();
- }
- function addEventListener2(node, eventName, eventListener) {
- node.addEventListener(eventName, eventListener, false);
- }
- function removeEventListener(node, eventName, eventListener) {
- node.removeEventListener(eventName, eventListener, false);
- }
- var TransitionEvents = {
- // Start events
- startEvents,
- addStartEventListener: function addStartEventListener(node, eventListener) {
- if (startEvents.length === 0) {
- setTimeout(eventListener, 0);
- return;
- }
- startEvents.forEach(function(startEvent) {
- addEventListener2(node, startEvent, eventListener);
- });
- },
- removeStartEventListener: function removeStartEventListener(node, eventListener) {
- if (startEvents.length === 0) {
- return;
- }
- startEvents.forEach(function(startEvent) {
- removeEventListener(node, startEvent, eventListener);
- });
- },
- // End events
- endEvents,
- addEndEventListener: function addEndEventListener(node, eventListener) {
- if (endEvents.length === 0) {
- setTimeout(eventListener, 0);
- return;
- }
- endEvents.forEach(function(endEvent) {
- addEventListener2(node, endEvent, eventListener);
- });
- },
- removeEndEventListener: function removeEndEventListener(node, eventListener) {
- if (endEvents.length === 0) {
- return;
- }
- endEvents.forEach(function(endEvent) {
- removeEventListener(node, endEvent, eventListener);
- });
- }
- };
- var Event_default = TransitionEvents;
- // node_modules/ant-design-vue/es/_util/wave.js
- var styleForPesudo;
- function isHidden(element) {
- if (false) {
- return false;
- }
- return !element || element.offsetParent === null;
- }
- function isNotGrey(color) {
- var match3 = (color || "").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);
- if (match3 && match3[1] && match3[2] && match3[3]) {
- return !(match3[1] === match3[2] && match3[2] === match3[3]);
- }
- return true;
- }
- var wave_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Wave",
- props: {
- insertExtraNode: Boolean,
- disabled: Boolean
- },
- setup: function setup46(props5, _ref) {
- var slots = _ref.slots, expose = _ref.expose;
- var instance = getCurrentInstance();
- var _useConfigInject = useConfigInject_default("", props5), csp = _useConfigInject.csp, prefixCls = _useConfigInject.prefixCls;
- expose({
- csp
- });
- var eventIns = null;
- var clickWaveTimeoutId = null;
- var animationStartId = null;
- var animationStart = false;
- var extraNode = null;
- var isUnmounted = false;
- var onTransitionStart = function onTransitionStart2(e3) {
- if (isUnmounted)
- return;
- var node = findDOMNode(instance);
- if (!e3 || e3.target !== node) {
- return;
- }
- if (!animationStart) {
- resetEffect(node);
- }
- };
- var onTransitionEnd = function onTransitionEnd2(e3) {
- if (!e3 || e3.animationName !== "fadeEffect") {
- return;
- }
- resetEffect(e3.target);
- };
- var getAttributeName = function getAttributeName2() {
- var insertExtraNode = props5.insertExtraNode;
- return insertExtraNode ? "".concat(prefixCls.value, "-click-animating") : "".concat(prefixCls.value, "-click-animating-without-extra-node");
- };
- var onClick2 = function onClick3(node, waveColor) {
- var insertExtraNode = props5.insertExtraNode, disabled = props5.disabled;
- if (disabled || !node || isHidden(node) || node.className.indexOf("-leave") >= 0) {
- return;
- }
- extraNode = document.createElement("div");
- extraNode.className = "".concat(prefixCls.value, "-click-animating-node");
- var attributeName = getAttributeName();
- node.removeAttribute(attributeName);
- node.setAttribute(attributeName, "true");
- styleForPesudo = styleForPesudo || document.createElement("style");
- if (waveColor && waveColor !== "#ffffff" && waveColor !== "rgb(255, 255, 255)" && isNotGrey(waveColor) && !/rgba\(\d*, \d*, \d*, 0\)/.test(waveColor) && // any transparent rgba color
- waveColor !== "transparent") {
- var _csp$value;
- if ((_csp$value = csp.value) !== null && _csp$value !== void 0 && _csp$value.nonce) {
- styleForPesudo.nonce = csp.value.nonce;
- }
- extraNode.style.borderColor = waveColor;
- styleForPesudo.innerHTML = "\n [".concat(prefixCls.value, "-click-animating-without-extra-node='true']::after, .").concat(prefixCls.value, "-click-animating-node {\n --antd-wave-shadow-color: ").concat(waveColor, ";\n }");
- if (!document.body.contains(styleForPesudo)) {
- document.body.appendChild(styleForPesudo);
- }
- }
- if (insertExtraNode) {
- node.appendChild(extraNode);
- }
- Event_default.addStartEventListener(node, onTransitionStart);
- Event_default.addEndEventListener(node, onTransitionEnd);
- };
- var resetEffect = function resetEffect2(node) {
- if (!node || node === extraNode || !(node instanceof Element)) {
- return;
- }
- var insertExtraNode = props5.insertExtraNode;
- var attributeName = getAttributeName();
- node.setAttribute(attributeName, "false");
- if (styleForPesudo) {
- styleForPesudo.innerHTML = "";
- }
- if (insertExtraNode && extraNode && node.contains(extraNode)) {
- node.removeChild(extraNode);
- }
- Event_default.removeStartEventListener(node, onTransitionStart);
- Event_default.removeEndEventListener(node, onTransitionEnd);
- };
- var bindAnimationEvent = function bindAnimationEvent2(node) {
- if (!node || !node.getAttribute || node.getAttribute("disabled") || node.className.indexOf("disabled") >= 0) {
- return;
- }
- var newClick = function newClick2(e3) {
- if (e3.target.tagName === "INPUT" || isHidden(e3.target)) {
- return;
- }
- resetEffect(node);
- var waveColor = getComputedStyle(node).getPropertyValue("border-top-color") || // Firefox Compatible
- getComputedStyle(node).getPropertyValue("border-color") || getComputedStyle(node).getPropertyValue("background-color");
- clickWaveTimeoutId = setTimeout(function() {
- return onClick2(node, waveColor);
- }, 0);
- wrapperRaf.cancel(animationStartId);
- animationStart = true;
- animationStartId = wrapperRaf(function() {
- animationStart = false;
- }, 10);
- };
- node.addEventListener("click", newClick, true);
- return {
- cancel: function cancel() {
- node.removeEventListener("click", newClick, true);
- }
- };
- };
- onMounted(function() {
- nextTick(function() {
- var node = findDOMNode(instance);
- if (node.nodeType !== 1) {
- return;
- }
- eventIns = bindAnimationEvent(node);
- });
- });
- onBeforeUnmount(function() {
- if (eventIns) {
- eventIns.cancel();
- }
- clearTimeout(clickWaveTimeoutId);
- isUnmounted = true;
- });
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)[0];
- };
- }
- });
- // node_modules/ant-design-vue/es/button/buttonTypes.js
- function convertLegacyProps(type4) {
- if (type4 === "danger") {
- return {
- danger: true
- };
- }
- return {
- type: type4
- };
- }
- var buttonProps = function buttonProps2() {
- return {
- prefixCls: String,
- type: String,
- htmlType: {
- type: String,
- default: "button"
- },
- shape: {
- type: String
- },
- size: {
- type: String
- },
- loading: {
- type: [Boolean, Object],
- default: function _default9() {
- return false;
- }
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- ghost: {
- type: Boolean,
- default: void 0
- },
- block: {
- type: Boolean,
- default: void 0
- },
- danger: {
- type: Boolean,
- default: void 0
- },
- icon: vue_types_default.any,
- href: String,
- target: String,
- title: String,
- onClick: {
- type: Function
- },
- onMousedown: {
- type: Function
- }
- };
- };
- var buttonTypes_default = buttonProps;
- // node_modules/ant-design-vue/es/button/LoadingIcon.js
- var getCollapsedWidth = function getCollapsedWidth2(node) {
- if (node) {
- node.style.width = "0px";
- node.style.opacity = "0";
- node.style.transform = "scale(0)";
- }
- };
- var getRealWidth = function getRealWidth2(node) {
- nextTick(function() {
- if (node) {
- node.style.width = "".concat(node.scrollWidth, "px");
- node.style.opacity = "1";
- node.style.transform = "scale(1)";
- }
- });
- };
- var resetStyle = function resetStyle2(node) {
- if (node && node.style) {
- node.style.width = null;
- node.style.opacity = null;
- node.style.transform = null;
- }
- };
- var LoadingIcon_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "LoadingIcon",
- props: {
- prefixCls: String,
- loading: [Boolean, Object],
- existIcon: Boolean
- },
- setup: function setup47(props5) {
- return function() {
- var existIcon = props5.existIcon, prefixCls = props5.prefixCls, loading = props5.loading;
- if (existIcon) {
- return createVNode("span", {
- "class": "".concat(prefixCls, "-loading-icon")
- }, [createVNode(LoadingOutlined_default, null, null)]);
- }
- var visible = !!loading;
- return createVNode(transition_default, {
- "name": "".concat(prefixCls, "-loading-icon-motion"),
- "onBeforeEnter": getCollapsedWidth,
- "onEnter": getRealWidth,
- "onAfterEnter": resetStyle,
- "onBeforeLeave": getRealWidth,
- "onLeave": function onLeave(node) {
- setTimeout(function() {
- getCollapsedWidth(node);
- });
- },
- "onAfterLeave": resetStyle
- }, {
- default: function _default9() {
- return [visible ? createVNode("span", {
- "class": "".concat(prefixCls, "-loading-icon")
- }, [createVNode(LoadingOutlined_default, null, null)]) : null];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/button/button.js
- var rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
- var isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
- function isUnborderedButtonType(type4) {
- return type4 === "text" || type4 === "link";
- }
- var button_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AButton",
- inheritAttrs: false,
- __ANT_BUTTON: true,
- props: initDefaultProps_default(buttonTypes_default(), {
- type: "default"
- }),
- slots: ["icon"],
- // emits: ['click', 'mousedown'],
- setup: function setup48(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, emit = _ref.emit, expose = _ref.expose;
- var _useConfigInject = useConfigInject_default("btn", props5), prefixCls = _useConfigInject.prefixCls, autoInsertSpaceInButton = _useConfigInject.autoInsertSpaceInButton, direction = _useConfigInject.direction, size = _useConfigInject.size;
- var buttonNodeRef = ref(null);
- var delayTimeoutRef = ref(void 0);
- var isNeedInserted = false;
- var innerLoading = ref(false);
- var hasTwoCNChar = ref(false);
- var autoInsertSpace = computed(function() {
- return autoInsertSpaceInButton.value !== false;
- });
- var loadingOrDelay = computed(function() {
- return _typeof(props5.loading) === "object" && props5.loading.delay ? props5.loading.delay || true : !!props5.loading;
- });
- watch(loadingOrDelay, function(val) {
- clearTimeout(delayTimeoutRef.value);
- if (typeof loadingOrDelay.value === "number") {
- delayTimeoutRef.value = setTimeout(function() {
- innerLoading.value = val;
- }, loadingOrDelay.value);
- } else {
- innerLoading.value = val;
- }
- }, {
- immediate: true
- });
- var classes = computed(function() {
- var _ref2;
- var type4 = props5.type, _props$shape = props5.shape, shape = _props$shape === void 0 ? "default" : _props$shape, ghost = props5.ghost, block = props5.block, danger = props5.danger;
- var pre = prefixCls.value;
- var sizeClassNameMap = {
- large: "lg",
- small: "sm",
- middle: void 0
- };
- var sizeFullname = size.value;
- var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || "" : "";
- return _ref2 = {}, _defineProperty(_ref2, "".concat(pre), true), _defineProperty(_ref2, "".concat(pre, "-").concat(type4), type4), _defineProperty(_ref2, "".concat(pre, "-").concat(shape), shape !== "default" && shape), _defineProperty(_ref2, "".concat(pre, "-").concat(sizeCls), sizeCls), _defineProperty(_ref2, "".concat(pre, "-loading"), innerLoading.value), _defineProperty(_ref2, "".concat(pre, "-background-ghost"), ghost && !isUnborderedButtonType(type4)), _defineProperty(_ref2, "".concat(pre, "-two-chinese-chars"), hasTwoCNChar.value && autoInsertSpace.value), _defineProperty(_ref2, "".concat(pre, "-block"), block), _defineProperty(_ref2, "".concat(pre, "-dangerous"), !!danger), _defineProperty(_ref2, "".concat(pre, "-rtl"), direction.value === "rtl"), _ref2;
- });
- var fixTwoCNChar = function fixTwoCNChar2() {
- var node = buttonNodeRef.value;
- if (!node || autoInsertSpaceInButton.value === false) {
- return;
- }
- var buttonText = node.textContent;
- if (isNeedInserted && isTwoCNChar(buttonText)) {
- if (!hasTwoCNChar.value) {
- hasTwoCNChar.value = true;
- }
- } else if (hasTwoCNChar.value) {
- hasTwoCNChar.value = false;
- }
- };
- var handleClick = function handleClick2(event) {
- if (innerLoading.value || props5.disabled) {
- event.preventDefault();
- return;
- }
- emit("click", event);
- };
- var insertSpace = function insertSpace2(child, needInserted) {
- var SPACE = needInserted ? " " : "";
- if (child.type === Text) {
- var text = child.children.trim();
- if (isTwoCNChar(text)) {
- text = text.split("").join(SPACE);
- }
- return createVNode("span", null, [text]);
- }
- return child;
- };
- watchEffect(function() {
- devWarning_default(!(props5.ghost && isUnborderedButtonType(props5.type)), "Button", "`link` or `text` button can't be a `ghost` button.");
- });
- onMounted(fixTwoCNChar);
- onUpdated(fixTwoCNChar);
- onBeforeUnmount(function() {
- delayTimeoutRef.value && clearTimeout(delayTimeoutRef.value);
- });
- var focus = function focus2() {
- var _buttonNodeRef$value;
- (_buttonNodeRef$value = buttonNodeRef.value) === null || _buttonNodeRef$value === void 0 ? void 0 : _buttonNodeRef$value.focus();
- };
- var blur = function blur2() {
- var _buttonNodeRef$value2;
- (_buttonNodeRef$value2 = buttonNodeRef.value) === null || _buttonNodeRef$value2 === void 0 ? void 0 : _buttonNodeRef$value2.blur();
- };
- expose({
- focus,
- blur
- });
- return function() {
- var _slots$icon, _slots$default;
- var _props$icon = props5.icon, icon = _props$icon === void 0 ? (_slots$icon = slots.icon) === null || _slots$icon === void 0 ? void 0 : _slots$icon.call(slots) : _props$icon;
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- isNeedInserted = children.length === 1 && !icon && !isUnborderedButtonType(props5.type);
- var type4 = props5.type, htmlType = props5.htmlType, disabled = props5.disabled, href = props5.href, title = props5.title, target = props5.target, onMousedown2 = props5.onMousedown;
- var iconType = innerLoading.value ? "loading" : icon;
- var buttonProps3 = _objectSpread2(_objectSpread2({}, attrs), {}, {
- title,
- disabled,
- class: [classes.value, attrs.class, _defineProperty({}, "".concat(prefixCls.value, "-icon-only"), children.length === 0 && !!iconType)],
- onClick: handleClick,
- onMousedown: onMousedown2
- });
- if (!disabled) {
- delete buttonProps3.disabled;
- }
- var iconNode = icon && !innerLoading.value ? icon : createVNode(LoadingIcon_default, {
- "existIcon": !!icon,
- "prefixCls": prefixCls.value,
- "loading": !!innerLoading.value
- }, null);
- var kids = children.map(function(child) {
- return insertSpace(child, isNeedInserted && autoInsertSpace.value);
- });
- if (href !== void 0) {
- return createVNode("a", _objectSpread2(_objectSpread2({}, buttonProps3), {}, {
- "href": href,
- "target": target,
- "ref": buttonNodeRef
- }), [iconNode, kids]);
- }
- var buttonNode = createVNode("button", _objectSpread2(_objectSpread2({}, buttonProps3), {}, {
- "ref": buttonNodeRef,
- "type": htmlType
- }), [iconNode, kids]);
- if (isUnborderedButtonType(type4)) {
- return buttonNode;
- }
- return createVNode(wave_default, {
- "ref": "wave",
- "disabled": !!innerLoading.value
- }, {
- default: function _default9() {
- return [buttonNode];
- }
- });
- };
- }
- });
- // node_modules/@babel/runtime/helpers/esm/createClass.js
- function _defineProperties(target, props5) {
- for (var i3 = 0; i3 < props5.length; i3++) {
- var descriptor = props5[i3];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor)
- descriptor.writable = true;
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
- }
- }
- function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps)
- _defineProperties(Constructor.prototype, protoProps);
- if (staticProps)
- _defineProperties(Constructor, staticProps);
- Object.defineProperty(Constructor, "prototype", {
- writable: false
- });
- return Constructor;
- }
- // node_modules/@babel/runtime/helpers/esm/classCallCheck.js
- function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- }
- // node_modules/ant-design-vue/es/_util/unreachableException.js
- var UnreachableException = _createClass(function UnreachableException2(value) {
- _classCallCheck(this, UnreachableException2);
- this.error = new Error("unreachable case: ".concat(JSON.stringify(value)));
- });
- // node_modules/ant-design-vue/es/button/button-group.js
- var buttonGroupProps = function buttonGroupProps2() {
- return {
- prefixCls: String,
- size: {
- type: String
- }
- };
- };
- var button_group_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AButtonGroup",
- props: buttonGroupProps(),
- setup: function setup49(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("btn-group", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var classes = computed(function() {
- var _ref2;
- var size = props5.size;
- var sizeCls = "";
- switch (size) {
- case "large":
- sizeCls = "lg";
- break;
- case "small":
- sizeCls = "sm";
- break;
- case "middle":
- case void 0:
- break;
- default:
- console.warn(new UnreachableException(size).error);
- }
- return _ref2 = {}, _defineProperty(_ref2, "".concat(prefixCls.value), true), _defineProperty(_ref2, "".concat(prefixCls.value, "-").concat(sizeCls), sizeCls), _defineProperty(_ref2, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _ref2;
- });
- return function() {
- var _slots$default;
- return createVNode("div", {
- "class": classes.value
- }, [flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots))]);
- };
- }
- });
- // node_modules/ant-design-vue/es/button/index.js
- button_default.Group = button_group_default;
- button_default.install = function(app) {
- app.component(button_default.name, button_default);
- app.component(button_group_default.name, button_group_default);
- return app;
- };
- var button_default2 = button_default;
- // node_modules/ant-design-vue/es/dropdown/props.js
- var dropdownProps = function dropdownProps2() {
- return {
- arrow: {
- type: [Boolean, Object],
- default: void 0
- },
- trigger: {
- type: [Array, String]
- },
- overlay: vue_types_default.any,
- visible: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- align: {
- type: Object
- },
- getPopupContainer: Function,
- prefixCls: String,
- transitionName: String,
- placement: String,
- overlayClassName: String,
- overlayStyle: {
- type: Object,
- default: void 0
- },
- forceRender: {
- type: Boolean,
- default: void 0
- },
- mouseEnterDelay: Number,
- mouseLeaveDelay: Number,
- openClassName: String,
- minOverlayWidthMatchTrigger: {
- type: Boolean,
- default: void 0
- },
- destroyPopupOnHide: {
- type: Boolean,
- default: void 0
- },
- onVisibleChange: {
- type: Function
- },
- "onUpdate:visible": {
- type: Function
- }
- };
- };
- var buttonTypesProps = buttonTypes_default();
- var dropdownButtonProps = function dropdownButtonProps2() {
- return _objectSpread2(_objectSpread2({}, dropdownProps()), {}, {
- type: buttonTypesProps.type,
- size: String,
- htmlType: buttonTypesProps.htmlType,
- href: String,
- disabled: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- icon: vue_types_default.any,
- title: String,
- loading: buttonTypesProps.loading,
- onClick: {
- type: Function
- }
- });
- };
- // node_modules/ant-design-vue/es/dropdown/dropdown-button.js
- var _excluded15 = ["type", "disabled", "loading", "htmlType", "class", "overlay", "trigger", "align", "visible", "onVisibleChange", "placement", "href", "title", "icon", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "onClick", "onUpdate:visible"];
- var ButtonGroup = button_default2.Group;
- var dropdown_button_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ADropdownButton",
- inheritAttrs: false,
- __ANT_BUTTON: true,
- props: initDefaultProps_default(dropdownButtonProps(), {
- trigger: "hover",
- placement: "bottomRight",
- type: "default"
- }),
- // emits: ['click', 'visibleChange', 'update:visible'],
- slots: ["icon", "leftButton", "rightButton", "overlay"],
- setup: function setup50(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, emit = _ref.emit;
- var handleVisibleChange = function handleVisibleChange2(val) {
- emit("update:visible", val);
- emit("visibleChange", val);
- };
- var _useConfigInject = useConfigInject_default("dropdown-button", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, getPopupContainer = _useConfigInject.getPopupContainer;
- return function() {
- var _slots$overlay, _slots$icon;
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), _props$attrs$type = _props$attrs.type, type4 = _props$attrs$type === void 0 ? "default" : _props$attrs$type, disabled = _props$attrs.disabled, loading = _props$attrs.loading, htmlType = _props$attrs.htmlType, _props$attrs$class = _props$attrs.class, className = _props$attrs$class === void 0 ? "" : _props$attrs$class, _props$attrs$overlay = _props$attrs.overlay, _overlay = _props$attrs$overlay === void 0 ? (_slots$overlay = slots.overlay) === null || _slots$overlay === void 0 ? void 0 : _slots$overlay.call(slots) : _props$attrs$overlay, trigger2 = _props$attrs.trigger, align = _props$attrs.align, visible = _props$attrs.visible, _onVisibleChange = _props$attrs.onVisibleChange, _props$attrs$placemen = _props$attrs.placement, placement = _props$attrs$placemen === void 0 ? direction.value === "rtl" ? "bottomLeft" : "bottomRight" : _props$attrs$placemen, href = _props$attrs.href, title = _props$attrs.title, _props$attrs$icon = _props$attrs.icon, icon = _props$attrs$icon === void 0 ? ((_slots$icon = slots.icon) === null || _slots$icon === void 0 ? void 0 : _slots$icon.call(slots)) || createVNode(EllipsisOutlined_default, null, null) : _props$attrs$icon, mouseEnterDelay = _props$attrs.mouseEnterDelay, mouseLeaveDelay = _props$attrs.mouseLeaveDelay, overlayClassName = _props$attrs.overlayClassName, overlayStyle = _props$attrs.overlayStyle, destroyPopupOnHide = _props$attrs.destroyPopupOnHide, onClick2 = _props$attrs.onClick, _updateVisible = _props$attrs["onUpdate:visible"], restProps = _objectWithoutProperties(_props$attrs, _excluded15);
- var dropdownProps3 = {
- align,
- disabled,
- trigger: disabled ? [] : trigger2,
- placement,
- getPopupContainer: getPopupContainer.value,
- onVisibleChange: handleVisibleChange,
- mouseEnterDelay,
- mouseLeaveDelay,
- visible,
- overlayClassName,
- overlayStyle,
- destroyPopupOnHide
- };
- var leftButton = createVNode(button_default2, {
- "type": type4,
- "disabled": disabled,
- "loading": loading,
- "onClick": onClick2,
- "htmlType": htmlType,
- "href": href,
- "title": title
- }, {
- default: slots.default
- });
- var rightButton = createVNode(button_default2, {
- "type": type4,
- "icon": icon
- }, null);
- return createVNode(ButtonGroup, _objectSpread2(_objectSpread2({}, restProps), {}, {
- "class": classNames_default(prefixCls.value, className)
- }), {
- default: function _default9() {
- return [slots.leftButton ? slots.leftButton({
- button: leftButton
- }) : leftButton, createVNode(dropdown_default, dropdownProps3, {
- default: function _default10() {
- return [slots.rightButton ? slots.rightButton({
- button: rightButton
- }) : rightButton];
- },
- overlay: function overlay() {
- return _overlay;
- }
- })];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/dropdown/dropdown.js
- var Dropdown = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ADropdown",
- inheritAttrs: false,
- props: initDefaultProps_default(dropdownProps(), {
- mouseEnterDelay: 0.15,
- mouseLeaveDelay: 0.1,
- placement: "bottomLeft",
- trigger: "hover"
- }),
- // emits: ['visibleChange', 'update:visible'],
- slots: ["overlay"],
- setup: function setup51(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, emit = _ref.emit;
- var _useConfigInject = useConfigInject_default("dropdown", props5), prefixCls = _useConfigInject.prefixCls, rootPrefixCls = _useConfigInject.rootPrefixCls, direction = _useConfigInject.direction, getPopupContainer = _useConfigInject.getPopupContainer;
- var transitionName2 = computed(function() {
- var _props$placement = props5.placement, placement2 = _props$placement === void 0 ? "" : _props$placement, transitionName3 = props5.transitionName;
- if (transitionName3 !== void 0) {
- return transitionName3;
- }
- if (placement2.indexOf("top") >= 0) {
- return "".concat(rootPrefixCls.value, "-slide-down");
- }
- return "".concat(rootPrefixCls.value, "-slide-up");
- });
- var renderOverlay = function renderOverlay2() {
- var _slots$overlay, _overlayNode$children, _overlayNode$children2;
- var overlay = props5.overlay || ((_slots$overlay = slots.overlay) === null || _slots$overlay === void 0 ? void 0 : _slots$overlay.call(slots));
- var overlayNode = Array.isArray(overlay) ? overlay[0] : overlay;
- if (!overlayNode)
- return null;
- var overlayProps = overlayNode.props || {};
- devWarning_default(!overlayProps.mode || overlayProps.mode === "vertical", "Dropdown", 'mode="'.concat(overlayProps.mode, `" is not supported for Dropdown's Menu.`));
- var _overlayProps$selecta = overlayProps.selectable, selectable = _overlayProps$selecta === void 0 ? false : _overlayProps$selecta, _overlayProps$expandI = overlayProps.expandIcon, expandIcon = _overlayProps$expandI === void 0 ? (_overlayNode$children = overlayNode.children) === null || _overlayNode$children === void 0 ? void 0 : (_overlayNode$children2 = _overlayNode$children.expandIcon) === null || _overlayNode$children2 === void 0 ? void 0 : _overlayNode$children2.call(_overlayNode$children) : _overlayProps$expandI;
- var overlayNodeExpandIcon = typeof expandIcon !== "undefined" && isValidElement(expandIcon) ? expandIcon : createVNode("span", {
- "class": "".concat(prefixCls.value, "-menu-submenu-arrow")
- }, [createVNode(RightOutlined_default, {
- "class": "".concat(prefixCls.value, "-menu-submenu-arrow-icon")
- }, null)]);
- var fixedModeOverlay = isValidElement(overlayNode) ? cloneElement(overlayNode, {
- mode: "vertical",
- selectable,
- expandIcon: function expandIcon2() {
- return overlayNodeExpandIcon;
- }
- }) : overlayNode;
- return fixedModeOverlay;
- };
- var placement = computed(function() {
- var placement2 = props5.placement;
- if (!placement2) {
- return direction.value === "rtl" ? "bottomRight" : "bottomLeft";
- }
- if (placement2.includes("Center")) {
- var newPlacement = placement2.slice(0, placement2.indexOf("Center"));
- devWarning_default(!placement2.includes("Center"), "Dropdown", "You are using '".concat(placement2, "' placement in Dropdown, which is deprecated. Try to use '").concat(newPlacement, "' instead."));
- return newPlacement;
- }
- return placement2;
- });
- var handleVisibleChange = function handleVisibleChange2(val) {
- emit("update:visible", val);
- emit("visibleChange", val);
- };
- return function() {
- var _slots$default, _child$props;
- var arrow = props5.arrow, trigger2 = props5.trigger, disabled = props5.disabled, overlayClassName = props5.overlayClassName;
- var child = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)[0];
- var dropdownTrigger = cloneElement(child, _extends({
- class: classNames_default(child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.class, _defineProperty({}, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), "".concat(prefixCls.value, "-trigger"))
- }, disabled ? {
- disabled
- } : {}));
- var overlayClassNameCustomized = classNames_default(overlayClassName, _defineProperty({}, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"));
- var triggerActions = disabled ? [] : trigger2;
- var alignPoint2;
- if (triggerActions && triggerActions.indexOf("contextmenu") !== -1) {
- alignPoint2 = true;
- }
- var builtinPlacements = getPlacements({
- arrowPointAtCenter: _typeof(arrow) === "object" && arrow.pointAtCenter,
- autoAdjustOverflow: true
- });
- var dropdownProps3 = omit_default(_objectSpread2(_objectSpread2(_objectSpread2({}, props5), attrs), {}, {
- builtinPlacements,
- overlayClassName: overlayClassNameCustomized,
- arrow,
- alignPoint: alignPoint2,
- prefixCls: prefixCls.value,
- getPopupContainer: getPopupContainer.value,
- transitionName: transitionName2.value,
- trigger: triggerActions,
- onVisibleChange: handleVisibleChange,
- placement: placement.value
- }), ["overlay", "onUpdate:visible"]);
- return createVNode(vc_dropdown_default, dropdownProps3, {
- default: function _default9() {
- return [dropdownTrigger];
- },
- overlay: renderOverlay
- });
- };
- }
- });
- Dropdown.Button = dropdown_button_default;
- var dropdown_default = Dropdown;
- // node_modules/ant-design-vue/es/breadcrumb/BreadcrumbItem.js
- var _excluded16 = ["class", "style"];
- var breadcrumbItemProps = function breadcrumbItemProps2() {
- return {
- prefixCls: String,
- href: String,
- separator: vue_types_default.any,
- overlay: vue_types_default.any,
- onClick: Function
- };
- };
- var BreadcrumbItem_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ABreadcrumbItem",
- inheritAttrs: false,
- __ANT_BREADCRUMB_ITEM: true,
- props: breadcrumbItemProps(),
- // emits: ['click'],
- slots: ["separator", "overlay"],
- setup: function setup52(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("breadcrumb", props5), prefixCls = _useConfigInject.prefixCls;
- var renderBreadcrumbNode = function renderBreadcrumbNode2(breadcrumbItem, prefixCls2) {
- var overlay = getPropsSlot(slots, props5, "overlay");
- if (overlay) {
- return createVNode(dropdown_default, {
- "overlay": overlay,
- "placement": "bottom"
- }, {
- default: function _default9() {
- return [createVNode("span", {
- "class": "".concat(prefixCls2, "-overlay-link")
- }, [breadcrumbItem, createVNode(DownOutlined_default, null, null)])];
- }
- });
- }
- return breadcrumbItem;
- };
- return function() {
- var _getPropsSlot;
- var separator = (_getPropsSlot = getPropsSlot(slots, props5, "separator")) !== null && _getPropsSlot !== void 0 ? _getPropsSlot : "/";
- var children = getPropsSlot(slots, props5);
- var cls = attrs.class, style = attrs.style, restAttrs = _objectWithoutProperties(attrs, _excluded16);
- var link;
- if (props5.href !== void 0) {
- link = createVNode("a", _objectSpread2({
- "class": "".concat(prefixCls.value, "-link"),
- "onClick": props5.onClick
- }, restAttrs), [children]);
- } else {
- link = createVNode("span", _objectSpread2({
- "class": "".concat(prefixCls.value, "-link"),
- "onClick": props5.onClick
- }, restAttrs), [children]);
- }
- link = renderBreadcrumbNode(link, prefixCls.value);
- if (children) {
- return createVNode("span", {
- "class": cls,
- "style": style
- }, [link, separator && createVNode("span", {
- "class": "".concat(prefixCls.value, "-separator")
- }, [separator])]);
- }
- return null;
- };
- }
- });
- // node_modules/ant-design-vue/es/_util/shallowequal.js
- function shallowEqual(objA, objB, compare, compareContext) {
- var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
- if (ret !== void 0) {
- return !!ret;
- }
- if (objA === objB) {
- return true;
- }
- if (_typeof(objA) !== "object" || !objA || _typeof(objB) !== "object" || !objB) {
- return false;
- }
- var keysA = Object.keys(objA);
- var keysB = Object.keys(objB);
- if (keysA.length !== keysB.length) {
- return false;
- }
- var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
- for (var idx = 0; idx < keysA.length; idx++) {
- var key2 = keysA[idx];
- if (!bHasOwnProperty(key2)) {
- return false;
- }
- var valueA = objA[key2];
- var valueB = objB[key2];
- ret = compare ? compare.call(compareContext, valueA, valueB, key2) : void 0;
- if (ret === false || ret === void 0 && valueA !== valueB) {
- return false;
- }
- }
- return true;
- }
- function shallowequal_default(value, other, customizer, thisArg) {
- return shallowEqual(toRaw(value), toRaw(other), customizer, thisArg);
- }
- // node_modules/ant-design-vue/es/menu/src/hooks/useMenuContext.js
- var MenuContextKey = Symbol("menuContextKey");
- var useProvideMenu = function useProvideMenu2(props5) {
- provide(MenuContextKey, props5);
- };
- var useInjectMenu = function useInjectMenu2() {
- return inject(MenuContextKey);
- };
- var ForceRenderKey = Symbol("ForceRenderKey");
- var useProvideForceRender = function useProvideForceRender2(forceRender) {
- provide(ForceRenderKey, forceRender);
- };
- var useInjectForceRender = function useInjectForceRender2() {
- return inject(ForceRenderKey, false);
- };
- var MenuFirstLevelContextKey = Symbol("menuFirstLevelContextKey");
- var useProvideFirstLevel = function useProvideFirstLevel2(firstLevel) {
- provide(MenuFirstLevelContextKey, firstLevel);
- };
- var useInjectFirstLevel = function useInjectFirstLevel2() {
- return inject(MenuFirstLevelContextKey, true);
- };
- var MenuContextProvider = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "MenuContextProvider",
- inheritAttrs: false,
- props: {
- mode: {
- type: String,
- default: void 0
- },
- overflowDisabled: {
- type: Boolean,
- default: void 0
- },
- isRootMenu: {
- type: Boolean,
- default: void 0
- }
- },
- setup: function setup53(props5, _ref) {
- var slots = _ref.slots;
- var menuContext = useInjectMenu();
- var newContext = _objectSpread2({}, menuContext);
- if (props5.mode !== void 0) {
- newContext.mode = toRef(props5, "mode");
- }
- if (props5.isRootMenu !== void 0) {
- newContext.isRootMenu = toRef(props5, "isRootMenu");
- }
- if (props5.overflowDisabled !== void 0) {
- newContext.overflowDisabled = toRef(props5, "overflowDisabled");
- }
- useProvideMenu(newContext);
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- var useMenuContext_default = useProvideMenu;
- // node_modules/lodash-es/_baseFindIndex.js
- function baseFindIndex(array4, predicate, fromIndex, fromRight) {
- var length = array4.length, index3 = fromIndex + (fromRight ? 1 : -1);
- while (fromRight ? index3-- : ++index3 < length) {
- if (predicate(array4[index3], index3, array4)) {
- return index3;
- }
- }
- return -1;
- }
- var baseFindIndex_default = baseFindIndex;
- // node_modules/lodash-es/_baseIsNaN.js
- function baseIsNaN(value) {
- return value !== value;
- }
- var baseIsNaN_default = baseIsNaN;
- // node_modules/lodash-es/_strictIndexOf.js
- function strictIndexOf(array4, value, fromIndex) {
- var index3 = fromIndex - 1, length = array4.length;
- while (++index3 < length) {
- if (array4[index3] === value) {
- return index3;
- }
- }
- return -1;
- }
- var strictIndexOf_default = strictIndexOf;
- // node_modules/lodash-es/_baseIndexOf.js
- function baseIndexOf(array4, value, fromIndex) {
- return value === value ? strictIndexOf_default(array4, value, fromIndex) : baseFindIndex_default(array4, baseIsNaN_default, fromIndex);
- }
- var baseIndexOf_default = baseIndexOf;
- // node_modules/lodash-es/_arrayIncludes.js
- function arrayIncludes(array4, value) {
- var length = array4 == null ? 0 : array4.length;
- return !!length && baseIndexOf_default(array4, value, 0) > -1;
- }
- var arrayIncludes_default = arrayIncludes;
- // node_modules/lodash-es/_arrayIncludesWith.js
- function arrayIncludesWith(array4, value, comparator) {
- var index3 = -1, length = array4 == null ? 0 : array4.length;
- while (++index3 < length) {
- if (comparator(value, array4[index3])) {
- return true;
- }
- }
- return false;
- }
- var arrayIncludesWith_default = arrayIncludesWith;
- // node_modules/lodash-es/noop.js
- function noop4() {
- }
- var noop_default = noop4;
- // node_modules/lodash-es/_createSet.js
- var INFINITY = 1 / 0;
- var createSet = !(Set_default && 1 / setToArray_default(new Set_default([, -0]))[1] == INFINITY) ? noop_default : function(values) {
- return new Set_default(values);
- };
- var createSet_default = createSet;
- // node_modules/lodash-es/_baseUniq.js
- var LARGE_ARRAY_SIZE2 = 200;
- function baseUniq(array4, iteratee, comparator) {
- var index3 = -1, includes2 = arrayIncludes_default, length = array4.length, isCommon = true, result = [], seen = result;
- if (comparator) {
- isCommon = false;
- includes2 = arrayIncludesWith_default;
- } else if (length >= LARGE_ARRAY_SIZE2) {
- var set2 = iteratee ? null : createSet_default(array4);
- if (set2) {
- return setToArray_default(set2);
- }
- isCommon = false;
- includes2 = cacheHas_default;
- seen = new SetCache_default();
- } else {
- seen = iteratee ? [] : result;
- }
- outer:
- while (++index3 < length) {
- var value = array4[index3], computed2 = iteratee ? iteratee(value) : value;
- value = comparator || value !== 0 ? value : 0;
- if (isCommon && computed2 === computed2) {
- var seenIndex = seen.length;
- while (seenIndex--) {
- if (seen[seenIndex] === computed2) {
- continue outer;
- }
- }
- if (iteratee) {
- seen.push(computed2);
- }
- result.push(value);
- } else if (!includes2(seen, computed2, comparator)) {
- if (seen !== result) {
- seen.push(computed2);
- }
- result.push(value);
- }
- }
- return result;
- }
- var baseUniq_default = baseUniq;
- // node_modules/lodash-es/uniq.js
- function uniq(array4) {
- return array4 && array4.length ? baseUniq_default(array4) : [];
- }
- var uniq_default = uniq;
- // node_modules/ant-design-vue/es/layout/injectionKey.js
- var SiderCollapsedKey = Symbol("siderCollapsed");
- var SiderHookProviderKey = Symbol("siderHookProvider");
- // node_modules/ant-design-vue/es/menu/src/hooks/useKeyPath.js
- var OVERFLOW_KEY = "$$__vc-menu-more__key";
- var KeyPathContext = Symbol("KeyPathContext");
- var useInjectKeyPath = function useInjectKeyPath2() {
- return inject(KeyPathContext, {
- parentEventKeys: computed(function() {
- return [];
- }),
- parentKeys: computed(function() {
- return [];
- }),
- parentInfo: {}
- });
- };
- var useProvideKeyPath = function useProvideKeyPath2(eventKey, key2, menuInfo) {
- var _useInjectKeyPath = useInjectKeyPath(), parentEventKeys = _useInjectKeyPath.parentEventKeys, parentKeys = _useInjectKeyPath.parentKeys;
- var eventKeys = computed(function() {
- return [].concat(_toConsumableArray(parentEventKeys.value), [eventKey]);
- });
- var keys2 = computed(function() {
- return [].concat(_toConsumableArray(parentKeys.value), [key2]);
- });
- provide(KeyPathContext, {
- parentEventKeys: eventKeys,
- parentKeys: keys2,
- parentInfo: menuInfo
- });
- return keys2;
- };
- var measure = Symbol("measure");
- var PathContext = defineComponent({
- compatConfig: {
- MODE: 3
- },
- setup: function setup54(_props, _ref) {
- var slots = _ref.slots;
- provide(measure, true);
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- var useMeasure = function useMeasure2() {
- return inject(measure, false);
- };
- var useKeyPath_default = useProvideKeyPath;
- // node_modules/ant-design-vue/es/menu/src/hooks/useDirectionStyle.js
- function useDirectionStyle(level) {
- var _useInjectMenu = useInjectMenu(), mode = _useInjectMenu.mode, rtl3 = _useInjectMenu.rtl, inlineIndent = _useInjectMenu.inlineIndent;
- return computed(function() {
- return mode.value !== "inline" ? null : rtl3.value ? {
- paddingRight: "".concat(level.value * inlineIndent.value, "px")
- } : {
- paddingLeft: "".concat(level.value * inlineIndent.value, "px")
- };
- });
- }
- // node_modules/ant-design-vue/es/menu/src/MenuItem.js
- var indexGuid = 0;
- var menuItemProps = function menuItemProps2() {
- return {
- id: String,
- role: String,
- disabled: Boolean,
- danger: Boolean,
- title: {
- type: [String, Boolean],
- default: void 0
- },
- icon: vue_types_default.any,
- onMouseenter: Function,
- onMouseleave: Function,
- onClick: Function,
- onKeydown: Function,
- onFocus: Function
- };
- };
- var MenuItem_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AMenuItem",
- inheritAttrs: false,
- props: menuItemProps(),
- // emits: ['mouseenter', 'mouseleave', 'click', 'keydown', 'focus'],
- slots: ["icon", "title"],
- setup: function setup55(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, attrs = _ref.attrs;
- var instance = getCurrentInstance();
- var isMeasure = useMeasure();
- var key2 = _typeof(instance.vnode.key) === "symbol" ? String(instance.vnode.key) : instance.vnode.key;
- devWarning_default(_typeof(instance.vnode.key) !== "symbol", "MenuItem", 'MenuItem `:key="'.concat(String(key2), '"` not support Symbol type'));
- var eventKey = "menu_item_".concat(++indexGuid, "_$$_").concat(key2);
- var _useInjectKeyPath = useInjectKeyPath(), parentEventKeys = _useInjectKeyPath.parentEventKeys, parentKeys = _useInjectKeyPath.parentKeys;
- var _useInjectMenu = useInjectMenu(), prefixCls = _useInjectMenu.prefixCls, activeKeys = _useInjectMenu.activeKeys, disabled = _useInjectMenu.disabled, changeActiveKeys = _useInjectMenu.changeActiveKeys, rtl3 = _useInjectMenu.rtl, inlineCollapsed = _useInjectMenu.inlineCollapsed, siderCollapsed = _useInjectMenu.siderCollapsed, onItemClick2 = _useInjectMenu.onItemClick, selectedKeys = _useInjectMenu.selectedKeys, registerMenuInfo = _useInjectMenu.registerMenuInfo, unRegisterMenuInfo = _useInjectMenu.unRegisterMenuInfo;
- var firstLevel = useInjectFirstLevel();
- var isActive = ref(false);
- var keysPath = computed(function() {
- return [].concat(_toConsumableArray(parentKeys.value), [key2]);
- });
- var menuInfo = {
- eventKey,
- key: key2,
- parentEventKeys,
- parentKeys,
- isLeaf: true
- };
- registerMenuInfo(eventKey, menuInfo);
- onBeforeUnmount(function() {
- unRegisterMenuInfo(eventKey);
- });
- watch(activeKeys, function() {
- isActive.value = !!activeKeys.value.find(function(val) {
- return val === key2;
- });
- }, {
- immediate: true
- });
- var mergedDisabled = computed(function() {
- return disabled.value || props5.disabled;
- });
- var selected = computed(function() {
- return selectedKeys.value.includes(key2);
- });
- var classNames2 = computed(function() {
- var _ref2;
- var itemCls = "".concat(prefixCls.value, "-item");
- return _ref2 = {}, _defineProperty(_ref2, "".concat(itemCls), true), _defineProperty(_ref2, "".concat(itemCls, "-danger"), props5.danger), _defineProperty(_ref2, "".concat(itemCls, "-active"), isActive.value), _defineProperty(_ref2, "".concat(itemCls, "-selected"), selected.value), _defineProperty(_ref2, "".concat(itemCls, "-disabled"), mergedDisabled.value), _ref2;
- });
- var getEventInfo = function getEventInfo2(e3) {
- return {
- key: key2,
- eventKey,
- keyPath: keysPath.value,
- eventKeyPath: [].concat(_toConsumableArray(parentEventKeys.value), [eventKey]),
- domEvent: e3,
- item: _objectSpread2(_objectSpread2({}, props5), attrs)
- };
- };
- var onInternalClick = function onInternalClick2(e3) {
- if (mergedDisabled.value) {
- return;
- }
- var info = getEventInfo(e3);
- emit("click", e3);
- onItemClick2(info);
- };
- var onMouseEnter = function onMouseEnter2(event) {
- if (!mergedDisabled.value) {
- changeActiveKeys(keysPath.value);
- emit("mouseenter", event);
- }
- };
- var onMouseLeave = function onMouseLeave2(event) {
- if (!mergedDisabled.value) {
- changeActiveKeys([]);
- emit("mouseleave", event);
- }
- };
- var onInternalKeyDown = function onInternalKeyDown2(e3) {
- emit("keydown", e3);
- if (e3.which === KeyCode_default.ENTER) {
- var info = getEventInfo(e3);
- emit("click", e3);
- onItemClick2(info);
- }
- };
- var onInternalFocus = function onInternalFocus2(e3) {
- changeActiveKeys(keysPath.value);
- emit("focus", e3);
- };
- var renderItemChildren = function renderItemChildren2(icon, children) {
- var wrapNode = createVNode("span", {
- "class": "".concat(prefixCls.value, "-title-content")
- }, [children]);
- if (!icon || isValidElement(children) && children.type === "span") {
- if (children && inlineCollapsed.value && firstLevel && typeof children === "string") {
- return createVNode("div", {
- "class": "".concat(prefixCls.value, "-inline-collapsed-noicon")
- }, [children.charAt(0)]);
- }
- }
- return wrapNode;
- };
- var directionStyle = useDirectionStyle(computed(function() {
- return keysPath.value.length;
- }));
- return function() {
- var _props$title, _slots$title, _slots$default, _ref3;
- if (isMeasure)
- return null;
- var title = (_props$title = props5.title) !== null && _props$title !== void 0 ? _props$title : (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots);
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- var childrenLength = children.length;
- var tooltipTitle = title;
- if (typeof title === "undefined") {
- tooltipTitle = firstLevel && childrenLength ? children : "";
- } else if (title === false) {
- tooltipTitle = "";
- }
- var tooltipProps3 = {
- title: tooltipTitle
- };
- if (!siderCollapsed.value && !inlineCollapsed.value) {
- tooltipProps3.title = null;
- tooltipProps3.visible = false;
- }
- var optionRoleProps = {};
- if (props5.role === "option") {
- optionRoleProps["aria-selected"] = selected.value;
- }
- var icon = getPropsSlot(slots, props5, "icon");
- return createVNode(tooltip_default, _objectSpread2(_objectSpread2({}, tooltipProps3), {}, {
- "placement": rtl3.value ? "left" : "right",
- "overlayClassName": "".concat(prefixCls.value, "-inline-collapsed-tooltip")
- }), {
- default: function _default9() {
- return [createVNode(vc_overflow_default.Item, _objectSpread2(_objectSpread2(_objectSpread2({
- "component": "li"
- }, attrs), {}, {
- "id": props5.id,
- "style": _objectSpread2(_objectSpread2({}, attrs.style || {}), directionStyle.value),
- "class": [classNames2.value, (_ref3 = {}, _defineProperty(_ref3, "".concat(attrs.class), !!attrs.class), _defineProperty(_ref3, "".concat(prefixCls.value, "-item-only-child"), (icon ? childrenLength + 1 : childrenLength) === 1), _ref3)],
- "role": props5.role || "menuitem",
- "tabindex": props5.disabled ? null : -1,
- "data-menu-id": key2,
- "aria-disabled": props5.disabled
- }, optionRoleProps), {}, {
- "onMouseenter": onMouseEnter,
- "onMouseleave": onMouseLeave,
- "onClick": onInternalClick,
- "onKeydown": onInternalKeyDown,
- "onFocus": onInternalFocus,
- "title": typeof title === "string" ? title : void 0
- }), {
- default: function _default10() {
- return [cloneElement(icon, {
- class: "".concat(prefixCls.value, "-item-icon")
- }, false), renderItemChildren(icon, children)];
- }
- })];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/menu/src/placements.js
- var autoAdjustOverflow3 = {
- adjustX: 1,
- adjustY: 1
- };
- var placements3 = {
- topLeft: {
- points: ["bl", "tl"],
- overflow: autoAdjustOverflow3,
- offset: [0, -7]
- },
- bottomLeft: {
- points: ["tl", "bl"],
- overflow: autoAdjustOverflow3,
- offset: [0, 7]
- },
- leftTop: {
- points: ["tr", "tl"],
- overflow: autoAdjustOverflow3,
- offset: [-4, 0]
- },
- rightTop: {
- points: ["tl", "tr"],
- overflow: autoAdjustOverflow3,
- offset: [4, 0]
- }
- };
- var placementsRtl = {
- topLeft: {
- points: ["bl", "tl"],
- overflow: autoAdjustOverflow3,
- offset: [0, -7]
- },
- bottomLeft: {
- points: ["tl", "bl"],
- overflow: autoAdjustOverflow3,
- offset: [0, 7]
- },
- rightTop: {
- points: ["tr", "tl"],
- overflow: autoAdjustOverflow3,
- offset: [-4, 0]
- },
- leftTop: {
- points: ["tl", "tr"],
- overflow: autoAdjustOverflow3,
- offset: [4, 0]
- }
- };
- // node_modules/ant-design-vue/es/menu/src/PopupTrigger.js
- var popupPlacementMap = {
- horizontal: "bottomLeft",
- vertical: "rightTop",
- "vertical-left": "rightTop",
- "vertical-right": "leftTop"
- };
- var PopupTrigger_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "PopupTrigger",
- inheritAttrs: false,
- props: {
- prefixCls: String,
- mode: String,
- visible: Boolean,
- // popup: React.ReactNode;
- popupClassName: String,
- popupOffset: Array,
- disabled: Boolean,
- onVisibleChange: Function
- },
- slots: ["popup"],
- emits: ["visibleChange"],
- setup: function setup56(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit;
- var innerVisible = ref(false);
- var _useInjectMenu = useInjectMenu(), getPopupContainer = _useInjectMenu.getPopupContainer, rtl3 = _useInjectMenu.rtl, subMenuOpenDelay = _useInjectMenu.subMenuOpenDelay, subMenuCloseDelay = _useInjectMenu.subMenuCloseDelay, builtinPlacements = _useInjectMenu.builtinPlacements, triggerSubMenuAction = _useInjectMenu.triggerSubMenuAction, isRootMenu = _useInjectMenu.isRootMenu, forceSubMenuRender = _useInjectMenu.forceSubMenuRender, motion = _useInjectMenu.motion, defaultMotions = _useInjectMenu.defaultMotions;
- var forceRender = useInjectForceRender();
- var placement = computed(function() {
- return rtl3.value ? _objectSpread2(_objectSpread2({}, placementsRtl), builtinPlacements.value) : _objectSpread2(_objectSpread2({}, placements3), builtinPlacements.value);
- });
- var popupPlacement = computed(function() {
- return popupPlacementMap[props5.mode];
- });
- var visibleRef = ref();
- watch(function() {
- return props5.visible;
- }, function(visible) {
- wrapperRaf.cancel(visibleRef.value);
- visibleRef.value = wrapperRaf(function() {
- innerVisible.value = visible;
- });
- }, {
- immediate: true
- });
- onBeforeUnmount(function() {
- wrapperRaf.cancel(visibleRef.value);
- });
- var onVisibleChange = function onVisibleChange2(visible) {
- emit("visibleChange", visible);
- };
- var mergedMotion = computed(function() {
- var _defaultMotions$value, _defaultMotions$value2;
- var m2 = motion.value || ((_defaultMotions$value = defaultMotions.value) === null || _defaultMotions$value === void 0 ? void 0 : _defaultMotions$value[props5.mode]) || ((_defaultMotions$value2 = defaultMotions.value) === null || _defaultMotions$value2 === void 0 ? void 0 : _defaultMotions$value2.other);
- var res = typeof m2 === "function" ? m2() : m2;
- return res ? getTransitionProps(res.name, {
- css: true
- }) : void 0;
- });
- return function() {
- var prefixCls = props5.prefixCls, popupClassName = props5.popupClassName, mode = props5.mode, popupOffset = props5.popupOffset, disabled = props5.disabled;
- return createVNode(vc_trigger_default, {
- "prefixCls": prefixCls,
- "popupClassName": classNames_default("".concat(prefixCls, "-popup"), _defineProperty({}, "".concat(prefixCls, "-rtl"), rtl3.value), popupClassName),
- "stretch": mode === "horizontal" ? "minWidth" : null,
- "getPopupContainer": isRootMenu.value ? getPopupContainer.value : function(triggerNode) {
- return triggerNode.parentNode;
- },
- "builtinPlacements": placement.value,
- "popupPlacement": popupPlacement.value,
- "popupVisible": innerVisible.value,
- "popupAlign": popupOffset && {
- offset: popupOffset
- },
- "action": disabled ? [] : [triggerSubMenuAction.value],
- "mouseEnterDelay": subMenuOpenDelay.value,
- "mouseLeaveDelay": subMenuCloseDelay.value,
- "onPopupVisibleChange": onVisibleChange,
- "forceRender": forceRender || forceSubMenuRender.value,
- "popupAnimation": mergedMotion.value
- }, {
- popup: slots.popup,
- default: slots.default
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/menu/src/SubMenuList.js
- var InternalSubMenuList = function InternalSubMenuList2(_props, _ref) {
- var _slots$default;
- var slots = _ref.slots, attrs = _ref.attrs;
- var _useInjectMenu = useInjectMenu(), prefixCls = _useInjectMenu.prefixCls, mode = _useInjectMenu.mode;
- return createVNode("ul", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "class": classNames_default(prefixCls.value, "".concat(prefixCls.value, "-sub"), "".concat(prefixCls.value, "-").concat(mode.value === "inline" ? "inline" : "vertical")),
- "data-menu-list": true
- }), [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- InternalSubMenuList.displayName = "SubMenuList";
- var SubMenuList_default = InternalSubMenuList;
- // node_modules/ant-design-vue/es/menu/src/InlineSubMenuList.js
- var InlineSubMenuList_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "InlineSubMenuList",
- inheritAttrs: false,
- props: {
- id: String,
- open: Boolean,
- keyPath: Array
- },
- setup: function setup57(props5, _ref) {
- var slots = _ref.slots;
- var fixedMode = computed(function() {
- return "inline";
- });
- var _useInjectMenu = useInjectMenu(), motion = _useInjectMenu.motion, mode = _useInjectMenu.mode, defaultMotions = _useInjectMenu.defaultMotions;
- var sameModeRef = computed(function() {
- return mode.value === fixedMode.value;
- });
- var destroy3 = ref(!sameModeRef.value);
- var mergedOpen = computed(function() {
- return sameModeRef.value ? props5.open : false;
- });
- watch(mode, function() {
- if (sameModeRef.value) {
- destroy3.value = false;
- }
- }, {
- flush: "post"
- });
- var mergedMotion = computed(function() {
- var _defaultMotions$value, _defaultMotions$value2;
- var m2 = motion.value || ((_defaultMotions$value = defaultMotions.value) === null || _defaultMotions$value === void 0 ? void 0 : _defaultMotions$value[fixedMode.value]) || ((_defaultMotions$value2 = defaultMotions.value) === null || _defaultMotions$value2 === void 0 ? void 0 : _defaultMotions$value2.other);
- var res = typeof m2 === "function" ? m2() : m2;
- return _objectSpread2(_objectSpread2({}, res), {}, {
- appear: props5.keyPath.length <= 1
- });
- });
- return function() {
- var _slots$default;
- if (destroy3.value) {
- return null;
- }
- return createVNode(MenuContextProvider, {
- "mode": fixedMode.value
- }, {
- default: function _default9() {
- return [createVNode(transition_default, mergedMotion.value, {
- default: function _default10() {
- return [withDirectives(createVNode(SubMenuList_default, {
- "id": props5.id
- }, {
- default: function _default11() {
- return [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)];
- }
- }), [[vShow, mergedOpen.value]])];
- }
- })];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/menu/src/SubMenu.js
- var indexGuid2 = 0;
- var subMenuProps = function subMenuProps2() {
- return {
- icon: vue_types_default.any,
- title: vue_types_default.any,
- disabled: Boolean,
- level: Number,
- popupClassName: String,
- popupOffset: Array,
- internalPopupClose: Boolean,
- eventKey: String,
- expandIcon: Function,
- onMouseenter: Function,
- onMouseleave: Function,
- onTitleClick: Function
- };
- };
- var SubMenu_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASubMenu",
- inheritAttrs: false,
- props: subMenuProps(),
- slots: ["icon", "title", "expandIcon"],
- // emits: ['titleClick', 'mouseenter', 'mouseleave'],
- setup: function setup58(props5, _ref) {
- var _props$eventKey, _parentInfo$childrenE;
- var slots = _ref.slots, attrs = _ref.attrs, emit = _ref.emit;
- useProvideFirstLevel(false);
- var isMeasure = useMeasure();
- var instance = getCurrentInstance();
- var vnodeKey = _typeof(instance.vnode.key) === "symbol" ? String(instance.vnode.key) : instance.vnode.key;
- devWarning_default(_typeof(instance.vnode.key) !== "symbol", "SubMenu", 'SubMenu `:key="'.concat(String(vnodeKey), '"` not support Symbol type'));
- var key2 = isValid_default(vnodeKey) ? vnodeKey : "sub_menu_".concat(++indexGuid2, "_$$_not_set_key");
- var eventKey = (_props$eventKey = props5.eventKey) !== null && _props$eventKey !== void 0 ? _props$eventKey : isValid_default(vnodeKey) ? "sub_menu_".concat(++indexGuid2, "_$$_").concat(vnodeKey) : key2;
- var _useInjectKeyPath = useInjectKeyPath(), parentEventKeys = _useInjectKeyPath.parentEventKeys, parentInfo = _useInjectKeyPath.parentInfo, parentKeys = _useInjectKeyPath.parentKeys;
- var keysPath = computed(function() {
- return [].concat(_toConsumableArray(parentKeys.value), [key2]);
- });
- var childrenEventKeys = ref([]);
- var menuInfo = {
- eventKey,
- key: key2,
- parentEventKeys,
- childrenEventKeys,
- parentKeys
- };
- (_parentInfo$childrenE = parentInfo.childrenEventKeys) === null || _parentInfo$childrenE === void 0 ? void 0 : _parentInfo$childrenE.value.push(eventKey);
- onBeforeUnmount(function() {
- if (parentInfo.childrenEventKeys) {
- var _parentInfo$childrenE2;
- parentInfo.childrenEventKeys.value = (_parentInfo$childrenE2 = parentInfo.childrenEventKeys) === null || _parentInfo$childrenE2 === void 0 ? void 0 : _parentInfo$childrenE2.value.filter(function(k2) {
- return k2 != eventKey;
- });
- }
- });
- useKeyPath_default(eventKey, key2, menuInfo);
- var _useInjectMenu = useInjectMenu(), prefixCls = _useInjectMenu.prefixCls, activeKeys = _useInjectMenu.activeKeys, contextDisabled = _useInjectMenu.disabled, changeActiveKeys = _useInjectMenu.changeActiveKeys, mode = _useInjectMenu.mode, inlineCollapsed = _useInjectMenu.inlineCollapsed, antdMenuTheme = _useInjectMenu.antdMenuTheme, openKeys = _useInjectMenu.openKeys, overflowDisabled = _useInjectMenu.overflowDisabled, onOpenChange = _useInjectMenu.onOpenChange, registerMenuInfo = _useInjectMenu.registerMenuInfo, unRegisterMenuInfo = _useInjectMenu.unRegisterMenuInfo, selectedSubMenuKeys = _useInjectMenu.selectedSubMenuKeys, menuExpandIcon = _useInjectMenu.expandIcon;
- var hasKey = vnodeKey !== void 0 && vnodeKey !== null;
- var forceRender = !isMeasure && (useInjectForceRender() || !hasKey);
- useProvideForceRender(forceRender);
- if (isMeasure && hasKey || !isMeasure && !hasKey || forceRender) {
- registerMenuInfo(eventKey, menuInfo);
- onBeforeUnmount(function() {
- unRegisterMenuInfo(eventKey);
- });
- }
- var subMenuPrefixCls = computed(function() {
- return "".concat(prefixCls.value, "-submenu");
- });
- var mergedDisabled = computed(function() {
- return contextDisabled.value || props5.disabled;
- });
- var elementRef = ref();
- var popupRef = ref();
- var originOpen = computed(function() {
- return openKeys.value.includes(key2);
- });
- var open2 = computed(function() {
- return !overflowDisabled.value && originOpen.value;
- });
- var childrenSelected = computed(function() {
- return selectedSubMenuKeys.value.includes(key2);
- });
- var isActive = ref(false);
- watch(activeKeys, function() {
- isActive.value = !!activeKeys.value.find(function(val) {
- return val === key2;
- });
- }, {
- immediate: true
- });
- var onInternalTitleClick = function onInternalTitleClick2(e3) {
- if (mergedDisabled.value) {
- return;
- }
- emit("titleClick", e3, key2);
- if (mode.value === "inline") {
- onOpenChange(key2, !originOpen.value);
- }
- };
- var onMouseEnter = function onMouseEnter2(event) {
- if (!mergedDisabled.value) {
- changeActiveKeys(keysPath.value);
- emit("mouseenter", event);
- }
- };
- var onMouseLeave = function onMouseLeave2(event) {
- if (!mergedDisabled.value) {
- changeActiveKeys([]);
- emit("mouseleave", event);
- }
- };
- var directionStyle = useDirectionStyle(computed(function() {
- return keysPath.value.length;
- }));
- var onPopupVisibleChange = function onPopupVisibleChange2(newVisible) {
- if (mode.value !== "inline") {
- onOpenChange(key2, newVisible);
- }
- };
- var onInternalFocus = function onInternalFocus2() {
- changeActiveKeys(keysPath.value);
- };
- var popupId = eventKey && "".concat(eventKey, "-popup");
- var popupClassName = computed(function() {
- return classNames_default(prefixCls.value, "".concat(prefixCls.value, "-").concat(antdMenuTheme.value), props5.popupClassName);
- });
- var renderTitle = function renderTitle2(title, icon) {
- if (!icon) {
- return inlineCollapsed.value && !parentKeys.value.length && title && typeof title === "string" ? createVNode("div", {
- "class": "".concat(prefixCls.value, "-inline-collapsed-noicon")
- }, [title.charAt(0)]) : createVNode("span", {
- "class": "".concat(prefixCls.value, "-title-content")
- }, [title]);
- }
- var titleIsSpan = isValidElement(title) && title.type === "span";
- return createVNode(Fragment, null, [cloneElement(icon, {
- class: "".concat(prefixCls.value, "-item-icon")
- }, false), titleIsSpan ? title : createVNode("span", {
- "class": "".concat(prefixCls.value, "-title-content")
- }, [title])]);
- };
- var triggerModeRef = computed(function() {
- return mode.value !== "inline" && keysPath.value.length > 1 ? "vertical" : mode.value;
- });
- var renderMode = computed(function() {
- return mode.value === "horizontal" ? "vertical" : mode.value;
- });
- var subMenuTriggerModeRef = computed(function() {
- return triggerModeRef.value === "horizontal" ? "vertical" : triggerModeRef.value;
- });
- var baseTitleNode = function baseTitleNode2() {
- var subMenuPrefixClsValue = subMenuPrefixCls.value;
- var icon = getPropsSlot(slots, props5, "icon");
- var expandIcon = props5.expandIcon || slots.expandIcon || menuExpandIcon.value;
- var title = renderTitle(getPropsSlot(slots, props5, "title"), icon);
- return createVNode("div", {
- "style": directionStyle.value,
- "class": "".concat(subMenuPrefixClsValue, "-title"),
- "tabindex": mergedDisabled.value ? null : -1,
- "ref": elementRef,
- "title": typeof title === "string" ? title : null,
- "data-menu-id": key2,
- "aria-expanded": open2.value,
- "aria-haspopup": true,
- "aria-controls": popupId,
- "aria-disabled": mergedDisabled.value,
- "onClick": onInternalTitleClick,
- "onFocus": onInternalFocus
- }, [title, mode.value !== "horizontal" && expandIcon ? expandIcon(_objectSpread2(_objectSpread2({}, props5), {}, {
- isOpen: open2.value
- })) : createVNode("i", {
- "class": "".concat(subMenuPrefixClsValue, "-arrow")
- }, null)]);
- };
- return function() {
- var _classNames;
- if (isMeasure) {
- var _slots$default;
- if (!hasKey) {
- return null;
- }
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- }
- var subMenuPrefixClsValue = subMenuPrefixCls.value;
- var titleNode = function titleNode2() {
- return null;
- };
- if (!overflowDisabled.value && mode.value !== "inline") {
- titleNode = function titleNode2() {
- return createVNode(PopupTrigger_default, {
- "mode": triggerModeRef.value,
- "prefixCls": subMenuPrefixClsValue,
- "visible": !props5.internalPopupClose && open2.value,
- "popupClassName": popupClassName.value,
- "popupOffset": props5.popupOffset,
- "disabled": mergedDisabled.value,
- "onVisibleChange": onPopupVisibleChange
- }, {
- default: function _default9() {
- return [baseTitleNode()];
- },
- popup: function popup() {
- return createVNode(MenuContextProvider, {
- "mode": subMenuTriggerModeRef.value,
- "isRootMenu": false
- }, {
- default: function _default9() {
- return [createVNode(SubMenuList_default, {
- "id": popupId,
- "ref": popupRef
- }, {
- default: slots.default
- })];
- }
- });
- }
- });
- };
- } else {
- titleNode = function titleNode2() {
- return createVNode(PopupTrigger_default, null, {
- default: baseTitleNode
- });
- };
- }
- return createVNode(MenuContextProvider, {
- "mode": renderMode.value
- }, {
- default: function _default9() {
- return [createVNode(vc_overflow_default.Item, _objectSpread2(_objectSpread2({
- "component": "li"
- }, attrs), {}, {
- "role": "none",
- "class": classNames_default(subMenuPrefixClsValue, "".concat(subMenuPrefixClsValue, "-").concat(mode.value), attrs.class, (_classNames = {}, _defineProperty(_classNames, "".concat(subMenuPrefixClsValue, "-open"), open2.value), _defineProperty(_classNames, "".concat(subMenuPrefixClsValue, "-active"), isActive.value), _defineProperty(_classNames, "".concat(subMenuPrefixClsValue, "-selected"), childrenSelected.value), _defineProperty(_classNames, "".concat(subMenuPrefixClsValue, "-disabled"), mergedDisabled.value), _classNames)),
- "onMouseenter": onMouseEnter,
- "onMouseleave": onMouseLeave,
- "data-submenu-id": key2
- }), {
- default: function _default10() {
- return createVNode(Fragment, null, [titleNode(), !overflowDisabled.value && createVNode(InlineSubMenuList_default, {
- "id": popupId,
- "open": open2.value,
- "keyPath": keysPath.value
- }, {
- default: slots.default
- })]);
- }
- })];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-util/Dom/class.js
- function hasClass(node, className) {
- if (node.classList) {
- return node.classList.contains(className);
- }
- var originClass = node.className;
- return " ".concat(originClass, " ").indexOf(" ".concat(className, " ")) > -1;
- }
- function addClass(node, className) {
- if (node.classList) {
- node.classList.add(className);
- } else {
- if (!hasClass(node, className)) {
- node.className = "".concat(node.className, " ").concat(className);
- }
- }
- }
- function removeClass(node, className) {
- if (node.classList) {
- node.classList.remove(className);
- } else {
- if (hasClass(node, className)) {
- var originClass = node.className;
- node.className = " ".concat(originClass, " ").replace(" ".concat(className, " "), " ");
- }
- }
- }
- // node_modules/ant-design-vue/es/_util/collapseMotion.js
- var collapseMotion = function collapseMotion2() {
- var name = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant-motion-collapse";
- var appear = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
- return {
- name,
- appear,
- css: true,
- onBeforeEnter: function onBeforeEnter(node) {
- node.style.height = "0px";
- node.style.opacity = "0";
- addClass(node, name);
- },
- onEnter: function onEnter(node) {
- nextTick(function() {
- node.style.height = "".concat(node.scrollHeight, "px");
- node.style.opacity = "1";
- });
- },
- onAfterEnter: function onAfterEnter(node) {
- if (node) {
- removeClass(node, name);
- node.style.height = null;
- node.style.opacity = null;
- }
- },
- onBeforeLeave: function onBeforeLeave(node) {
- addClass(node, name);
- node.style.height = "".concat(node.offsetHeight, "px");
- node.style.opacity = null;
- },
- onLeave: function onLeave(node) {
- setTimeout(function() {
- node.style.height = "0px";
- node.style.opacity = "0";
- });
- },
- onAfterLeave: function onAfterLeave(node) {
- if (node) {
- removeClass(node, name);
- if (node.style) {
- node.style.height = null;
- node.style.opacity = null;
- }
- }
- }
- };
- };
- var collapseMotion_default = collapseMotion;
- // node_modules/ant-design-vue/es/menu/src/Menu.js
- var menuProps = function menuProps2() {
- return {
- id: String,
- prefixCls: String,
- disabled: Boolean,
- inlineCollapsed: Boolean,
- disabledOverflow: Boolean,
- forceSubMenuRender: Boolean,
- openKeys: Array,
- selectedKeys: Array,
- activeKey: String,
- selectable: {
- type: Boolean,
- default: true
- },
- multiple: {
- type: Boolean,
- default: false
- },
- motion: Object,
- theme: {
- type: String,
- default: "light"
- },
- mode: {
- type: String,
- default: "vertical"
- },
- inlineIndent: {
- type: Number,
- default: 24
- },
- subMenuOpenDelay: {
- type: Number,
- default: 0.1
- },
- subMenuCloseDelay: {
- type: Number,
- default: 0.1
- },
- builtinPlacements: {
- type: Object
- },
- triggerSubMenuAction: {
- type: String,
- default: "hover"
- },
- getPopupContainer: Function,
- expandIcon: Function,
- onOpenChange: Function,
- onSelect: Function,
- onDeselect: Function,
- onClick: [Function, Array],
- onFocus: Function,
- onBlur: Function,
- onMousedown: Function,
- "onUpdate:openKeys": Function,
- "onUpdate:selectedKeys": Function,
- "onUpdate:activeKey": Function
- };
- };
- var EMPTY_LIST = [];
- var Menu_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AMenu",
- inheritAttrs: false,
- props: menuProps(),
- slots: ["expandIcon", "overflowedIndicator"],
- setup: function setup59(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("menu", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, getPrefixCls2 = _useConfigInject.getPrefixCls;
- var store = ref({});
- var siderCollapsed = inject(SiderCollapsedKey, ref(void 0));
- var inlineCollapsed = computed(function() {
- if (siderCollapsed.value !== void 0) {
- return siderCollapsed.value;
- }
- return props5.inlineCollapsed;
- });
- var isMounted = ref(false);
- onMounted(function() {
- isMounted.value = true;
- });
- watchEffect(function() {
- devWarning_default(!(props5.inlineCollapsed === true && props5.mode !== "inline"), "Menu", "`inlineCollapsed` should only be used when `mode` is inline.");
- devWarning_default(!(siderCollapsed.value !== void 0 && props5.inlineCollapsed === true), "Menu", "`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.");
- });
- var activeKeys = ref([]);
- var mergedSelectedKeys = ref([]);
- var keyMapStore = ref({});
- watch(store, function() {
- var newKeyMapStore = {};
- for (var _i = 0, _Object$values = Object.values(store.value); _i < _Object$values.length; _i++) {
- var menuInfo = _Object$values[_i];
- newKeyMapStore[menuInfo.key] = menuInfo;
- }
- keyMapStore.value = newKeyMapStore;
- }, {
- flush: "post"
- });
- watchEffect(function() {
- if (props5.activeKey !== void 0) {
- var keys2 = [];
- var menuInfo = props5.activeKey ? keyMapStore.value[props5.activeKey] : void 0;
- if (menuInfo && props5.activeKey !== void 0) {
- keys2 = uniq_default([].concat(unref(menuInfo.parentKeys), props5.activeKey));
- } else {
- keys2 = [];
- }
- if (!shallowequal_default(activeKeys.value, keys2)) {
- activeKeys.value = keys2;
- }
- }
- });
- watch(function() {
- return props5.selectedKeys;
- }, function(selectedKeys) {
- if (selectedKeys) {
- mergedSelectedKeys.value = selectedKeys.slice();
- }
- }, {
- immediate: true,
- deep: true
- });
- var selectedSubMenuKeys = ref([]);
- watch([keyMapStore, mergedSelectedKeys], function() {
- var subMenuParentKeys = [];
- mergedSelectedKeys.value.forEach(function(key2) {
- var menuInfo = keyMapStore.value[key2];
- if (menuInfo) {
- subMenuParentKeys = subMenuParentKeys.concat(unref(menuInfo.parentKeys));
- }
- });
- subMenuParentKeys = uniq_default(subMenuParentKeys);
- if (!shallowequal_default(selectedSubMenuKeys.value, subMenuParentKeys)) {
- selectedSubMenuKeys.value = subMenuParentKeys;
- }
- }, {
- immediate: true
- });
- var triggerSelection = function triggerSelection2(info) {
- if (!props5.selectable) {
- return;
- }
- var targetKey = info.key;
- var exist = mergedSelectedKeys.value.includes(targetKey);
- var newSelectedKeys;
- if (props5.multiple) {
- if (exist) {
- newSelectedKeys = mergedSelectedKeys.value.filter(function(key2) {
- return key2 !== targetKey;
- });
- } else {
- newSelectedKeys = [].concat(_toConsumableArray(mergedSelectedKeys.value), [targetKey]);
- }
- } else {
- newSelectedKeys = [targetKey];
- }
- var selectInfo = _objectSpread2(_objectSpread2({}, info), {}, {
- selectedKeys: newSelectedKeys
- });
- if (!shallowequal_default(newSelectedKeys, mergedSelectedKeys.value)) {
- if (props5.selectedKeys === void 0) {
- mergedSelectedKeys.value = newSelectedKeys;
- }
- emit("update:selectedKeys", newSelectedKeys);
- if (exist && props5.multiple) {
- emit("deselect", selectInfo);
- } else {
- emit("select", selectInfo);
- }
- }
- if (mergedMode.value !== "inline" && !props5.multiple && mergedOpenKeys.value.length) {
- triggerOpenKeys(EMPTY_LIST);
- }
- };
- var mergedOpenKeys = ref([]);
- watch(function() {
- return props5.openKeys;
- }, function() {
- var openKeys = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : mergedOpenKeys.value;
- if (!shallowequal_default(mergedOpenKeys.value, openKeys)) {
- mergedOpenKeys.value = openKeys.slice();
- }
- }, {
- immediate: true,
- deep: true
- });
- var timeout;
- var changeActiveKeys = function changeActiveKeys2(keys2) {
- clearTimeout(timeout);
- timeout = setTimeout(function() {
- if (props5.activeKey === void 0) {
- activeKeys.value = keys2;
- }
- emit("update:activeKey", keys2[keys2.length - 1]);
- });
- };
- var disabled = computed(function() {
- return !!props5.disabled;
- });
- var isRtl = computed(function() {
- return direction.value === "rtl";
- });
- var mergedMode = ref("vertical");
- var mergedInlineCollapsed = ref(false);
- watchEffect(function() {
- if ((props5.mode === "inline" || props5.mode === "vertical") && inlineCollapsed.value) {
- mergedMode.value = "vertical";
- mergedInlineCollapsed.value = inlineCollapsed.value;
- } else {
- mergedMode.value = props5.mode;
- mergedInlineCollapsed.value = false;
- }
- });
- var isInlineMode = computed(function() {
- return mergedMode.value === "inline";
- });
- var triggerOpenKeys = function triggerOpenKeys2(keys2) {
- mergedOpenKeys.value = keys2;
- emit("update:openKeys", keys2);
- emit("openChange", keys2);
- };
- var inlineCacheOpenKeys = ref(mergedOpenKeys.value);
- var mountRef = ref(false);
- watch(mergedOpenKeys, function() {
- if (isInlineMode.value) {
- inlineCacheOpenKeys.value = mergedOpenKeys.value;
- }
- }, {
- immediate: true
- });
- watch(isInlineMode, function() {
- if (!mountRef.value) {
- mountRef.value = true;
- return;
- }
- if (isInlineMode.value) {
- mergedOpenKeys.value = inlineCacheOpenKeys.value;
- } else {
- triggerOpenKeys(EMPTY_LIST);
- }
- }, {
- immediate: true
- });
- var className = computed(function() {
- var _ref2;
- return _ref2 = {}, _defineProperty(_ref2, "".concat(prefixCls.value), true), _defineProperty(_ref2, "".concat(prefixCls.value, "-root"), true), _defineProperty(_ref2, "".concat(prefixCls.value, "-").concat(mergedMode.value), true), _defineProperty(_ref2, "".concat(prefixCls.value, "-inline-collapsed"), mergedInlineCollapsed.value), _defineProperty(_ref2, "".concat(prefixCls.value, "-rtl"), isRtl.value), _defineProperty(_ref2, "".concat(prefixCls.value, "-").concat(props5.theme), true), _ref2;
- });
- var rootPrefixCls = computed(function() {
- return getPrefixCls2();
- });
- var defaultMotions = computed(function() {
- return {
- horizontal: {
- name: "".concat(rootPrefixCls.value, "-slide-up")
- },
- inline: collapseMotion_default,
- other: {
- name: "".concat(rootPrefixCls.value, "-zoom-big")
- }
- };
- });
- useProvideFirstLevel(true);
- var getChildrenKeys = function getChildrenKeys2() {
- var eventKeys = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- var keys2 = [];
- var storeValue = store.value;
- eventKeys.forEach(function(eventKey) {
- var _storeValue$eventKey = storeValue[eventKey], key2 = _storeValue$eventKey.key, childrenEventKeys = _storeValue$eventKey.childrenEventKeys;
- keys2.push.apply(keys2, [key2].concat(_toConsumableArray(getChildrenKeys2(unref(childrenEventKeys)))));
- });
- return keys2;
- };
- var onInternalClick = function onInternalClick2(info) {
- emit("click", info);
- triggerSelection(info);
- };
- var onInternalOpenChange = function onInternalOpenChange2(key2, open2) {
- var _keyMapStore$value$ke;
- var childrenEventKeys = ((_keyMapStore$value$ke = keyMapStore.value[key2]) === null || _keyMapStore$value$ke === void 0 ? void 0 : _keyMapStore$value$ke.childrenEventKeys) || [];
- var newOpenKeys = mergedOpenKeys.value.filter(function(k2) {
- return k2 !== key2;
- });
- if (open2) {
- newOpenKeys.push(key2);
- } else if (mergedMode.value !== "inline") {
- var subPathKeys = getChildrenKeys(unref(childrenEventKeys));
- newOpenKeys = uniq_default(newOpenKeys.filter(function(k2) {
- return !subPathKeys.includes(k2);
- }));
- }
- if (!shallowequal_default(mergedOpenKeys, newOpenKeys)) {
- triggerOpenKeys(newOpenKeys);
- }
- };
- var registerMenuInfo = function registerMenuInfo2(key2, info) {
- store.value = _objectSpread2(_objectSpread2({}, store.value), {}, _defineProperty({}, key2, info));
- };
- var unRegisterMenuInfo = function unRegisterMenuInfo2(key2) {
- delete store.value[key2];
- store.value = _objectSpread2({}, store.value);
- };
- var lastVisibleIndex = ref(0);
- var expandIcon = computed(function() {
- return props5.expandIcon || slots.expandIcon ? function(opt) {
- var icon = props5.expandIcon || slots.expandIcon;
- icon = typeof icon === "function" ? icon(opt) : icon;
- return cloneElement(icon, {
- class: "".concat(prefixCls.value, "-submenu-expand-icon")
- }, false);
- } : null;
- });
- useMenuContext_default({
- store,
- prefixCls,
- activeKeys,
- openKeys: mergedOpenKeys,
- selectedKeys: mergedSelectedKeys,
- changeActiveKeys,
- disabled,
- rtl: isRtl,
- mode: mergedMode,
- inlineIndent: computed(function() {
- return props5.inlineIndent;
- }),
- subMenuCloseDelay: computed(function() {
- return props5.subMenuCloseDelay;
- }),
- subMenuOpenDelay: computed(function() {
- return props5.subMenuOpenDelay;
- }),
- builtinPlacements: computed(function() {
- return props5.builtinPlacements;
- }),
- triggerSubMenuAction: computed(function() {
- return props5.triggerSubMenuAction;
- }),
- getPopupContainer: computed(function() {
- return props5.getPopupContainer;
- }),
- inlineCollapsed: mergedInlineCollapsed,
- antdMenuTheme: computed(function() {
- return props5.theme;
- }),
- siderCollapsed,
- defaultMotions: computed(function() {
- return isMounted.value ? defaultMotions.value : null;
- }),
- motion: computed(function() {
- return isMounted.value ? props5.motion : null;
- }),
- overflowDisabled: ref(void 0),
- onOpenChange: onInternalOpenChange,
- onItemClick: onInternalClick,
- registerMenuInfo,
- unRegisterMenuInfo,
- selectedSubMenuKeys,
- isRootMenu: ref(true),
- expandIcon,
- forceSubMenuRender: computed(function() {
- return props5.forceSubMenuRender;
- })
- });
- return function() {
- var _slots$default, _slots$overflowedIndi;
- var childList = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- var allVisible = lastVisibleIndex.value >= childList.length - 1 || mergedMode.value !== "horizontal" || props5.disabledOverflow;
- var wrappedChildList = mergedMode.value !== "horizontal" || props5.disabledOverflow ? childList : (
- // Need wrap for overflow dropdown that do not response for open
- childList.map(function(child, index3) {
- return (
- // Always wrap provider to avoid sub node re-mount
- createVNode(MenuContextProvider, {
- "key": child.key,
- "overflowDisabled": index3 > lastVisibleIndex.value
- }, {
- default: function _default9() {
- return child;
- }
- })
- );
- })
- );
- var overflowedIndicator = ((_slots$overflowedIndi = slots.overflowedIndicator) === null || _slots$overflowedIndi === void 0 ? void 0 : _slots$overflowedIndi.call(slots)) || createVNode(EllipsisOutlined_default, null, null);
- return createVNode(vc_overflow_default, _objectSpread2(_objectSpread2({}, attrs), {}, {
- "onMousedown": props5.onMousedown,
- "prefixCls": "".concat(prefixCls.value, "-overflow"),
- "component": "ul",
- "itemComponent": MenuItem_default,
- "class": [className.value, attrs.class],
- "role": "menu",
- "id": props5.id,
- "data": wrappedChildList,
- "renderRawItem": function renderRawItem(node) {
- return node;
- },
- "renderRawRest": function renderRawRest(omitItems) {
- var len = omitItems.length;
- var originOmitItems = len ? childList.slice(-len) : null;
- return createVNode(Fragment, null, [createVNode(SubMenu_default, {
- "eventKey": OVERFLOW_KEY,
- "key": OVERFLOW_KEY,
- "title": overflowedIndicator,
- "disabled": allVisible,
- "internalPopupClose": len === 0
- }, {
- default: function _default9() {
- return originOmitItems;
- }
- }), createVNode(PathContext, null, {
- default: function _default9() {
- return [createVNode(SubMenu_default, {
- "eventKey": OVERFLOW_KEY,
- "key": OVERFLOW_KEY,
- "title": overflowedIndicator,
- "disabled": allVisible,
- "internalPopupClose": len === 0
- }, {
- default: function _default10() {
- return originOmitItems;
- }
- })];
- }
- })]);
- },
- "maxCount": mergedMode.value !== "horizontal" || props5.disabledOverflow ? vc_overflow_default.INVALIDATE : vc_overflow_default.RESPONSIVE,
- "ssr": "full",
- "data-menu-list": true,
- "onVisibleChange": function onVisibleChange(newLastIndex) {
- lastVisibleIndex.value = newLastIndex;
- }
- }), {
- default: function _default9() {
- return [createVNode(Teleport, {
- "to": "body"
- }, {
- default: function _default10() {
- return [createVNode("div", {
- "style": {
- display: "none"
- },
- "aria-hidden": true
- }, [createVNode(PathContext, null, {
- default: function _default11() {
- return [wrappedChildList];
- }
- })])];
- }
- })];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/menu/src/ItemGroup.js
- var menuItemGroupProps = function menuItemGroupProps2() {
- return {
- title: vue_types_default.any
- };
- };
- var ItemGroup_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AMenuItemGroup",
- inheritAttrs: false,
- props: menuItemGroupProps(),
- slots: ["title"],
- setup: function setup60(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _useInjectMenu = useInjectMenu(), prefixCls = _useInjectMenu.prefixCls;
- var groupPrefixCls = computed(function() {
- return "".concat(prefixCls.value, "-item-group");
- });
- var isMeasure = useMeasure();
- return function() {
- var _slots$default, _slots$default2;
- if (isMeasure)
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- return createVNode("li", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "onClick": function onClick2(e3) {
- return e3.stopPropagation();
- },
- "class": groupPrefixCls.value
- }), [createVNode("div", {
- "title": typeof props5.title === "string" ? props5.title : void 0,
- "class": "".concat(groupPrefixCls.value, "-title")
- }, [getPropsSlot(slots, props5, "title")]), createVNode("ul", {
- "class": "".concat(groupPrefixCls.value, "-list")
- }, [(_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/menu/src/Divider.js
- var menuDividerProps = function menuDividerProps2() {
- return {
- prefixCls: String,
- dashed: Boolean
- };
- };
- var Divider_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AMenuDivider",
- props: menuDividerProps(),
- setup: function setup61(props5) {
- var _useConfigInject = useConfigInject_default("menu", props5), prefixCls = _useConfigInject.prefixCls;
- var cls = computed(function() {
- var _ref;
- return _ref = {}, _defineProperty(_ref, "".concat(prefixCls.value, "-item-divider"), true), _defineProperty(_ref, "".concat(prefixCls.value, "-item-divider-dashed"), !!props5.dashed), _ref;
- });
- return function() {
- return createVNode("li", {
- "class": cls.value
- }, null);
- };
- }
- });
- // node_modules/ant-design-vue/es/menu/index.js
- Menu_default.install = function(app) {
- app.component(Menu_default.name, Menu_default);
- app.component(MenuItem_default.name, MenuItem_default);
- app.component(SubMenu_default.name, SubMenu_default);
- app.component(Divider_default.name, Divider_default);
- app.component(ItemGroup_default.name, ItemGroup_default);
- return app;
- };
- Menu_default.Item = MenuItem_default;
- Menu_default.Divider = Divider_default;
- Menu_default.SubMenu = SubMenu_default;
- Menu_default.ItemGroup = ItemGroup_default;
- var menu_default = Menu_default;
- // node_modules/ant-design-vue/es/breadcrumb/Breadcrumb.js
- var breadcrumbProps = function breadcrumbProps2() {
- return {
- prefixCls: String,
- routes: {
- type: Array
- },
- params: vue_types_default.any,
- separator: vue_types_default.any,
- itemRender: {
- type: Function
- }
- };
- };
- function getBreadcrumbName(route, params) {
- if (!route.breadcrumbName) {
- return null;
- }
- var paramsKeys = Object.keys(params).join("|");
- var name = route.breadcrumbName.replace(new RegExp(":(".concat(paramsKeys, ")"), "g"), function(replacement, key2) {
- return params[key2] || replacement;
- });
- return name;
- }
- function defaultItemRender(opt) {
- var route = opt.route, params = opt.params, routes = opt.routes, paths = opt.paths;
- var isLastItem = routes.indexOf(route) === routes.length - 1;
- var name = getBreadcrumbName(route, params);
- return isLastItem ? createVNode("span", null, [name]) : createVNode("a", {
- "href": "#/".concat(paths.join("/"))
- }, [name]);
- }
- var Breadcrumb_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ABreadcrumb",
- props: breadcrumbProps(),
- slots: ["separator", "itemRender"],
- setup: function setup62(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("breadcrumb", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var getPath = function getPath2(path2, params) {
- path2 = (path2 || "").replace(/^\//, "");
- Object.keys(params).forEach(function(key2) {
- path2 = path2.replace(":".concat(key2), params[key2]);
- });
- return path2;
- };
- var addChildPath = function addChildPath2(paths, childPath, params) {
- var originalPaths = _toConsumableArray(paths);
- var path2 = getPath(childPath || "", params);
- if (path2) {
- originalPaths.push(path2);
- }
- return originalPaths;
- };
- var genForRoutes = function genForRoutes2(_ref2) {
- var _ref2$routes = _ref2.routes, routes = _ref2$routes === void 0 ? [] : _ref2$routes, _ref2$params = _ref2.params, params = _ref2$params === void 0 ? {} : _ref2$params, separator = _ref2.separator, _ref2$itemRender = _ref2.itemRender, itemRender = _ref2$itemRender === void 0 ? defaultItemRender : _ref2$itemRender;
- var paths = [];
- return routes.map(function(route) {
- var path2 = getPath(route.path, params);
- if (path2) {
- paths.push(path2);
- }
- var tempPaths = [].concat(paths);
- var overlay = null;
- if (route.children && route.children.length) {
- overlay = createVNode(menu_default, null, {
- default: function _default9() {
- return [route.children.map(function(child) {
- return createVNode(menu_default.Item, {
- "key": child.path || child.breadcrumbName
- }, {
- default: function _default10() {
- return [itemRender({
- route: child,
- params,
- routes,
- paths: addChildPath(tempPaths, child.path, params)
- })];
- }
- });
- })];
- }
- });
- }
- return createVNode(BreadcrumbItem_default, {
- "overlay": overlay,
- "separator": separator,
- "key": path2 || route.breadcrumbName
- }, {
- default: function _default9() {
- return [itemRender({
- route,
- params,
- routes,
- paths: tempPaths
- })];
- }
- });
- });
- };
- return function() {
- var _getPropsSlot, _breadcrumbClassName;
- var crumbs;
- var routes = props5.routes, _props$params = props5.params, params = _props$params === void 0 ? {} : _props$params;
- var children = flattenChildren(getPropsSlot(slots, props5));
- var separator = (_getPropsSlot = getPropsSlot(slots, props5, "separator")) !== null && _getPropsSlot !== void 0 ? _getPropsSlot : "/";
- var itemRender = props5.itemRender || slots.itemRender || defaultItemRender;
- if (routes && routes.length > 0) {
- crumbs = genForRoutes({
- routes,
- params,
- separator,
- itemRender
- });
- } else if (children.length) {
- crumbs = children.map(function(element, index3) {
- warning_default2(_typeof(element.type) === "object" && (element.type.__ANT_BREADCRUMB_ITEM || element.type.__ANT_BREADCRUMB_SEPARATOR), "Breadcrumb", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
- return cloneVNode(element, {
- separator,
- key: index3
- });
- });
- }
- var breadcrumbClassName = (_breadcrumbClassName = {}, _defineProperty(_breadcrumbClassName, prefixCls.value, true), _defineProperty(_breadcrumbClassName, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _breadcrumbClassName);
- return createVNode("div", {
- "class": breadcrumbClassName
- }, [crumbs]);
- };
- }
- });
- // node_modules/ant-design-vue/es/breadcrumb/BreadcrumbSeparator.js
- var _excluded17 = ["separator", "class"];
- var breadcrumbSeparatorProps = function breadcrumbSeparatorProps2() {
- return {
- prefixCls: String
- };
- };
- var BreadcrumbSeparator_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ABreadcrumbSeparator",
- __ANT_BREADCRUMB_SEPARATOR: true,
- inheritAttrs: false,
- props: breadcrumbSeparatorProps(),
- setup: function setup63(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("breadcrumb", props5), prefixCls = _useConfigInject.prefixCls;
- return function() {
- var _slots$default;
- var separator = attrs.separator, className = attrs.class, restAttrs = _objectWithoutProperties(attrs, _excluded17);
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- return createVNode("span", _objectSpread2({
- "class": ["".concat(prefixCls.value, "-separator"), className]
- }, restAttrs), [children.length > 0 ? children : "/"]);
- };
- }
- });
- // node_modules/ant-design-vue/es/breadcrumb/index.js
- Breadcrumb_default.Item = BreadcrumbItem_default;
- Breadcrumb_default.Separator = BreadcrumbSeparator_default;
- Breadcrumb_default.install = function(app) {
- app.component(Breadcrumb_default.name, Breadcrumb_default);
- app.component(BreadcrumbItem_default.name, BreadcrumbItem_default);
- app.component(BreadcrumbSeparator_default.name, BreadcrumbSeparator_default);
- return app;
- };
- var breadcrumb_default = Breadcrumb_default;
- // node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
- function _createForOfIteratorHelper(o2, allowArrayLike) {
- var it = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
- if (!it) {
- if (Array.isArray(o2) || (it = _unsupportedIterableToArray(o2)) || allowArrayLike && o2 && typeof o2.length === "number") {
- if (it)
- o2 = it;
- var i3 = 0;
- var F2 = function F3() {
- };
- return {
- s: F2,
- n: function n3() {
- if (i3 >= o2.length)
- return {
- done: true
- };
- return {
- done: false,
- value: o2[i3++]
- };
- },
- e: function e3(_e) {
- throw _e;
- },
- f: F2
- };
- }
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- var normalCompletion = true, didErr = false, err;
- return {
- s: function s2() {
- it = it.call(o2);
- },
- n: function n3() {
- var step = it.next();
- normalCompletion = step.done;
- return step;
- },
- e: function e3(_e2) {
- didErr = true;
- err = _e2;
- },
- f: function f2() {
- try {
- if (!normalCompletion && it["return"] != null)
- it["return"]();
- } finally {
- if (didErr)
- throw err;
- }
- }
- };
- }
- // node_modules/ant-design-vue/es/vc-picker/generate/dayjs.js
- var import_dayjs = __toESM(require_dayjs_min());
- var import_weekday = __toESM(require_weekday());
- var import_localeData = __toESM(require_localeData());
- var import_weekOfYear = __toESM(require_weekOfYear());
- var import_weekYear = __toESM(require_weekYear());
- var import_quarterOfYear = __toESM(require_quarterOfYear());
- var import_advancedFormat = __toESM(require_advancedFormat());
- var import_customParseFormat = __toESM(require_customParseFormat());
- import_dayjs.default.extend(import_customParseFormat.default);
- import_dayjs.default.extend(import_advancedFormat.default);
- import_dayjs.default.extend(import_weekday.default);
- import_dayjs.default.extend(import_localeData.default);
- import_dayjs.default.extend(import_weekOfYear.default);
- import_dayjs.default.extend(import_weekYear.default);
- import_dayjs.default.extend(import_quarterOfYear.default);
- import_dayjs.default.extend(function(_o, c2) {
- var proto = c2.prototype;
- var oldFormat = proto.format;
- proto.format = function f2(formatStr) {
- var str = (formatStr || "").replace("Wo", "wo");
- return oldFormat.bind(this)(str);
- };
- });
- var localeMap = {
- // ar_EG:
- // az_AZ:
- // bg_BG:
- bn_BD: "bn-bd",
- by_BY: "be",
- // ca_ES:
- // cs_CZ:
- // da_DK:
- // de_DE:
- // el_GR:
- en_GB: "en-gb",
- en_US: "en",
- // es_ES:
- // et_EE:
- // fa_IR:
- // fi_FI:
- fr_BE: "fr",
- fr_CA: "fr-ca",
- // fr_FR:
- // ga_IE:
- // gl_ES:
- // he_IL:
- // hi_IN:
- // hr_HR:
- // hu_HU:
- hy_AM: "hy-am",
- // id_ID:
- // is_IS:
- // it_IT:
- // ja_JP:
- // ka_GE:
- // kk_KZ:
- // km_KH:
- kmr_IQ: "ku",
- // kn_IN:
- // ko_KR:
- // ku_IQ: // previous ku in antd
- // lt_LT:
- // lv_LV:
- // mk_MK:
- // ml_IN:
- // mn_MN:
- // ms_MY:
- // nb_NO:
- // ne_NP:
- nl_BE: "nl-be",
- // nl_NL:
- // pl_PL:
- pt_BR: "pt-br",
- // pt_PT:
- // ro_RO:
- // ru_RU:
- // sk_SK:
- // sl_SI:
- // sr_RS:
- // sv_SE:
- // ta_IN:
- // th_TH:
- // tr_TR:
- // uk_UA:
- // ur_PK:
- // vi_VN:
- zh_CN: "zh-cn",
- zh_HK: "zh-hk",
- zh_TW: "zh-tw"
- };
- var parseLocale = function parseLocale2(locale4) {
- var mapLocale = localeMap[locale4];
- return mapLocale || locale4.split("_")[0];
- };
- var parseNoMatchNotice = function parseNoMatchNotice2() {
- noteOnce(false, "Not match any format. Please help to fire a issue about this.");
- };
- var advancedFormatRegex = /\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;
- function findTargetStr(val, index3, segmentation) {
- var items = _toConsumableArray(new Set(val.split(segmentation)));
- var idx = 0;
- for (var i3 = 0; i3 < items.length; i3++) {
- var item = items[i3];
- idx += item.length;
- if (idx > index3) {
- return item;
- }
- idx += segmentation.length;
- }
- }
- var toDateWithValueFormat = function toDateWithValueFormat2(val, valueFormat) {
- if (import_dayjs.default.isDayjs(val)) {
- return val;
- }
- var matchs = valueFormat.matchAll(advancedFormatRegex);
- var baseDate = (0, import_dayjs.default)(val, valueFormat);
- if (matchs === null) {
- return baseDate;
- }
- var _iterator = _createForOfIteratorHelper(matchs), _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done; ) {
- var match3 = _step.value;
- var origin = match3[0];
- var index3 = match3["index"];
- if (origin === "Q") {
- var segmentation = val.slice(index3 - 1, index3);
- var quarterStr = findTargetStr(val, index3, segmentation).match(/\d+/)[0];
- baseDate = baseDate.quarter(parseInt(quarterStr));
- }
- if (origin.toLowerCase() === "wo") {
- var _segmentation = val.slice(index3 - 1, index3);
- var weekStr = findTargetStr(val, index3, _segmentation).match(/\d+/)[0];
- baseDate = baseDate.week(parseInt(weekStr));
- }
- if (origin.toLowerCase() === "ww") {
- baseDate = baseDate.week(parseInt(val.slice(index3, index3 + origin.length)));
- }
- if (origin.toLowerCase() === "w") {
- baseDate = baseDate.week(parseInt(val.slice(index3, index3 + origin.length + 1)));
- }
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- return baseDate;
- };
- var generateConfig = {
- // get
- getNow: function getNow() {
- return (0, import_dayjs.default)();
- },
- getFixedDate: function getFixedDate(string3) {
- return (0, import_dayjs.default)(string3, ["YYYY-M-DD", "YYYY-MM-DD"]);
- },
- getEndDate: function getEndDate(date4) {
- return date4.endOf("month");
- },
- getWeekDay: function getWeekDay(date4) {
- var clone2 = date4.locale("en");
- return clone2.weekday() + clone2.localeData().firstDayOfWeek();
- },
- getYear: function getYear(date4) {
- return date4.year();
- },
- getMonth: function getMonth(date4) {
- return date4.month();
- },
- getDate: function getDate(date4) {
- return date4.date();
- },
- getHour: function getHour(date4) {
- return date4.hour();
- },
- getMinute: function getMinute(date4) {
- return date4.minute();
- },
- getSecond: function getSecond(date4) {
- return date4.second();
- },
- // set
- addYear: function addYear(date4, diff) {
- return date4.add(diff, "year");
- },
- addMonth: function addMonth(date4, diff) {
- return date4.add(diff, "month");
- },
- addDate: function addDate(date4, diff) {
- return date4.add(diff, "day");
- },
- setYear: function setYear(date4, year) {
- return date4.year(year);
- },
- setMonth: function setMonth(date4, month) {
- return date4.month(month);
- },
- setDate: function setDate(date4, num) {
- return date4.date(num);
- },
- setHour: function setHour(date4, hour) {
- return date4.hour(hour);
- },
- setMinute: function setMinute(date4, minute) {
- return date4.minute(minute);
- },
- setSecond: function setSecond(date4, second) {
- return date4.second(second);
- },
- // Compare
- isAfter: function isAfter(date1, date22) {
- return date1.isAfter(date22);
- },
- isValidate: function isValidate(date4) {
- return date4.isValid();
- },
- locale: {
- getWeekFirstDay: function getWeekFirstDay(locale4) {
- return (0, import_dayjs.default)().locale(parseLocale(locale4)).localeData().firstDayOfWeek();
- },
- getWeekFirstDate: function getWeekFirstDate(locale4, date4) {
- return date4.locale(parseLocale(locale4)).weekday(0);
- },
- getWeek: function getWeek(locale4, date4) {
- return date4.locale(parseLocale(locale4)).week();
- },
- getShortWeekDays: function getShortWeekDays(locale4) {
- return (0, import_dayjs.default)().locale(parseLocale(locale4)).localeData().weekdaysMin();
- },
- getShortMonths: function getShortMonths(locale4) {
- return (0, import_dayjs.default)().locale(parseLocale(locale4)).localeData().monthsShort();
- },
- format: function format(locale4, date4, _format) {
- return date4.locale(parseLocale(locale4)).format(_format);
- },
- parse: function parse(locale4, text, formats) {
- var localeStr = parseLocale(locale4);
- for (var i3 = 0; i3 < formats.length; i3 += 1) {
- var format4 = formats[i3];
- var formatText = text;
- if (format4.includes("wo") || format4.includes("Wo")) {
- var year = formatText.split("-")[0];
- var weekStr = formatText.split("-")[1];
- var firstWeek = (0, import_dayjs.default)(year, "YYYY").startOf("year").locale(localeStr);
- for (var j2 = 0; j2 <= 52; j2 += 1) {
- var nextWeek = firstWeek.add(j2, "week");
- if (nextWeek.format("Wo") === weekStr) {
- return nextWeek;
- }
- }
- parseNoMatchNotice();
- return null;
- }
- var date4 = (0, import_dayjs.default)(formatText, format4, true).locale(localeStr);
- if (date4.isValid()) {
- return date4;
- }
- }
- if (!text) {
- parseNoMatchNotice();
- }
- return null;
- }
- },
- toDate: function toDate(value, valueFormat) {
- if (Array.isArray(value)) {
- return value.map(function(val) {
- return toDateWithValueFormat(val, valueFormat);
- });
- } else {
- return toDateWithValueFormat(value, valueFormat);
- }
- },
- toString: function toString(value, valueFormat) {
- if (Array.isArray(value)) {
- return value.map(function(val) {
- return import_dayjs.default.isDayjs(val) ? val.format(valueFormat) : val;
- });
- } else {
- return import_dayjs.default.isDayjs(value) ? value.format(valueFormat) : value;
- }
- }
- };
- var dayjs_default = generateConfig;
- // node_modules/lodash-es/_baseRepeat.js
- var MAX_SAFE_INTEGER3 = 9007199254740991;
- var nativeFloor = Math.floor;
- function baseRepeat(string3, n3) {
- var result = "";
- if (!string3 || n3 < 1 || n3 > MAX_SAFE_INTEGER3) {
- return result;
- }
- do {
- if (n3 % 2) {
- result += string3;
- }
- n3 = nativeFloor(n3 / 2);
- if (n3) {
- string3 += string3;
- }
- } while (n3);
- return result;
- }
- var baseRepeat_default = baseRepeat;
- // node_modules/lodash-es/_arrayMap.js
- function arrayMap(array4, iteratee) {
- var index3 = -1, length = array4 == null ? 0 : array4.length, result = Array(length);
- while (++index3 < length) {
- result[index3] = iteratee(array4[index3], index3, array4);
- }
- return result;
- }
- var arrayMap_default = arrayMap;
- // node_modules/lodash-es/isSymbol.js
- var symbolTag2 = "[object Symbol]";
- function isSymbol(value) {
- return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag2;
- }
- var isSymbol_default = isSymbol;
- // node_modules/lodash-es/_baseToString.js
- var INFINITY2 = 1 / 0;
- var symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0;
- var symbolToString = symbolProto2 ? symbolProto2.toString : void 0;
- function baseToString(value) {
- if (typeof value == "string") {
- return value;
- }
- if (isArray_default(value)) {
- return arrayMap_default(value, baseToString) + "";
- }
- if (isSymbol_default(value)) {
- return symbolToString ? symbolToString.call(value) : "";
- }
- var result = value + "";
- return result == "0" && 1 / value == -INFINITY2 ? "-0" : result;
- }
- var baseToString_default = baseToString;
- // node_modules/lodash-es/_baseSlice.js
- function baseSlice(array4, start, end) {
- var index3 = -1, length = array4.length;
- if (start < 0) {
- start = -start > length ? 0 : length + start;
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : end - start >>> 0;
- start >>>= 0;
- var result = Array(length);
- while (++index3 < length) {
- result[index3] = array4[index3 + start];
- }
- return result;
- }
- var baseSlice_default = baseSlice;
- // node_modules/lodash-es/_castSlice.js
- function castSlice(array4, start, end) {
- var length = array4.length;
- end = end === void 0 ? length : end;
- return !start && end >= length ? array4 : baseSlice_default(array4, start, end);
- }
- var castSlice_default = castSlice;
- // node_modules/lodash-es/_hasUnicode.js
- var rsAstralRange = "\\ud800-\\udfff";
- var rsComboMarksRange = "\\u0300-\\u036f";
- var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
- var rsComboSymbolsRange = "\\u20d0-\\u20ff";
- var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
- var rsVarRange = "\\ufe0e\\ufe0f";
- var rsZWJ = "\\u200d";
- var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
- function hasUnicode(string3) {
- return reHasUnicode.test(string3);
- }
- var hasUnicode_default = hasUnicode;
- // node_modules/lodash-es/_baseProperty.js
- function baseProperty(key2) {
- return function(object4) {
- return object4 == null ? void 0 : object4[key2];
- };
- }
- var baseProperty_default = baseProperty;
- // node_modules/lodash-es/_asciiSize.js
- var asciiSize = baseProperty_default("length");
- var asciiSize_default = asciiSize;
- // node_modules/lodash-es/_unicodeSize.js
- var rsAstralRange2 = "\\ud800-\\udfff";
- var rsComboMarksRange2 = "\\u0300-\\u036f";
- var reComboHalfMarksRange2 = "\\ufe20-\\ufe2f";
- var rsComboSymbolsRange2 = "\\u20d0-\\u20ff";
- var rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2;
- var rsVarRange2 = "\\ufe0e\\ufe0f";
- var rsAstral = "[" + rsAstralRange2 + "]";
- var rsCombo = "[" + rsComboRange2 + "]";
- var rsFitz = "\\ud83c[\\udffb-\\udfff]";
- var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
- var rsNonAstral = "[^" + rsAstralRange2 + "]";
- var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
- var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
- var rsZWJ2 = "\\u200d";
- var reOptMod = rsModifier + "?";
- var rsOptVar = "[" + rsVarRange2 + "]?";
- var rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
- var rsSeq = rsOptVar + reOptMod + rsOptJoin;
- var rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
- var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
- function unicodeSize(string3) {
- var result = reUnicode.lastIndex = 0;
- while (reUnicode.test(string3)) {
- ++result;
- }
- return result;
- }
- var unicodeSize_default = unicodeSize;
- // node_modules/lodash-es/_stringSize.js
- function stringSize(string3) {
- return hasUnicode_default(string3) ? unicodeSize_default(string3) : asciiSize_default(string3);
- }
- var stringSize_default = stringSize;
- // node_modules/lodash-es/_asciiToArray.js
- function asciiToArray(string3) {
- return string3.split("");
- }
- var asciiToArray_default = asciiToArray;
- // node_modules/lodash-es/_unicodeToArray.js
- var rsAstralRange3 = "\\ud800-\\udfff";
- var rsComboMarksRange3 = "\\u0300-\\u036f";
- var reComboHalfMarksRange3 = "\\ufe20-\\ufe2f";
- var rsComboSymbolsRange3 = "\\u20d0-\\u20ff";
- var rsComboRange3 = rsComboMarksRange3 + reComboHalfMarksRange3 + rsComboSymbolsRange3;
- var rsVarRange3 = "\\ufe0e\\ufe0f";
- var rsAstral2 = "[" + rsAstralRange3 + "]";
- var rsCombo2 = "[" + rsComboRange3 + "]";
- var rsFitz2 = "\\ud83c[\\udffb-\\udfff]";
- var rsModifier2 = "(?:" + rsCombo2 + "|" + rsFitz2 + ")";
- var rsNonAstral2 = "[^" + rsAstralRange3 + "]";
- var rsRegional2 = "(?:\\ud83c[\\udde6-\\uddff]){2}";
- var rsSurrPair2 = "[\\ud800-\\udbff][\\udc00-\\udfff]";
- var rsZWJ3 = "\\u200d";
- var reOptMod2 = rsModifier2 + "?";
- var rsOptVar2 = "[" + rsVarRange3 + "]?";
- var rsOptJoin2 = "(?:" + rsZWJ3 + "(?:" + [rsNonAstral2, rsRegional2, rsSurrPair2].join("|") + ")" + rsOptVar2 + reOptMod2 + ")*";
- var rsSeq2 = rsOptVar2 + reOptMod2 + rsOptJoin2;
- var rsSymbol2 = "(?:" + [rsNonAstral2 + rsCombo2 + "?", rsCombo2, rsRegional2, rsSurrPair2, rsAstral2].join("|") + ")";
- var reUnicode2 = RegExp(rsFitz2 + "(?=" + rsFitz2 + ")|" + rsSymbol2 + rsSeq2, "g");
- function unicodeToArray(string3) {
- return string3.match(reUnicode2) || [];
- }
- var unicodeToArray_default = unicodeToArray;
- // node_modules/lodash-es/_stringToArray.js
- function stringToArray(string3) {
- return hasUnicode_default(string3) ? unicodeToArray_default(string3) : asciiToArray_default(string3);
- }
- var stringToArray_default = stringToArray;
- // node_modules/lodash-es/_createPadding.js
- var nativeCeil = Math.ceil;
- function createPadding(length, chars) {
- chars = chars === void 0 ? " " : baseToString_default(chars);
- var charsLength = chars.length;
- if (charsLength < 2) {
- return charsLength ? baseRepeat_default(chars, length) : chars;
- }
- var result = baseRepeat_default(chars, nativeCeil(length / stringSize_default(chars)));
- return hasUnicode_default(chars) ? castSlice_default(stringToArray_default(result), 0, length).join("") : result.slice(0, length);
- }
- var createPadding_default = createPadding;
- // node_modules/lodash-es/_trimmedEndIndex.js
- var reWhitespace = /\s/;
- function trimmedEndIndex(string3) {
- var index3 = string3.length;
- while (index3-- && reWhitespace.test(string3.charAt(index3))) {
- }
- return index3;
- }
- var trimmedEndIndex_default = trimmedEndIndex;
- // node_modules/lodash-es/_baseTrim.js
- var reTrimStart = /^\s+/;
- function baseTrim(string3) {
- return string3 ? string3.slice(0, trimmedEndIndex_default(string3) + 1).replace(reTrimStart, "") : string3;
- }
- var baseTrim_default = baseTrim;
- // node_modules/lodash-es/toNumber.js
- var NAN = 0 / 0;
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
- var reIsBinary = /^0b[01]+$/i;
- var reIsOctal = /^0o[0-7]+$/i;
- var freeParseInt = parseInt;
- function toNumber(value) {
- if (typeof value == "number") {
- return value;
- }
- if (isSymbol_default(value)) {
- return NAN;
- }
- if (isObject_default(value)) {
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
- value = isObject_default(other) ? other + "" : other;
- }
- if (typeof value != "string") {
- return value === 0 ? value : +value;
- }
- value = baseTrim_default(value);
- var isBinary = reIsBinary.test(value);
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
- }
- var toNumber_default = toNumber;
- // node_modules/lodash-es/toFinite.js
- var INFINITY3 = 1 / 0;
- var MAX_INTEGER = 17976931348623157e292;
- function toFinite(value) {
- if (!value) {
- return value === 0 ? value : 0;
- }
- value = toNumber_default(value);
- if (value === INFINITY3 || value === -INFINITY3) {
- var sign = value < 0 ? -1 : 1;
- return sign * MAX_INTEGER;
- }
- return value === value ? value : 0;
- }
- var toFinite_default = toFinite;
- // node_modules/lodash-es/toInteger.js
- function toInteger(value) {
- var result = toFinite_default(value), remainder = result % 1;
- return result === result ? remainder ? result - remainder : result : 0;
- }
- var toInteger_default = toInteger;
- // node_modules/lodash-es/toString.js
- function toString2(value) {
- return value == null ? "" : baseToString_default(value);
- }
- var toString_default = toString2;
- // node_modules/lodash-es/padStart.js
- function padStart(string3, length, chars) {
- string3 = toString_default(string3);
- length = toInteger_default(length);
- var strLength = length ? stringSize_default(string3) : 0;
- return length && strLength < length ? createPadding_default(length - strLength, chars) + string3 : string3;
- }
- var padStart_default = padStart;
- // node_modules/ant-design-vue/es/vc-picker/hooks/useMergeProps.js
- function useMergeProps(props5) {
- var attrs = useAttrs();
- return _objectSpread2(_objectSpread2({}, props5), attrs);
- }
- // node_modules/ant-design-vue/es/vc-picker/PanelContext.js
- var PanelContextKey = Symbol("PanelContextProps");
- var useProvidePanel = function useProvidePanel2(props5) {
- provide(PanelContextKey, props5);
- };
- var useInjectPanel = function useInjectPanel2() {
- return inject(PanelContextKey, {});
- };
- // node_modules/ant-design-vue/es/vc-picker/panels/Header.js
- var HIDDEN_STYLE = {
- visibility: "hidden"
- };
- function Header(_props, _ref) {
- var _slots$default;
- var slots = _ref.slots;
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, _props$prevIcon = props5.prevIcon, prevIcon = _props$prevIcon === void 0 ? "‹" : _props$prevIcon, _props$nextIcon = props5.nextIcon, nextIcon = _props$nextIcon === void 0 ? "›" : _props$nextIcon, _props$superPrevIcon = props5.superPrevIcon, superPrevIcon = _props$superPrevIcon === void 0 ? "«" : _props$superPrevIcon, _props$superNextIcon = props5.superNextIcon, superNextIcon = _props$superNextIcon === void 0 ? "»" : _props$superNextIcon, onSuperPrev = props5.onSuperPrev, onSuperNext = props5.onSuperNext, onPrev = props5.onPrev, onNext = props5.onNext;
- var _useInjectPanel = useInjectPanel(), hideNextBtn = _useInjectPanel.hideNextBtn, hidePrevBtn = _useInjectPanel.hidePrevBtn;
- return createVNode("div", {
- "class": prefixCls
- }, [onSuperPrev && createVNode("button", {
- "type": "button",
- "onClick": onSuperPrev,
- "tabindex": -1,
- "class": "".concat(prefixCls, "-super-prev-btn"),
- "style": hidePrevBtn.value ? HIDDEN_STYLE : {}
- }, [superPrevIcon]), onPrev && createVNode("button", {
- "type": "button",
- "onClick": onPrev,
- "tabindex": -1,
- "class": "".concat(prefixCls, "-prev-btn"),
- "style": hidePrevBtn.value ? HIDDEN_STYLE : {}
- }, [prevIcon]), createVNode("div", {
- "class": "".concat(prefixCls, "-view")
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), onNext && createVNode("button", {
- "type": "button",
- "onClick": onNext,
- "tabindex": -1,
- "class": "".concat(prefixCls, "-next-btn"),
- "style": hideNextBtn.value ? HIDDEN_STYLE : {}
- }, [nextIcon]), onSuperNext && createVNode("button", {
- "type": "button",
- "onClick": onSuperNext,
- "tabindex": -1,
- "class": "".concat(prefixCls, "-super-next-btn"),
- "style": hideNextBtn.value ? HIDDEN_STYLE : {}
- }, [superNextIcon])]);
- }
- Header.displayName = "Header";
- Header.inheritAttrs = false;
- var Header_default = Header;
- // node_modules/ant-design-vue/es/vc-picker/panels/DecadePanel/DecadeHeader.js
- function DecadeHeader(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, generateConfig2 = props5.generateConfig, viewDate = props5.viewDate, onPrevDecades = props5.onPrevDecades, onNextDecades = props5.onNextDecades;
- var _useInjectPanel = useInjectPanel(), hideHeader = _useInjectPanel.hideHeader;
- if (hideHeader) {
- return null;
- }
- var headerPrefixCls = "".concat(prefixCls, "-header");
- var yearNumber = generateConfig2.getYear(viewDate);
- var startYear = Math.floor(yearNumber / DECADE_DISTANCE_COUNT) * DECADE_DISTANCE_COUNT;
- var endYear = startYear + DECADE_DISTANCE_COUNT - 1;
- return createVNode(Header_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": headerPrefixCls,
- "onSuperPrev": onPrevDecades,
- "onSuperNext": onNextDecades
- }), {
- default: function _default9() {
- return [startYear, createTextVNode("-"), endYear];
- }
- });
- }
- DecadeHeader.displayName = "DecadeHeader";
- DecadeHeader.inheritAttrs = false;
- var DecadeHeader_default = DecadeHeader;
- // node_modules/ant-design-vue/es/vc-picker/utils/timeUtil.js
- function setTime(generateConfig2, date4, hour, minute, second) {
- var nextTime = generateConfig2.setHour(date4, hour);
- nextTime = generateConfig2.setMinute(nextTime, minute);
- nextTime = generateConfig2.setSecond(nextTime, second);
- return nextTime;
- }
- function setDateTime(generateConfig2, date4, defaultDate) {
- if (!defaultDate) {
- return date4;
- }
- var newDate = date4;
- newDate = generateConfig2.setHour(newDate, generateConfig2.getHour(defaultDate));
- newDate = generateConfig2.setMinute(newDate, generateConfig2.getMinute(defaultDate));
- newDate = generateConfig2.setSecond(newDate, generateConfig2.getSecond(defaultDate));
- return newDate;
- }
- function getLowerBoundTime(hour, minute, second, hourStep, minuteStep, secondStep) {
- var lowerBoundHour = Math.floor(hour / hourStep) * hourStep;
- if (lowerBoundHour < hour) {
- return [lowerBoundHour, 60 - minuteStep, 60 - secondStep];
- }
- var lowerBoundMinute = Math.floor(minute / minuteStep) * minuteStep;
- if (lowerBoundMinute < minute) {
- return [lowerBoundHour, lowerBoundMinute, 60 - secondStep];
- }
- var lowerBoundSecond = Math.floor(second / secondStep) * secondStep;
- return [lowerBoundHour, lowerBoundMinute, lowerBoundSecond];
- }
- function getLastDay(generateConfig2, date4) {
- var year = generateConfig2.getYear(date4);
- var month = generateConfig2.getMonth(date4) + 1;
- var endDate = generateConfig2.getEndDate(generateConfig2.getFixedDate("".concat(year, "-").concat(month, "-01")));
- var lastDay = generateConfig2.getDate(endDate);
- var monthShow = month < 10 ? "0".concat(month) : "".concat(month);
- return "".concat(year, "-").concat(monthShow, "-").concat(lastDay);
- }
- // node_modules/ant-design-vue/es/vc-picker/panels/PanelBody.js
- function PanelBody(_props) {
- var _useMergeProps = useMergeProps(_props), prefixCls = _useMergeProps.prefixCls, disabledDate = _useMergeProps.disabledDate, onSelect = _useMergeProps.onSelect, picker = _useMergeProps.picker, rowNum = _useMergeProps.rowNum, colNum = _useMergeProps.colNum, prefixColumn = _useMergeProps.prefixColumn, rowClassName = _useMergeProps.rowClassName, baseDate = _useMergeProps.baseDate, getCellClassName = _useMergeProps.getCellClassName, getCellText = _useMergeProps.getCellText, getCellNode = _useMergeProps.getCellNode, getCellDate = _useMergeProps.getCellDate, generateConfig2 = _useMergeProps.generateConfig, titleCell = _useMergeProps.titleCell, headerCells = _useMergeProps.headerCells;
- var _useInjectPanel = useInjectPanel(), onDateMouseenter = _useInjectPanel.onDateMouseenter, onDateMouseleave = _useInjectPanel.onDateMouseleave, mode = _useInjectPanel.mode;
- var cellPrefixCls = "".concat(prefixCls, "-cell");
- var rows = [];
- for (var i3 = 0; i3 < rowNum; i3 += 1) {
- var row = [];
- var rowStartDate = void 0;
- var _loop = function _loop2() {
- var _objectSpread23;
- var offset4 = i3 * colNum + j2;
- var currentDate = getCellDate(baseDate, offset4);
- var disabled = getCellDateDisabled({
- cellDate: currentDate,
- mode: mode.value,
- disabledDate,
- generateConfig: generateConfig2
- });
- if (j2 === 0) {
- rowStartDate = currentDate;
- if (prefixColumn) {
- row.push(prefixColumn(rowStartDate));
- }
- }
- var title = titleCell && titleCell(currentDate);
- row.push(createVNode("td", {
- "key": j2,
- "title": title,
- "class": classNames_default(cellPrefixCls, _objectSpread2((_objectSpread23 = {}, _defineProperty(_objectSpread23, "".concat(cellPrefixCls, "-disabled"), disabled), _defineProperty(_objectSpread23, "".concat(cellPrefixCls, "-start"), getCellText(currentDate) === 1 || picker === "year" && Number(title) % 10 === 0), _defineProperty(_objectSpread23, "".concat(cellPrefixCls, "-end"), title === getLastDay(generateConfig2, currentDate) || picker === "year" && Number(title) % 10 === 9), _objectSpread23), getCellClassName(currentDate))),
- "onClick": function onClick2() {
- if (!disabled) {
- onSelect(currentDate);
- }
- },
- "onMouseenter": function onMouseenter2() {
- if (!disabled && onDateMouseenter) {
- onDateMouseenter(currentDate);
- }
- },
- "onMouseleave": function onMouseleave2() {
- if (!disabled && onDateMouseleave) {
- onDateMouseleave(currentDate);
- }
- }
- }, [getCellNode ? getCellNode(currentDate) : createVNode("div", {
- "class": "".concat(cellPrefixCls, "-inner")
- }, [getCellText(currentDate)])]));
- };
- for (var j2 = 0; j2 < colNum; j2 += 1) {
- _loop();
- }
- rows.push(createVNode("tr", {
- "key": i3,
- "class": rowClassName && rowClassName(rowStartDate)
- }, [row]));
- }
- return createVNode("div", {
- "class": "".concat(prefixCls, "-body")
- }, [createVNode("table", {
- "class": "".concat(prefixCls, "-content")
- }, [headerCells && createVNode("thead", null, [createVNode("tr", null, [headerCells])]), createVNode("tbody", null, [rows])])]);
- }
- PanelBody.displayName = "PanelBody";
- PanelBody.inheritAttrs = false;
- var PanelBody_default = PanelBody;
- // node_modules/ant-design-vue/es/vc-picker/panels/DecadePanel/DecadeBody.js
- var DECADE_COL_COUNT = 3;
- var DECADE_ROW_COUNT = 4;
- function DecadeBody(_props) {
- var props5 = useMergeProps(_props);
- var DECADE_UNIT_DIFF_DES = DECADE_UNIT_DIFF - 1;
- var prefixCls = props5.prefixCls, viewDate = props5.viewDate, generateConfig2 = props5.generateConfig;
- var cellPrefixCls = "".concat(prefixCls, "-cell");
- var yearNumber = generateConfig2.getYear(viewDate);
- var decadeYearNumber = Math.floor(yearNumber / DECADE_UNIT_DIFF) * DECADE_UNIT_DIFF;
- var startDecadeYear = Math.floor(yearNumber / DECADE_DISTANCE_COUNT) * DECADE_DISTANCE_COUNT;
- var endDecadeYear = startDecadeYear + DECADE_DISTANCE_COUNT - 1;
- var baseDecadeYear = generateConfig2.setYear(viewDate, startDecadeYear - Math.ceil((DECADE_COL_COUNT * DECADE_ROW_COUNT * DECADE_UNIT_DIFF - DECADE_DISTANCE_COUNT) / 2));
- var getCellClassName = function getCellClassName2(date4) {
- var _ref;
- var startDecadeNumber = generateConfig2.getYear(date4);
- var endDecadeNumber = startDecadeNumber + DECADE_UNIT_DIFF_DES;
- return _ref = {}, _defineProperty(_ref, "".concat(cellPrefixCls, "-in-view"), startDecadeYear <= startDecadeNumber && endDecadeNumber <= endDecadeYear), _defineProperty(_ref, "".concat(cellPrefixCls, "-selected"), startDecadeNumber === decadeYearNumber), _ref;
- };
- return createVNode(PanelBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "rowNum": DECADE_ROW_COUNT,
- "colNum": DECADE_COL_COUNT,
- "baseDate": baseDecadeYear,
- "getCellText": function getCellText(date4) {
- var startDecadeNumber = generateConfig2.getYear(date4);
- return "".concat(startDecadeNumber, "-").concat(startDecadeNumber + DECADE_UNIT_DIFF_DES);
- },
- "getCellClassName": getCellClassName,
- "getCellDate": function getCellDate(date4, offset4) {
- return generateConfig2.addYear(date4, offset4 * DECADE_UNIT_DIFF);
- }
- }), null);
- }
- DecadeBody.displayName = "DecadeBody";
- DecadeBody.inheritAttrs = false;
- var DecadeBody_default = DecadeBody;
- // node_modules/ant-design-vue/es/vc-picker/utils/uiUtil.js
- var scrollIds = /* @__PURE__ */ new Map();
- function waitElementReady(element, callback) {
- var id;
- function tryOrNextFrame() {
- if (isVisible_default(element)) {
- callback();
- } else {
- id = wrapperRaf(function() {
- tryOrNextFrame();
- });
- }
- }
- tryOrNextFrame();
- return function() {
- wrapperRaf.cancel(id);
- };
- }
- function scrollTo2(element, to, duration) {
- if (scrollIds.get(element)) {
- wrapperRaf.cancel(scrollIds.get(element));
- }
- if (duration <= 0) {
- scrollIds.set(element, wrapperRaf(function() {
- element.scrollTop = to;
- }));
- return;
- }
- var difference = to - element.scrollTop;
- var perTick = difference / duration * 10;
- scrollIds.set(element, wrapperRaf(function() {
- element.scrollTop += perTick;
- if (element.scrollTop !== to) {
- scrollTo2(element, to, duration - 10);
- }
- }));
- }
- function createKeydownHandler(event, _ref) {
- var onLeftRight = _ref.onLeftRight, onCtrlLeftRight = _ref.onCtrlLeftRight, onUpDown = _ref.onUpDown, onPageUpDown = _ref.onPageUpDown, onEnter = _ref.onEnter;
- var which = event.which, ctrlKey = event.ctrlKey, metaKey = event.metaKey;
- switch (which) {
- case KeyCode_default.LEFT:
- if (ctrlKey || metaKey) {
- if (onCtrlLeftRight) {
- onCtrlLeftRight(-1);
- return true;
- }
- } else if (onLeftRight) {
- onLeftRight(-1);
- return true;
- }
- break;
- case KeyCode_default.RIGHT:
- if (ctrlKey || metaKey) {
- if (onCtrlLeftRight) {
- onCtrlLeftRight(1);
- return true;
- }
- } else if (onLeftRight) {
- onLeftRight(1);
- return true;
- }
- break;
- case KeyCode_default.UP:
- if (onUpDown) {
- onUpDown(-1);
- return true;
- }
- break;
- case KeyCode_default.DOWN:
- if (onUpDown) {
- onUpDown(1);
- return true;
- }
- break;
- case KeyCode_default.PAGE_UP:
- if (onPageUpDown) {
- onPageUpDown(-1);
- return true;
- }
- break;
- case KeyCode_default.PAGE_DOWN:
- if (onPageUpDown) {
- onPageUpDown(1);
- return true;
- }
- break;
- case KeyCode_default.ENTER:
- if (onEnter) {
- onEnter();
- return true;
- }
- break;
- }
- return false;
- }
- function getDefaultFormat(format4, picker, showTime, use12Hours) {
- var mergedFormat = format4;
- if (!mergedFormat) {
- switch (picker) {
- case "time":
- mergedFormat = use12Hours ? "hh:mm:ss a" : "HH:mm:ss";
- break;
- case "week":
- mergedFormat = "gggg-wo";
- break;
- case "month":
- mergedFormat = "YYYY-MM";
- break;
- case "quarter":
- mergedFormat = "YYYY-[Q]Q";
- break;
- case "year":
- mergedFormat = "YYYY";
- break;
- default:
- mergedFormat = showTime ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
- }
- }
- return mergedFormat;
- }
- function getInputSize(picker, format4, generateConfig2) {
- var defaultSize = picker === "time" ? 8 : 10;
- var length = typeof format4 === "function" ? format4(generateConfig2.getNow()).length : format4.length;
- return Math.max(defaultSize, length) + 2;
- }
- var globalClickFunc = null;
- var clickCallbacks = /* @__PURE__ */ new Set();
- function addGlobalMousedownEvent(callback) {
- if (!globalClickFunc && typeof window !== "undefined" && window.addEventListener) {
- globalClickFunc = function globalClickFunc2(e3) {
- _toConsumableArray(clickCallbacks).forEach(function(queueFunc) {
- queueFunc(e3);
- });
- };
- window.addEventListener("mousedown", globalClickFunc);
- }
- clickCallbacks.add(callback);
- return function() {
- clickCallbacks.delete(callback);
- if (clickCallbacks.size === 0) {
- window.removeEventListener("mousedown", globalClickFunc);
- globalClickFunc = null;
- }
- };
- }
- function getTargetFromEvent(e3) {
- var target = e3.target;
- if (e3.composed && target.shadowRoot) {
- var _e$composedPath;
- return ((_e$composedPath = e3.composedPath) === null || _e$composedPath === void 0 ? void 0 : _e$composedPath.call(e3)[0]) || target;
- }
- return target;
- }
- var getYearNextMode = function getYearNextMode2(next2) {
- if (next2 === "month" || next2 === "date") {
- return "year";
- }
- return next2;
- };
- var getMonthNextMode = function getMonthNextMode2(next2) {
- if (next2 === "date") {
- return "month";
- }
- return next2;
- };
- var getQuarterNextMode = function getQuarterNextMode2(next2) {
- if (next2 === "month" || next2 === "date") {
- return "quarter";
- }
- return next2;
- };
- var getWeekNextMode = function getWeekNextMode2(next2) {
- if (next2 === "date") {
- return "week";
- }
- return next2;
- };
- var PickerModeMap = {
- year: getYearNextMode,
- month: getMonthNextMode,
- quarter: getQuarterNextMode,
- week: getWeekNextMode,
- time: null,
- date: null
- };
- function elementsContains(elements, target) {
- if (false) {
- return false;
- }
- return elements.some(function(ele) {
- return ele && ele.contains(target);
- });
- }
- // node_modules/ant-design-vue/es/vc-picker/panels/DecadePanel/index.js
- var DECADE_UNIT_DIFF = 10;
- var DECADE_DISTANCE_COUNT = DECADE_UNIT_DIFF * 10;
- function DecadePanel(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, onViewDateChange = props5.onViewDateChange, generateConfig2 = props5.generateConfig, viewDate = props5.viewDate, operationRef = props5.operationRef, onSelect = props5.onSelect, onPanelChange = props5.onPanelChange;
- var panelPrefixCls = "".concat(prefixCls, "-decade-panel");
- operationRef.value = {
- onKeydown: function onKeydown(event) {
- return createKeydownHandler(event, {
- onLeftRight: function onLeftRight(diff) {
- onSelect(generateConfig2.addYear(viewDate, diff * DECADE_UNIT_DIFF), "key");
- },
- onCtrlLeftRight: function onCtrlLeftRight(diff) {
- onSelect(generateConfig2.addYear(viewDate, diff * DECADE_DISTANCE_COUNT), "key");
- },
- onUpDown: function onUpDown(diff) {
- onSelect(generateConfig2.addYear(viewDate, diff * DECADE_UNIT_DIFF * DECADE_COL_COUNT), "key");
- },
- onEnter: function onEnter() {
- onPanelChange("year", viewDate);
- }
- });
- }
- };
- var onDecadesChange = function onDecadesChange2(diff) {
- var newDate = generateConfig2.addYear(viewDate, diff * DECADE_DISTANCE_COUNT);
- onViewDateChange(newDate);
- onPanelChange(null, newDate);
- };
- var onInternalSelect = function onInternalSelect2(date4) {
- onSelect(date4, "mouse");
- onPanelChange("year", date4);
- };
- return createVNode("div", {
- "class": panelPrefixCls
- }, [createVNode(DecadeHeader_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "onPrevDecades": function onPrevDecades() {
- onDecadesChange(-1);
- },
- "onNextDecades": function onNextDecades() {
- onDecadesChange(1);
- }
- }), null), createVNode(DecadeBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "onSelect": onInternalSelect
- }), null)]);
- }
- DecadePanel.displayName = "DecadePanel";
- DecadePanel.inheritAttrs = false;
- var DecadePanel_default = DecadePanel;
- // node_modules/ant-design-vue/es/vc-picker/utils/dateUtil.js
- var WEEK_DAY_COUNT = 7;
- function isNullEqual(value1, value2) {
- if (!value1 && !value2) {
- return true;
- }
- if (!value1 || !value2) {
- return false;
- }
- return void 0;
- }
- function isSameDecade(generateConfig2, decade1, decade2) {
- var equal = isNullEqual(decade1, decade2);
- if (typeof equal === "boolean") {
- return equal;
- }
- var num1 = Math.floor(generateConfig2.getYear(decade1) / 10);
- var num2 = Math.floor(generateConfig2.getYear(decade2) / 10);
- return num1 === num2;
- }
- function isSameYear(generateConfig2, year1, year2) {
- var equal = isNullEqual(year1, year2);
- if (typeof equal === "boolean") {
- return equal;
- }
- return generateConfig2.getYear(year1) === generateConfig2.getYear(year2);
- }
- function getQuarter(generateConfig2, date4) {
- var quota = Math.floor(generateConfig2.getMonth(date4) / 3);
- return quota + 1;
- }
- function isSameQuarter(generateConfig2, quarter1, quarter2) {
- var equal = isNullEqual(quarter1, quarter2);
- if (typeof equal === "boolean") {
- return equal;
- }
- return isSameYear(generateConfig2, quarter1, quarter2) && getQuarter(generateConfig2, quarter1) === getQuarter(generateConfig2, quarter2);
- }
- function isSameMonth(generateConfig2, month1, month2) {
- var equal = isNullEqual(month1, month2);
- if (typeof equal === "boolean") {
- return equal;
- }
- return isSameYear(generateConfig2, month1, month2) && generateConfig2.getMonth(month1) === generateConfig2.getMonth(month2);
- }
- function isSameDate(generateConfig2, date1, date22) {
- var equal = isNullEqual(date1, date22);
- if (typeof equal === "boolean") {
- return equal;
- }
- return generateConfig2.getYear(date1) === generateConfig2.getYear(date22) && generateConfig2.getMonth(date1) === generateConfig2.getMonth(date22) && generateConfig2.getDate(date1) === generateConfig2.getDate(date22);
- }
- function isSameTime(generateConfig2, time1, time2) {
- var equal = isNullEqual(time1, time2);
- if (typeof equal === "boolean") {
- return equal;
- }
- return generateConfig2.getHour(time1) === generateConfig2.getHour(time2) && generateConfig2.getMinute(time1) === generateConfig2.getMinute(time2) && generateConfig2.getSecond(time1) === generateConfig2.getSecond(time2);
- }
- function isSameWeek(generateConfig2, locale4, date1, date22) {
- var equal = isNullEqual(date1, date22);
- if (typeof equal === "boolean") {
- return equal;
- }
- return generateConfig2.locale.getWeek(locale4, date1) === generateConfig2.locale.getWeek(locale4, date22);
- }
- function isEqual2(generateConfig2, value1, value2) {
- return isSameDate(generateConfig2, value1, value2) && isSameTime(generateConfig2, value1, value2);
- }
- function isInRange(generateConfig2, startDate, endDate, current2) {
- if (!startDate || !endDate || !current2) {
- return false;
- }
- return !isSameDate(generateConfig2, startDate, current2) && !isSameDate(generateConfig2, endDate, current2) && generateConfig2.isAfter(current2, startDate) && generateConfig2.isAfter(endDate, current2);
- }
- function getWeekStartDate(locale4, generateConfig2, value) {
- var weekFirstDay = generateConfig2.locale.getWeekFirstDay(locale4);
- var monthStartDate = generateConfig2.setDate(value, 1);
- var startDateWeekDay = generateConfig2.getWeekDay(monthStartDate);
- var alignStartDate = generateConfig2.addDate(monthStartDate, weekFirstDay - startDateWeekDay);
- if (generateConfig2.getMonth(alignStartDate) === generateConfig2.getMonth(value) && generateConfig2.getDate(alignStartDate) > 1) {
- alignStartDate = generateConfig2.addDate(alignStartDate, -7);
- }
- return alignStartDate;
- }
- function getClosingViewDate(viewDate, picker, generateConfig2) {
- var offset4 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
- switch (picker) {
- case "year":
- return generateConfig2.addYear(viewDate, offset4 * 10);
- case "quarter":
- case "month":
- return generateConfig2.addYear(viewDate, offset4);
- default:
- return generateConfig2.addMonth(viewDate, offset4);
- }
- }
- function formatValue(value, _ref) {
- var generateConfig2 = _ref.generateConfig, locale4 = _ref.locale, format4 = _ref.format;
- return typeof format4 === "function" ? format4(value) : generateConfig2.locale.format(locale4.locale, value, format4);
- }
- function parseValue(value, _ref2) {
- var generateConfig2 = _ref2.generateConfig, locale4 = _ref2.locale, formatList = _ref2.formatList;
- if (!value || typeof formatList[0] === "function") {
- return null;
- }
- return generateConfig2.locale.parse(locale4.locale, value, formatList);
- }
- function getCellDateDisabled(_ref3) {
- var cellDate = _ref3.cellDate, mode = _ref3.mode, disabledDate = _ref3.disabledDate, generateConfig2 = _ref3.generateConfig;
- if (!disabledDate)
- return false;
- var getDisabledFromRange = function getDisabledFromRange2(currentMode, start, end) {
- var current2 = start;
- while (current2 <= end) {
- var date4 = void 0;
- switch (currentMode) {
- case "date": {
- date4 = generateConfig2.setDate(cellDate, current2);
- if (!disabledDate(date4)) {
- return false;
- }
- break;
- }
- case "month": {
- date4 = generateConfig2.setMonth(cellDate, current2);
- if (!getCellDateDisabled({
- cellDate: date4,
- mode: "month",
- generateConfig: generateConfig2,
- disabledDate
- })) {
- return false;
- }
- break;
- }
- case "year": {
- date4 = generateConfig2.setYear(cellDate, current2);
- if (!getCellDateDisabled({
- cellDate: date4,
- mode: "year",
- generateConfig: generateConfig2,
- disabledDate
- })) {
- return false;
- }
- break;
- }
- }
- current2 += 1;
- }
- return true;
- };
- switch (mode) {
- case "date":
- case "week": {
- return disabledDate(cellDate);
- }
- case "month": {
- var startDate = 1;
- var endDate = generateConfig2.getDate(generateConfig2.getEndDate(cellDate));
- return getDisabledFromRange("date", startDate, endDate);
- }
- case "quarter": {
- var startMonth = Math.floor(generateConfig2.getMonth(cellDate) / 3) * 3;
- var endMonth = startMonth + 2;
- return getDisabledFromRange("month", startMonth, endMonth);
- }
- case "year": {
- return getDisabledFromRange("month", 0, 11);
- }
- case "decade": {
- var year = generateConfig2.getYear(cellDate);
- var startYear = Math.floor(year / DECADE_UNIT_DIFF) * DECADE_UNIT_DIFF;
- var endYear = startYear + DECADE_UNIT_DIFF - 1;
- return getDisabledFromRange("year", startYear, endYear);
- }
- }
- }
- // node_modules/ant-design-vue/es/vc-picker/panels/TimePanel/TimeHeader.js
- function TimeHeader(_props) {
- var props5 = useMergeProps(_props);
- var _useInjectPanel = useInjectPanel(), hideHeader = _useInjectPanel.hideHeader;
- if (hideHeader.value) {
- return null;
- }
- var prefixCls = props5.prefixCls, generateConfig2 = props5.generateConfig, locale4 = props5.locale, value = props5.value, format4 = props5.format;
- var headerPrefixCls = "".concat(prefixCls, "-header");
- return createVNode(Header_default, {
- "prefixCls": headerPrefixCls
- }, {
- default: function _default9() {
- return [value ? formatValue(value, {
- locale: locale4,
- format: format4,
- generateConfig: generateConfig2
- }) : " "];
- }
- });
- }
- TimeHeader.displayName = "TimeHeader";
- TimeHeader.inheritAttrs = false;
- var TimeHeader_default = TimeHeader;
- // node_modules/ant-design-vue/es/vc-picker/panels/TimePanel/TimeUnitColumn.js
- var TimeUnitColumn_default = defineComponent({
- name: "TimeUnitColumn",
- props: ["prefixCls", "units", "onSelect", "value", "active", "hideDisabledOptions"],
- setup: function setup64(props5) {
- var _useInjectPanel = useInjectPanel(), open2 = _useInjectPanel.open;
- var ulRef = ref(null);
- var liRefs = ref(/* @__PURE__ */ new Map());
- var scrollRef = ref();
- watch(function() {
- return props5.value;
- }, function() {
- var li = liRefs.value.get(props5.value);
- if (li && open2.value !== false) {
- scrollTo2(ulRef.value, li.offsetTop, 120);
- }
- });
- onBeforeUnmount(function() {
- var _scrollRef$value;
- (_scrollRef$value = scrollRef.value) === null || _scrollRef$value === void 0 ? void 0 : _scrollRef$value.call(scrollRef);
- });
- watch(open2, function() {
- var _scrollRef$value2;
- (_scrollRef$value2 = scrollRef.value) === null || _scrollRef$value2 === void 0 ? void 0 : _scrollRef$value2.call(scrollRef);
- nextTick(function() {
- if (open2.value) {
- var li = liRefs.value.get(props5.value);
- if (li) {
- scrollRef.value = waitElementReady(li, function() {
- scrollTo2(ulRef.value, li.offsetTop, 0);
- });
- }
- }
- });
- }, {
- immediate: true,
- flush: "post"
- });
- return function() {
- var prefixCls = props5.prefixCls, units = props5.units, onSelect = props5.onSelect, value = props5.value, active = props5.active, hideDisabledOptions = props5.hideDisabledOptions;
- var cellPrefixCls = "".concat(prefixCls, "-cell");
- return createVNode("ul", {
- "class": classNames_default("".concat(prefixCls, "-column"), _defineProperty({}, "".concat(prefixCls, "-column-active"), active)),
- "ref": ulRef,
- "style": {
- position: "relative"
- }
- }, [units.map(function(unit) {
- var _classNames2;
- if (hideDisabledOptions && unit.disabled) {
- return null;
- }
- return createVNode("li", {
- "key": unit.value,
- "ref": function ref2(element) {
- liRefs.value.set(unit.value, element);
- },
- "class": classNames_default(cellPrefixCls, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(cellPrefixCls, "-disabled"), unit.disabled), _defineProperty(_classNames2, "".concat(cellPrefixCls, "-selected"), value === unit.value), _classNames2)),
- "onClick": function onClick2() {
- if (unit.disabled) {
- return;
- }
- onSelect(unit.value);
- }
- }, [createVNode("div", {
- "class": "".concat(cellPrefixCls, "-inner")
- }, [unit.label])]);
- })]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-picker/utils/miscUtil.js
- function leftPad(str, length) {
- var fill = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
- var current2 = String(str);
- while (current2.length < length) {
- current2 = "".concat(fill).concat(str);
- }
- return current2;
- }
- var tuple3 = function tuple4() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- return args;
- };
- function toArray2(val) {
- if (val === null || val === void 0) {
- return [];
- }
- return Array.isArray(val) ? val : [val];
- }
- function getDataOrAriaProps(props5) {
- var retProps = {};
- Object.keys(props5).forEach(function(key2) {
- if ((key2.substr(0, 5) === "data-" || key2.substr(0, 5) === "aria-" || key2 === "role" || key2 === "name") && key2.substr(0, 7) !== "data-__") {
- retProps[key2] = props5[key2];
- }
- });
- return retProps;
- }
- function getValue2(values, index3) {
- return values ? values[index3] : null;
- }
- function updateValues(values, value, index3) {
- var newValues = [getValue2(values, 0), getValue2(values, 1)];
- newValues[index3] = typeof value === "function" ? value(newValues[index3]) : value;
- if (!newValues[0] && !newValues[1]) {
- return null;
- }
- return newValues;
- }
- // node_modules/ant-design-vue/es/vc-picker/panels/TimePanel/TimeBody.js
- function generateUnits(start, end, step, disabledUnits) {
- var units = [];
- for (var i3 = start; i3 <= end; i3 += step) {
- units.push({
- label: leftPad(i3, 2),
- value: i3,
- disabled: (disabledUnits || []).includes(i3)
- });
- }
- return units;
- }
- var TimeBody = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "TimeBody",
- inheritAttrs: false,
- props: ["generateConfig", "prefixCls", "operationRef", "activeColumnIndex", "value", "showHour", "showMinute", "showSecond", "use12Hours", "hourStep", "minuteStep", "secondStep", "disabledHours", "disabledMinutes", "disabledSeconds", "disabledTime", "hideDisabledOptions", "onSelect"],
- setup: function setup65(props5) {
- var originHour = computed(function() {
- return props5.value ? props5.generateConfig.getHour(props5.value) : -1;
- });
- var isPM = computed(function() {
- if (props5.use12Hours) {
- return originHour.value >= 12;
- } else {
- return false;
- }
- });
- var hour = computed(function() {
- if (props5.use12Hours) {
- return originHour.value % 12;
- } else {
- return originHour.value;
- }
- });
- var minute = computed(function() {
- return props5.value ? props5.generateConfig.getMinute(props5.value) : -1;
- });
- var second = computed(function() {
- return props5.value ? props5.generateConfig.getSecond(props5.value) : -1;
- });
- var now4 = ref(props5.generateConfig.getNow());
- var mergedDisabledHours = ref();
- var mergedDisabledMinutes = ref();
- var mergedDisabledSeconds = ref();
- onBeforeUpdate(function() {
- now4.value = props5.generateConfig.getNow();
- });
- watchEffect(function() {
- if (props5.disabledTime) {
- var disabledConfig = props5.disabledTime(now4);
- var _ref = [disabledConfig.disabledHours, disabledConfig.disabledMinutes, disabledConfig.disabledSeconds];
- mergedDisabledHours.value = _ref[0];
- mergedDisabledMinutes.value = _ref[1];
- mergedDisabledSeconds.value = _ref[2];
- } else {
- var _ref2 = [props5.disabledHours, props5.disabledMinutes, props5.disabledSeconds];
- mergedDisabledHours.value = _ref2[0];
- mergedDisabledMinutes.value = _ref2[1];
- mergedDisabledSeconds.value = _ref2[2];
- }
- });
- var setTime2 = function setTime3(isNewPM, newHour, newMinute, newSecond) {
- var newDate = props5.value || props5.generateConfig.getNow();
- var mergedHour = Math.max(0, newHour);
- var mergedMinute = Math.max(0, newMinute);
- var mergedSecond = Math.max(0, newSecond);
- newDate = setTime(props5.generateConfig, newDate, !props5.use12Hours || !isNewPM ? mergedHour : mergedHour + 12, mergedMinute, mergedSecond);
- return newDate;
- };
- var rawHours = computed(function() {
- var _props$hourStep;
- return generateUnits(0, 23, (_props$hourStep = props5.hourStep) !== null && _props$hourStep !== void 0 ? _props$hourStep : 1, mergedDisabledHours.value && mergedDisabledHours.value());
- });
- var AMPMDisabled = computed(function() {
- if (!props5.use12Hours) {
- return [false, false];
- }
- var AMPMDisabled2 = [true, true];
- rawHours.value.forEach(function(_ref3) {
- var disabled = _ref3.disabled, hourValue = _ref3.value;
- if (disabled)
- return;
- if (hourValue >= 12) {
- AMPMDisabled2[1] = false;
- } else {
- AMPMDisabled2[0] = false;
- }
- });
- return AMPMDisabled2;
- });
- var hours = computed(function() {
- if (!props5.use12Hours)
- return rawHours.value;
- return rawHours.value.filter(isPM.value ? function(hourMeta) {
- return hourMeta.value >= 12;
- } : function(hourMeta) {
- return hourMeta.value < 12;
- }).map(function(hourMeta) {
- var hourValue = hourMeta.value % 12;
- var hourLabel = hourValue === 0 ? "12" : leftPad(hourValue, 2);
- return _objectSpread2(_objectSpread2({}, hourMeta), {}, {
- label: hourLabel,
- value: hourValue
- });
- });
- });
- var minutes = computed(function() {
- var _props$minuteStep;
- return generateUnits(0, 59, (_props$minuteStep = props5.minuteStep) !== null && _props$minuteStep !== void 0 ? _props$minuteStep : 1, mergedDisabledMinutes.value && mergedDisabledMinutes.value(originHour.value));
- });
- var seconds = computed(function() {
- var _props$secondStep;
- return generateUnits(0, 59, (_props$secondStep = props5.secondStep) !== null && _props$secondStep !== void 0 ? _props$secondStep : 1, mergedDisabledSeconds.value && mergedDisabledSeconds.value(originHour.value, minute.value));
- });
- return function() {
- var prefixCls = props5.prefixCls, operationRef = props5.operationRef, activeColumnIndex = props5.activeColumnIndex, showHour = props5.showHour, showMinute = props5.showMinute, showSecond = props5.showSecond, use12Hours = props5.use12Hours, hideDisabledOptions = props5.hideDisabledOptions, onSelect = props5.onSelect;
- var columns = [];
- var contentPrefixCls = "".concat(prefixCls, "-content");
- var columnPrefixCls = "".concat(prefixCls, "-time-panel");
- operationRef.value = {
- onUpDown: function onUpDown(diff) {
- var column = columns[activeColumnIndex];
- if (column) {
- var valueIndex = column.units.findIndex(function(unit) {
- return unit.value === column.value;
- });
- var unitLen = column.units.length;
- for (var i3 = 1; i3 < unitLen; i3 += 1) {
- var nextUnit = column.units[(valueIndex + diff * i3 + unitLen) % unitLen];
- if (nextUnit.disabled !== true) {
- column.onSelect(nextUnit.value);
- break;
- }
- }
- }
- }
- };
- function addColumnNode(condition, node, columnValue, units, onColumnSelect) {
- if (condition !== false) {
- columns.push({
- node: cloneElement(node, {
- prefixCls: columnPrefixCls,
- value: columnValue,
- active: activeColumnIndex === columns.length,
- onSelect: onColumnSelect,
- units,
- hideDisabledOptions
- }),
- onSelect: onColumnSelect,
- value: columnValue,
- units
- });
- }
- }
- addColumnNode(showHour, createVNode(TimeUnitColumn_default, {
- "key": "hour"
- }, null), hour.value, hours.value, function(num) {
- onSelect(setTime2(isPM.value, num, minute.value, second.value), "mouse");
- });
- addColumnNode(showMinute, createVNode(TimeUnitColumn_default, {
- "key": "minute"
- }, null), minute.value, minutes.value, function(num) {
- onSelect(setTime2(isPM.value, hour.value, num, second.value), "mouse");
- });
- addColumnNode(showSecond, createVNode(TimeUnitColumn_default, {
- "key": "second"
- }, null), second.value, seconds.value, function(num) {
- onSelect(setTime2(isPM.value, hour.value, minute.value, num), "mouse");
- });
- var PMIndex = -1;
- if (typeof isPM.value === "boolean") {
- PMIndex = isPM.value ? 1 : 0;
- }
- addColumnNode(use12Hours === true, createVNode(TimeUnitColumn_default, {
- "key": "12hours"
- }, null), PMIndex, [{
- label: "AM",
- value: 0,
- disabled: AMPMDisabled.value[0]
- }, {
- label: "PM",
- value: 1,
- disabled: AMPMDisabled.value[1]
- }], function(num) {
- onSelect(setTime2(!!num, hour.value, minute.value, second.value), "mouse");
- });
- return createVNode("div", {
- "class": contentPrefixCls
- }, [columns.map(function(_ref4) {
- var node = _ref4.node;
- return node;
- })]);
- };
- }
- });
- var TimeBody_default = TimeBody;
- // node_modules/ant-design-vue/es/vc-picker/panels/TimePanel/index.js
- var countBoolean = function countBoolean2(boolList) {
- return boolList.filter(function(bool) {
- return bool !== false;
- }).length;
- };
- function TimePanel(_props) {
- var props5 = useMergeProps(_props);
- var generateConfig2 = props5.generateConfig, _props$format = props5.format, format4 = _props$format === void 0 ? "HH:mm:ss" : _props$format, prefixCls = props5.prefixCls, active = props5.active, operationRef = props5.operationRef, showHour = props5.showHour, showMinute = props5.showMinute, showSecond = props5.showSecond, _props$use12Hours = props5.use12Hours, use12Hours = _props$use12Hours === void 0 ? false : _props$use12Hours, onSelect = props5.onSelect, value = props5.value;
- var panelPrefixCls = "".concat(prefixCls, "-time-panel");
- var bodyOperationRef = ref();
- var activeColumnIndex = ref(-1);
- var columnsCount = countBoolean([showHour, showMinute, showSecond, use12Hours]);
- operationRef.value = {
- onKeydown: function onKeydown(event) {
- return createKeydownHandler(event, {
- onLeftRight: function onLeftRight(diff) {
- activeColumnIndex.value = (activeColumnIndex.value + diff + columnsCount) % columnsCount;
- },
- onUpDown: function onUpDown(diff) {
- if (activeColumnIndex.value === -1) {
- activeColumnIndex.value = 0;
- } else if (bodyOperationRef.value) {
- bodyOperationRef.value.onUpDown(diff);
- }
- },
- onEnter: function onEnter() {
- onSelect(value || generateConfig2.getNow(), "key");
- activeColumnIndex.value = -1;
- }
- });
- },
- onBlur: function onBlur2() {
- activeColumnIndex.value = -1;
- }
- };
- return createVNode("div", {
- "class": classNames_default(panelPrefixCls, _defineProperty({}, "".concat(panelPrefixCls, "-active"), active))
- }, [createVNode(TimeHeader_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "format": format4,
- "prefixCls": prefixCls
- }), null), createVNode(TimeBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "activeColumnIndex": activeColumnIndex.value,
- "operationRef": bodyOperationRef
- }), null)]);
- }
- TimePanel.displayName = "TimePanel";
- TimePanel.inheritAttrs = false;
- var TimePanel_default = TimePanel;
- // node_modules/ant-design-vue/es/vc-picker/hooks/useCellClassName.js
- function useCellClassName(_ref) {
- var cellPrefixCls = _ref.cellPrefixCls, generateConfig2 = _ref.generateConfig, rangedValue = _ref.rangedValue, hoverRangedValue = _ref.hoverRangedValue, isInView = _ref.isInView, isSameCell = _ref.isSameCell, offsetCell = _ref.offsetCell, today = _ref.today, value = _ref.value;
- function getClassName(currentDate) {
- var _ref2;
- var prevDate = offsetCell(currentDate, -1);
- var nextDate = offsetCell(currentDate, 1);
- var rangeStart = getValue2(rangedValue, 0);
- var rangeEnd = getValue2(rangedValue, 1);
- var hoverStart = getValue2(hoverRangedValue, 0);
- var hoverEnd = getValue2(hoverRangedValue, 1);
- var isRangeHovered = isInRange(generateConfig2, hoverStart, hoverEnd, currentDate);
- function isRangeStart(date4) {
- return isSameCell(rangeStart, date4);
- }
- function isRangeEnd(date4) {
- return isSameCell(rangeEnd, date4);
- }
- var isHoverStart = isSameCell(hoverStart, currentDate);
- var isHoverEnd = isSameCell(hoverEnd, currentDate);
- var isHoverEdgeStart = (isRangeHovered || isHoverEnd) && (!isInView(prevDate) || isRangeEnd(prevDate));
- var isHoverEdgeEnd = (isRangeHovered || isHoverStart) && (!isInView(nextDate) || isRangeStart(nextDate));
- return _ref2 = {}, _defineProperty(_ref2, "".concat(cellPrefixCls, "-in-view"), isInView(currentDate)), _defineProperty(_ref2, "".concat(cellPrefixCls, "-in-range"), isInRange(generateConfig2, rangeStart, rangeEnd, currentDate)), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-start"), isRangeStart(currentDate)), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-end"), isRangeEnd(currentDate)), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-start-single"), isRangeStart(currentDate) && !rangeEnd), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-end-single"), isRangeEnd(currentDate) && !rangeStart), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-start-near-hover"), isRangeStart(currentDate) && (isSameCell(prevDate, hoverStart) || isInRange(generateConfig2, hoverStart, hoverEnd, prevDate))), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-end-near-hover"), isRangeEnd(currentDate) && (isSameCell(nextDate, hoverEnd) || isInRange(generateConfig2, hoverStart, hoverEnd, nextDate))), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-hover"), isRangeHovered), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-hover-start"), isHoverStart), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-hover-end"), isHoverEnd), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-hover-edge-start"), isHoverEdgeStart), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-hover-edge-end"), isHoverEdgeEnd), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-hover-edge-start-near-range"), isHoverEdgeStart && isSameCell(prevDate, rangeEnd)), _defineProperty(_ref2, "".concat(cellPrefixCls, "-range-hover-edge-end-near-range"), isHoverEdgeEnd && isSameCell(nextDate, rangeStart)), _defineProperty(_ref2, "".concat(cellPrefixCls, "-today"), isSameCell(today, currentDate)), _defineProperty(_ref2, "".concat(cellPrefixCls, "-selected"), isSameCell(value, currentDate)), _ref2;
- }
- return getClassName;
- }
- // node_modules/ant-design-vue/es/vc-picker/RangeContext.js
- var RangeContextKey = Symbol("RangeContextProps");
- var useProvideRange = function useProvideRange2(props5) {
- provide(RangeContextKey, props5);
- };
- var useInjectRange = function useInjectRange2() {
- return inject(RangeContextKey, {
- rangedValue: ref(),
- hoverRangedValue: ref(),
- inRange: ref(),
- panelPosition: ref()
- });
- };
- var RangeContextProvider = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "PanelContextProvider",
- inheritAttrs: false,
- props: {
- value: {
- type: Object,
- default: function _default2() {
- return {};
- }
- }
- },
- setup: function setup66(props5, _ref) {
- var slots = _ref.slots;
- var value = {
- rangedValue: ref(props5.value.rangedValue),
- hoverRangedValue: ref(props5.value.hoverRangedValue),
- inRange: ref(props5.value.inRange),
- panelPosition: ref(props5.value.panelPosition)
- };
- useProvideRange(value);
- toRef;
- watch(function() {
- return props5.value;
- }, function() {
- Object.keys(props5.value).forEach(function(key2) {
- if (value[key2]) {
- value[key2].value = props5.value[key2];
- }
- });
- });
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-picker/panels/DatePanel/DateBody.js
- function DateBody(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, generateConfig2 = props5.generateConfig, prefixColumn = props5.prefixColumn, locale4 = props5.locale, rowCount = props5.rowCount, viewDate = props5.viewDate, value = props5.value, dateRender = props5.dateRender;
- var _useInjectRange = useInjectRange(), rangedValue = _useInjectRange.rangedValue, hoverRangedValue = _useInjectRange.hoverRangedValue;
- var baseDate = getWeekStartDate(locale4.locale, generateConfig2, viewDate);
- var cellPrefixCls = "".concat(prefixCls, "-cell");
- var weekFirstDay = generateConfig2.locale.getWeekFirstDay(locale4.locale);
- var today = generateConfig2.getNow();
- var headerCells = [];
- var weekDaysLocale = locale4.shortWeekDays || (generateConfig2.locale.getShortWeekDays ? generateConfig2.locale.getShortWeekDays(locale4.locale) : []);
- if (prefixColumn) {
- headerCells.push(createVNode("th", {
- "key": "empty",
- "aria-label": "empty cell"
- }, null));
- }
- for (var i3 = 0; i3 < WEEK_DAY_COUNT; i3 += 1) {
- headerCells.push(createVNode("th", {
- "key": i3
- }, [weekDaysLocale[(i3 + weekFirstDay) % WEEK_DAY_COUNT]]));
- }
- var getCellClassName = useCellClassName({
- cellPrefixCls,
- today,
- value,
- generateConfig: generateConfig2,
- rangedValue: prefixColumn ? null : rangedValue.value,
- hoverRangedValue: prefixColumn ? null : hoverRangedValue.value,
- isSameCell: function isSameCell(current2, target) {
- return isSameDate(generateConfig2, current2, target);
- },
- isInView: function isInView(date4) {
- return isSameMonth(generateConfig2, date4, viewDate);
- },
- offsetCell: function offsetCell(date4, offset4) {
- return generateConfig2.addDate(date4, offset4);
- }
- });
- var getCellNode = dateRender ? function(date4) {
- return dateRender({
- current: date4,
- today
- });
- } : void 0;
- return createVNode(PanelBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "rowNum": rowCount,
- "colNum": WEEK_DAY_COUNT,
- "baseDate": baseDate,
- "getCellNode": getCellNode,
- "getCellText": generateConfig2.getDate,
- "getCellClassName": getCellClassName,
- "getCellDate": generateConfig2.addDate,
- "titleCell": function titleCell(date4) {
- return formatValue(date4, {
- locale: locale4,
- format: "YYYY-MM-DD",
- generateConfig: generateConfig2
- });
- },
- "headerCells": headerCells
- }), null);
- }
- DateBody.displayName = "DateBody";
- DateBody.inheritAttrs = false;
- DateBody.props = [
- "prefixCls",
- "generateConfig",
- "value?",
- "viewDate",
- "locale",
- "rowCount",
- "onSelect",
- "dateRender?",
- "disabledDate?",
- // Used for week panel
- "prefixColumn?",
- "rowClassName?"
- ];
- var DateBody_default = DateBody;
- // node_modules/ant-design-vue/es/vc-picker/panels/DatePanel/DateHeader.js
- function DateHeader(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, generateConfig2 = props5.generateConfig, locale4 = props5.locale, viewDate = props5.viewDate, onNextMonth = props5.onNextMonth, onPrevMonth = props5.onPrevMonth, onNextYear = props5.onNextYear, onPrevYear = props5.onPrevYear, onYearClick = props5.onYearClick, onMonthClick = props5.onMonthClick;
- var _useInjectPanel = useInjectPanel(), hideHeader = _useInjectPanel.hideHeader;
- if (hideHeader.value) {
- return null;
- }
- var headerPrefixCls = "".concat(prefixCls, "-header");
- var monthsLocale = locale4.shortMonths || (generateConfig2.locale.getShortMonths ? generateConfig2.locale.getShortMonths(locale4.locale) : []);
- var month = generateConfig2.getMonth(viewDate);
- var yearNode = createVNode("button", {
- "type": "button",
- "key": "year",
- "onClick": onYearClick,
- "tabindex": -1,
- "class": "".concat(prefixCls, "-year-btn")
- }, [formatValue(viewDate, {
- locale: locale4,
- format: locale4.yearFormat,
- generateConfig: generateConfig2
- })]);
- var monthNode = createVNode("button", {
- "type": "button",
- "key": "month",
- "onClick": onMonthClick,
- "tabindex": -1,
- "class": "".concat(prefixCls, "-month-btn")
- }, [locale4.monthFormat ? formatValue(viewDate, {
- locale: locale4,
- format: locale4.monthFormat,
- generateConfig: generateConfig2
- }) : monthsLocale[month]]);
- var monthYearNodes = locale4.monthBeforeYear ? [monthNode, yearNode] : [yearNode, monthNode];
- return createVNode(Header_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": headerPrefixCls,
- "onSuperPrev": onPrevYear,
- "onPrev": onPrevMonth,
- "onNext": onNextMonth,
- "onSuperNext": onNextYear
- }), {
- default: function _default9() {
- return [monthYearNodes];
- }
- });
- }
- DateHeader.displayName = "DateHeader";
- DateHeader.inheritAttrs = false;
- var DateHeader_default = DateHeader;
- // node_modules/ant-design-vue/es/vc-picker/panels/DatePanel/index.js
- var DATE_ROW_COUNT = 6;
- function DatePanel(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, _props$panelName = props5.panelName, panelName = _props$panelName === void 0 ? "date" : _props$panelName, keyboardConfig = props5.keyboardConfig, active = props5.active, operationRef = props5.operationRef, generateConfig2 = props5.generateConfig, value = props5.value, viewDate = props5.viewDate, onViewDateChange = props5.onViewDateChange, onPanelChange = props5.onPanelChange, _onSelect = props5.onSelect;
- var panelPrefixCls = "".concat(prefixCls, "-").concat(panelName, "-panel");
- operationRef.value = {
- onKeydown: function onKeydown(event) {
- return createKeydownHandler(event, _objectSpread2({
- onLeftRight: function onLeftRight(diff) {
- _onSelect(generateConfig2.addDate(value || viewDate, diff), "key");
- },
- onCtrlLeftRight: function onCtrlLeftRight(diff) {
- _onSelect(generateConfig2.addYear(value || viewDate, diff), "key");
- },
- onUpDown: function onUpDown(diff) {
- _onSelect(generateConfig2.addDate(value || viewDate, diff * WEEK_DAY_COUNT), "key");
- },
- onPageUpDown: function onPageUpDown(diff) {
- _onSelect(generateConfig2.addMonth(value || viewDate, diff), "key");
- }
- }, keyboardConfig));
- }
- };
- var onYearChange = function onYearChange2(diff) {
- var newDate = generateConfig2.addYear(viewDate, diff);
- onViewDateChange(newDate);
- onPanelChange(null, newDate);
- };
- var onMonthChange = function onMonthChange2(diff) {
- var newDate = generateConfig2.addMonth(viewDate, diff);
- onViewDateChange(newDate);
- onPanelChange(null, newDate);
- };
- return createVNode("div", {
- "class": classNames_default(panelPrefixCls, _defineProperty({}, "".concat(panelPrefixCls, "-active"), active))
- }, [createVNode(DateHeader_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "value": value,
- "viewDate": viewDate,
- "onPrevYear": function onPrevYear() {
- onYearChange(-1);
- },
- "onNextYear": function onNextYear() {
- onYearChange(1);
- },
- "onPrevMonth": function onPrevMonth() {
- onMonthChange(-1);
- },
- "onNextMonth": function onNextMonth() {
- onMonthChange(1);
- },
- "onMonthClick": function onMonthClick() {
- onPanelChange("month", viewDate);
- },
- "onYearClick": function onYearClick() {
- onPanelChange("year", viewDate);
- }
- }), null), createVNode(DateBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "onSelect": function onSelect(date4) {
- return _onSelect(date4, "mouse");
- },
- "prefixCls": prefixCls,
- "value": value,
- "viewDate": viewDate,
- "rowCount": DATE_ROW_COUNT
- }), null)]);
- }
- DatePanel.displayName = "DatePanel";
- DatePanel.inheritAttrs = false;
- var DatePanel_default = DatePanel;
- // node_modules/ant-design-vue/es/vc-picker/panels/DatetimePanel/index.js
- var ACTIVE_PANEL = tuple3("date", "time");
- function DatetimePanel(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, operationRef = props5.operationRef, generateConfig2 = props5.generateConfig, value = props5.value, defaultValue = props5.defaultValue, disabledTime = props5.disabledTime, showTime = props5.showTime, onSelect = props5.onSelect;
- var panelPrefixCls = "".concat(prefixCls, "-datetime-panel");
- var activePanel = ref(null);
- var dateOperationRef = ref({});
- var timeOperationRef = ref({});
- var timeProps = _typeof(showTime) === "object" ? _objectSpread2({}, showTime) : {};
- function getNextActive(offset4) {
- var activeIndex = ACTIVE_PANEL.indexOf(activePanel.value) + offset4;
- var nextActivePanel = ACTIVE_PANEL[activeIndex] || null;
- return nextActivePanel;
- }
- var onBlur2 = function onBlur3(e3) {
- if (timeOperationRef.value.onBlur) {
- timeOperationRef.value.onBlur(e3);
- }
- activePanel.value = null;
- };
- operationRef.value = {
- onKeydown: function onKeydown(event) {
- if (event.which === KeyCode_default.TAB) {
- var nextActivePanel = getNextActive(event.shiftKey ? -1 : 1);
- activePanel.value = nextActivePanel;
- if (nextActivePanel) {
- event.preventDefault();
- }
- return true;
- }
- if (activePanel.value) {
- var _ref = activePanel.value === "date" ? dateOperationRef : timeOperationRef;
- if (_ref.value && _ref.value.onKeydown) {
- _ref.value.onKeydown(event);
- }
- return true;
- }
- if ([KeyCode_default.LEFT, KeyCode_default.RIGHT, KeyCode_default.UP, KeyCode_default.DOWN].includes(event.which)) {
- activePanel.value = "date";
- return true;
- }
- return false;
- },
- onBlur: onBlur2,
- onClose: onBlur2
- };
- var onInternalSelect = function onInternalSelect2(date4, source) {
- var selectedDate = date4;
- if (source === "date" && !value && timeProps.defaultValue) {
- selectedDate = generateConfig2.setHour(selectedDate, generateConfig2.getHour(timeProps.defaultValue));
- selectedDate = generateConfig2.setMinute(selectedDate, generateConfig2.getMinute(timeProps.defaultValue));
- selectedDate = generateConfig2.setSecond(selectedDate, generateConfig2.getSecond(timeProps.defaultValue));
- } else if (source === "time" && !value && defaultValue) {
- selectedDate = generateConfig2.setYear(selectedDate, generateConfig2.getYear(defaultValue));
- selectedDate = generateConfig2.setMonth(selectedDate, generateConfig2.getMonth(defaultValue));
- selectedDate = generateConfig2.setDate(selectedDate, generateConfig2.getDate(defaultValue));
- }
- if (onSelect) {
- onSelect(selectedDate, "mouse");
- }
- };
- var disabledTimes = disabledTime ? disabledTime(value || null) : {};
- return createVNode("div", {
- "class": classNames_default(panelPrefixCls, _defineProperty({}, "".concat(panelPrefixCls, "-active"), activePanel.value))
- }, [createVNode(DatePanel_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "operationRef": dateOperationRef,
- "active": activePanel.value === "date",
- "onSelect": function onSelect2(date4) {
- onInternalSelect(setDateTime(generateConfig2, date4, !value && _typeof(showTime) === "object" ? showTime.defaultValue : null), "date");
- }
- }), null), createVNode(TimePanel_default, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, props5), {}, {
- "format": void 0
- }, timeProps), disabledTimes), {}, {
- "disabledTime": null,
- "defaultValue": void 0,
- "operationRef": timeOperationRef,
- "active": activePanel.value === "time",
- "onSelect": function onSelect2(date4) {
- onInternalSelect(date4, "time");
- }
- }), null)]);
- }
- DatetimePanel.displayName = "DatetimePanel";
- DatetimePanel.inheritAttrs = false;
- var DatetimePanel_default = DatetimePanel;
- // node_modules/ant-design-vue/es/vc-picker/panels/WeekPanel/index.js
- function WeekPanel(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, generateConfig2 = props5.generateConfig, locale4 = props5.locale, value = props5.value;
- var cellPrefixCls = "".concat(prefixCls, "-cell");
- var prefixColumn = function prefixColumn2(date4) {
- return createVNode("td", {
- "key": "week",
- "class": classNames_default(cellPrefixCls, "".concat(cellPrefixCls, "-week"))
- }, [generateConfig2.locale.getWeek(locale4.locale, date4)]);
- };
- var rowPrefixCls = "".concat(prefixCls, "-week-panel-row");
- var rowClassName = function rowClassName2(date4) {
- return classNames_default(rowPrefixCls, _defineProperty({}, "".concat(rowPrefixCls, "-selected"), isSameWeek(generateConfig2, locale4.locale, value, date4)));
- };
- return createVNode(DatePanel_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "panelName": "week",
- "prefixColumn": prefixColumn,
- "rowClassName": rowClassName,
- "keyboardConfig": {
- onLeftRight: null
- }
- }), null);
- }
- WeekPanel.displayName = "WeekPanel";
- WeekPanel.inheritAttrs = false;
- var WeekPanel_default = WeekPanel;
- // node_modules/ant-design-vue/es/vc-picker/panels/MonthPanel/MonthHeader.js
- function MonthHeader(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, generateConfig2 = props5.generateConfig, locale4 = props5.locale, viewDate = props5.viewDate, onNextYear = props5.onNextYear, onPrevYear = props5.onPrevYear, onYearClick = props5.onYearClick;
- var _useInjectPanel = useInjectPanel(), hideHeader = _useInjectPanel.hideHeader;
- if (hideHeader.value) {
- return null;
- }
- var headerPrefixCls = "".concat(prefixCls, "-header");
- return createVNode(Header_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": headerPrefixCls,
- "onSuperPrev": onPrevYear,
- "onSuperNext": onNextYear
- }), {
- default: function _default9() {
- return [createVNode("button", {
- "type": "button",
- "onClick": onYearClick,
- "class": "".concat(prefixCls, "-year-btn")
- }, [formatValue(viewDate, {
- locale: locale4,
- format: locale4.yearFormat,
- generateConfig: generateConfig2
- })])];
- }
- });
- }
- MonthHeader.displayName = "MonthHeader";
- MonthHeader.inheritAttrs = false;
- var MonthHeader_default = MonthHeader;
- // node_modules/ant-design-vue/es/vc-picker/panels/MonthPanel/MonthBody.js
- var MONTH_COL_COUNT = 3;
- var MONTH_ROW_COUNT = 4;
- function MonthBody(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, locale4 = props5.locale, value = props5.value, viewDate = props5.viewDate, generateConfig2 = props5.generateConfig, monthCellRender = props5.monthCellRender;
- var _useInjectRange = useInjectRange(), rangedValue = _useInjectRange.rangedValue, hoverRangedValue = _useInjectRange.hoverRangedValue;
- var cellPrefixCls = "".concat(prefixCls, "-cell");
- var getCellClassName = useCellClassName({
- cellPrefixCls,
- value,
- generateConfig: generateConfig2,
- rangedValue: rangedValue.value,
- hoverRangedValue: hoverRangedValue.value,
- isSameCell: function isSameCell(current2, target) {
- return isSameMonth(generateConfig2, current2, target);
- },
- isInView: function isInView() {
- return true;
- },
- offsetCell: function offsetCell(date4, offset4) {
- return generateConfig2.addMonth(date4, offset4);
- }
- });
- var monthsLocale = locale4.shortMonths || (generateConfig2.locale.getShortMonths ? generateConfig2.locale.getShortMonths(locale4.locale) : []);
- var baseMonth = generateConfig2.setMonth(viewDate, 0);
- var getCellNode = monthCellRender ? function(date4) {
- return monthCellRender({
- current: date4,
- locale: locale4
- });
- } : void 0;
- return createVNode(PanelBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "rowNum": MONTH_ROW_COUNT,
- "colNum": MONTH_COL_COUNT,
- "baseDate": baseMonth,
- "getCellNode": getCellNode,
- "getCellText": function getCellText(date4) {
- return locale4.monthFormat ? formatValue(date4, {
- locale: locale4,
- format: locale4.monthFormat,
- generateConfig: generateConfig2
- }) : monthsLocale[generateConfig2.getMonth(date4)];
- },
- "getCellClassName": getCellClassName,
- "getCellDate": generateConfig2.addMonth,
- "titleCell": function titleCell(date4) {
- return formatValue(date4, {
- locale: locale4,
- format: "YYYY-MM",
- generateConfig: generateConfig2
- });
- }
- }), null);
- }
- MonthBody.displayName = "MonthBody";
- MonthBody.inheritAttrs = false;
- var MonthBody_default = MonthBody;
- // node_modules/ant-design-vue/es/vc-picker/panels/MonthPanel/index.js
- function MonthPanel(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, operationRef = props5.operationRef, onViewDateChange = props5.onViewDateChange, generateConfig2 = props5.generateConfig, value = props5.value, viewDate = props5.viewDate, onPanelChange = props5.onPanelChange, _onSelect = props5.onSelect;
- var panelPrefixCls = "".concat(prefixCls, "-month-panel");
- operationRef.value = {
- onKeydown: function onKeydown(event) {
- return createKeydownHandler(event, {
- onLeftRight: function onLeftRight(diff) {
- _onSelect(generateConfig2.addMonth(value || viewDate, diff), "key");
- },
- onCtrlLeftRight: function onCtrlLeftRight(diff) {
- _onSelect(generateConfig2.addYear(value || viewDate, diff), "key");
- },
- onUpDown: function onUpDown(diff) {
- _onSelect(generateConfig2.addMonth(value || viewDate, diff * MONTH_COL_COUNT), "key");
- },
- onEnter: function onEnter() {
- onPanelChange("date", value || viewDate);
- }
- });
- }
- };
- var onYearChange = function onYearChange2(diff) {
- var newDate = generateConfig2.addYear(viewDate, diff);
- onViewDateChange(newDate);
- onPanelChange(null, newDate);
- };
- return createVNode("div", {
- "class": panelPrefixCls
- }, [createVNode(MonthHeader_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "onPrevYear": function onPrevYear() {
- onYearChange(-1);
- },
- "onNextYear": function onNextYear() {
- onYearChange(1);
- },
- "onYearClick": function onYearClick() {
- onPanelChange("year", viewDate);
- }
- }), null), createVNode(MonthBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "onSelect": function onSelect(date4) {
- _onSelect(date4, "mouse");
- onPanelChange("date", date4);
- }
- }), null)]);
- }
- MonthPanel.displayName = "MonthPanel";
- MonthPanel.inheritAttrs = false;
- var MonthPanel_default = MonthPanel;
- // node_modules/ant-design-vue/es/vc-picker/panels/QuarterPanel/QuarterHeader.js
- function QuarterHeader(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, generateConfig2 = props5.generateConfig, locale4 = props5.locale, viewDate = props5.viewDate, onNextYear = props5.onNextYear, onPrevYear = props5.onPrevYear, onYearClick = props5.onYearClick;
- var _useInjectPanel = useInjectPanel(), hideHeader = _useInjectPanel.hideHeader;
- if (hideHeader.value) {
- return null;
- }
- var headerPrefixCls = "".concat(prefixCls, "-header");
- return createVNode(Header_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": headerPrefixCls,
- "onSuperPrev": onPrevYear,
- "onSuperNext": onNextYear
- }), {
- default: function _default9() {
- return [createVNode("button", {
- "type": "button",
- "onClick": onYearClick,
- "class": "".concat(prefixCls, "-year-btn")
- }, [formatValue(viewDate, {
- locale: locale4,
- format: locale4.yearFormat,
- generateConfig: generateConfig2
- })])];
- }
- });
- }
- QuarterHeader.displayName = "QuarterHeader";
- QuarterHeader.inheritAttrs = false;
- var QuarterHeader_default = QuarterHeader;
- // node_modules/ant-design-vue/es/vc-picker/panels/QuarterPanel/QuarterBody.js
- var QUARTER_COL_COUNT = 4;
- var QUARTER_ROW_COUNT = 1;
- function QuarterBody(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, locale4 = props5.locale, value = props5.value, viewDate = props5.viewDate, generateConfig2 = props5.generateConfig;
- var _useInjectRange = useInjectRange(), rangedValue = _useInjectRange.rangedValue, hoverRangedValue = _useInjectRange.hoverRangedValue;
- var cellPrefixCls = "".concat(prefixCls, "-cell");
- var getCellClassName = useCellClassName({
- cellPrefixCls,
- value,
- generateConfig: generateConfig2,
- rangedValue: rangedValue.value,
- hoverRangedValue: hoverRangedValue.value,
- isSameCell: function isSameCell(current2, target) {
- return isSameQuarter(generateConfig2, current2, target);
- },
- isInView: function isInView() {
- return true;
- },
- offsetCell: function offsetCell(date4, offset4) {
- return generateConfig2.addMonth(date4, offset4 * 3);
- }
- });
- var baseQuarter = generateConfig2.setDate(generateConfig2.setMonth(viewDate, 0), 1);
- return createVNode(PanelBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "rowNum": QUARTER_ROW_COUNT,
- "colNum": QUARTER_COL_COUNT,
- "baseDate": baseQuarter,
- "getCellText": function getCellText(date4) {
- return formatValue(date4, {
- locale: locale4,
- format: locale4.quarterFormat || "[Q]Q",
- generateConfig: generateConfig2
- });
- },
- "getCellClassName": getCellClassName,
- "getCellDate": function getCellDate(date4, offset4) {
- return generateConfig2.addMonth(date4, offset4 * 3);
- },
- "titleCell": function titleCell(date4) {
- return formatValue(date4, {
- locale: locale4,
- format: "YYYY-[Q]Q",
- generateConfig: generateConfig2
- });
- }
- }), null);
- }
- QuarterBody.displayName = "QuarterBody";
- QuarterBody.inheritAttrs = false;
- var QuarterBody_default = QuarterBody;
- // node_modules/ant-design-vue/es/vc-picker/panels/QuarterPanel/index.js
- function QuarterPanel(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, operationRef = props5.operationRef, onViewDateChange = props5.onViewDateChange, generateConfig2 = props5.generateConfig, value = props5.value, viewDate = props5.viewDate, onPanelChange = props5.onPanelChange, _onSelect = props5.onSelect;
- var panelPrefixCls = "".concat(prefixCls, "-quarter-panel");
- operationRef.value = {
- onKeydown: function onKeydown(event) {
- return createKeydownHandler(event, {
- onLeftRight: function onLeftRight(diff) {
- _onSelect(generateConfig2.addMonth(value || viewDate, diff * 3), "key");
- },
- onCtrlLeftRight: function onCtrlLeftRight(diff) {
- _onSelect(generateConfig2.addYear(value || viewDate, diff), "key");
- },
- onUpDown: function onUpDown(diff) {
- _onSelect(generateConfig2.addYear(value || viewDate, diff), "key");
- }
- });
- }
- };
- var onYearChange = function onYearChange2(diff) {
- var newDate = generateConfig2.addYear(viewDate, diff);
- onViewDateChange(newDate);
- onPanelChange(null, newDate);
- };
- return createVNode("div", {
- "class": panelPrefixCls
- }, [createVNode(QuarterHeader_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "onPrevYear": function onPrevYear() {
- onYearChange(-1);
- },
- "onNextYear": function onNextYear() {
- onYearChange(1);
- },
- "onYearClick": function onYearClick() {
- onPanelChange("year", viewDate);
- }
- }), null), createVNode(QuarterBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "onSelect": function onSelect(date4) {
- _onSelect(date4, "mouse");
- }
- }), null)]);
- }
- QuarterPanel.displayName = "QuarterPanel";
- QuarterPanel.inheritAttrs = false;
- var QuarterPanel_default = QuarterPanel;
- // node_modules/ant-design-vue/es/vc-picker/panels/YearPanel/YearHeader.js
- function YearHeader(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, generateConfig2 = props5.generateConfig, viewDate = props5.viewDate, onPrevDecade = props5.onPrevDecade, onNextDecade = props5.onNextDecade, onDecadeClick = props5.onDecadeClick;
- var _useInjectPanel = useInjectPanel(), hideHeader = _useInjectPanel.hideHeader;
- if (hideHeader.value) {
- return null;
- }
- var headerPrefixCls = "".concat(prefixCls, "-header");
- var yearNumber = generateConfig2.getYear(viewDate);
- var startYear = Math.floor(yearNumber / YEAR_DECADE_COUNT) * YEAR_DECADE_COUNT;
- var endYear = startYear + YEAR_DECADE_COUNT - 1;
- return createVNode(Header_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": headerPrefixCls,
- "onSuperPrev": onPrevDecade,
- "onSuperNext": onNextDecade
- }), {
- default: function _default9() {
- return [createVNode("button", {
- "type": "button",
- "onClick": onDecadeClick,
- "class": "".concat(prefixCls, "-decade-btn")
- }, [startYear, createTextVNode("-"), endYear])];
- }
- });
- }
- YearHeader.displayName = "YearHeader";
- YearHeader.inheritAttrs = false;
- var YearHeader_default = YearHeader;
- // node_modules/ant-design-vue/es/vc-picker/panels/YearPanel/YearBody.js
- var YEAR_COL_COUNT = 3;
- var YEAR_ROW_COUNT = 4;
- function YearBody(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, value = props5.value, viewDate = props5.viewDate, locale4 = props5.locale, generateConfig2 = props5.generateConfig;
- var _useInjectRange = useInjectRange(), rangedValue = _useInjectRange.rangedValue, hoverRangedValue = _useInjectRange.hoverRangedValue;
- var yearPrefixCls = "".concat(prefixCls, "-cell");
- var yearNumber = generateConfig2.getYear(viewDate);
- var startYear = Math.floor(yearNumber / YEAR_DECADE_COUNT) * YEAR_DECADE_COUNT;
- var endYear = startYear + YEAR_DECADE_COUNT - 1;
- var baseYear = generateConfig2.setYear(viewDate, startYear - Math.ceil((YEAR_COL_COUNT * YEAR_ROW_COUNT - YEAR_DECADE_COUNT) / 2));
- var isInView = function isInView2(date4) {
- var currentYearNumber = generateConfig2.getYear(date4);
- return startYear <= currentYearNumber && currentYearNumber <= endYear;
- };
- var getCellClassName = useCellClassName({
- cellPrefixCls: yearPrefixCls,
- value,
- generateConfig: generateConfig2,
- rangedValue: rangedValue.value,
- hoverRangedValue: hoverRangedValue.value,
- isSameCell: function isSameCell(current2, target) {
- return isSameYear(generateConfig2, current2, target);
- },
- isInView,
- offsetCell: function offsetCell(date4, offset4) {
- return generateConfig2.addYear(date4, offset4);
- }
- });
- return createVNode(PanelBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "rowNum": YEAR_ROW_COUNT,
- "colNum": YEAR_COL_COUNT,
- "baseDate": baseYear,
- "getCellText": generateConfig2.getYear,
- "getCellClassName": getCellClassName,
- "getCellDate": generateConfig2.addYear,
- "titleCell": function titleCell(date4) {
- return formatValue(date4, {
- locale: locale4,
- format: "YYYY",
- generateConfig: generateConfig2
- });
- }
- }), null);
- }
- YearBody.displayName = "YearBody";
- YearBody.inheritAttrs = false;
- var YearBody_default = YearBody;
- // node_modules/ant-design-vue/es/vc-picker/panels/YearPanel/index.js
- var YEAR_DECADE_COUNT = 10;
- function YearPanel(_props) {
- var props5 = useMergeProps(_props);
- var prefixCls = props5.prefixCls, operationRef = props5.operationRef, onViewDateChange = props5.onViewDateChange, generateConfig2 = props5.generateConfig, value = props5.value, viewDate = props5.viewDate, sourceMode = props5.sourceMode, _onSelect = props5.onSelect, onPanelChange = props5.onPanelChange;
- var panelPrefixCls = "".concat(prefixCls, "-year-panel");
- operationRef.value = {
- onKeydown: function onKeydown(event) {
- return createKeydownHandler(event, {
- onLeftRight: function onLeftRight(diff) {
- _onSelect(generateConfig2.addYear(value || viewDate, diff), "key");
- },
- onCtrlLeftRight: function onCtrlLeftRight(diff) {
- _onSelect(generateConfig2.addYear(value || viewDate, diff * YEAR_DECADE_COUNT), "key");
- },
- onUpDown: function onUpDown(diff) {
- _onSelect(generateConfig2.addYear(value || viewDate, diff * YEAR_COL_COUNT), "key");
- },
- onEnter: function onEnter() {
- onPanelChange(sourceMode === "date" ? "date" : "month", value || viewDate);
- }
- });
- }
- };
- var onDecadeChange = function onDecadeChange2(diff) {
- var newDate = generateConfig2.addYear(viewDate, diff * 10);
- onViewDateChange(newDate);
- onPanelChange(null, newDate);
- };
- return createVNode("div", {
- "class": panelPrefixCls
- }, [createVNode(YearHeader_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "onPrevDecade": function onPrevDecade() {
- onDecadeChange(-1);
- },
- "onNextDecade": function onNextDecade() {
- onDecadeChange(1);
- },
- "onDecadeClick": function onDecadeClick() {
- onPanelChange("decade", viewDate);
- }
- }), null), createVNode(YearBody_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls,
- "onSelect": function onSelect(date4) {
- onPanelChange(sourceMode === "date" ? "date" : "month", date4);
- _onSelect(date4, "mouse");
- }
- }), null)]);
- }
- YearPanel.displayName = "YearPanel";
- YearPanel.inheritAttrs = false;
- var YearPanel_default = YearPanel;
- // node_modules/ant-design-vue/es/vc-picker/utils/getExtraFooter.js
- function getExtraFooter(prefixCls, mode, renderExtraFooter) {
- if (!renderExtraFooter) {
- return null;
- }
- return createVNode("div", {
- "class": "".concat(prefixCls, "-footer-extra")
- }, [renderExtraFooter(mode)]);
- }
- // node_modules/ant-design-vue/es/vc-picker/utils/getRanges.js
- function getRanges(_ref) {
- var prefixCls = _ref.prefixCls, _ref$rangeList = _ref.rangeList, rangeList = _ref$rangeList === void 0 ? [] : _ref$rangeList, _ref$components = _ref.components, components = _ref$components === void 0 ? {} : _ref$components, needConfirmButton = _ref.needConfirmButton, onNow = _ref.onNow, onOk = _ref.onOk, okDisabled = _ref.okDisabled, showNow = _ref.showNow, locale4 = _ref.locale;
- var presetNode;
- var okNode;
- if (rangeList.length) {
- var Item3 = components.rangeItem || "span";
- presetNode = createVNode(Fragment, null, [rangeList.map(function(_ref2) {
- var label = _ref2.label, onClick2 = _ref2.onClick, onMouseenter2 = _ref2.onMouseenter, onMouseleave2 = _ref2.onMouseleave;
- return createVNode("li", {
- "key": label,
- "class": "".concat(prefixCls, "-preset")
- }, [createVNode(Item3, {
- "onClick": onClick2,
- "onMouseenter": onMouseenter2,
- "onMouseleave": onMouseleave2
- }, {
- default: function _default9() {
- return [label];
- }
- })]);
- })]);
- }
- if (needConfirmButton) {
- var Button = components.button || "button";
- if (onNow && !presetNode && showNow !== false) {
- presetNode = createVNode("li", {
- "class": "".concat(prefixCls, "-now")
- }, [createVNode("a", {
- "class": "".concat(prefixCls, "-now-btn"),
- "onClick": onNow
- }, [locale4.now])]);
- }
- okNode = needConfirmButton && createVNode("li", {
- "class": "".concat(prefixCls, "-ok")
- }, [createVNode(Button, {
- "disabled": okDisabled,
- "onClick": onOk
- }, {
- default: function _default9() {
- return [locale4.ok];
- }
- })]);
- }
- if (!presetNode && !okNode) {
- return null;
- }
- return createVNode("ul", {
- "class": "".concat(prefixCls, "-ranges")
- }, [presetNode, okNode]);
- }
- // node_modules/ant-design-vue/es/vc-picker/PickerPanel.js
- function PickerPanel() {
- return defineComponent({
- name: "PickerPanel",
- inheritAttrs: false,
- props: {
- prefixCls: String,
- locale: Object,
- generateConfig: Object,
- value: Object,
- defaultValue: Object,
- pickerValue: Object,
- defaultPickerValue: Object,
- disabledDate: Function,
- mode: String,
- picker: {
- type: String,
- default: "date"
- },
- tabindex: {
- type: [Number, String],
- default: 0
- },
- showNow: {
- type: Boolean,
- default: void 0
- },
- showTime: [Boolean, Object],
- showToday: Boolean,
- renderExtraFooter: Function,
- dateRender: Function,
- hideHeader: {
- type: Boolean,
- default: void 0
- },
- onSelect: Function,
- onChange: Function,
- onPanelChange: Function,
- onMousedown: Function,
- onPickerValueChange: Function,
- onOk: Function,
- components: Object,
- direction: String,
- hourStep: {
- type: Number,
- default: 1
- },
- minuteStep: {
- type: Number,
- default: 1
- },
- secondStep: {
- type: Number,
- default: 1
- }
- },
- setup: function setup220(props5, _ref) {
- var attrs = _ref.attrs;
- var needConfirmButton = computed(function() {
- return props5.picker === "date" && !!props5.showTime || props5.picker === "time";
- });
- var isHourStepValid = computed(function() {
- return 24 % props5.hourStep === 0;
- });
- var isMinuteStepValid = computed(function() {
- return 60 % props5.minuteStep === 0;
- });
- var isSecondStepValid = computed(function() {
- return 60 % props5.secondStep === 0;
- });
- if (true) {
- watchEffect(function() {
- var generateConfig2 = props5.generateConfig, value = props5.value, _props$hourStep = props5.hourStep, hourStep = _props$hourStep === void 0 ? 1 : _props$hourStep, _props$minuteStep = props5.minuteStep, minuteStep = _props$minuteStep === void 0 ? 1 : _props$minuteStep, _props$secondStep = props5.secondStep, secondStep = _props$secondStep === void 0 ? 1 : _props$secondStep;
- warning(!value || generateConfig2.isValidate(value), "Invalidate date pass to `value`.");
- warning(!value || generateConfig2.isValidate(value), "Invalidate date pass to `defaultValue`.");
- warning(isHourStepValid.value, "`hourStep` ".concat(hourStep, " is invalid. It should be a factor of 24."));
- warning(isMinuteStepValid.value, "`minuteStep` ".concat(minuteStep, " is invalid. It should be a factor of 60."));
- warning(isSecondStepValid.value, "`secondStep` ".concat(secondStep, " is invalid. It should be a factor of 60."));
- });
- }
- var panelContext = useInjectPanel();
- var operationRef = panelContext.operationRef, panelDivRef = panelContext.panelRef, onContextSelect = panelContext.onSelect, hideRanges = panelContext.hideRanges, defaultOpenValue = panelContext.defaultOpenValue;
- var _useInjectRange = useInjectRange(), inRange = _useInjectRange.inRange, panelPosition = _useInjectRange.panelPosition, rangedValue = _useInjectRange.rangedValue, hoverRangedValue = _useInjectRange.hoverRangedValue;
- var panelRef = ref({});
- var _useMergedState = useMergedState(null, {
- value: toRef(props5, "value"),
- defaultValue: props5.defaultValue,
- postState: function postState(val) {
- if (!val && defaultOpenValue !== null && defaultOpenValue !== void 0 && defaultOpenValue.value && props5.picker === "time") {
- return defaultOpenValue.value;
- }
- return val;
- }
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedValue = _useMergedState2[0], setInnerValue = _useMergedState2[1];
- var _useMergedState3 = useMergedState(null, {
- value: toRef(props5, "pickerValue"),
- defaultValue: props5.defaultPickerValue || mergedValue.value,
- postState: function postState(date4) {
- var generateConfig2 = props5.generateConfig, showTime = props5.showTime, defaultValue = props5.defaultValue;
- var now4 = generateConfig2.getNow();
- if (!date4)
- return now4;
- if (!mergedValue.value && props5.showTime) {
- if (_typeof(showTime) === "object") {
- return setDateTime(generateConfig2, Array.isArray(date4) ? date4[0] : date4, showTime.defaultValue || now4);
- }
- if (defaultValue) {
- return setDateTime(generateConfig2, Array.isArray(date4) ? date4[0] : date4, defaultValue);
- }
- return setDateTime(generateConfig2, Array.isArray(date4) ? date4[0] : date4, now4);
- }
- return date4;
- }
- }), _useMergedState4 = _slicedToArray(_useMergedState3, 2), viewDate = _useMergedState4[0], setInnerViewDate = _useMergedState4[1];
- var setViewDate = function setViewDate2(date4) {
- setInnerViewDate(date4);
- if (props5.onPickerValueChange) {
- props5.onPickerValueChange(date4);
- }
- };
- var getInternalNextMode = function getInternalNextMode2(nextMode) {
- var getNextMode = PickerModeMap[props5.picker];
- if (getNextMode) {
- return getNextMode(nextMode);
- }
- return nextMode;
- };
- var _useMergedState5 = useMergedState(function() {
- if (props5.picker === "time") {
- return "time";
- }
- return getInternalNextMode("date");
- }, {
- value: toRef(props5, "mode")
- }), _useMergedState6 = _slicedToArray(_useMergedState5, 2), mergedMode = _useMergedState6[0], setInnerMode = _useMergedState6[1];
- watch(function() {
- return props5.picker;
- }, function() {
- setInnerMode(props5.picker);
- });
- var sourceMode = ref(mergedMode.value);
- var setSourceMode = function setSourceMode2(val) {
- sourceMode.value = val;
- };
- var onInternalPanelChange = function onInternalPanelChange2(newMode, viewValue) {
- var onPanelChange = props5.onPanelChange, generateConfig2 = props5.generateConfig;
- var nextMode = getInternalNextMode(newMode || mergedMode.value);
- setSourceMode(mergedMode.value);
- setInnerMode(nextMode);
- if (onPanelChange && (mergedMode.value !== nextMode || isEqual2(generateConfig2, viewDate.value, viewDate.value))) {
- onPanelChange(viewValue, nextMode);
- }
- };
- var triggerSelect = function triggerSelect2(date4, type4) {
- var forceTriggerSelect = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
- var picker = props5.picker, generateConfig2 = props5.generateConfig, onSelect = props5.onSelect, onChange3 = props5.onChange, disabledDate = props5.disabledDate;
- if (mergedMode.value === picker || forceTriggerSelect) {
- setInnerValue(date4);
- if (onSelect) {
- onSelect(date4);
- }
- if (onContextSelect) {
- onContextSelect(date4, type4);
- }
- if (onChange3 && !isEqual2(generateConfig2, date4, mergedValue.value) && !(disabledDate !== null && disabledDate !== void 0 && disabledDate(date4))) {
- onChange3(date4);
- }
- }
- };
- var onInternalKeydown = function onInternalKeydown2(e3) {
- if (panelRef.value && panelRef.value.onKeydown) {
- if ([KeyCode_default.LEFT, KeyCode_default.RIGHT, KeyCode_default.UP, KeyCode_default.DOWN, KeyCode_default.PAGE_UP, KeyCode_default.PAGE_DOWN, KeyCode_default.ENTER].includes(e3.which)) {
- e3.preventDefault();
- }
- return panelRef.value.onKeydown(e3);
- }
- {
- warning(false, "Panel not correct handle keyDown event. Please help to fire issue about this.");
- return false;
- }
- };
- var onInternalBlur = function onInternalBlur2(e3) {
- if (panelRef.value && panelRef.value.onBlur) {
- panelRef.value.onBlur(e3);
- }
- };
- var onNow = function onNow2() {
- var generateConfig2 = props5.generateConfig, hourStep = props5.hourStep, minuteStep = props5.minuteStep, secondStep = props5.secondStep;
- var now4 = generateConfig2.getNow();
- var lowerBoundTime = getLowerBoundTime(generateConfig2.getHour(now4), generateConfig2.getMinute(now4), generateConfig2.getSecond(now4), isHourStepValid.value ? hourStep : 1, isMinuteStepValid.value ? minuteStep : 1, isSecondStepValid.value ? secondStep : 1);
- var adjustedNow = setTime(
- generateConfig2,
- now4,
- lowerBoundTime[0],
- // hour
- lowerBoundTime[1],
- // minute
- lowerBoundTime[2]
- );
- triggerSelect(adjustedNow, "submit");
- };
- var classString = computed(function() {
- var _classNames;
- var prefixCls = props5.prefixCls, direction = props5.direction;
- return classNames_default("".concat(prefixCls, "-panel"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-panel-has-range"), rangedValue && rangedValue.value && rangedValue.value[0] && rangedValue.value[1]), _defineProperty(_classNames, "".concat(prefixCls, "-panel-has-range-hover"), hoverRangedValue && hoverRangedValue.value && hoverRangedValue.value[0] && hoverRangedValue.value[1]), _defineProperty(_classNames, "".concat(prefixCls, "-panel-rtl"), direction === "rtl"), _classNames));
- });
- useProvidePanel(_objectSpread2(_objectSpread2({}, panelContext), {}, {
- mode: mergedMode,
- hideHeader: computed(function() {
- var _panelContext$hideHea;
- return props5.hideHeader !== void 0 ? props5.hideHeader : (_panelContext$hideHea = panelContext.hideHeader) === null || _panelContext$hideHea === void 0 ? void 0 : _panelContext$hideHea.value;
- }),
- hidePrevBtn: computed(function() {
- return inRange.value && panelPosition.value === "right";
- }),
- hideNextBtn: computed(function() {
- return inRange.value && panelPosition.value === "left";
- })
- }));
- watch(function() {
- return props5.value;
- }, function() {
- if (props5.value) {
- setInnerViewDate(props5.value);
- }
- });
- return function() {
- var _props$prefixCls = props5.prefixCls, prefixCls = _props$prefixCls === void 0 ? "ant-picker" : _props$prefixCls, locale4 = props5.locale, generateConfig2 = props5.generateConfig, disabledDate = props5.disabledDate, _props$picker = props5.picker, picker = _props$picker === void 0 ? "date" : _props$picker, _props$tabindex = props5.tabindex, tabindex = _props$tabindex === void 0 ? 0 : _props$tabindex, showNow = props5.showNow, showTime = props5.showTime, showToday = props5.showToday, renderExtraFooter = props5.renderExtraFooter, onMousedown2 = props5.onMousedown, _onOk = props5.onOk, components = props5.components;
- if (operationRef && panelPosition.value !== "right") {
- operationRef.value = {
- onKeydown: onInternalKeydown,
- onClose: function onClose() {
- if (panelRef.value && panelRef.value.onClose) {
- panelRef.value.onClose();
- }
- }
- };
- }
- var panelNode;
- var pickerProps = _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), props5), {}, {
- operationRef: panelRef,
- prefixCls,
- viewDate: viewDate.value,
- value: mergedValue.value,
- onViewDateChange: setViewDate,
- sourceMode: sourceMode.value,
- onPanelChange: onInternalPanelChange,
- disabledDate
- });
- delete pickerProps.onChange;
- delete pickerProps.onSelect;
- switch (mergedMode.value) {
- case "decade":
- panelNode = createVNode(DecadePanel_default, _objectSpread2(_objectSpread2({}, pickerProps), {}, {
- "onSelect": function onSelect(date4, type4) {
- setViewDate(date4);
- triggerSelect(date4, type4);
- }
- }), null);
- break;
- case "year":
- panelNode = createVNode(YearPanel_default, _objectSpread2(_objectSpread2({}, pickerProps), {}, {
- "onSelect": function onSelect(date4, type4) {
- setViewDate(date4);
- triggerSelect(date4, type4);
- }
- }), null);
- break;
- case "month":
- panelNode = createVNode(MonthPanel_default, _objectSpread2(_objectSpread2({}, pickerProps), {}, {
- "onSelect": function onSelect(date4, type4) {
- setViewDate(date4);
- triggerSelect(date4, type4);
- }
- }), null);
- break;
- case "quarter":
- panelNode = createVNode(QuarterPanel_default, _objectSpread2(_objectSpread2({}, pickerProps), {}, {
- "onSelect": function onSelect(date4, type4) {
- setViewDate(date4);
- triggerSelect(date4, type4);
- }
- }), null);
- break;
- case "week":
- panelNode = createVNode(WeekPanel_default, _objectSpread2(_objectSpread2({}, pickerProps), {}, {
- "onSelect": function onSelect(date4, type4) {
- setViewDate(date4);
- triggerSelect(date4, type4);
- }
- }), null);
- break;
- case "time":
- delete pickerProps.showTime;
- panelNode = createVNode(TimePanel_default, _objectSpread2(_objectSpread2(_objectSpread2({}, pickerProps), _typeof(showTime) === "object" ? showTime : null), {}, {
- "onSelect": function onSelect(date4, type4) {
- setViewDate(date4);
- triggerSelect(date4, type4);
- }
- }), null);
- break;
- default:
- if (showTime) {
- panelNode = createVNode(DatetimePanel_default, _objectSpread2(_objectSpread2({}, pickerProps), {}, {
- "onSelect": function onSelect(date4, type4) {
- setViewDate(date4);
- triggerSelect(date4, type4);
- }
- }), null);
- } else {
- panelNode = createVNode(DatePanel_default, _objectSpread2(_objectSpread2({}, pickerProps), {}, {
- "onSelect": function onSelect(date4, type4) {
- setViewDate(date4);
- triggerSelect(date4, type4);
- }
- }), null);
- }
- }
- var extraFooter;
- var rangesNode;
- if (!(hideRanges !== null && hideRanges !== void 0 && hideRanges.value)) {
- extraFooter = getExtraFooter(prefixCls, mergedMode.value, renderExtraFooter);
- rangesNode = getRanges({
- prefixCls,
- components,
- needConfirmButton: needConfirmButton.value,
- okDisabled: !mergedValue.value || disabledDate && disabledDate(mergedValue.value),
- locale: locale4,
- showNow,
- onNow: needConfirmButton.value && onNow,
- onOk: function onOk() {
- if (mergedValue.value) {
- triggerSelect(mergedValue.value, "submit", true);
- if (_onOk) {
- _onOk(mergedValue.value);
- }
- }
- }
- });
- }
- var todayNode;
- if (showToday && mergedMode.value === "date" && picker === "date" && !showTime) {
- var now4 = generateConfig2.getNow();
- var todayCls = "".concat(prefixCls, "-today-btn");
- var disabled = disabledDate && disabledDate(now4);
- todayNode = createVNode("a", {
- "class": classNames_default(todayCls, disabled && "".concat(todayCls, "-disabled")),
- "aria-disabled": disabled,
- "onClick": function onClick2() {
- if (!disabled) {
- triggerSelect(now4, "mouse", true);
- }
- }
- }, [locale4.today]);
- }
- return createVNode("div", {
- "tabindex": tabindex,
- "class": classNames_default(classString.value, attrs.class),
- "style": attrs.style,
- "onKeydown": onInternalKeydown,
- "onBlur": onInternalBlur,
- "onMousedown": onMousedown2,
- "ref": panelDivRef
- }, [panelNode, extraFooter || rangesNode || todayNode ? createVNode("div", {
- "class": "".concat(prefixCls, "-footer")
- }, [extraFooter, rangesNode, todayNode]) : null]);
- };
- }
- });
- }
- var InterPickerPanel = PickerPanel();
- var PickerPanel_default = function(props5) {
- return createVNode(InterPickerPanel, props5);
- };
- // node_modules/ant-design-vue/es/vc-picker/PickerTrigger.js
- var BUILT_IN_PLACEMENTS = {
- bottomLeft: {
- points: ["tl", "bl"],
- offset: [0, 4],
- overflow: {
- adjustX: 1,
- adjustY: 1
- }
- },
- bottomRight: {
- points: ["tr", "br"],
- offset: [0, 4],
- overflow: {
- adjustX: 1,
- adjustY: 1
- }
- },
- topLeft: {
- points: ["bl", "tl"],
- offset: [0, -4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- },
- topRight: {
- points: ["br", "tr"],
- offset: [0, -4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- }
- };
- function PickerTrigger(props5, _ref) {
- var _classNames;
- var slots = _ref.slots;
- var _useMergeProps = useMergeProps(props5), prefixCls = _useMergeProps.prefixCls, popupStyle = _useMergeProps.popupStyle, visible = _useMergeProps.visible, dropdownClassName = _useMergeProps.dropdownClassName, dropdownAlign = _useMergeProps.dropdownAlign, transitionName2 = _useMergeProps.transitionName, getPopupContainer = _useMergeProps.getPopupContainer, range3 = _useMergeProps.range, popupPlacement = _useMergeProps.popupPlacement, direction = _useMergeProps.direction;
- var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
- var getPopupPlacement = function getPopupPlacement2() {
- if (popupPlacement !== void 0) {
- return popupPlacement;
- }
- return direction === "rtl" ? "bottomRight" : "bottomLeft";
- };
- return createVNode(vc_trigger_default, {
- "showAction": [],
- "hideAction": [],
- "popupPlacement": getPopupPlacement(),
- "builtinPlacements": BUILT_IN_PLACEMENTS,
- "prefixCls": dropdownPrefixCls,
- "popupTransitionName": transitionName2,
- "popupAlign": dropdownAlign,
- "popupVisible": visible,
- "popupClassName": classNames_default(dropdownClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(dropdownPrefixCls, "-range"), range3), _defineProperty(_classNames, "".concat(dropdownPrefixCls, "-rtl"), direction === "rtl"), _classNames)),
- "popupStyle": popupStyle,
- "getPopupContainer": getPopupContainer,
- "tryPopPortal": true
- }, {
- default: slots.default,
- popup: slots.popupElement
- });
- }
- var PickerTrigger_default = PickerTrigger;
- // node_modules/ant-design-vue/es/vc-picker/hooks/usePickerInput.js
- function usePickerInput(_ref) {
- var open2 = _ref.open, value = _ref.value, isClickOutside = _ref.isClickOutside, triggerOpen = _ref.triggerOpen, forwardKeydown = _ref.forwardKeydown, _onKeydown = _ref.onKeydown, blurToCancel = _ref.blurToCancel, onSubmit = _ref.onSubmit, onCancel = _ref.onCancel, _onFocus = _ref.onFocus, _onBlur = _ref.onBlur;
- var typing = ref(false);
- var focused = ref(false);
- var preventBlurRef = ref(false);
- var valueChangedRef = ref(false);
- var preventDefaultRef = ref(false);
- var inputProps4 = computed(function() {
- return {
- onMousedown: function onMousedown2() {
- typing.value = true;
- triggerOpen(true);
- },
- onKeydown: function onKeydown(e3) {
- var preventDefault = function preventDefault2() {
- preventDefaultRef.value = true;
- };
- _onKeydown(e3, preventDefault);
- if (preventDefaultRef.value)
- return;
- switch (e3.which) {
- case KeyCode_default.ENTER: {
- if (!open2.value) {
- triggerOpen(true);
- } else if (onSubmit() !== false) {
- typing.value = true;
- }
- e3.preventDefault();
- return;
- }
- case KeyCode_default.TAB: {
- if (typing.value && open2.value && !e3.shiftKey) {
- typing.value = false;
- e3.preventDefault();
- } else if (!typing.value && open2.value) {
- if (!forwardKeydown(e3) && e3.shiftKey) {
- typing.value = true;
- e3.preventDefault();
- }
- }
- return;
- }
- case KeyCode_default.ESC: {
- typing.value = true;
- onCancel();
- return;
- }
- }
- if (!open2.value && ![KeyCode_default.SHIFT].includes(e3.which)) {
- triggerOpen(true);
- } else if (!typing.value) {
- forwardKeydown(e3);
- }
- },
- onFocus: function onFocus2(e3) {
- typing.value = true;
- focused.value = true;
- if (_onFocus) {
- _onFocus(e3);
- }
- },
- onBlur: function onBlur2(e3) {
- if (preventBlurRef.value || !isClickOutside(document.activeElement)) {
- preventBlurRef.value = false;
- return;
- }
- if (blurToCancel.value) {
- setTimeout(function() {
- var _document = document, activeElement = _document.activeElement;
- while (activeElement && activeElement.shadowRoot) {
- activeElement = activeElement.shadowRoot.activeElement;
- }
- if (isClickOutside(activeElement)) {
- onCancel();
- }
- }, 0);
- } else if (open2.value) {
- triggerOpen(false);
- if (valueChangedRef.value) {
- onSubmit();
- }
- }
- focused.value = false;
- if (_onBlur) {
- _onBlur(e3);
- }
- }
- };
- });
- watch(open2, function() {
- valueChangedRef.value = false;
- });
- watch(value, function() {
- valueChangedRef.value = true;
- });
- var globalMousedownEvent = ref();
- onMounted(function() {
- globalMousedownEvent.value = addGlobalMousedownEvent(function(e3) {
- var target = getTargetFromEvent(e3);
- if (open2.value) {
- var clickedOutside = isClickOutside(target);
- if (!clickedOutside) {
- preventBlurRef.value = true;
- wrapperRaf(function() {
- preventBlurRef.value = false;
- });
- } else if (!focused.value || clickedOutside) {
- triggerOpen(false);
- }
- }
- });
- });
- onBeforeUnmount(function() {
- globalMousedownEvent.value && globalMousedownEvent.value();
- });
- return [inputProps4, {
- focused,
- typing
- }];
- }
- // node_modules/ant-design-vue/es/vc-picker/hooks/useTextValueMapping.js
- function useTextValueMapping(_ref) {
- var valueTexts = _ref.valueTexts, onTextChange = _ref.onTextChange;
- var text = ref("");
- function triggerTextChange(value) {
- text.value = value;
- onTextChange(value);
- }
- function resetText() {
- text.value = valueTexts.value[0];
- }
- watch(function() {
- return _toConsumableArray(valueTexts.value);
- }, function(cur) {
- var pre = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
- if (cur.join("||") !== pre.join("||") && valueTexts.value.every(function(valText) {
- return valText !== text.value;
- })) {
- resetText();
- }
- }, {
- immediate: true
- });
- return [text, triggerTextChange, resetText];
- }
- // node_modules/ant-design-vue/es/vc-picker/hooks/useValueTexts.js
- function useValueTexts(value, _ref) {
- var formatList = _ref.formatList, generateConfig2 = _ref.generateConfig, locale4 = _ref.locale;
- var texts = useMemo(function() {
- if (!value.value) {
- return [[""], ""];
- }
- var firstValueText2 = "";
- var fullValueTexts2 = [];
- for (var i3 = 0; i3 < formatList.value.length; i3 += 1) {
- var format4 = formatList.value[i3];
- var formatStr = formatValue(value.value, {
- generateConfig: generateConfig2.value,
- locale: locale4.value,
- format: format4
- });
- fullValueTexts2.push(formatStr);
- if (i3 === 0) {
- firstValueText2 = formatStr;
- }
- }
- return [fullValueTexts2, firstValueText2];
- }, [value, formatList], function(next2, prev2) {
- return prev2[0] !== next2[0] || !shallowequal_default(prev2[1], next2[1]);
- });
- var fullValueTexts = computed(function() {
- return texts.value[0];
- });
- var firstValueText = computed(function() {
- return texts.value[1];
- });
- return [fullValueTexts, firstValueText];
- }
- // node_modules/ant-design-vue/es/vc-picker/hooks/useHoverValue.js
- function useHoverValue(valueText, _ref) {
- var formatList = _ref.formatList, generateConfig2 = _ref.generateConfig, locale4 = _ref.locale;
- var innerValue = ref(null);
- var rafId;
- function setValue2(val) {
- var immediately = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- wrapperRaf.cancel(rafId);
- if (immediately) {
- innerValue.value = val;
- return;
- }
- rafId = wrapperRaf(function() {
- innerValue.value = val;
- });
- }
- var _useValueTexts = useValueTexts(innerValue, {
- formatList,
- generateConfig: generateConfig2,
- locale: locale4
- }), _useValueTexts2 = _slicedToArray(_useValueTexts, 2), firstText = _useValueTexts2[1];
- function onEnter(date4) {
- setValue2(date4);
- }
- function onLeave() {
- var immediately = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
- setValue2(null, immediately);
- }
- watch(valueText, function() {
- onLeave(true);
- });
- onBeforeUnmount(function() {
- wrapperRaf.cancel(rafId);
- });
- return [firstText, onEnter, onLeave];
- }
- // node_modules/ant-design-vue/es/vc-picker/utils/warnUtil.js
- function legacyPropsWarning(props5) {
- var picker = props5.picker, disabledHours = props5.disabledHours, disabledMinutes = props5.disabledMinutes, disabledSeconds = props5.disabledSeconds;
- if (picker === "time" && (disabledHours || disabledMinutes || disabledSeconds)) {
- warning(false, "'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.");
- }
- }
- // node_modules/ant-design-vue/es/vc-picker/Picker.js
- function Picker() {
- return defineComponent({
- name: "Picker",
- inheritAttrs: false,
- props: ["prefixCls", "id", "tabindex", "dropdownClassName", "dropdownAlign", "popupStyle", "transitionName", "generateConfig", "locale", "inputReadOnly", "allowClear", "autofocus", "showTime", "showNow", "showHour", "showMinute", "showSecond", "picker", "format", "use12Hours", "value", "defaultValue", "open", "defaultOpen", "defaultOpenValue", "suffixIcon", "clearIcon", "disabled", "disabledDate", "placeholder", "getPopupContainer", "panelRender", "inputRender", "onChange", "onOpenChange", "onFocus", "onBlur", "onMousedown", "onMouseup", "onMouseenter", "onMouseleave", "onContextmenu", "onClick", "onKeydown", "onSelect", "direction", "autocomplete", "showToday", "renderExtraFooter", "dateRender", "minuteStep", "hourStep", "secondStep", "hideDisabledOptions"],
- // slots: [
- // 'suffixIcon',
- // 'clearIcon',
- // 'prevIcon',
- // 'nextIcon',
- // 'superPrevIcon',
- // 'superNextIcon',
- // 'panelRender',
- // ],
- setup: function setup220(props5, _ref) {
- var attrs = _ref.attrs, expose = _ref.expose;
- var inputRef = ref(null);
- var picker = computed(function() {
- var _props$picker;
- return (_props$picker = props5.picker) !== null && _props$picker !== void 0 ? _props$picker : "date";
- });
- var needConfirmButton = computed(function() {
- return picker.value === "date" && !!props5.showTime || picker.value === "time";
- });
- if (true) {
- legacyPropsWarning(props5);
- }
- var formatList = computed(function() {
- return toArray2(getDefaultFormat(props5.format, picker.value, props5.showTime, props5.use12Hours));
- });
- var panelDivRef = ref(null);
- var inputDivRef = ref(null);
- var containerRef = ref(null);
- var _useMergedState = useMergedState(null, {
- value: toRef(props5, "value"),
- defaultValue: props5.defaultValue
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedValue = _useMergedState2[0], setInnerValue = _useMergedState2[1];
- var selectedValue = ref(mergedValue.value);
- var setSelectedValue = function setSelectedValue2(val) {
- selectedValue.value = val;
- };
- var operationRef = ref(null);
- var _useMergedState3 = useMergedState(false, {
- value: toRef(props5, "open"),
- defaultValue: props5.defaultOpen,
- postState: function postState(postOpen) {
- return props5.disabled ? false : postOpen;
- },
- onChange: function onChange3(newOpen) {
- if (props5.onOpenChange) {
- props5.onOpenChange(newOpen);
- }
- if (!newOpen && operationRef.value && operationRef.value.onClose) {
- operationRef.value.onClose();
- }
- }
- }), _useMergedState4 = _slicedToArray(_useMergedState3, 2), mergedOpen = _useMergedState4[0], triggerInnerOpen = _useMergedState4[1];
- var _useValueTexts = useValueTexts(selectedValue, {
- formatList,
- generateConfig: toRef(props5, "generateConfig"),
- locale: toRef(props5, "locale")
- }), _useValueTexts2 = _slicedToArray(_useValueTexts, 2), valueTexts = _useValueTexts2[0], firstValueText = _useValueTexts2[1];
- var _useTextValueMapping = useTextValueMapping({
- valueTexts,
- onTextChange: function onTextChange(newText) {
- var inputDate = parseValue(newText, {
- locale: props5.locale,
- formatList: formatList.value,
- generateConfig: props5.generateConfig
- });
- if (inputDate && (!props5.disabledDate || !props5.disabledDate(inputDate))) {
- setSelectedValue(inputDate);
- }
- }
- }), _useTextValueMapping2 = _slicedToArray(_useTextValueMapping, 3), text = _useTextValueMapping2[0], triggerTextChange = _useTextValueMapping2[1], resetText = _useTextValueMapping2[2];
- var triggerChange = function triggerChange2(newValue) {
- var onChange3 = props5.onChange, generateConfig2 = props5.generateConfig, locale4 = props5.locale;
- setSelectedValue(newValue);
- setInnerValue(newValue);
- if (onChange3 && !isEqual2(generateConfig2, mergedValue.value, newValue)) {
- onChange3(newValue, newValue ? formatValue(newValue, {
- generateConfig: generateConfig2,
- locale: locale4,
- format: formatList.value[0]
- }) : "");
- }
- };
- var triggerOpen = function triggerOpen2(newOpen) {
- if (props5.disabled && newOpen) {
- return;
- }
- triggerInnerOpen(newOpen);
- };
- var forwardKeydown = function forwardKeydown2(e3) {
- if (mergedOpen.value && operationRef.value && operationRef.value.onKeydown) {
- return operationRef.value.onKeydown(e3);
- }
- {
- warning(false, "Picker not correct forward Keydown operation. Please help to fire issue about this.");
- return false;
- }
- };
- var onInternalMouseup = function onInternalMouseup2() {
- if (props5.onMouseup) {
- props5.onMouseup.apply(props5, arguments);
- }
- if (inputRef.value) {
- inputRef.value.focus();
- triggerOpen(true);
- }
- };
- var _usePickerInput = usePickerInput({
- blurToCancel: needConfirmButton,
- open: mergedOpen,
- value: text,
- triggerOpen,
- forwardKeydown,
- isClickOutside: function isClickOutside(target) {
- return !elementsContains([panelDivRef.value, inputDivRef.value, containerRef.value], target);
- },
- onSubmit: function onSubmit() {
- if (
- // When user typing disabledDate with keyboard and enter, this value will be empty
- !selectedValue.value || // Normal disabled check
- props5.disabledDate && props5.disabledDate(selectedValue.value)
- ) {
- return false;
- }
- triggerChange(selectedValue.value);
- triggerOpen(false);
- resetText();
- return true;
- },
- onCancel: function onCancel() {
- triggerOpen(false);
- setSelectedValue(mergedValue.value);
- resetText();
- },
- onKeydown: function onKeydown(e3, preventDefault) {
- var _props$onKeydown;
- (_props$onKeydown = props5.onKeydown) === null || _props$onKeydown === void 0 ? void 0 : _props$onKeydown.call(props5, e3, preventDefault);
- },
- onFocus: function onFocus2(e3) {
- var _props$onFocus;
- (_props$onFocus = props5.onFocus) === null || _props$onFocus === void 0 ? void 0 : _props$onFocus.call(props5, e3);
- },
- onBlur: function onBlur2(e3) {
- var _props$onBlur;
- (_props$onBlur = props5.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props5, e3);
- }
- }), _usePickerInput2 = _slicedToArray(_usePickerInput, 2), inputProps4 = _usePickerInput2[0], _usePickerInput2$ = _usePickerInput2[1], focused = _usePickerInput2$.focused, typing = _usePickerInput2$.typing;
- watch([mergedOpen, valueTexts], function() {
- if (!mergedOpen.value) {
- setSelectedValue(mergedValue.value);
- if (!valueTexts.value.length || valueTexts.value[0] === "") {
- triggerTextChange("");
- } else if (firstValueText.value !== text.value) {
- resetText();
- }
- }
- });
- watch(picker, function() {
- if (!mergedOpen.value) {
- resetText();
- }
- });
- watch(mergedValue, function() {
- setSelectedValue(mergedValue.value);
- });
- var _useHoverValue = useHoverValue(text, {
- formatList,
- generateConfig: toRef(props5, "generateConfig"),
- locale: toRef(props5, "locale")
- }), _useHoverValue2 = _slicedToArray(_useHoverValue, 3), hoverValue = _useHoverValue2[0], onEnter = _useHoverValue2[1], onLeave = _useHoverValue2[2];
- var onContextSelect = function onContextSelect2(date4, type4) {
- if (type4 === "submit" || type4 !== "key" && !needConfirmButton.value) {
- triggerChange(date4);
- triggerOpen(false);
- }
- };
- useProvidePanel({
- operationRef,
- hideHeader: computed(function() {
- return picker.value === "time";
- }),
- panelRef: panelDivRef,
- onSelect: onContextSelect,
- open: mergedOpen,
- defaultOpenValue: toRef(props5, "defaultOpenValue"),
- onDateMouseenter: onEnter,
- onDateMouseleave: onLeave
- });
- expose({
- focus: function focus() {
- if (inputRef.value) {
- inputRef.value.focus();
- }
- },
- blur: function blur() {
- if (inputRef.value) {
- inputRef.value.blur();
- }
- }
- });
- var getPortal = useProviderTrigger();
- return function() {
- var _classNames2;
- var _props$prefixCls = props5.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-picker" : _props$prefixCls, id = props5.id, tabindex = props5.tabindex, dropdownClassName = props5.dropdownClassName, dropdownAlign = props5.dropdownAlign, popupStyle = props5.popupStyle, transitionName2 = props5.transitionName, generateConfig2 = props5.generateConfig, locale4 = props5.locale, inputReadOnly = props5.inputReadOnly, allowClear = props5.allowClear, autofocus = props5.autofocus, _props$picker2 = props5.picker, picker2 = _props$picker2 === void 0 ? "date" : _props$picker2, defaultOpenValue = props5.defaultOpenValue, suffixIcon = props5.suffixIcon, clearIcon = props5.clearIcon, disabled = props5.disabled, placeholder = props5.placeholder, getPopupContainer = props5.getPopupContainer, panelRender = props5.panelRender, onMousedown2 = props5.onMousedown, onMouseenter2 = props5.onMouseenter, onMouseleave2 = props5.onMouseleave, onContextmenu2 = props5.onContextmenu, onClick2 = props5.onClick, _onSelect = props5.onSelect, direction = props5.direction, _props$autocomplete = props5.autocomplete, autocomplete = _props$autocomplete === void 0 ? "off" : _props$autocomplete;
- var panelProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props5), attrs), {}, {
- class: classNames_default(_defineProperty({}, "".concat(prefixCls, "-panel-focused"), !typing.value)),
- style: void 0,
- pickerValue: void 0,
- onPickerValueChange: void 0,
- onChange: null
- });
- var panelNode = createVNode(PickerPanel_default, _objectSpread2(_objectSpread2({}, panelProps), {}, {
- "generateConfig": generateConfig2,
- "value": selectedValue.value,
- "locale": locale4,
- "tabindex": -1,
- "onSelect": function onSelect(date4) {
- _onSelect === null || _onSelect === void 0 ? void 0 : _onSelect(date4);
- setSelectedValue(date4);
- },
- "direction": direction,
- "onPanelChange": function onPanelChange(viewDate, mode) {
- var onPanelChange2 = props5.onPanelChange;
- onLeave(true);
- onPanelChange2 === null || onPanelChange2 === void 0 ? void 0 : onPanelChange2(viewDate, mode);
- }
- }), null);
- if (panelRender) {
- panelNode = panelRender(panelNode);
- }
- var panel = createVNode("div", {
- "class": "".concat(prefixCls, "-panel-container"),
- "onMousedown": function onMousedown3(e3) {
- e3.preventDefault();
- }
- }, [panelNode]);
- var suffixNode;
- if (suffixIcon) {
- suffixNode = createVNode("span", {
- "class": "".concat(prefixCls, "-suffix")
- }, [suffixIcon]);
- }
- var clearNode;
- if (allowClear && mergedValue.value && !disabled) {
- clearNode = createVNode("span", {
- "onMousedown": function onMousedown3(e3) {
- e3.preventDefault();
- e3.stopPropagation();
- },
- "onMouseup": function onMouseup(e3) {
- e3.preventDefault();
- e3.stopPropagation();
- triggerChange(null);
- triggerOpen(false);
- },
- "class": "".concat(prefixCls, "-clear"),
- "role": "button"
- }, [clearIcon || createVNode("span", {
- "class": "".concat(prefixCls, "-clear-btn")
- }, null)]);
- }
- var mergedInputProps = _objectSpread2(_objectSpread2(_objectSpread2({
- id,
- tabindex,
- disabled,
- readonly: inputReadOnly || typeof formatList.value[0] === "function" || !typing.value,
- value: hoverValue.value || text.value,
- onInput: function onInput(e3) {
- triggerTextChange(e3.target.value);
- },
- autofocus,
- placeholder,
- ref: inputRef,
- title: text.value
- }, inputProps4.value), {}, {
- size: getInputSize(picker2, formatList.value[0], generateConfig2)
- }, getDataOrAriaProps(props5)), {}, {
- autocomplete
- });
- var inputNode = props5.inputRender ? props5.inputRender(mergedInputProps) : createVNode("input", mergedInputProps, null);
- if (true) {
- warning(!defaultOpenValue, "`defaultOpenValue` may confuse user for the current value status. Please use `defaultValue` instead.");
- }
- var popupPlacement = direction === "rtl" ? "bottomRight" : "bottomLeft";
- return createVNode(PickerTrigger_default, {
- "visible": mergedOpen.value,
- "popupStyle": popupStyle,
- "prefixCls": prefixCls,
- "dropdownClassName": dropdownClassName,
- "dropdownAlign": dropdownAlign,
- "getPopupContainer": getPopupContainer,
- "transitionName": transitionName2,
- "popupPlacement": popupPlacement,
- "direction": direction
- }, {
- default: function _default9() {
- return [createVNode("div", {
- "ref": containerRef,
- "class": classNames_default(prefixCls, attrs.class, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), focused.value), _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === "rtl"), _classNames2)),
- "style": attrs.style,
- "onMousedown": onMousedown2,
- "onMouseup": onInternalMouseup,
- "onMouseenter": onMouseenter2,
- "onMouseleave": onMouseleave2,
- "onContextmenu": onContextmenu2,
- "onClick": onClick2
- }, [createVNode("div", {
- "class": classNames_default("".concat(prefixCls, "-input"), _defineProperty({}, "".concat(prefixCls, "-input-placeholder"), !!hoverValue.value)),
- "ref": inputDivRef
- }, [inputNode, suffixNode, clearNode]), getPortal()])];
- },
- popupElement: function popupElement() {
- return panel;
- }
- });
- };
- }
- });
- }
- var Picker_default = Picker();
- // node_modules/ant-design-vue/es/vc-picker/hooks/useRangeDisabled.js
- function useRangeDisabled(_ref, openRecordsRef) {
- var picker = _ref.picker, locale4 = _ref.locale, selectedValue = _ref.selectedValue, disabledDate = _ref.disabledDate, disabled = _ref.disabled, generateConfig2 = _ref.generateConfig;
- var startDate = computed(function() {
- return getValue2(selectedValue.value, 0);
- });
- var endDate = computed(function() {
- return getValue2(selectedValue.value, 1);
- });
- function weekFirstDate(date4) {
- return generateConfig2.value.locale.getWeekFirstDate(locale4.value.locale, date4);
- }
- function monthNumber(date4) {
- var year = generateConfig2.value.getYear(date4);
- var month = generateConfig2.value.getMonth(date4);
- return year * 100 + month;
- }
- function quarterNumber(date4) {
- var year = generateConfig2.value.getYear(date4);
- var quarter = getQuarter(generateConfig2.value, date4);
- return year * 10 + quarter;
- }
- var disabledStartDate = function disabledStartDate2(date4) {
- var _disabledDate$value;
- if (disabledDate && disabledDate !== null && disabledDate !== void 0 && (_disabledDate$value = disabledDate.value) !== null && _disabledDate$value !== void 0 && _disabledDate$value.call(disabledDate, date4)) {
- return true;
- }
- if (disabled[1] && endDate) {
- return !isSameDate(generateConfig2.value, date4, endDate.value) && generateConfig2.value.isAfter(date4, endDate.value);
- }
- if (openRecordsRef.value[1] && endDate.value) {
- switch (picker.value) {
- case "quarter":
- return quarterNumber(date4) > quarterNumber(endDate.value);
- case "month":
- return monthNumber(date4) > monthNumber(endDate.value);
- case "week":
- return weekFirstDate(date4) > weekFirstDate(endDate.value);
- default:
- return !isSameDate(generateConfig2.value, date4, endDate.value) && generateConfig2.value.isAfter(date4, endDate.value);
- }
- }
- return false;
- };
- var disabledEndDate = function disabledEndDate2(date4) {
- var _disabledDate$value2;
- if ((_disabledDate$value2 = disabledDate.value) !== null && _disabledDate$value2 !== void 0 && _disabledDate$value2.call(disabledDate, date4)) {
- return true;
- }
- if (disabled[0] && startDate) {
- return !isSameDate(generateConfig2.value, date4, endDate.value) && generateConfig2.value.isAfter(startDate.value, date4);
- }
- if (openRecordsRef.value[0] && startDate.value) {
- switch (picker.value) {
- case "quarter":
- return quarterNumber(date4) < quarterNumber(startDate.value);
- case "month":
- return monthNumber(date4) < monthNumber(startDate.value);
- case "week":
- return weekFirstDate(date4) < weekFirstDate(startDate.value);
- default:
- return !isSameDate(generateConfig2.value, date4, startDate.value) && generateConfig2.value.isAfter(startDate.value, date4);
- }
- }
- return false;
- };
- return [disabledStartDate, disabledEndDate];
- }
- // node_modules/ant-design-vue/es/vc-picker/hooks/useRangeViewDates.js
- function getStartEndDistance(startDate, endDate, picker, generateConfig2) {
- var startNext = getClosingViewDate(startDate, picker, generateConfig2, 1);
- function getDistance(compareFunc) {
- if (compareFunc(startDate, endDate)) {
- return "same";
- }
- if (compareFunc(startNext, endDate)) {
- return "closing";
- }
- return "far";
- }
- switch (picker) {
- case "year":
- return getDistance(function(start, end) {
- return isSameDecade(generateConfig2, start, end);
- });
- case "quarter":
- case "month":
- return getDistance(function(start, end) {
- return isSameYear(generateConfig2, start, end);
- });
- default:
- return getDistance(function(start, end) {
- return isSameMonth(generateConfig2, start, end);
- });
- }
- }
- function getRangeViewDate(values, index3, picker, generateConfig2) {
- var startDate = getValue2(values, 0);
- var endDate = getValue2(values, 1);
- if (index3 === 0) {
- return startDate;
- }
- if (startDate && endDate) {
- var distance = getStartEndDistance(startDate, endDate, picker, generateConfig2);
- switch (distance) {
- case "same":
- return startDate;
- case "closing":
- return startDate;
- default:
- return getClosingViewDate(endDate, picker, generateConfig2, -1);
- }
- }
- return startDate;
- }
- function useRangeViewDates(_ref) {
- var values = _ref.values, picker = _ref.picker, defaultDates = _ref.defaultDates, generateConfig2 = _ref.generateConfig;
- var defaultViewDates = ref([getValue2(defaultDates, 0), getValue2(defaultDates, 1)]);
- var viewDates = ref(null);
- var startDate = computed(function() {
- return getValue2(values.value, 0);
- });
- var endDate = computed(function() {
- return getValue2(values.value, 1);
- });
- var getViewDate = function getViewDate2(index3) {
- if (defaultViewDates.value[index3]) {
- return defaultViewDates.value[index3];
- }
- return getValue2(viewDates.value, index3) || getRangeViewDate(values.value, index3, picker.value, generateConfig2.value) || startDate.value || endDate.value || generateConfig2.value.getNow();
- };
- var startViewDate = ref(null);
- var endViewDate = ref(null);
- watchEffect(function() {
- startViewDate.value = getViewDate(0);
- endViewDate.value = getViewDate(1);
- });
- function setViewDate(viewDate, index3) {
- if (viewDate) {
- var newViewDates = updateValues(viewDates.value, viewDate, index3);
- defaultViewDates.value = updateValues(defaultViewDates.value, null, index3) || [null, null];
- var anotherIndex = (index3 + 1) % 2;
- if (!getValue2(values.value, anotherIndex)) {
- newViewDates = updateValues(newViewDates, viewDate, anotherIndex);
- }
- viewDates.value = newViewDates;
- } else if (startDate.value || endDate.value) {
- viewDates.value = null;
- }
- }
- return [startViewDate, endViewDate, setViewDate];
- }
- // node_modules/ant-design-vue/es/_util/hooks/_vueuse/tryOnScopeDispose.js
- function tryOnScopeDispose(fn) {
- if (getCurrentScope()) {
- onScopeDispose(fn);
- return true;
- }
- return false;
- }
- // node_modules/ant-design-vue/es/_util/hooks/_vueuse/resolveUnref.js
- function resolveUnref(r3) {
- return typeof r3 === "function" ? r3() : unref(r3);
- }
- // node_modules/ant-design-vue/es/_util/hooks/_vueuse/unrefElement.js
- function unrefElement(elRef) {
- var _plain$$el;
- var plain = resolveUnref(elRef);
- return (_plain$$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _plain$$el !== void 0 ? _plain$$el : plain;
- }
- // node_modules/ant-design-vue/es/_util/hooks/_vueuse/tryOnMounted.js
- function tryOnMounted(fn) {
- var sync = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
- if (getCurrentInstance())
- onMounted(fn);
- else if (sync)
- fn();
- else
- nextTick(fn);
- }
- // node_modules/ant-design-vue/es/_util/hooks/_vueuse/useSupported.js
- function useSupported(callback) {
- var sync = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var isSupported = ref();
- var update = function update2() {
- return isSupported.value = Boolean(callback());
- };
- update();
- tryOnMounted(update, sync);
- return isSupported;
- }
- // node_modules/ant-design-vue/es/_util/hooks/_vueuse/is.js
- var _window;
- var _window$navigator;
- var isClient2 = typeof window !== "undefined";
- var isIOS = isClient2 && ((_window = window) === null || _window === void 0 ? void 0 : (_window$navigator = _window.navigator) === null || _window$navigator === void 0 ? void 0 : _window$navigator.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
- // node_modules/ant-design-vue/es/_util/hooks/_vueuse/_configurable.js
- var defaultWindow = isClient2 ? window : void 0;
- var defaultDocument = isClient2 ? window.document : void 0;
- var defaultNavigator = isClient2 ? window.navigator : void 0;
- var defaultLocation = isClient2 ? window.location : void 0;
- // node_modules/ant-design-vue/es/_util/hooks/_vueuse/useResizeObserver.js
- var _excluded18 = ["window"];
- function useResizeObserver(target, callback) {
- var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
- var _options$window = options.window, window2 = _options$window === void 0 ? defaultWindow : _options$window, observerOptions = _objectWithoutProperties(options, _excluded18);
- var observer;
- var isSupported = useSupported(function() {
- return window2 && "ResizeObserver" in window2;
- });
- var cleanup2 = function cleanup3() {
- if (observer) {
- observer.disconnect();
- observer = void 0;
- }
- };
- var stopWatch = watch(function() {
- return unrefElement(target);
- }, function(el) {
- cleanup2();
- if (isSupported.value && window2 && el) {
- observer = new ResizeObserver(callback);
- observer.observe(el, observerOptions);
- }
- }, {
- immediate: true,
- flush: "post"
- });
- var stop = function stop2() {
- cleanup2();
- stopWatch();
- };
- tryOnScopeDispose(stop);
- return {
- isSupported,
- stop
- };
- }
- // node_modules/ant-design-vue/es/_util/hooks/_vueuse/useElementSize.js
- function useElementSize(target) {
- var initialSize = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
- width: 0,
- height: 0
- };
- var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
- var _options$box = options.box, box = _options$box === void 0 ? "content-box" : _options$box;
- var width = ref(initialSize.width);
- var height = ref(initialSize.height);
- useResizeObserver(target, function(_ref) {
- var _ref2 = _slicedToArray(_ref, 1), entry = _ref2[0];
- var boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;
- if (boxSize) {
- width.value = boxSize.reduce(function(acc, _ref3) {
- var inlineSize = _ref3.inlineSize;
- return acc + inlineSize;
- }, 0);
- height.value = boxSize.reduce(function(acc, _ref4) {
- var blockSize = _ref4.blockSize;
- return acc + blockSize;
- }, 0);
- } else {
- width.value = entry.contentRect.width;
- height.value = entry.contentRect.height;
- }
- }, options);
- watch(function() {
- return unrefElement(target);
- }, function(ele) {
- width.value = ele ? initialSize.width : 0;
- height.value = ele ? initialSize.height : 0;
- });
- return {
- width,
- height
- };
- }
- // node_modules/ant-design-vue/es/vc-picker/RangePicker.js
- function reorderValues(values, generateConfig2) {
- if (values && values[0] && values[1] && generateConfig2.isAfter(values[0], values[1])) {
- return [values[1], values[0]];
- }
- return values;
- }
- function canValueTrigger(value, index3, disabled, allowEmpty) {
- if (value) {
- return true;
- }
- if (allowEmpty && allowEmpty[index3]) {
- return true;
- }
- if (disabled[(index3 + 1) % 2]) {
- return true;
- }
- return false;
- }
- function RangerPicker() {
- return defineComponent({
- name: "RangerPicker",
- inheritAttrs: false,
- props: ["prefixCls", "id", "popupStyle", "dropdownClassName", "transitionName", "dropdownAlign", "getPopupContainer", "generateConfig", "locale", "placeholder", "autofocus", "disabled", "format", "picker", "showTime", "showNow", "showHour", "showMinute", "showSecond", "use12Hours", "separator", "value", "defaultValue", "defaultPickerValue", "open", "defaultOpen", "disabledDate", "disabledTime", "dateRender", "panelRender", "ranges", "allowEmpty", "allowClear", "suffixIcon", "clearIcon", "pickerRef", "inputReadOnly", "mode", "renderExtraFooter", "onChange", "onOpenChange", "onPanelChange", "onCalendarChange", "onFocus", "onBlur", "onMousedown", "onMouseup", "onMouseenter", "onMouseleave", "onClick", "onOk", "onKeydown", "components", "order", "direction", "activePickerIndex", "autocomplete", "minuteStep", "hourStep", "secondStep", "hideDisabledOptions", "disabledMinutes"],
- setup: function setup220(props5, _ref) {
- var attrs = _ref.attrs, expose = _ref.expose;
- var needConfirmButton = computed(function() {
- return props5.picker === "date" && !!props5.showTime || props5.picker === "time";
- });
- var getPortal = useProviderTrigger();
- var openRecordsRef = ref({});
- var containerRef = ref(null);
- var panelDivRef = ref(null);
- var startInputDivRef = ref(null);
- var endInputDivRef = ref(null);
- var separatorRef = ref(null);
- var startInputRef = ref(null);
- var endInputRef = ref(null);
- var arrowRef = ref(null);
- if (true) {
- legacyPropsWarning(props5);
- }
- var formatList = computed(function() {
- return toArray2(getDefaultFormat(props5.format, props5.picker, props5.showTime, props5.use12Hours));
- });
- var _useMergedState = useMergedState(0, {
- value: toRef(props5, "activePickerIndex")
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedActivePickerIndex = _useMergedState2[0], setMergedActivePickerIndex = _useMergedState2[1];
- var operationRef = ref(null);
- var mergedDisabled = computed(function() {
- var disabled = props5.disabled;
- if (Array.isArray(disabled)) {
- return disabled;
- }
- return [disabled || false, disabled || false];
- });
- var _useMergedState3 = useMergedState(null, {
- value: toRef(props5, "value"),
- defaultValue: props5.defaultValue,
- postState: function postState(values) {
- return props5.picker === "time" && !props5.order ? values : reorderValues(values, props5.generateConfig);
- }
- }), _useMergedState4 = _slicedToArray(_useMergedState3, 2), mergedValue = _useMergedState4[0], setInnerValue = _useMergedState4[1];
- var _useRangeViewDates = useRangeViewDates({
- values: mergedValue,
- picker: toRef(props5, "picker"),
- defaultDates: props5.defaultPickerValue,
- generateConfig: toRef(props5, "generateConfig")
- }), _useRangeViewDates2 = _slicedToArray(_useRangeViewDates, 3), startViewDate = _useRangeViewDates2[0], endViewDate = _useRangeViewDates2[1], setViewDate = _useRangeViewDates2[2];
- var _useMergedState5 = useMergedState(mergedValue.value, {
- postState: function postState(values) {
- var postValues = values;
- if (mergedDisabled.value[0] && mergedDisabled.value[1]) {
- return postValues;
- }
- for (var i3 = 0; i3 < 2; i3 += 1) {
- if (mergedDisabled.value[i3] && !getValue2(postValues, i3) && !getValue2(props5.allowEmpty, i3)) {
- postValues = updateValues(postValues, props5.generateConfig.getNow(), i3);
- }
- }
- return postValues;
- }
- }), _useMergedState6 = _slicedToArray(_useMergedState5, 2), selectedValue = _useMergedState6[0], setSelectedValue = _useMergedState6[1];
- var _useMergedState7 = useMergedState([props5.picker, props5.picker], {
- value: toRef(props5, "mode")
- }), _useMergedState8 = _slicedToArray(_useMergedState7, 2), mergedModes = _useMergedState8[0], setInnerModes = _useMergedState8[1];
- watch(function() {
- return props5.picker;
- }, function() {
- setInnerModes([props5.picker, props5.picker]);
- });
- var triggerModesChange = function triggerModesChange2(modes, values) {
- var _props$onPanelChange;
- setInnerModes(modes);
- (_props$onPanelChange = props5.onPanelChange) === null || _props$onPanelChange === void 0 ? void 0 : _props$onPanelChange.call(props5, values, modes);
- };
- var _useRangeDisabled = useRangeDisabled({
- picker: toRef(props5, "picker"),
- selectedValue,
- locale: toRef(props5, "locale"),
- disabled: mergedDisabled,
- disabledDate: toRef(props5, "disabledDate"),
- generateConfig: toRef(props5, "generateConfig")
- }, openRecordsRef), _useRangeDisabled2 = _slicedToArray(_useRangeDisabled, 2), disabledStartDate = _useRangeDisabled2[0], disabledEndDate = _useRangeDisabled2[1];
- var _useMergedState9 = useMergedState(false, {
- value: toRef(props5, "open"),
- defaultValue: props5.defaultOpen,
- postState: function postState(postOpen) {
- return mergedDisabled.value[mergedActivePickerIndex.value] ? false : postOpen;
- },
- onChange: function onChange3(newOpen) {
- var _props$onOpenChange;
- (_props$onOpenChange = props5.onOpenChange) === null || _props$onOpenChange === void 0 ? void 0 : _props$onOpenChange.call(props5, newOpen);
- if (!newOpen && operationRef.value && operationRef.value.onClose) {
- operationRef.value.onClose();
- }
- }
- }), _useMergedState10 = _slicedToArray(_useMergedState9, 2), mergedOpen = _useMergedState10[0], triggerInnerOpen = _useMergedState10[1];
- var startOpen = computed(function() {
- return mergedOpen.value && mergedActivePickerIndex.value === 0;
- });
- var endOpen = computed(function() {
- return mergedOpen.value && mergedActivePickerIndex.value === 1;
- });
- var panelLeft = ref(0);
- var arrowLeft = ref(0);
- var popupMinWidth = ref(0);
- var _useElementSize = useElementSize(containerRef), containerWidth = _useElementSize.width;
- watch([mergedOpen, containerWidth], function() {
- if (!mergedOpen.value && containerRef.value) {
- popupMinWidth.value = containerWidth.value;
- }
- });
- var _useElementSize2 = useElementSize(panelDivRef), panelDivWidth = _useElementSize2.width;
- var _useElementSize3 = useElementSize(arrowRef), arrowWidth = _useElementSize3.width;
- var _useElementSize4 = useElementSize(startInputDivRef), startInputDivWidth = _useElementSize4.width;
- var _useElementSize5 = useElementSize(separatorRef), separatorWidth = _useElementSize5.width;
- watch([mergedActivePickerIndex, mergedOpen, panelDivWidth, arrowWidth, startInputDivWidth, separatorWidth, function() {
- return props5.direction;
- }], function() {
- arrowLeft.value = 0;
- if (mergedOpen.value && mergedActivePickerIndex.value) {
- if (startInputDivRef.value && separatorRef.value && panelDivRef.value) {
- arrowLeft.value = startInputDivWidth.value + separatorWidth.value;
- if (panelDivWidth.value && arrowWidth.value && arrowLeft.value > panelDivWidth.value - arrowWidth.value - (props5.direction === "rtl" || arrowRef.value.offsetLeft > arrowLeft.value ? 0 : arrowRef.value.offsetLeft)) {
- panelLeft.value = arrowLeft.value;
- }
- }
- } else if (mergedActivePickerIndex.value === 0) {
- panelLeft.value = 0;
- }
- }, {
- immediate: true
- });
- var triggerRef = ref();
- function _triggerOpen(newOpen, index3) {
- if (newOpen) {
- clearTimeout(triggerRef.value);
- openRecordsRef.value[index3] = true;
- setMergedActivePickerIndex(index3);
- triggerInnerOpen(newOpen);
- if (!mergedOpen.value) {
- setViewDate(null, index3);
- }
- } else if (mergedActivePickerIndex.value === index3) {
- triggerInnerOpen(newOpen);
- var openRecords = openRecordsRef.value;
- triggerRef.value = setTimeout(function() {
- if (openRecords === openRecordsRef.value) {
- openRecordsRef.value = {};
- }
- });
- }
- }
- function triggerOpenAndFocus(index3) {
- _triggerOpen(true, index3);
- setTimeout(function() {
- var inputRef = [startInputRef, endInputRef][index3];
- if (inputRef.value) {
- inputRef.value.focus();
- }
- }, 0);
- }
- function triggerChange(newValue, sourceIndex) {
- var values = newValue;
- var startValue = getValue2(values, 0);
- var endValue = getValue2(values, 1);
- var generateConfig2 = props5.generateConfig, locale4 = props5.locale, picker = props5.picker, order = props5.order, onCalendarChange = props5.onCalendarChange, allowEmpty = props5.allowEmpty, onChange3 = props5.onChange, showTime = props5.showTime;
- if (startValue && endValue && generateConfig2.isAfter(startValue, endValue)) {
- if (
- // WeekPicker only compare week
- picker === "week" && !isSameWeek(generateConfig2, locale4.locale, startValue, endValue) || // QuotaPicker only compare week
- picker === "quarter" && !isSameQuarter(generateConfig2, startValue, endValue) || // Other non-TimePicker compare date
- picker !== "week" && picker !== "quarter" && picker !== "time" && !(showTime ? isEqual2(generateConfig2, startValue, endValue) : isSameDate(generateConfig2, startValue, endValue))
- ) {
- if (sourceIndex === 0) {
- values = [startValue, null];
- endValue = null;
- } else {
- startValue = null;
- values = [null, endValue];
- }
- openRecordsRef.value = _defineProperty({}, sourceIndex, true);
- } else if (picker !== "time" || order !== false) {
- values = reorderValues(values, generateConfig2);
- }
- }
- setSelectedValue(values);
- var startStr2 = values && values[0] ? formatValue(values[0], {
- generateConfig: generateConfig2,
- locale: locale4,
- format: formatList.value[0]
- }) : "";
- var endStr2 = values && values[1] ? formatValue(values[1], {
- generateConfig: generateConfig2,
- locale: locale4,
- format: formatList.value[0]
- }) : "";
- if (onCalendarChange) {
- var info = {
- range: sourceIndex === 0 ? "start" : "end"
- };
- onCalendarChange(values, [startStr2, endStr2], info);
- }
- var canStartValueTrigger = canValueTrigger(startValue, 0, mergedDisabled.value, allowEmpty);
- var canEndValueTrigger = canValueTrigger(endValue, 1, mergedDisabled.value, allowEmpty);
- var canTrigger = values === null || canStartValueTrigger && canEndValueTrigger;
- if (canTrigger) {
- setInnerValue(values);
- if (onChange3 && (!isEqual2(generateConfig2, getValue2(mergedValue.value, 0), startValue) || !isEqual2(generateConfig2, getValue2(mergedValue.value, 1), endValue))) {
- onChange3(values, [startStr2, endStr2]);
- }
- }
- var nextOpenIndex = null;
- if (sourceIndex === 0 && !mergedDisabled.value[1]) {
- nextOpenIndex = 1;
- } else if (sourceIndex === 1 && !mergedDisabled.value[0]) {
- nextOpenIndex = 0;
- }
- if (nextOpenIndex !== null && nextOpenIndex !== mergedActivePickerIndex.value && (!openRecordsRef.value[nextOpenIndex] || !getValue2(values, nextOpenIndex)) && getValue2(values, sourceIndex)) {
- triggerOpenAndFocus(nextOpenIndex);
- } else {
- _triggerOpen(false, sourceIndex);
- }
- }
- var forwardKeydown = function forwardKeydown2(e3) {
- if (mergedOpen && operationRef.value && operationRef.value.onKeydown) {
- return operationRef.value.onKeydown(e3);
- }
- {
- warning(false, "Picker not correct forward Keydown operation. Please help to fire issue about this.");
- return false;
- }
- };
- var sharedTextHooksProps = {
- formatList,
- generateConfig: toRef(props5, "generateConfig"),
- locale: toRef(props5, "locale")
- };
- var _useValueTexts = useValueTexts(computed(function() {
- return getValue2(selectedValue.value, 0);
- }), sharedTextHooksProps), _useValueTexts2 = _slicedToArray(_useValueTexts, 2), startValueTexts = _useValueTexts2[0], firstStartValueText = _useValueTexts2[1];
- var _useValueTexts3 = useValueTexts(computed(function() {
- return getValue2(selectedValue.value, 1);
- }), sharedTextHooksProps), _useValueTexts4 = _slicedToArray(_useValueTexts3, 2), endValueTexts = _useValueTexts4[0], firstEndValueText = _useValueTexts4[1];
- var _onTextChange = function onTextChange(newText, index3) {
- var inputDate = parseValue(newText, {
- locale: props5.locale,
- formatList: formatList.value,
- generateConfig: props5.generateConfig
- });
- var disabledFunc = index3 === 0 ? disabledStartDate : disabledEndDate;
- if (inputDate && !disabledFunc(inputDate)) {
- setSelectedValue(updateValues(selectedValue.value, inputDate, index3));
- setViewDate(inputDate, index3);
- }
- };
- var _useTextValueMapping = useTextValueMapping({
- valueTexts: startValueTexts,
- onTextChange: function onTextChange(newText) {
- return _onTextChange(newText, 0);
- }
- }), _useTextValueMapping2 = _slicedToArray(_useTextValueMapping, 3), startText = _useTextValueMapping2[0], triggerStartTextChange = _useTextValueMapping2[1], resetStartText = _useTextValueMapping2[2];
- var _useTextValueMapping3 = useTextValueMapping({
- valueTexts: endValueTexts,
- onTextChange: function onTextChange(newText) {
- return _onTextChange(newText, 1);
- }
- }), _useTextValueMapping4 = _slicedToArray(_useTextValueMapping3, 3), endText = _useTextValueMapping4[0], triggerEndTextChange = _useTextValueMapping4[1], resetEndText = _useTextValueMapping4[2];
- var _useState = useState(null), _useState2 = _slicedToArray(_useState, 2), rangeHoverValue = _useState2[0], setRangeHoverValue = _useState2[1];
- var _useState3 = useState(null), _useState4 = _slicedToArray(_useState3, 2), hoverRangedValue = _useState4[0], setHoverRangedValue = _useState4[1];
- var _useHoverValue = useHoverValue(startText, sharedTextHooksProps), _useHoverValue2 = _slicedToArray(_useHoverValue, 3), startHoverValue = _useHoverValue2[0], onStartEnter = _useHoverValue2[1], onStartLeave = _useHoverValue2[2];
- var _useHoverValue3 = useHoverValue(endText, sharedTextHooksProps), _useHoverValue4 = _slicedToArray(_useHoverValue3, 3), endHoverValue = _useHoverValue4[0], onEndEnter = _useHoverValue4[1], onEndLeave = _useHoverValue4[2];
- var onDateMouseenter = function onDateMouseenter2(date4) {
- setHoverRangedValue(updateValues(selectedValue.value, date4, mergedActivePickerIndex.value));
- if (mergedActivePickerIndex.value === 0) {
- onStartEnter(date4);
- } else {
- onEndEnter(date4);
- }
- };
- var onDateMouseleave = function onDateMouseleave2() {
- setHoverRangedValue(updateValues(selectedValue.value, null, mergedActivePickerIndex.value));
- if (mergedActivePickerIndex.value === 0) {
- onStartLeave();
- } else {
- onEndLeave();
- }
- };
- var getSharedInputHookProps = function getSharedInputHookProps2(index3, resetText) {
- return {
- forwardKeydown,
- onBlur: function onBlur2(e3) {
- var _props$onBlur;
- (_props$onBlur = props5.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props5, e3);
- },
- isClickOutside: function isClickOutside(target) {
- return !elementsContains([panelDivRef.value, startInputDivRef.value, endInputDivRef.value, containerRef.value], target);
- },
- onFocus: function onFocus2(e3) {
- var _props$onFocus;
- setMergedActivePickerIndex(index3);
- (_props$onFocus = props5.onFocus) === null || _props$onFocus === void 0 ? void 0 : _props$onFocus.call(props5, e3);
- },
- triggerOpen: function triggerOpen(newOpen) {
- _triggerOpen(newOpen, index3);
- },
- onSubmit: function onSubmit() {
- if (
- // When user typing disabledDate with keyboard and enter, this value will be empty
- !selectedValue.value || // Normal disabled check
- props5.disabledDate && props5.disabledDate(selectedValue.value[index3])
- ) {
- return false;
- }
- triggerChange(selectedValue.value, index3);
- resetText();
- },
- onCancel: function onCancel() {
- _triggerOpen(false, index3);
- setSelectedValue(mergedValue.value);
- resetText();
- }
- };
- };
- var _usePickerInput = usePickerInput(_objectSpread2(_objectSpread2({}, getSharedInputHookProps(0, resetStartText)), {}, {
- blurToCancel: needConfirmButton,
- open: startOpen,
- value: startText,
- onKeydown: function onKeydown(e3, preventDefault) {
- var _props$onKeydown;
- (_props$onKeydown = props5.onKeydown) === null || _props$onKeydown === void 0 ? void 0 : _props$onKeydown.call(props5, e3, preventDefault);
- }
- })), _usePickerInput2 = _slicedToArray(_usePickerInput, 2), startInputProps = _usePickerInput2[0], _usePickerInput2$ = _usePickerInput2[1], startFocused = _usePickerInput2$.focused, startTyping = _usePickerInput2$.typing;
- var _usePickerInput3 = usePickerInput(_objectSpread2(_objectSpread2({}, getSharedInputHookProps(1, resetEndText)), {}, {
- blurToCancel: needConfirmButton,
- open: endOpen,
- value: endText,
- onKeydown: function onKeydown(e3, preventDefault) {
- var _props$onKeydown2;
- (_props$onKeydown2 = props5.onKeydown) === null || _props$onKeydown2 === void 0 ? void 0 : _props$onKeydown2.call(props5, e3, preventDefault);
- }
- })), _usePickerInput4 = _slicedToArray(_usePickerInput3, 2), endInputProps = _usePickerInput4[0], _usePickerInput4$ = _usePickerInput4[1], endFocused = _usePickerInput4$.focused, endTyping = _usePickerInput4$.typing;
- var onPickerClick = function onPickerClick2(e3) {
- var _props$onClick;
- (_props$onClick = props5.onClick) === null || _props$onClick === void 0 ? void 0 : _props$onClick.call(props5, e3);
- if (!mergedOpen.value && !startInputRef.value.contains(e3.target) && !endInputRef.value.contains(e3.target)) {
- if (!mergedDisabled.value[0]) {
- triggerOpenAndFocus(0);
- } else if (!mergedDisabled.value[1]) {
- triggerOpenAndFocus(1);
- }
- }
- };
- var onPickerMousedown = function onPickerMousedown2(e3) {
- var _props$onMousedown;
- (_props$onMousedown = props5.onMousedown) === null || _props$onMousedown === void 0 ? void 0 : _props$onMousedown.call(props5, e3);
- if (mergedOpen.value && (startFocused.value || endFocused.value) && !startInputRef.value.contains(e3.target) && !endInputRef.value.contains(e3.target)) {
- e3.preventDefault();
- }
- };
- var startStr = computed(function() {
- var _mergedValue$value;
- return (_mergedValue$value = mergedValue.value) !== null && _mergedValue$value !== void 0 && _mergedValue$value[0] ? formatValue(mergedValue.value[0], {
- locale: props5.locale,
- format: "YYYYMMDDHHmmss",
- generateConfig: props5.generateConfig
- }) : "";
- });
- var endStr = computed(function() {
- var _mergedValue$value2;
- return (_mergedValue$value2 = mergedValue.value) !== null && _mergedValue$value2 !== void 0 && _mergedValue$value2[1] ? formatValue(mergedValue.value[1], {
- locale: props5.locale,
- format: "YYYYMMDDHHmmss",
- generateConfig: props5.generateConfig
- }) : "";
- });
- watch([mergedOpen, startValueTexts, endValueTexts], function() {
- if (!mergedOpen.value) {
- setSelectedValue(mergedValue.value);
- if (!startValueTexts.value.length || startValueTexts.value[0] === "") {
- triggerStartTextChange("");
- } else if (firstStartValueText.value !== startText.value) {
- resetStartText();
- }
- if (!endValueTexts.value.length || endValueTexts.value[0] === "") {
- triggerEndTextChange("");
- } else if (firstEndValueText.value !== endText.value) {
- resetEndText();
- }
- }
- });
- watch([startStr, endStr], function() {
- setSelectedValue(mergedValue.value);
- });
- if (true) {
- watchEffect(function() {
- var value = props5.value, disabled = props5.disabled;
- if (value && Array.isArray(disabled) && (getValue2(disabled, 0) && !getValue2(value, 0) || getValue2(disabled, 1) && !getValue2(value, 1))) {
- warning(false, "`disabled` should not set with empty `value`. You should set `allowEmpty` or `value` instead.");
- }
- });
- }
- expose({
- focus: function focus() {
- if (startInputRef.value) {
- startInputRef.value.focus();
- }
- },
- blur: function blur() {
- if (startInputRef.value) {
- startInputRef.value.blur();
- }
- if (endInputRef.value) {
- endInputRef.value.blur();
- }
- }
- });
- var rangeList = computed(function() {
- return Object.keys(props5.ranges || {}).map(function(label) {
- var range3 = props5.ranges[label];
- var newValues = typeof range3 === "function" ? range3() : range3;
- return {
- label,
- onClick: function onClick2() {
- triggerChange(newValues, null);
- _triggerOpen(false, mergedActivePickerIndex.value);
- },
- onMouseenter: function onMouseenter2() {
- setRangeHoverValue(newValues);
- },
- onMouseleave: function onMouseleave2() {
- setRangeHoverValue(null);
- }
- };
- });
- });
- var panelHoverRangedValue = computed(function() {
- if (mergedOpen.value && hoverRangedValue.value && hoverRangedValue.value[0] && hoverRangedValue.value[1] && props5.generateConfig.isAfter(hoverRangedValue.value[1], hoverRangedValue.value[0])) {
- return hoverRangedValue.value;
- } else {
- return null;
- }
- });
- function renderPanel() {
- var panelPosition = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
- var panelProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var generateConfig2 = props5.generateConfig, showTime = props5.showTime, dateRender = props5.dateRender, direction = props5.direction, _disabledTime = props5.disabledTime, prefixCls = props5.prefixCls, locale4 = props5.locale;
- var panelShowTime = showTime;
- if (showTime && _typeof(showTime) === "object" && showTime.defaultValue) {
- var timeDefaultValues = showTime.defaultValue;
- panelShowTime = _objectSpread2(_objectSpread2({}, showTime), {}, {
- defaultValue: getValue2(timeDefaultValues, mergedActivePickerIndex.value) || void 0
- });
- }
- var panelDateRender = null;
- if (dateRender) {
- panelDateRender = function panelDateRender2(_ref2) {
- var date4 = _ref2.current, today = _ref2.today;
- return dateRender({
- current: date4,
- today,
- info: {
- range: mergedActivePickerIndex.value ? "end" : "start"
- }
- });
- };
- }
- return createVNode(RangeContextProvider, {
- "value": {
- inRange: true,
- panelPosition,
- rangedValue: rangeHoverValue.value || selectedValue.value,
- hoverRangedValue: panelHoverRangedValue.value
- }
- }, {
- default: function _default9() {
- return [createVNode(PickerPanel_default, _objectSpread2(_objectSpread2(_objectSpread2({}, props5), panelProps), {}, {
- "dateRender": panelDateRender,
- "showTime": panelShowTime,
- "mode": mergedModes.value[mergedActivePickerIndex.value],
- "generateConfig": generateConfig2,
- "style": void 0,
- "direction": direction,
- "disabledDate": mergedActivePickerIndex.value === 0 ? disabledStartDate : disabledEndDate,
- "disabledTime": function disabledTime(date4) {
- if (_disabledTime) {
- return _disabledTime(date4, mergedActivePickerIndex.value === 0 ? "start" : "end");
- }
- return false;
- },
- "class": classNames_default(_defineProperty({}, "".concat(prefixCls, "-panel-focused"), mergedActivePickerIndex.value === 0 ? !startTyping.value : !endTyping.value)),
- "value": getValue2(selectedValue.value, mergedActivePickerIndex.value),
- "locale": locale4,
- "tabIndex": -1,
- "onPanelChange": function onPanelChange(date4, newMode) {
- if (mergedActivePickerIndex.value === 0) {
- onStartLeave(true);
- }
- if (mergedActivePickerIndex.value === 1) {
- onEndLeave(true);
- }
- triggerModesChange(updateValues(mergedModes.value, newMode, mergedActivePickerIndex.value), updateValues(selectedValue.value, date4, mergedActivePickerIndex.value));
- var viewDate = date4;
- if (panelPosition === "right" && mergedModes.value[mergedActivePickerIndex.value] === newMode) {
- viewDate = getClosingViewDate(viewDate, newMode, generateConfig2, -1);
- }
- setViewDate(viewDate, mergedActivePickerIndex.value);
- },
- "onOk": null,
- "onSelect": void 0,
- "onChange": void 0,
- "defaultValue": mergedActivePickerIndex.value === 0 ? getValue2(selectedValue.value, 1) : getValue2(selectedValue.value, 0)
- }), null)];
- }
- });
- }
- var onContextSelect = function onContextSelect2(date4, type4) {
- var values = updateValues(selectedValue.value, date4, mergedActivePickerIndex.value);
- if (type4 === "submit" || type4 !== "key" && !needConfirmButton.value) {
- triggerChange(values, mergedActivePickerIndex.value);
- if (mergedActivePickerIndex.value === 0) {
- onStartLeave();
- } else {
- onEndLeave();
- }
- } else {
- setSelectedValue(values);
- }
- };
- useProvidePanel({
- operationRef,
- hideHeader: computed(function() {
- return props5.picker === "time";
- }),
- onDateMouseenter,
- onDateMouseleave,
- hideRanges: computed(function() {
- return true;
- }),
- onSelect: onContextSelect,
- open: mergedOpen
- });
- return function() {
- var _classNames2, _classNames3, _classNames4;
- var _props$prefixCls = props5.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-picker" : _props$prefixCls, id = props5.id, popupStyle = props5.popupStyle, dropdownClassName = props5.dropdownClassName, transitionName2 = props5.transitionName, dropdownAlign = props5.dropdownAlign, getPopupContainer = props5.getPopupContainer, generateConfig2 = props5.generateConfig, locale4 = props5.locale, placeholder = props5.placeholder, autofocus = props5.autofocus, _props$picker = props5.picker, picker = _props$picker === void 0 ? "date" : _props$picker, showTime = props5.showTime, _props$separator = props5.separator, separator = _props$separator === void 0 ? "~" : _props$separator, disabledDate = props5.disabledDate, panelRender = props5.panelRender, allowClear = props5.allowClear, suffixIcon = props5.suffixIcon, clearIcon = props5.clearIcon, inputReadOnly = props5.inputReadOnly, renderExtraFooter = props5.renderExtraFooter, onMouseenter2 = props5.onMouseenter, onMouseleave2 = props5.onMouseleave, onMouseup = props5.onMouseup, _onOk = props5.onOk, components = props5.components, direction = props5.direction, _props$autocomplete = props5.autocomplete, autocomplete = _props$autocomplete === void 0 ? "off" : _props$autocomplete;
- var arrowPositionStyle = direction === "rtl" ? {
- right: "".concat(arrowLeft.value, "px")
- } : {
- left: "".concat(arrowLeft.value, "px")
- };
- function renderPanels() {
- var panels;
- var extraNode = getExtraFooter(prefixCls, mergedModes.value[mergedActivePickerIndex.value], renderExtraFooter);
- var rangesNode = getRanges({
- prefixCls,
- components,
- needConfirmButton: needConfirmButton.value,
- okDisabled: !getValue2(selectedValue.value, mergedActivePickerIndex.value) || disabledDate && disabledDate(selectedValue.value[mergedActivePickerIndex.value]),
- locale: locale4,
- rangeList: rangeList.value,
- onOk: function onOk() {
- if (getValue2(selectedValue.value, mergedActivePickerIndex.value)) {
- triggerChange(selectedValue.value, mergedActivePickerIndex.value);
- if (_onOk) {
- _onOk(selectedValue.value);
- }
- }
- }
- });
- if (picker !== "time" && !showTime) {
- var viewDate = mergedActivePickerIndex.value === 0 ? startViewDate.value : endViewDate.value;
- var nextViewDate = getClosingViewDate(viewDate, picker, generateConfig2);
- var currentMode = mergedModes.value[mergedActivePickerIndex.value];
- var showDoublePanel = currentMode === picker;
- var leftPanel = renderPanel(showDoublePanel ? "left" : false, {
- pickerValue: viewDate,
- onPickerValueChange: function onPickerValueChange(newViewDate) {
- setViewDate(newViewDate, mergedActivePickerIndex.value);
- }
- });
- var rightPanel = renderPanel("right", {
- pickerValue: nextViewDate,
- onPickerValueChange: function onPickerValueChange(newViewDate) {
- setViewDate(getClosingViewDate(newViewDate, picker, generateConfig2, -1), mergedActivePickerIndex.value);
- }
- });
- if (direction === "rtl") {
- panels = createVNode(Fragment, null, [rightPanel, showDoublePanel && leftPanel]);
- } else {
- panels = createVNode(Fragment, null, [leftPanel, showDoublePanel && rightPanel]);
- }
- } else {
- panels = renderPanel();
- }
- var mergedNodes = createVNode(Fragment, null, [createVNode("div", {
- "class": "".concat(prefixCls, "-panels")
- }, [panels]), (extraNode || rangesNode) && createVNode("div", {
- "class": "".concat(prefixCls, "-footer")
- }, [extraNode, rangesNode])]);
- if (panelRender) {
- mergedNodes = panelRender(mergedNodes);
- }
- return createVNode("div", {
- "class": "".concat(prefixCls, "-panel-container"),
- "style": {
- marginLeft: "".concat(panelLeft.value, "px")
- },
- "ref": panelDivRef,
- "onMousedown": function onMousedown2(e3) {
- e3.preventDefault();
- }
- }, [mergedNodes]);
- }
- var rangePanel = createVNode("div", {
- "class": classNames_default("".concat(prefixCls, "-range-wrapper"), "".concat(prefixCls, "-").concat(picker, "-range-wrapper")),
- "style": {
- minWidth: "".concat(popupMinWidth.value, "px")
- }
- }, [createVNode("div", {
- "ref": arrowRef,
- "class": "".concat(prefixCls, "-range-arrow"),
- "style": arrowPositionStyle
- }, null), renderPanels()]);
- var suffixNode;
- if (suffixIcon) {
- suffixNode = createVNode("span", {
- "class": "".concat(prefixCls, "-suffix")
- }, [suffixIcon]);
- }
- var clearNode;
- if (allowClear && (getValue2(mergedValue.value, 0) && !mergedDisabled.value[0] || getValue2(mergedValue.value, 1) && !mergedDisabled.value[1])) {
- clearNode = createVNode("span", {
- "onMousedown": function onMousedown2(e3) {
- e3.preventDefault();
- e3.stopPropagation();
- },
- "onMouseup": function onMouseup2(e3) {
- e3.preventDefault();
- e3.stopPropagation();
- var values = mergedValue.value;
- if (!mergedDisabled.value[0]) {
- values = updateValues(values, null, 0);
- }
- if (!mergedDisabled.value[1]) {
- values = updateValues(values, null, 1);
- }
- triggerChange(values, null);
- _triggerOpen(false, mergedActivePickerIndex.value);
- },
- "class": "".concat(prefixCls, "-clear")
- }, [clearIcon || createVNode("span", {
- "class": "".concat(prefixCls, "-clear-btn")
- }, null)]);
- }
- var inputSharedProps = {
- size: getInputSize(picker, formatList.value[0], generateConfig2)
- };
- var activeBarLeft = 0;
- var activeBarWidth = 0;
- if (startInputDivRef.value && endInputDivRef.value && separatorRef.value) {
- if (mergedActivePickerIndex.value === 0) {
- activeBarWidth = startInputDivRef.value.offsetWidth;
- } else {
- activeBarLeft = arrowLeft.value;
- activeBarWidth = endInputDivRef.value.offsetWidth;
- }
- }
- var activeBarPositionStyle = direction === "rtl" ? {
- right: "".concat(activeBarLeft, "px")
- } : {
- left: "".concat(activeBarLeft, "px")
- };
- return createVNode(PickerTrigger_default, {
- "visible": mergedOpen.value,
- "popupStyle": popupStyle,
- "prefixCls": prefixCls,
- "dropdownClassName": dropdownClassName,
- "dropdownAlign": dropdownAlign,
- "getPopupContainer": getPopupContainer,
- "transitionName": transitionName2,
- "range": true,
- "direction": direction
- }, {
- default: function _default9() {
- return [createVNode("div", _objectSpread2({
- "ref": containerRef,
- "class": classNames_default(prefixCls, "".concat(prefixCls, "-range"), attrs.class, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), mergedDisabled.value[0] && mergedDisabled.value[1]), _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mergedActivePickerIndex.value === 0 ? startFocused.value : endFocused.value), _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === "rtl"), _classNames2)),
- "style": attrs.style,
- "onClick": onPickerClick,
- "onMouseenter": onMouseenter2,
- "onMouseleave": onMouseleave2,
- "onMousedown": onPickerMousedown,
- "onMouseup": onMouseup
- }, getDataOrAriaProps(props5)), [createVNode("div", {
- "class": classNames_default("".concat(prefixCls, "-input"), (_classNames3 = {}, _defineProperty(_classNames3, "".concat(prefixCls, "-input-active"), mergedActivePickerIndex.value === 0), _defineProperty(_classNames3, "".concat(prefixCls, "-input-placeholder"), !!startHoverValue.value), _classNames3)),
- "ref": startInputDivRef
- }, [createVNode("input", _objectSpread2(_objectSpread2(_objectSpread2({
- "id": id,
- "disabled": mergedDisabled.value[0],
- "readonly": inputReadOnly || typeof formatList.value[0] === "function" || !startTyping.value,
- "value": startHoverValue.value || startText.value,
- "onInput": function onInput(e3) {
- triggerStartTextChange(e3.target.value);
- },
- "autofocus": autofocus,
- "placeholder": getValue2(placeholder, 0) || "",
- "ref": startInputRef
- }, startInputProps.value), inputSharedProps), {}, {
- "autocomplete": autocomplete
- }), null)]), createVNode("div", {
- "class": "".concat(prefixCls, "-range-separator"),
- "ref": separatorRef
- }, [separator]), createVNode("div", {
- "class": classNames_default("".concat(prefixCls, "-input"), (_classNames4 = {}, _defineProperty(_classNames4, "".concat(prefixCls, "-input-active"), mergedActivePickerIndex.value === 1), _defineProperty(_classNames4, "".concat(prefixCls, "-input-placeholder"), !!endHoverValue.value), _classNames4)),
- "ref": endInputDivRef
- }, [createVNode("input", _objectSpread2(_objectSpread2(_objectSpread2({
- "disabled": mergedDisabled.value[1],
- "readonly": inputReadOnly || typeof formatList.value[0] === "function" || !endTyping.value,
- "value": endHoverValue.value || endText.value,
- "onInput": function onInput(e3) {
- triggerEndTextChange(e3.target.value);
- },
- "placeholder": getValue2(placeholder, 1) || "",
- "ref": endInputRef
- }, endInputProps.value), inputSharedProps), {}, {
- "autocomplete": autocomplete
- }), null)]), createVNode("div", {
- "class": "".concat(prefixCls, "-active-bar"),
- "style": _objectSpread2(_objectSpread2({}, activeBarPositionStyle), {}, {
- width: "".concat(activeBarWidth, "px"),
- position: "absolute"
- })
- }, null), suffixNode, clearNode, getPortal()])];
- },
- popupElement: function popupElement() {
- return rangePanel;
- }
- });
- };
- }
- });
- }
- var InterRangerPicker = RangerPicker();
- var RangePicker_default = InterRangerPicker;
- // node_modules/ant-design-vue/es/vc-picker/index.js
- var vc_picker_default = Picker_default;
- // node_modules/ant-design-vue/es/vc-checkbox/Checkbox.js
- var _excluded19 = ["prefixCls", "name", "id", "type", "disabled", "readonly", "tabindex", "autofocus", "value", "required"];
- var checkboxProps = {
- prefixCls: String,
- name: String,
- id: String,
- type: String,
- defaultChecked: {
- type: [Boolean, Number],
- default: void 0
- },
- checked: {
- type: [Boolean, Number],
- default: void 0
- },
- disabled: Boolean,
- tabindex: {
- type: [Number, String]
- },
- readonly: Boolean,
- autofocus: Boolean,
- value: vue_types_default.any,
- required: Boolean
- };
- var Checkbox_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Checkbox",
- inheritAttrs: false,
- props: initDefaultProps_default(checkboxProps, {
- prefixCls: "rc-checkbox",
- type: "checkbox",
- defaultChecked: false
- }),
- emits: ["click", "change"],
- setup: function setup67(props5, _ref) {
- var attrs = _ref.attrs, emit = _ref.emit, expose = _ref.expose;
- var checked = ref(props5.checked === void 0 ? props5.defaultChecked : props5.checked);
- var inputRef = ref();
- watch(function() {
- return props5.checked;
- }, function() {
- checked.value = props5.checked;
- });
- expose({
- focus: function focus() {
- var _inputRef$value;
- (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
- },
- blur: function blur() {
- var _inputRef$value2;
- (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
- }
- });
- var eventShiftKey = ref();
- var handleChange2 = function handleChange3(e3) {
- if (props5.disabled) {
- return;
- }
- if (props5.checked === void 0) {
- checked.value = e3.target.checked;
- }
- e3.shiftKey = eventShiftKey.value;
- var eventObj = {
- target: _objectSpread2(_objectSpread2({}, props5), {}, {
- checked: e3.target.checked
- }),
- stopPropagation: function stopPropagation() {
- e3.stopPropagation();
- },
- preventDefault: function preventDefault() {
- e3.preventDefault();
- },
- nativeEvent: e3
- };
- if (props5.checked !== void 0) {
- inputRef.value.checked = !!props5.checked;
- }
- emit("change", eventObj);
- eventShiftKey.value = false;
- };
- var onClick2 = function onClick3(e3) {
- emit("click", e3);
- eventShiftKey.value = e3.shiftKey;
- };
- return function() {
- var _classNames;
- var prefixCls = props5.prefixCls, name = props5.name, id = props5.id, type4 = props5.type, disabled = props5.disabled, readonly = props5.readonly, tabindex = props5.tabindex, autofocus = props5.autofocus, value = props5.value, required4 = props5.required, others = _objectWithoutProperties(props5, _excluded19);
- var className = attrs.class, onFocus2 = attrs.onFocus, onBlur2 = attrs.onBlur, onKeydown = attrs.onKeydown, onKeypress = attrs.onKeypress, onKeyup = attrs.onKeyup;
- var othersAndAttrs = _objectSpread2(_objectSpread2({}, others), attrs);
- var globalProps = Object.keys(othersAndAttrs).reduce(function(prev2, key2) {
- if (key2.substr(0, 5) === "aria-" || key2.substr(0, 5) === "data-" || key2 === "role") {
- prev2[key2] = othersAndAttrs[key2];
- }
- return prev2;
- }, {});
- var classString = classNames_default(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-checked"), checked.value), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
- var inputProps4 = _objectSpread2(_objectSpread2({
- name,
- id,
- type: type4,
- readonly,
- disabled,
- tabindex,
- class: "".concat(prefixCls, "-input"),
- checked: !!checked.value,
- autofocus,
- value
- }, globalProps), {}, {
- onChange: handleChange2,
- onClick: onClick2,
- onFocus: onFocus2,
- onBlur: onBlur2,
- onKeydown,
- onKeypress,
- onKeyup,
- required: required4
- });
- return createVNode("span", {
- "class": classString
- }, [createVNode("input", _objectSpread2({
- "ref": inputRef
- }, inputProps4), null), createVNode("span", {
- "class": "".concat(prefixCls, "-inner")
- }, null)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/radio/Radio.js
- var _excluded20 = ["prefixCls", "id"];
- var radioProps = function radioProps2() {
- return {
- prefixCls: String,
- checked: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- isGroup: {
- type: Boolean,
- default: void 0
- },
- value: vue_types_default.any,
- name: String,
- id: String,
- autofocus: {
- type: Boolean,
- default: void 0
- },
- onChange: Function,
- onFocus: Function,
- onBlur: Function,
- onClick: Function,
- "onUpdate:checked": Function,
- "onUpdate:value": Function
- };
- };
- var Radio_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ARadio",
- props: radioProps(),
- // emits: ['update:checked', 'update:value', 'change', 'blur', 'focus'],
- setup: function setup68(props5, _ref) {
- var emit = _ref.emit, expose = _ref.expose, slots = _ref.slots;
- var formItemContext = useInjectFormItemContext();
- var vcCheckbox = ref();
- var radioGroupContext = inject("radioGroupContext", void 0);
- var _useConfigInject = useConfigInject_default("radio", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var focus = function focus2() {
- vcCheckbox.value.focus();
- };
- var blur = function blur2() {
- vcCheckbox.value.blur();
- };
- expose({
- focus,
- blur
- });
- var handleChange2 = function handleChange3(event) {
- var targetChecked = event.target.checked;
- emit("update:checked", targetChecked);
- emit("update:value", targetChecked);
- emit("change", event);
- formItemContext.onFieldChange();
- };
- var onChange3 = function onChange4(e3) {
- emit("change", e3);
- if (radioGroupContext && radioGroupContext.onRadioChange) {
- radioGroupContext.onRadioChange(e3);
- }
- };
- return function() {
- var _classNames;
- var radioGroup = radioGroupContext;
- var customizePrefixCls = props5.prefixCls, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id, restProps = _objectWithoutProperties(props5, _excluded20);
- var rProps = _objectSpread2({
- prefixCls: prefixCls.value,
- id
- }, omit_default(restProps, ["onUpdate:checked", "onUpdate:value"]));
- if (radioGroup) {
- rProps.name = radioGroup.props.name;
- rProps.onChange = onChange3;
- rProps.checked = props5.value === radioGroup.stateValue.value;
- rProps.disabled = props5.disabled || radioGroup.props.disabled;
- } else {
- rProps.onChange = handleChange2;
- }
- var wrapperClassString = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-wrapper"), true), _defineProperty(_classNames, "".concat(prefixCls.value, "-wrapper-checked"), rProps.checked), _defineProperty(_classNames, "".concat(prefixCls.value, "-wrapper-disabled"), rProps.disabled), _defineProperty(_classNames, "".concat(prefixCls.value, "-wrapper-rtl"), direction.value === "rtl"), _classNames));
- return createVNode("label", {
- "class": wrapperClassString
- }, [createVNode(Checkbox_default, _objectSpread2(_objectSpread2({}, rProps), {}, {
- "type": "radio",
- "ref": vcCheckbox
- }), null), slots.default && createVNode("span", null, [slots.default()])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/radio/Group.js
- var RadioGroupSizeTypes = tuple("large", "default", "small");
- var radioGroupProps = function radioGroupProps2() {
- return {
- prefixCls: String,
- value: vue_types_default.any,
- size: vue_types_default.oneOf(RadioGroupSizeTypes),
- options: {
- type: Array
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- name: String,
- buttonStyle: {
- type: String,
- default: "outline"
- },
- id: String,
- optionType: {
- type: String,
- default: "default"
- },
- onChange: Function,
- "onUpdate:value": Function
- };
- };
- var Group_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ARadioGroup",
- props: radioGroupProps(),
- // emits: ['update:value', 'change'],
- setup: function setup69(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit;
- var formItemContext = useInjectFormItemContext();
- var _useConfigInject = useConfigInject_default("radio", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, size = _useConfigInject.size;
- var stateValue = ref(props5.value);
- var updatingValue = ref(false);
- watch(function() {
- return props5.value;
- }, function(val) {
- stateValue.value = val;
- updatingValue.value = false;
- });
- var onRadioChange = function onRadioChange2(ev) {
- var lastValue = stateValue.value;
- var value = ev.target.value;
- if (!("value" in props5)) {
- stateValue.value = value;
- }
- if (!updatingValue.value && value !== lastValue) {
- updatingValue.value = true;
- emit("update:value", value);
- emit("change", ev);
- formItemContext.onFieldChange();
- }
- nextTick(function() {
- updatingValue.value = false;
- });
- };
- provide("radioGroupContext", {
- onRadioChange,
- stateValue,
- props: props5
- });
- return function() {
- var _classNames;
- var options = props5.options, optionType = props5.optionType, buttonStyle = props5.buttonStyle, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id;
- var groupPrefixCls = "".concat(prefixCls.value, "-group");
- var classString = classNames_default(groupPrefixCls, "".concat(groupPrefixCls, "-").concat(buttonStyle), (_classNames = {}, _defineProperty(_classNames, "".concat(groupPrefixCls, "-").concat(size.value), size.value), _defineProperty(_classNames, "".concat(groupPrefixCls, "-rtl"), direction.value === "rtl"), _classNames));
- var children = null;
- if (options && options.length > 0) {
- var optionsPrefixCls = optionType === "button" ? "".concat(prefixCls.value, "-button") : prefixCls.value;
- children = options.map(function(option) {
- if (typeof option === "string" || typeof option === "number") {
- return createVNode(Radio_default, {
- "key": option,
- "prefixCls": optionsPrefixCls,
- "disabled": props5.disabled,
- "value": option,
- "checked": stateValue.value === option
- }, {
- default: function _default9() {
- return [option];
- }
- });
- }
- var value = option.value, disabled = option.disabled, label = option.label;
- return createVNode(Radio_default, {
- "key": "radio-group-value-options-".concat(value),
- "prefixCls": optionsPrefixCls,
- "disabled": disabled || props5.disabled,
- "value": value,
- "checked": stateValue.value === value
- }, {
- default: function _default9() {
- return [label];
- }
- });
- });
- } else {
- var _slots$default;
- children = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- }
- return createVNode("div", {
- "class": classString,
- "id": id
- }, [children]);
- };
- }
- });
- // node_modules/ant-design-vue/es/radio/RadioButton.js
- var RadioButton_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ARadioButton",
- props: radioProps(),
- setup: function setup70(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("radio-button", props5), prefixCls = _useConfigInject.prefixCls;
- var radioGroupContext = inject("radioGroupContext", void 0);
- return function() {
- var _slots$default;
- var rProps = _objectSpread2(_objectSpread2({}, props5), {}, {
- prefixCls: prefixCls.value
- });
- if (radioGroupContext) {
- rProps.onChange = radioGroupContext.onRadioChange;
- rProps.checked = rProps.value === radioGroupContext.stateValue.value;
- rProps.disabled = rProps.disabled || radioGroupContext.props.disabled;
- }
- return createVNode(Radio_default, rProps, {
- default: function _default9() {
- return [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/radio/index.js
- Radio_default.Group = Group_default2;
- Radio_default.Button = RadioButton_default;
- Radio_default.install = function(app) {
- app.component(Radio_default.name, Radio_default);
- app.component(Radio_default.Group.name, Radio_default.Group);
- app.component(Radio_default.Button.name, Radio_default.Button);
- return app;
- };
- var radio_default = Radio_default;
- // node_modules/ant-design-vue/es/calendar/Header.js
- var YearSelectOffset = 10;
- var YearSelectTotal = 20;
- function YearSelect(props5) {
- var fullscreen = props5.fullscreen, validRange = props5.validRange, generateConfig2 = props5.generateConfig, locale4 = props5.locale, prefixCls = props5.prefixCls, value = props5.value, _onChange = props5.onChange, divRef = props5.divRef;
- var year = generateConfig2.getYear(value || generateConfig2.getNow());
- var start = year - YearSelectOffset;
- var end = start + YearSelectTotal;
- if (validRange) {
- start = generateConfig2.getYear(validRange[0]);
- end = generateConfig2.getYear(validRange[1]) + 1;
- }
- var suffix = locale4 && locale4.year === "年" ? "年" : "";
- var options = [];
- for (var index3 = start; index3 < end; index3++) {
- options.push({
- label: "".concat(index3).concat(suffix),
- value: index3
- });
- }
- return createVNode(select_default, {
- "size": fullscreen ? void 0 : "small",
- "options": options,
- "value": year,
- "class": "".concat(prefixCls, "-year-select"),
- "onChange": function onChange3(numYear) {
- var newDate = generateConfig2.setYear(value, numYear);
- if (validRange) {
- var _validRange = _slicedToArray(validRange, 2), startDate = _validRange[0], endDate = _validRange[1];
- var newYear = generateConfig2.getYear(newDate);
- var newMonth = generateConfig2.getMonth(newDate);
- if (newYear === generateConfig2.getYear(endDate) && newMonth > generateConfig2.getMonth(endDate)) {
- newDate = generateConfig2.setMonth(newDate, generateConfig2.getMonth(endDate));
- }
- if (newYear === generateConfig2.getYear(startDate) && newMonth < generateConfig2.getMonth(startDate)) {
- newDate = generateConfig2.setMonth(newDate, generateConfig2.getMonth(startDate));
- }
- }
- _onChange(newDate);
- },
- "getPopupContainer": function getPopupContainer() {
- return divRef.value;
- }
- }, null);
- }
- YearSelect.inheritAttrs = false;
- function MonthSelect(props5) {
- var prefixCls = props5.prefixCls, fullscreen = props5.fullscreen, validRange = props5.validRange, value = props5.value, generateConfig2 = props5.generateConfig, locale4 = props5.locale, _onChange2 = props5.onChange, divRef = props5.divRef;
- var month = generateConfig2.getMonth(value || generateConfig2.getNow());
- var start = 0;
- var end = 11;
- if (validRange) {
- var _validRange2 = _slicedToArray(validRange, 2), rangeStart = _validRange2[0], rangeEnd = _validRange2[1];
- var currentYear = generateConfig2.getYear(value);
- if (generateConfig2.getYear(rangeEnd) === currentYear) {
- end = generateConfig2.getMonth(rangeEnd);
- }
- if (generateConfig2.getYear(rangeStart) === currentYear) {
- start = generateConfig2.getMonth(rangeStart);
- }
- }
- var months = locale4.shortMonths || generateConfig2.locale.getShortMonths(locale4.locale);
- var options = [];
- for (var index3 = start; index3 <= end; index3 += 1) {
- options.push({
- label: months[index3],
- value: index3
- });
- }
- return createVNode(select_default, {
- "size": fullscreen ? void 0 : "small",
- "class": "".concat(prefixCls, "-month-select"),
- "value": month,
- "options": options,
- "onChange": function onChange3(newMonth) {
- _onChange2(generateConfig2.setMonth(value, newMonth));
- },
- "getPopupContainer": function getPopupContainer() {
- return divRef.value;
- }
- }, null);
- }
- MonthSelect.inheritAttrs = false;
- function ModeSwitch(props5) {
- var prefixCls = props5.prefixCls, locale4 = props5.locale, mode = props5.mode, fullscreen = props5.fullscreen, onModeChange = props5.onModeChange;
- return createVNode(Group_default2, {
- "onChange": function onChange3(_ref) {
- var value = _ref.target.value;
- onModeChange(value);
- },
- "value": mode,
- "size": fullscreen ? void 0 : "small",
- "class": "".concat(prefixCls, "-mode-switch")
- }, {
- default: function _default9() {
- return [createVNode(RadioButton_default, {
- "value": "month"
- }, {
- default: function _default10() {
- return [locale4.month];
- }
- }), createVNode(RadioButton_default, {
- "value": "year"
- }, {
- default: function _default10() {
- return [locale4.year];
- }
- })];
- }
- });
- }
- ModeSwitch.inheritAttrs = false;
- var Header_default2 = defineComponent({
- name: "CalendarHeader",
- inheritAttrs: false,
- props: ["mode", "prefixCls", "value", "validRange", "generateConfig", "locale", "mode", "fullscreen"],
- setup: function setup71(_props, _ref2) {
- var attrs = _ref2.attrs;
- var divRef = ref(null);
- return function() {
- var props5 = _objectSpread2(_objectSpread2({}, _props), attrs);
- var prefixCls = props5.prefixCls, fullscreen = props5.fullscreen, mode = props5.mode, onChange3 = props5.onChange, onModeChange = props5.onModeChange;
- var sharedProps = _objectSpread2(_objectSpread2({}, props5), {}, {
- onChange: onChange3,
- fullscreen,
- divRef
- });
- return createVNode("div", {
- "class": "".concat(prefixCls, "-header"),
- "ref": divRef
- }, [createVNode(YearSelect, sharedProps, null), mode === "month" && createVNode(MonthSelect, sharedProps, null), createVNode(ModeSwitch, _objectSpread2(_objectSpread2({}, sharedProps), {}, {
- "onModeChange": onModeChange
- }), null)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/calendar/generateCalendar.js
- function generateCalendar(generateConfig2) {
- function isSameYear2(date1, date22) {
- return date1 && date22 && generateConfig2.getYear(date1) === generateConfig2.getYear(date22);
- }
- function isSameMonth2(date1, date22) {
- return isSameYear2(date1, date22) && generateConfig2.getMonth(date1) === generateConfig2.getMonth(date22);
- }
- function isSameDate2(date1, date22) {
- return isSameMonth2(date1, date22) && generateConfig2.getDate(date1) === generateConfig2.getDate(date22);
- }
- var Calendar2 = defineComponent({
- name: "ACalendar",
- inheritAttrs: false,
- props: ["prefixCls", "locale", "validRange", "disabledDate", "dateFullCellRender", "dateCellRender", "monthFullCellRender", "monthCellRender", "headerRender", "value", "defaultValue", "mode", "fullscreen", "onChange", "onPanelChange", "onSelect", "valueFormat"],
- slots: ["dateFullCellRender", "dateCellRender", "monthFullCellRender", "monthCellRender", "headerRender"],
- setup: function setup220(props5, _ref) {
- var emit = _ref.emit, slots = _ref.slots, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("picker", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var calendarPrefixCls = computed(function() {
- return "".concat(prefixCls.value, "-calendar");
- });
- var maybeToString = function maybeToString2(date4) {
- return props5.valueFormat ? generateConfig2.toString(date4, props5.valueFormat) : date4;
- };
- var value = computed(function() {
- if (props5.value) {
- return props5.valueFormat ? generateConfig2.toDate(props5.value, props5.valueFormat) : props5.value;
- }
- return props5.value === "" ? void 0 : props5.value;
- });
- var defaultValue = computed(function() {
- if (props5.defaultValue) {
- return props5.valueFormat ? generateConfig2.toDate(props5.defaultValue, props5.valueFormat) : props5.defaultValue;
- }
- return props5.defaultValue === "" ? void 0 : props5.defaultValue;
- });
- var _useMergedState = useMergedState(function() {
- return value.value || generateConfig2.getNow();
- }, {
- defaultValue: defaultValue.value,
- value
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedValue = _useMergedState2[0], setMergedValue = _useMergedState2[1];
- var _useMergedState3 = useMergedState("month", {
- value: toRef(props5, "mode")
- }), _useMergedState4 = _slicedToArray(_useMergedState3, 2), mergedMode = _useMergedState4[0], setMergedMode = _useMergedState4[1];
- var panelMode = computed(function() {
- return mergedMode.value === "year" ? "month" : "date";
- });
- var mergedDisabledDate = computed(function() {
- return function(date4) {
- var _props$disabledDate;
- var notInRange = props5.validRange ? generateConfig2.isAfter(props5.validRange[0], date4) || generateConfig2.isAfter(date4, props5.validRange[1]) : false;
- return notInRange || !!((_props$disabledDate = props5.disabledDate) !== null && _props$disabledDate !== void 0 && _props$disabledDate.call(props5, date4));
- };
- });
- var triggerPanelChange = function triggerPanelChange2(date4, newMode) {
- emit("panelChange", maybeToString(date4), newMode);
- };
- var triggerChange = function triggerChange2(date4) {
- setMergedValue(date4);
- if (!isSameDate2(date4, mergedValue.value)) {
- if (panelMode.value === "date" && !isSameMonth2(date4, mergedValue.value) || panelMode.value === "month" && !isSameYear2(date4, mergedValue.value)) {
- triggerPanelChange(date4, mergedMode.value);
- }
- var val = maybeToString(date4);
- emit("update:value", val);
- emit("change", val);
- }
- };
- var triggerModeChange = function triggerModeChange2(newMode) {
- setMergedMode(newMode);
- triggerPanelChange(mergedValue.value, newMode);
- };
- var onInternalSelect = function onInternalSelect2(date4) {
- triggerChange(date4);
- emit("select", maybeToString(date4));
- };
- var defaultLocale = computed(function() {
- var locale4 = props5.locale;
- var result = _objectSpread2(_objectSpread2({}, en_US_default5), locale4);
- result.lang = _objectSpread2(_objectSpread2({}, result.lang), (locale4 || {}).lang);
- return result;
- });
- var _useLocaleReceiver = useLocaleReceiver("Calendar", defaultLocale), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), mergedLocale = _useLocaleReceiver2[0];
- return function() {
- var _classNames3;
- var today = generateConfig2.getNow();
- var _props$dateFullCellRe = props5.dateFullCellRender, dateFullCellRender = _props$dateFullCellRe === void 0 ? slots === null || slots === void 0 ? void 0 : slots.dateFullCellRender : _props$dateFullCellRe, _props$dateCellRender = props5.dateCellRender, dateCellRender = _props$dateCellRender === void 0 ? slots === null || slots === void 0 ? void 0 : slots.dateCellRender : _props$dateCellRender, _props$monthFullCellR = props5.monthFullCellRender, monthFullCellRender = _props$monthFullCellR === void 0 ? slots === null || slots === void 0 ? void 0 : slots.monthFullCellRender : _props$monthFullCellR, _props$monthCellRende = props5.monthCellRender, monthCellRender = _props$monthCellRende === void 0 ? slots === null || slots === void 0 ? void 0 : slots.monthCellRender : _props$monthCellRende, _props$headerRender = props5.headerRender, headerRender = _props$headerRender === void 0 ? slots === null || slots === void 0 ? void 0 : slots.headerRender : _props$headerRender, _props$fullscreen = props5.fullscreen, fullscreen = _props$fullscreen === void 0 ? true : _props$fullscreen, validRange = props5.validRange;
- var dateRender = function dateRender2(_ref2) {
- var date4 = _ref2.current;
- if (dateFullCellRender) {
- return dateFullCellRender({
- current: date4
- });
- }
- return createVNode("div", {
- "class": classNames_default("".concat(prefixCls.value, "-cell-inner"), "".concat(calendarPrefixCls.value, "-date"), _defineProperty({}, "".concat(calendarPrefixCls.value, "-date-today"), isSameDate2(today, date4)))
- }, [createVNode("div", {
- "class": "".concat(calendarPrefixCls.value, "-date-value")
- }, [padStart_default(String(generateConfig2.getDate(date4)), 2, "0")]), createVNode("div", {
- "class": "".concat(calendarPrefixCls.value, "-date-content")
- }, [dateCellRender && dateCellRender({
- current: date4
- })])]);
- };
- var monthRender = function monthRender2(_ref3, locale4) {
- var date4 = _ref3.current;
- if (monthFullCellRender) {
- return monthFullCellRender({
- current: date4
- });
- }
- var months = locale4.shortMonths || generateConfig2.locale.getShortMonths(locale4.locale);
- return createVNode("div", {
- "class": classNames_default("".concat(prefixCls.value, "-cell-inner"), "".concat(calendarPrefixCls.value, "-date"), _defineProperty({}, "".concat(calendarPrefixCls.value, "-date-today"), isSameMonth2(today, date4)))
- }, [createVNode("div", {
- "class": "".concat(calendarPrefixCls.value, "-date-value")
- }, [months[generateConfig2.getMonth(date4)]]), createVNode("div", {
- "class": "".concat(calendarPrefixCls.value, "-date-content")
- }, [monthCellRender && monthCellRender({
- current: date4
- })])]);
- };
- return createVNode("div", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "class": classNames_default(calendarPrefixCls.value, (_classNames3 = {}, _defineProperty(_classNames3, "".concat(calendarPrefixCls.value, "-full"), fullscreen), _defineProperty(_classNames3, "".concat(calendarPrefixCls.value, "-mini"), !fullscreen), _defineProperty(_classNames3, "".concat(calendarPrefixCls.value, "-rtl"), direction.value === "rtl"), _classNames3), attrs.class)
- }), [headerRender ? headerRender({
- value: mergedValue.value,
- type: mergedMode.value,
- onChange: onInternalSelect,
- onTypeChange: triggerModeChange
- }) : createVNode(Header_default2, {
- "prefixCls": calendarPrefixCls.value,
- "value": mergedValue.value,
- "generateConfig": generateConfig2,
- "mode": mergedMode.value,
- "fullscreen": fullscreen,
- "locale": mergedLocale.value.lang,
- "validRange": validRange,
- "onChange": onInternalSelect,
- "onModeChange": triggerModeChange
- }, null), createVNode(PickerPanel_default, {
- "value": mergedValue.value,
- "prefixCls": prefixCls.value,
- "locale": mergedLocale.value.lang,
- "generateConfig": generateConfig2,
- "dateRender": dateRender,
- "monthCellRender": function monthCellRender2(obj) {
- return monthRender(obj, mergedLocale.value.lang);
- },
- "onSelect": onInternalSelect,
- "mode": panelMode.value,
- "picker": panelMode.value,
- "disabledDate": mergedDisabledDate.value,
- "hideHeader": true
- }, null)]);
- };
- }
- });
- Calendar2.install = function(app) {
- app.component(Calendar2.name, Calendar2);
- return app;
- };
- return Calendar2;
- }
- var generateCalendar_default = generateCalendar;
- // node_modules/ant-design-vue/es/calendar/dayjs.js
- var Calendar = generateCalendar_default(dayjs_default);
- var dayjs_default2 = withInstall(Calendar);
- // node_modules/ant-design-vue/es/calendar/index.js
- var calendar_default = dayjs_default2;
- // node_modules/ant-design-vue/es/tabs/src/hooks/useRaf.js
- function useRaf(callback) {
- var rafRef = ref();
- var removedRef = ref(false);
- function trigger2() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- if (!removedRef.value) {
- wrapperRaf.cancel(rafRef.value);
- rafRef.value = wrapperRaf(function() {
- callback.apply(void 0, args);
- });
- }
- }
- onBeforeUnmount(function() {
- removedRef.value = true;
- wrapperRaf.cancel(rafRef.value);
- });
- return trigger2;
- }
- function useRafState(defaultState) {
- var batchRef = ref([]);
- var state = ref(typeof defaultState === "function" ? defaultState() : defaultState);
- var flushUpdate = useRaf(function() {
- var value = state.value;
- batchRef.value.forEach(function(callback) {
- value = callback(value);
- });
- batchRef.value = [];
- state.value = value;
- });
- function updater(callback) {
- batchRef.value.push(callback);
- flushUpdate();
- }
- return [state, updater];
- }
- // node_modules/ant-design-vue/es/tabs/src/TabNavList/TabNode.js
- var TabNode_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "TabNode",
- props: {
- id: {
- type: String
- },
- prefixCls: {
- type: String
- },
- tab: {
- type: Object
- },
- active: {
- type: Boolean
- },
- closable: {
- type: Boolean
- },
- editable: {
- type: Object
- },
- onClick: {
- type: Function
- },
- onResize: {
- type: Function
- },
- renderWrapper: {
- type: Function
- },
- removeAriaLabel: {
- type: String
- },
- // onRemove: { type: Function as PropType<() => void> },
- onFocus: {
- type: Function
- }
- },
- emits: ["click", "resize", "remove", "focus"],
- setup: function setup72(props5, _ref) {
- var expose = _ref.expose, attrs = _ref.attrs;
- var domRef = ref();
- function onInternalClick(e3) {
- var _props$tab;
- if ((_props$tab = props5.tab) !== null && _props$tab !== void 0 && _props$tab.disabled) {
- return;
- }
- props5.onClick(e3);
- }
- expose({
- domRef
- });
- function onRemoveTab(event) {
- var _props$tab2;
- event.preventDefault();
- event.stopPropagation();
- props5.editable.onEdit("remove", {
- key: (_props$tab2 = props5.tab) === null || _props$tab2 === void 0 ? void 0 : _props$tab2.key,
- event
- });
- }
- var removable = computed(function() {
- var _props$tab3;
- return props5.editable && props5.closable !== false && !((_props$tab3 = props5.tab) !== null && _props$tab3 !== void 0 && _props$tab3.disabled);
- });
- return function() {
- var _classNames, _editable$removeIcon;
- var prefixCls = props5.prefixCls, id = props5.id, active = props5.active, _props$tab4 = props5.tab, key2 = _props$tab4.key, tab = _props$tab4.tab, disabled = _props$tab4.disabled, closeIcon = _props$tab4.closeIcon, renderWrapper = props5.renderWrapper, removeAriaLabel = props5.removeAriaLabel, editable = props5.editable, onFocus2 = props5.onFocus;
- var tabPrefix = "".concat(prefixCls, "-tab");
- var node = createVNode("div", {
- "key": key2,
- "ref": domRef,
- "class": classNames_default(tabPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(tabPrefix, "-with-remove"), removable.value), _defineProperty(_classNames, "".concat(tabPrefix, "-active"), active), _defineProperty(_classNames, "".concat(tabPrefix, "-disabled"), disabled), _classNames)),
- "style": attrs.style,
- "onClick": onInternalClick
- }, [createVNode("div", {
- "role": "tab",
- "aria-selected": active,
- "id": id && "".concat(id, "-tab-").concat(key2),
- "class": "".concat(tabPrefix, "-btn"),
- "aria-controls": id && "".concat(id, "-panel-").concat(key2),
- "aria-disabled": disabled,
- "tabindex": disabled ? null : 0,
- "onClick": function onClick2(e3) {
- e3.stopPropagation();
- onInternalClick(e3);
- },
- "onKeydown": function onKeydown(e3) {
- if ([KeyCode_default.SPACE, KeyCode_default.ENTER].includes(e3.which)) {
- e3.preventDefault();
- onInternalClick(e3);
- }
- },
- "onFocus": onFocus2
- }, [typeof tab === "function" ? tab() : tab]), removable.value && createVNode("button", {
- "type": "button",
- "aria-label": removeAriaLabel || "remove",
- "tabindex": 0,
- "class": "".concat(tabPrefix, "-remove"),
- "onClick": function onClick2(e3) {
- e3.stopPropagation();
- onRemoveTab(e3);
- }
- }, [(closeIcon === null || closeIcon === void 0 ? void 0 : closeIcon()) || ((_editable$removeIcon = editable.removeIcon) === null || _editable$removeIcon === void 0 ? void 0 : _editable$removeIcon.call(editable)) || "×"])]);
- return renderWrapper ? renderWrapper(node) : node;
- };
- }
- });
- // node_modules/ant-design-vue/es/tabs/src/hooks/useOffsets.js
- var DEFAULT_SIZE = {
- width: 0,
- height: 0,
- left: 0,
- top: 0
- };
- function useOffsets(tabs, tabSizes) {
- var offsetMap = ref(/* @__PURE__ */ new Map());
- watchEffect(function() {
- var _tabsValue$;
- var map = /* @__PURE__ */ new Map();
- var tabsValue = tabs.value;
- var lastOffset = tabSizes.value.get((_tabsValue$ = tabsValue[0]) === null || _tabsValue$ === void 0 ? void 0 : _tabsValue$.key) || DEFAULT_SIZE;
- var rightOffset = lastOffset.left + lastOffset.width;
- for (var i3 = 0; i3 < tabsValue.length; i3 += 1) {
- var key2 = tabsValue[i3].key;
- var data8 = tabSizes.value.get(key2);
- if (!data8) {
- var _tabsValue;
- data8 = tabSizes.value.get((_tabsValue = tabsValue[i3 - 1]) === null || _tabsValue === void 0 ? void 0 : _tabsValue.key) || DEFAULT_SIZE;
- }
- var entity = map.get(key2) || _objectSpread2({}, data8);
- entity.right = rightOffset - entity.left - entity.width;
- map.set(key2, entity);
- }
- offsetMap.value = new Map(map);
- });
- return offsetMap;
- }
- // node_modules/ant-design-vue/es/tabs/src/TabNavList/AddButton.js
- var AddButton_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AddButton",
- inheritAttrs: false,
- props: {
- prefixCls: String,
- editable: {
- type: Object
- },
- locale: {
- type: Object,
- default: void 0
- }
- },
- setup: function setup73(props5, _ref) {
- var expose = _ref.expose, attrs = _ref.attrs;
- var domRef = ref();
- expose({
- domRef
- });
- return function() {
- var prefixCls = props5.prefixCls, editable = props5.editable, locale4 = props5.locale;
- if (!editable || editable.showAdd === false) {
- return null;
- }
- return createVNode("button", {
- "ref": domRef,
- "type": "button",
- "class": "".concat(prefixCls, "-nav-add"),
- "style": attrs.style,
- "aria-label": (locale4 === null || locale4 === void 0 ? void 0 : locale4.addAriaLabel) || "Add tab",
- "onClick": function onClick2(event) {
- editable.onEdit("add", {
- event
- });
- }
- }, [editable.addIcon ? editable.addIcon() : "+"]);
- };
- }
- });
- // node_modules/ant-design-vue/es/tabs/src/TabNavList/OperationNode.js
- var operationNodeProps = {
- prefixCls: {
- type: String
- },
- id: {
- type: String
- },
- tabs: {
- type: Object
- },
- rtl: {
- type: Boolean
- },
- tabBarGutter: {
- type: Number
- },
- activeKey: {
- type: [String, Number]
- },
- mobile: {
- type: Boolean
- },
- moreIcon: vue_types_default.any,
- moreTransitionName: {
- type: String
- },
- editable: {
- type: Object
- },
- locale: {
- type: Object,
- default: void 0
- },
- removeAriaLabel: String,
- onTabClick: {
- type: Function
- }
- };
- var OperationNode_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "OperationNode",
- inheritAttrs: false,
- props: operationNodeProps,
- emits: ["tabClick"],
- slots: ["moreIcon"],
- setup: function setup74(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var _useState = useState(false), _useState2 = _slicedToArray(_useState, 2), open2 = _useState2[0], setOpen = _useState2[1];
- var _useState3 = useState(null), _useState4 = _slicedToArray(_useState3, 2), selectedKey = _useState4[0], setSelectedKey = _useState4[1];
- var selectOffset = function selectOffset2(offset4) {
- var enabledTabs = props5.tabs.filter(function(tab2) {
- return !tab2.disabled;
- });
- var selectedIndex = enabledTabs.findIndex(function(tab2) {
- return tab2.key === selectedKey.value;
- }) || 0;
- var len = enabledTabs.length;
- for (var i3 = 0; i3 < len; i3 += 1) {
- selectedIndex = (selectedIndex + offset4 + len) % len;
- var tab = enabledTabs[selectedIndex];
- if (!tab.disabled) {
- setSelectedKey(tab.key);
- return;
- }
- }
- };
- var onKeyDown = function onKeyDown2(e3) {
- var which = e3.which;
- if (!open2.value) {
- if ([KeyCode_default.DOWN, KeyCode_default.SPACE, KeyCode_default.ENTER].includes(which)) {
- setOpen(true);
- e3.preventDefault();
- }
- return;
- }
- switch (which) {
- case KeyCode_default.UP:
- selectOffset(-1);
- e3.preventDefault();
- break;
- case KeyCode_default.DOWN:
- selectOffset(1);
- e3.preventDefault();
- break;
- case KeyCode_default.ESC:
- setOpen(false);
- break;
- case KeyCode_default.SPACE:
- case KeyCode_default.ENTER:
- if (selectedKey.value !== null)
- props5.onTabClick(selectedKey.value, e3);
- break;
- }
- };
- var popupId = computed(function() {
- return "".concat(props5.id, "-more-popup");
- });
- var selectedItemId = computed(function() {
- return selectedKey.value !== null ? "".concat(popupId.value, "-").concat(selectedKey.value) : null;
- });
- var onRemoveTab = function onRemoveTab2(event, key2) {
- event.preventDefault();
- event.stopPropagation();
- props5.editable.onEdit("remove", {
- key: key2,
- event
- });
- };
- onMounted(function() {
- watch(selectedKey, function() {
- var ele = document.getElementById(selectedItemId.value);
- if (ele && ele.scrollIntoView) {
- ele.scrollIntoView(false);
- }
- }, {
- flush: "post",
- immediate: true
- });
- });
- watch(open2, function() {
- if (!open2.value) {
- setSelectedKey(null);
- }
- });
- return function() {
- var _slots$moreIcon;
- var prefixCls = props5.prefixCls, id = props5.id, tabs = props5.tabs, locale4 = props5.locale, mobile = props5.mobile, _props$moreIcon = props5.moreIcon, moreIcon = _props$moreIcon === void 0 ? ((_slots$moreIcon = slots.moreIcon) === null || _slots$moreIcon === void 0 ? void 0 : _slots$moreIcon.call(slots)) || createVNode(EllipsisOutlined_default, null, null) : _props$moreIcon, moreTransitionName = props5.moreTransitionName, editable = props5.editable, tabBarGutter = props5.tabBarGutter, rtl3 = props5.rtl, onTabClick = props5.onTabClick;
- var dropdownPrefix = "".concat(prefixCls, "-dropdown");
- var dropdownAriaLabel = locale4 === null || locale4 === void 0 ? void 0 : locale4.dropdownAriaLabel;
- var moreStyle = _defineProperty({}, rtl3 ? "marginRight" : "marginLeft", tabBarGutter);
- if (!tabs.length) {
- moreStyle.visibility = "hidden";
- moreStyle.order = 1;
- }
- var overlayClassName = classNames_default(_defineProperty({}, "".concat(dropdownPrefix, "-rtl"), rtl3));
- var moreNode = mobile ? null : createVNode(vc_dropdown_default, {
- "prefixCls": dropdownPrefix,
- "trigger": ["hover"],
- "visible": open2.value,
- "transitionName": moreTransitionName,
- "onVisibleChange": setOpen,
- "overlayClassName": overlayClassName,
- "mouseEnterDelay": 0.1,
- "mouseLeaveDelay": 0.1
- }, {
- overlay: function overlay() {
- return createVNode(menu_default, {
- "onClick": function onClick2(_ref2) {
- var key2 = _ref2.key, domEvent = _ref2.domEvent;
- onTabClick(key2, domEvent);
- setOpen(false);
- },
- "id": popupId.value,
- "tabindex": -1,
- "role": "listbox",
- "aria-activedescendant": selectedItemId.value,
- "selectedKeys": [selectedKey.value],
- "aria-label": dropdownAriaLabel !== void 0 ? dropdownAriaLabel : "expanded dropdown"
- }, {
- default: function _default9() {
- return [tabs.map(function(tab) {
- var _tab$closeIcon, _editable$removeIcon;
- var removable = editable && tab.closable !== false && !tab.disabled;
- return createVNode(MenuItem_default, {
- "key": tab.key,
- "id": "".concat(popupId.value, "-").concat(tab.key),
- "role": "option",
- "aria-controls": id && "".concat(id, "-panel-").concat(tab.key),
- "disabled": tab.disabled
- }, {
- default: function _default10() {
- return [createVNode("span", null, [typeof tab.tab === "function" ? tab.tab() : tab.tab]), removable && createVNode("button", {
- "type": "button",
- "aria-label": props5.removeAriaLabel || "remove",
- "tabindex": 0,
- "class": "".concat(dropdownPrefix, "-menu-item-remove"),
- "onClick": function onClick2(e3) {
- e3.stopPropagation();
- onRemoveTab(e3, tab.key);
- }
- }, [((_tab$closeIcon = tab.closeIcon) === null || _tab$closeIcon === void 0 ? void 0 : _tab$closeIcon.call(tab)) || ((_editable$removeIcon = editable.removeIcon) === null || _editable$removeIcon === void 0 ? void 0 : _editable$removeIcon.call(editable)) || "×"])];
- }
- });
- })];
- }
- });
- },
- default: function _default9() {
- return createVNode("button", {
- "type": "button",
- "class": "".concat(prefixCls, "-nav-more"),
- "style": moreStyle,
- "tabindex": -1,
- "aria-hidden": "true",
- "aria-haspopup": "listbox",
- "aria-controls": popupId.value,
- "id": "".concat(id, "-more"),
- "aria-expanded": open2.value,
- "onKeydown": onKeyDown
- }, [moreIcon]);
- }
- });
- return createVNode("div", {
- "class": classNames_default("".concat(prefixCls, "-nav-operations"), attrs.class),
- "style": attrs.style
- }, [moreNode, createVNode(AddButton_default, {
- "prefixCls": prefixCls,
- "locale": locale4,
- "editable": editable
- }, null)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/tabs/src/TabContext.js
- var TabsContextKey = Symbol("tabsContextKey");
- var useProvideTabs = function useProvideTabs2(props5) {
- provide(TabsContextKey, props5);
- };
- var useInjectTabs = function useInjectTabs2() {
- return inject(TabsContextKey, {
- tabs: ref([]),
- prefixCls: ref()
- });
- };
- var TabsContextProvider = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "TabsContextProvider",
- inheritAttrs: false,
- props: {
- tabs: {
- type: Object,
- default: void 0
- },
- prefixCls: {
- type: String,
- default: void 0
- }
- },
- setup: function setup75(props5, _ref) {
- var slots = _ref.slots;
- useProvideTabs(toRefs(props5));
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/tabs/src/hooks/useTouchMove.js
- var MIN_SWIPE_DISTANCE = 0.1;
- var STOP_SWIPE_DISTANCE = 0.01;
- var REFRESH_INTERVAL = 20;
- var SPEED_OFF_MULTIPLE = Math.pow(0.995, REFRESH_INTERVAL);
- function useTouchMove(domRef, onOffset) {
- var _useState = useState(), _useState2 = _slicedToArray(_useState, 2), touchPosition = _useState2[0], setTouchPosition = _useState2[1];
- var _useState3 = useState(0), _useState4 = _slicedToArray(_useState3, 2), lastTimestamp = _useState4[0], setLastTimestamp = _useState4[1];
- var _useState5 = useState(0), _useState6 = _slicedToArray(_useState5, 2), lastTimeDiff = _useState6[0], setLastTimeDiff = _useState6[1];
- var _useState7 = useState(), _useState8 = _slicedToArray(_useState7, 2), lastOffset = _useState8[0], setLastOffset = _useState8[1];
- var motionInterval = ref();
- function onTouchStart(e3) {
- var _e$touches$ = e3.touches[0], screenX = _e$touches$.screenX, screenY = _e$touches$.screenY;
- setTouchPosition({
- x: screenX,
- y: screenY
- });
- clearInterval(motionInterval.value);
- }
- function onTouchMove(e3) {
- if (!touchPosition.value)
- return;
- e3.preventDefault();
- var _e$touches$2 = e3.touches[0], screenX = _e$touches$2.screenX, screenY = _e$touches$2.screenY;
- var offsetX = screenX - touchPosition.value.x;
- var offsetY = screenY - touchPosition.value.y;
- onOffset(offsetX, offsetY);
- setTouchPosition({
- x: screenX,
- y: screenY
- });
- var now4 = Date.now();
- setLastTimeDiff(now4 - lastTimestamp.value);
- setLastTimestamp(now4);
- setLastOffset({
- x: offsetX,
- y: offsetY
- });
- }
- function onTouchEnd() {
- if (!touchPosition.value)
- return;
- var lastOffsetValue = lastOffset.value;
- setTouchPosition(null);
- setLastOffset(null);
- if (lastOffsetValue) {
- var distanceX = lastOffsetValue.x / lastTimeDiff.value;
- var distanceY = lastOffsetValue.y / lastTimeDiff.value;
- var absX = Math.abs(distanceX);
- var absY = Math.abs(distanceY);
- if (Math.max(absX, absY) < MIN_SWIPE_DISTANCE)
- return;
- var currentX = distanceX;
- var currentY = distanceY;
- motionInterval.value = setInterval(function() {
- if (Math.abs(currentX) < STOP_SWIPE_DISTANCE && Math.abs(currentY) < STOP_SWIPE_DISTANCE) {
- clearInterval(motionInterval.value);
- return;
- }
- currentX *= SPEED_OFF_MULTIPLE;
- currentY *= SPEED_OFF_MULTIPLE;
- onOffset(currentX * REFRESH_INTERVAL, currentY * REFRESH_INTERVAL);
- }, REFRESH_INTERVAL);
- }
- }
- var lastWheelDirectionRef = ref();
- function onWheel(e3) {
- var deltaX = e3.deltaX, deltaY = e3.deltaY;
- var mixed = 0;
- var absX = Math.abs(deltaX);
- var absY = Math.abs(deltaY);
- if (absX === absY) {
- mixed = lastWheelDirectionRef.value === "x" ? deltaX : deltaY;
- } else if (absX > absY) {
- mixed = deltaX;
- lastWheelDirectionRef.value = "x";
- } else {
- mixed = deltaY;
- lastWheelDirectionRef.value = "y";
- }
- if (onOffset(-mixed, -mixed)) {
- e3.preventDefault();
- }
- }
- var touchEventsRef = ref({
- onTouchStart,
- onTouchMove,
- onTouchEnd,
- onWheel
- });
- function onProxyTouchStart(e3) {
- touchEventsRef.value.onTouchStart(e3);
- }
- function onProxyTouchMove(e3) {
- touchEventsRef.value.onTouchMove(e3);
- }
- function onProxyTouchEnd(e3) {
- touchEventsRef.value.onTouchEnd(e3);
- }
- function onProxyWheel(e3) {
- touchEventsRef.value.onWheel(e3);
- }
- onMounted(function() {
- var _domRef$value, _domRef$value2;
- document.addEventListener("touchmove", onProxyTouchMove, {
- passive: false
- });
- document.addEventListener("touchend", onProxyTouchEnd, {
- passive: false
- });
- (_domRef$value = domRef.value) === null || _domRef$value === void 0 ? void 0 : _domRef$value.addEventListener("touchstart", onProxyTouchStart, {
- passive: false
- });
- (_domRef$value2 = domRef.value) === null || _domRef$value2 === void 0 ? void 0 : _domRef$value2.addEventListener("wheel", onProxyWheel, {
- passive: false
- });
- });
- onBeforeUnmount(function() {
- document.removeEventListener("touchmove", onProxyTouchMove);
- document.removeEventListener("touchend", onProxyTouchEnd);
- });
- }
- // node_modules/ant-design-vue/es/tabs/src/hooks/useSyncState.js
- function useSyncState(defaultState, onChange3) {
- var stateRef = ref(defaultState);
- function setState2(updater) {
- var newValue = typeof updater === "function" ? updater(stateRef.value) : updater;
- if (newValue !== stateRef.value) {
- onChange3(newValue, stateRef.value);
- }
- stateRef.value = newValue;
- }
- return [stateRef, setState2];
- }
- // node_modules/ant-design-vue/es/_util/hooks/useRefs.js
- var useRefs = function useRefs2() {
- var refs = ref(/* @__PURE__ */ new Map());
- var setRef = function setRef2(key2) {
- return function(el) {
- refs.value.set(key2, el);
- };
- };
- onBeforeUpdate(function() {
- refs.value = /* @__PURE__ */ new Map();
- });
- return [setRef, refs];
- };
- var useRefs_default = useRefs;
- // node_modules/lodash-es/_isKey.js
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
- var reIsPlainProp = /^\w*$/;
- function isKey(value, object4) {
- if (isArray_default(value)) {
- return false;
- }
- var type4 = typeof value;
- if (type4 == "number" || type4 == "symbol" || type4 == "boolean" || value == null || isSymbol_default(value)) {
- return true;
- }
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object4 != null && value in Object(object4);
- }
- var isKey_default = isKey;
- // node_modules/lodash-es/memoize.js
- var FUNC_ERROR_TEXT = "Expected a function";
- function memoize(func, resolver) {
- if (typeof func != "function" || resolver != null && typeof resolver != "function") {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var memoized = function() {
- var args = arguments, key2 = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
- if (cache.has(key2)) {
- return cache.get(key2);
- }
- var result = func.apply(this, args);
- memoized.cache = cache.set(key2, result) || cache;
- return result;
- };
- memoized.cache = new (memoize.Cache || MapCache_default)();
- return memoized;
- }
- memoize.Cache = MapCache_default;
- var memoize_default = memoize;
- // node_modules/lodash-es/_memoizeCapped.js
- var MAX_MEMOIZE_SIZE = 500;
- function memoizeCapped(func) {
- var result = memoize_default(func, function(key2) {
- if (cache.size === MAX_MEMOIZE_SIZE) {
- cache.clear();
- }
- return key2;
- });
- var cache = result.cache;
- return result;
- }
- var memoizeCapped_default = memoizeCapped;
- // node_modules/lodash-es/_stringToPath.js
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
- var reEscapeChar = /\\(\\)?/g;
- var stringToPath = memoizeCapped_default(function(string3) {
- var result = [];
- if (string3.charCodeAt(0) === 46) {
- result.push("");
- }
- string3.replace(rePropName, function(match3, number4, quote, subString) {
- result.push(quote ? subString.replace(reEscapeChar, "$1") : number4 || match3);
- });
- return result;
- });
- var stringToPath_default = stringToPath;
- // node_modules/lodash-es/_castPath.js
- function castPath(value, object4) {
- if (isArray_default(value)) {
- return value;
- }
- return isKey_default(value, object4) ? [value] : stringToPath_default(toString_default(value));
- }
- var castPath_default = castPath;
- // node_modules/lodash-es/_toKey.js
- var INFINITY4 = 1 / 0;
- function toKey(value) {
- if (typeof value == "string" || isSymbol_default(value)) {
- return value;
- }
- var result = value + "";
- return result == "0" && 1 / value == -INFINITY4 ? "-0" : result;
- }
- var toKey_default = toKey;
- // node_modules/lodash-es/_baseGet.js
- function baseGet(object4, path2) {
- path2 = castPath_default(path2, object4);
- var index3 = 0, length = path2.length;
- while (object4 != null && index3 < length) {
- object4 = object4[toKey_default(path2[index3++])];
- }
- return index3 && index3 == length ? object4 : void 0;
- }
- var baseGet_default = baseGet;
- // node_modules/lodash-es/_defineProperty.js
- var defineProperty = function() {
- try {
- var func = getNative_default(Object, "defineProperty");
- func({}, "", {});
- return func;
- } catch (e3) {
- }
- }();
- var defineProperty_default = defineProperty;
- // node_modules/lodash-es/_baseAssignValue.js
- function baseAssignValue(object4, key2, value) {
- if (key2 == "__proto__" && defineProperty_default) {
- defineProperty_default(object4, key2, {
- "configurable": true,
- "enumerable": true,
- "value": value,
- "writable": true
- });
- } else {
- object4[key2] = value;
- }
- }
- var baseAssignValue_default = baseAssignValue;
- // node_modules/lodash-es/_assignValue.js
- var objectProto14 = Object.prototype;
- var hasOwnProperty12 = objectProto14.hasOwnProperty;
- function assignValue(object4, key2, value) {
- var objValue = object4[key2];
- if (!(hasOwnProperty12.call(object4, key2) && eq_default(objValue, value)) || value === void 0 && !(key2 in object4)) {
- baseAssignValue_default(object4, key2, value);
- }
- }
- var assignValue_default = assignValue;
- // node_modules/lodash-es/_baseSet.js
- function baseSet(object4, path2, value, customizer) {
- if (!isObject_default(object4)) {
- return object4;
- }
- path2 = castPath_default(path2, object4);
- var index3 = -1, length = path2.length, lastIndex = length - 1, nested = object4;
- while (nested != null && ++index3 < length) {
- var key2 = toKey_default(path2[index3]), newValue = value;
- if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") {
- return object4;
- }
- if (index3 != lastIndex) {
- var objValue = nested[key2];
- newValue = customizer ? customizer(objValue, key2, nested) : void 0;
- if (newValue === void 0) {
- newValue = isObject_default(objValue) ? objValue : isIndex_default(path2[index3 + 1]) ? [] : {};
- }
- }
- assignValue_default(nested, key2, newValue);
- nested = nested[key2];
- }
- return object4;
- }
- var baseSet_default = baseSet;
- // node_modules/lodash-es/_basePickBy.js
- function basePickBy(object4, paths, predicate) {
- var index3 = -1, length = paths.length, result = {};
- while (++index3 < length) {
- var path2 = paths[index3], value = baseGet_default(object4, path2);
- if (predicate(value, path2)) {
- baseSet_default(result, castPath_default(path2, object4), value);
- }
- }
- return result;
- }
- var basePickBy_default = basePickBy;
- // node_modules/lodash-es/_baseHasIn.js
- function baseHasIn(object4, key2) {
- return object4 != null && key2 in Object(object4);
- }
- var baseHasIn_default = baseHasIn;
- // node_modules/lodash-es/_hasPath.js
- function hasPath(object4, path2, hasFunc) {
- path2 = castPath_default(path2, object4);
- var index3 = -1, length = path2.length, result = false;
- while (++index3 < length) {
- var key2 = toKey_default(path2[index3]);
- if (!(result = object4 != null && hasFunc(object4, key2))) {
- break;
- }
- object4 = object4[key2];
- }
- if (result || ++index3 != length) {
- return result;
- }
- length = object4 == null ? 0 : object4.length;
- return !!length && isLength_default(length) && isIndex_default(key2, length) && (isArray_default(object4) || isArguments_default(object4));
- }
- var hasPath_default = hasPath;
- // node_modules/lodash-es/hasIn.js
- function hasIn(object4, path2) {
- return object4 != null && hasPath_default(object4, path2, baseHasIn_default);
- }
- var hasIn_default = hasIn;
- // node_modules/lodash-es/_basePick.js
- function basePick(object4, paths) {
- return basePickBy_default(object4, paths, function(value, path2) {
- return hasIn_default(object4, path2);
- });
- }
- var basePick_default = basePick;
- // node_modules/lodash-es/_isFlattenable.js
- var spreadableSymbol = Symbol_default ? Symbol_default.isConcatSpreadable : void 0;
- function isFlattenable(value) {
- return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
- }
- var isFlattenable_default = isFlattenable;
- // node_modules/lodash-es/_baseFlatten.js
- function baseFlatten(array4, depth, predicate, isStrict, result) {
- var index3 = -1, length = array4.length;
- predicate || (predicate = isFlattenable_default);
- result || (result = []);
- while (++index3 < length) {
- var value = array4[index3];
- if (depth > 0 && predicate(value)) {
- if (depth > 1) {
- baseFlatten(value, depth - 1, predicate, isStrict, result);
- } else {
- arrayPush_default(result, value);
- }
- } else if (!isStrict) {
- result[result.length] = value;
- }
- }
- return result;
- }
- var baseFlatten_default = baseFlatten;
- // node_modules/lodash-es/flatten.js
- function flatten(array4) {
- var length = array4 == null ? 0 : array4.length;
- return length ? baseFlatten_default(array4, 1) : [];
- }
- var flatten_default = flatten;
- // node_modules/lodash-es/_apply.js
- function apply(func, thisArg, args) {
- switch (args.length) {
- case 0:
- return func.call(thisArg);
- case 1:
- return func.call(thisArg, args[0]);
- case 2:
- return func.call(thisArg, args[0], args[1]);
- case 3:
- return func.call(thisArg, args[0], args[1], args[2]);
- }
- return func.apply(thisArg, args);
- }
- var apply_default = apply;
- // node_modules/lodash-es/_overRest.js
- var nativeMax = Math.max;
- function overRest(func, start, transform) {
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
- return function() {
- var args = arguments, index3 = -1, length = nativeMax(args.length - start, 0), array4 = Array(length);
- while (++index3 < length) {
- array4[index3] = args[start + index3];
- }
- index3 = -1;
- var otherArgs = Array(start + 1);
- while (++index3 < start) {
- otherArgs[index3] = args[index3];
- }
- otherArgs[start] = transform(array4);
- return apply_default(func, this, otherArgs);
- };
- }
- var overRest_default = overRest;
- // node_modules/lodash-es/constant.js
- function constant(value) {
- return function() {
- return value;
- };
- }
- var constant_default = constant;
- // node_modules/lodash-es/identity.js
- function identity(value) {
- return value;
- }
- var identity_default = identity;
- // node_modules/lodash-es/_baseSetToString.js
- var baseSetToString = !defineProperty_default ? identity_default : function(func, string3) {
- return defineProperty_default(func, "toString", {
- "configurable": true,
- "enumerable": false,
- "value": constant_default(string3),
- "writable": true
- });
- };
- var baseSetToString_default = baseSetToString;
- // node_modules/lodash-es/_shortOut.js
- var HOT_COUNT = 800;
- var HOT_SPAN = 16;
- var nativeNow = Date.now;
- function shortOut(func) {
- var count = 0, lastCalled = 0;
- return function() {
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
- lastCalled = stamp;
- if (remaining > 0) {
- if (++count >= HOT_COUNT) {
- return arguments[0];
- }
- } else {
- count = 0;
- }
- return func.apply(void 0, arguments);
- };
- }
- var shortOut_default = shortOut;
- // node_modules/lodash-es/_setToString.js
- var setToString = shortOut_default(baseSetToString_default);
- var setToString_default = setToString;
- // node_modules/lodash-es/_flatRest.js
- function flatRest(func) {
- return setToString_default(overRest_default(func, void 0, flatten_default), func + "");
- }
- var flatRest_default = flatRest;
- // node_modules/lodash-es/pick.js
- var pick = flatRest_default(function(object4, paths) {
- return object4 == null ? {} : basePick_default(object4, paths);
- });
- var pick_default = pick;
- // node_modules/ant-design-vue/es/tabs/src/TabNavList/index.js
- var DEFAULT_SIZE2 = {
- width: 0,
- height: 0,
- left: 0,
- top: 0,
- right: 0
- };
- var tabNavListProps = function tabNavListProps2() {
- return {
- id: {
- type: String
- },
- tabPosition: {
- type: String
- },
- activeKey: {
- type: [String, Number]
- },
- rtl: {
- type: Boolean
- },
- animated: {
- type: Object,
- default: void 0
- },
- editable: {
- type: Object
- },
- moreIcon: vue_types_default.any,
- moreTransitionName: {
- type: String
- },
- mobile: {
- type: Boolean
- },
- tabBarGutter: {
- type: Number
- },
- renderTabBar: {
- type: Function
- },
- locale: {
- type: Object,
- default: void 0
- },
- onTabClick: {
- type: Function
- },
- onTabScroll: {
- type: Function
- }
- };
- };
- var TabNavList_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "TabNavList",
- inheritAttrs: false,
- props: tabNavListProps(),
- slots: ["moreIcon", "leftExtra", "rightExtra", "tabBarExtraContent"],
- emits: ["tabClick", "tabScroll"],
- setup: function setup76(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var _useInjectTabs = useInjectTabs(), tabs = _useInjectTabs.tabs, prefixCls = _useInjectTabs.prefixCls;
- var tabsWrapperRef = ref();
- var tabListRef = ref();
- var operationsRef = ref();
- var innerAddButtonRef = ref();
- var _useRefs = useRefs_default(), _useRefs2 = _slicedToArray(_useRefs, 2), setRef = _useRefs2[0], btnRefs = _useRefs2[1];
- var tabPositionTopOrBottom = computed(function() {
- return props5.tabPosition === "top" || props5.tabPosition === "bottom";
- });
- var _useSyncState = useSyncState(0, function(next2, prev2) {
- if (tabPositionTopOrBottom.value && props5.onTabScroll) {
- props5.onTabScroll({
- direction: next2 > prev2 ? "left" : "right"
- });
- }
- }), _useSyncState2 = _slicedToArray(_useSyncState, 2), transformLeft = _useSyncState2[0], setTransformLeft = _useSyncState2[1];
- var _useSyncState3 = useSyncState(0, function(next2, prev2) {
- if (!tabPositionTopOrBottom.value && props5.onTabScroll) {
- props5.onTabScroll({
- direction: next2 > prev2 ? "top" : "bottom"
- });
- }
- }), _useSyncState4 = _slicedToArray(_useSyncState3, 2), transformTop = _useSyncState4[0], setTransformTop = _useSyncState4[1];
- var _useState = useState(0), _useState2 = _slicedToArray(_useState, 2), wrapperScrollWidth = _useState2[0], setWrapperScrollWidth = _useState2[1];
- var _useState3 = useState(0), _useState4 = _slicedToArray(_useState3, 2), wrapperScrollHeight = _useState4[0], setWrapperScrollHeight = _useState4[1];
- var _useState5 = useState(null), _useState6 = _slicedToArray(_useState5, 2), wrapperWidth = _useState6[0], setWrapperWidth = _useState6[1];
- var _useState7 = useState(null), _useState8 = _slicedToArray(_useState7, 2), wrapperHeight = _useState8[0], setWrapperHeight = _useState8[1];
- var _useState9 = useState(0), _useState10 = _slicedToArray(_useState9, 2), addWidth = _useState10[0], setAddWidth = _useState10[1];
- var _useState11 = useState(0), _useState12 = _slicedToArray(_useState11, 2), addHeight = _useState12[0], setAddHeight = _useState12[1];
- var _useRafState = useRafState(/* @__PURE__ */ new Map()), _useRafState2 = _slicedToArray(_useRafState, 2), tabSizes = _useRafState2[0], setTabSizes = _useRafState2[1];
- var tabOffsets = useOffsets(tabs, tabSizes);
- var operationsHiddenClassName = computed(function() {
- return "".concat(prefixCls.value, "-nav-operations-hidden");
- });
- var transformMin = ref(0);
- var transformMax = ref(0);
- watchEffect(function() {
- if (!tabPositionTopOrBottom.value) {
- transformMin.value = Math.min(0, wrapperHeight.value - wrapperScrollHeight.value);
- transformMax.value = 0;
- } else if (props5.rtl) {
- transformMin.value = 0;
- transformMax.value = Math.max(0, wrapperScrollWidth.value - wrapperWidth.value);
- } else {
- transformMin.value = Math.min(0, wrapperWidth.value - wrapperScrollWidth.value);
- transformMax.value = 0;
- }
- });
- var alignInRange = function alignInRange2(value) {
- if (value < transformMin.value) {
- return transformMin.value;
- }
- if (value > transformMax.value) {
- return transformMax.value;
- }
- return value;
- };
- var touchMovingRef = ref();
- var _useState13 = useState(), _useState14 = _slicedToArray(_useState13, 2), lockAnimation = _useState14[0], setLockAnimation = _useState14[1];
- var doLockAnimation = function doLockAnimation2() {
- setLockAnimation(Date.now());
- };
- var clearTouchMoving = function clearTouchMoving2() {
- clearTimeout(touchMovingRef.value);
- };
- var doMove = function doMove2(setState2, offset4) {
- setState2(function(value) {
- var newValue = alignInRange(value + offset4);
- return newValue;
- });
- };
- useTouchMove(tabsWrapperRef, function(offsetX, offsetY) {
- if (tabPositionTopOrBottom.value) {
- if (wrapperWidth.value >= wrapperScrollWidth.value) {
- return false;
- }
- doMove(setTransformLeft, offsetX);
- } else {
- if (wrapperHeight.value >= wrapperScrollHeight.value) {
- return false;
- }
- doMove(setTransformTop, offsetY);
- }
- clearTouchMoving();
- doLockAnimation();
- return true;
- });
- watch(lockAnimation, function() {
- clearTouchMoving();
- if (lockAnimation.value) {
- touchMovingRef.value = setTimeout(function() {
- setLockAnimation(0);
- }, 100);
- }
- });
- var scrollToTab = function scrollToTab2() {
- var key2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : props5.activeKey;
- var tabOffset = tabOffsets.value.get(key2) || {
- width: 0,
- height: 0,
- left: 0,
- right: 0,
- top: 0
- };
- if (tabPositionTopOrBottom.value) {
- var newTransform = transformLeft.value;
- if (props5.rtl) {
- if (tabOffset.right < transformLeft.value) {
- newTransform = tabOffset.right;
- } else if (tabOffset.right + tabOffset.width > transformLeft.value + wrapperWidth.value) {
- newTransform = tabOffset.right + tabOffset.width - wrapperWidth.value;
- }
- } else if (tabOffset.left < -transformLeft.value) {
- newTransform = -tabOffset.left;
- } else if (tabOffset.left + tabOffset.width > -transformLeft.value + wrapperWidth.value) {
- newTransform = -(tabOffset.left + tabOffset.width - wrapperWidth.value);
- }
- setTransformTop(0);
- setTransformLeft(alignInRange(newTransform));
- } else {
- var _newTransform = transformTop.value;
- if (tabOffset.top < -transformTop.value) {
- _newTransform = -tabOffset.top;
- } else if (tabOffset.top + tabOffset.height > -transformTop.value + wrapperHeight.value) {
- _newTransform = -(tabOffset.top + tabOffset.height - wrapperHeight.value);
- }
- setTransformLeft(0);
- setTransformTop(alignInRange(_newTransform));
- }
- };
- var visibleStart = ref(0);
- var visibleEnd = ref(0);
- watchEffect(function() {
- var _ref3;
- var unit;
- var position;
- var transformSize;
- var basicSize;
- var tabContentSize;
- var addSize;
- var tabOffsetsValue = tabOffsets.value;
- if (["top", "bottom"].includes(props5.tabPosition)) {
- unit = "width";
- basicSize = wrapperWidth.value;
- tabContentSize = wrapperScrollWidth.value;
- addSize = addWidth.value;
- position = props5.rtl ? "right" : "left";
- transformSize = Math.abs(transformLeft.value);
- } else {
- unit = "height";
- basicSize = wrapperHeight.value;
- tabContentSize = wrapperScrollWidth.value;
- addSize = addHeight.value;
- position = "top";
- transformSize = -transformTop.value;
- }
- var mergedBasicSize = basicSize;
- if (tabContentSize + addSize > basicSize && tabContentSize < basicSize) {
- mergedBasicSize = basicSize - addSize;
- }
- var tabsVal = tabs.value;
- if (!tabsVal.length) {
- var _ref2;
- return _ref2 = [0, 0], visibleStart.value = _ref2[0], visibleEnd.value = _ref2[1], _ref2;
- }
- var len = tabsVal.length;
- var endIndex = len;
- for (var i3 = 0; i3 < len; i3 += 1) {
- var offset4 = tabOffsetsValue.get(tabsVal[i3].key) || DEFAULT_SIZE2;
- if (offset4[position] + offset4[unit] > transformSize + mergedBasicSize) {
- endIndex = i3 - 1;
- break;
- }
- }
- var startIndex = 0;
- for (var _i = len - 1; _i >= 0; _i -= 1) {
- var _offset = tabOffsetsValue.get(tabsVal[_i].key) || DEFAULT_SIZE2;
- if (_offset[position] < transformSize) {
- startIndex = _i + 1;
- break;
- }
- }
- return _ref3 = [startIndex, endIndex], visibleStart.value = _ref3[0], visibleEnd.value = _ref3[1], _ref3;
- });
- var onListHolderResize = function onListHolderResize2() {
- var _tabsWrapperRef$value, _tabsWrapperRef$value2, _innerAddButtonRef$va, _tabListRef$value, _tabListRef$value2;
- var offsetWidth = ((_tabsWrapperRef$value = tabsWrapperRef.value) === null || _tabsWrapperRef$value === void 0 ? void 0 : _tabsWrapperRef$value.offsetWidth) || 0;
- var offsetHeight = ((_tabsWrapperRef$value2 = tabsWrapperRef.value) === null || _tabsWrapperRef$value2 === void 0 ? void 0 : _tabsWrapperRef$value2.offsetHeight) || 0;
- var addDom = ((_innerAddButtonRef$va = innerAddButtonRef.value) === null || _innerAddButtonRef$va === void 0 ? void 0 : _innerAddButtonRef$va.$el) || {};
- var newAddWidth = addDom.offsetWidth || 0;
- var newAddHeight = addDom.offsetHeight || 0;
- setWrapperWidth(offsetWidth);
- setWrapperHeight(offsetHeight);
- setAddWidth(newAddWidth);
- setAddHeight(newAddHeight);
- var newWrapperScrollWidth = (((_tabListRef$value = tabListRef.value) === null || _tabListRef$value === void 0 ? void 0 : _tabListRef$value.offsetWidth) || 0) - newAddWidth;
- var newWrapperScrollHeight = (((_tabListRef$value2 = tabListRef.value) === null || _tabListRef$value2 === void 0 ? void 0 : _tabListRef$value2.offsetHeight) || 0) - newAddHeight;
- setWrapperScrollWidth(newWrapperScrollWidth);
- setWrapperScrollHeight(newWrapperScrollHeight);
- setTabSizes(function() {
- var newSizes = /* @__PURE__ */ new Map();
- tabs.value.forEach(function(_ref4) {
- var key2 = _ref4.key;
- var btnRef = btnRefs.value.get(key2);
- var btnNode = (btnRef === null || btnRef === void 0 ? void 0 : btnRef.$el) || btnRef;
- if (btnNode) {
- newSizes.set(key2, {
- width: btnNode.offsetWidth,
- height: btnNode.offsetHeight,
- left: btnNode.offsetLeft,
- top: btnNode.offsetTop
- });
- }
- });
- return newSizes;
- });
- };
- var hiddenTabs = computed(function() {
- return [].concat(_toConsumableArray(tabs.value.slice(0, visibleStart.value)), _toConsumableArray(tabs.value.slice(visibleEnd.value + 1)));
- });
- var _useState15 = useState(), _useState16 = _slicedToArray(_useState15, 2), inkStyle = _useState16[0], setInkStyle = _useState16[1];
- var activeTabOffset = computed(function() {
- return tabOffsets.value.get(props5.activeKey);
- });
- var inkBarRafRef = ref();
- var cleanInkBarRaf = function cleanInkBarRaf2() {
- wrapperRaf.cancel(inkBarRafRef.value);
- };
- watch([activeTabOffset, tabPositionTopOrBottom, function() {
- return props5.rtl;
- }], function() {
- var newInkStyle = {};
- if (activeTabOffset.value) {
- if (tabPositionTopOrBottom.value) {
- if (props5.rtl) {
- newInkStyle.right = toPx(activeTabOffset.value.right);
- } else {
- newInkStyle.left = toPx(activeTabOffset.value.left);
- }
- newInkStyle.width = toPx(activeTabOffset.value.width);
- } else {
- newInkStyle.top = toPx(activeTabOffset.value.top);
- newInkStyle.height = toPx(activeTabOffset.value.height);
- }
- }
- cleanInkBarRaf();
- inkBarRafRef.value = wrapperRaf(function() {
- setInkStyle(newInkStyle);
- });
- });
- watch([function() {
- return props5.activeKey;
- }, activeTabOffset, tabOffsets, tabPositionTopOrBottom], function() {
- scrollToTab();
- }, {
- flush: "post"
- });
- watch([function() {
- return props5.rtl;
- }, function() {
- return props5.tabBarGutter;
- }, function() {
- return props5.activeKey;
- }, function() {
- return tabs.value;
- }], function() {
- onListHolderResize();
- }, {
- flush: "post"
- });
- var ExtraContent = function ExtraContent2(_ref5) {
- var position = _ref5.position, prefixCls2 = _ref5.prefixCls, extra = _ref5.extra;
- if (!extra)
- return null;
- var content = extra === null || extra === void 0 ? void 0 : extra({
- position
- });
- return content ? createVNode("div", {
- "class": "".concat(prefixCls2, "-extra-content")
- }, [content]) : null;
- };
- onBeforeUnmount(function() {
- clearTouchMoving();
- cleanInkBarRaf();
- });
- return function() {
- var _classNames;
- var id = props5.id, animated = props5.animated, activeKey = props5.activeKey, rtl3 = props5.rtl, editable = props5.editable, locale4 = props5.locale, tabPosition = props5.tabPosition, tabBarGutter = props5.tabBarGutter, onTabClick = props5.onTabClick;
- var className = attrs.class, style = attrs.style;
- var pre = prefixCls.value;
- var hasDropdown = !!hiddenTabs.value.length;
- var wrapPrefix = "".concat(pre, "-nav-wrap");
- var pingLeft;
- var pingRight;
- var pingTop;
- var pingBottom;
- if (tabPositionTopOrBottom.value) {
- if (rtl3) {
- pingRight = transformLeft.value > 0;
- pingLeft = transformLeft.value + wrapperWidth.value < wrapperScrollWidth.value;
- } else {
- pingLeft = transformLeft.value < 0;
- pingRight = -transformLeft.value + wrapperWidth.value < wrapperScrollWidth.value;
- }
- } else {
- pingTop = transformTop.value < 0;
- pingBottom = -transformTop.value + wrapperHeight.value < wrapperScrollHeight.value;
- }
- var tabNodeStyle = {};
- if (tabPosition === "top" || tabPosition === "bottom") {
- tabNodeStyle[rtl3 ? "marginRight" : "marginLeft"] = typeof tabBarGutter === "number" ? "".concat(tabBarGutter, "px") : tabBarGutter;
- } else {
- tabNodeStyle.marginTop = typeof tabBarGutter === "number" ? "".concat(tabBarGutter, "px") : tabBarGutter;
- }
- var tabNodes = tabs.value.map(function(tab, i3) {
- var key2 = tab.key;
- return createVNode(TabNode_default, {
- "id": id,
- "prefixCls": pre,
- "key": key2,
- "tab": tab,
- "style": i3 === 0 ? void 0 : tabNodeStyle,
- "closable": tab.closable,
- "editable": editable,
- "active": key2 === activeKey,
- "removeAriaLabel": locale4 === null || locale4 === void 0 ? void 0 : locale4.removeAriaLabel,
- "ref": setRef(key2),
- "onClick": function onClick2(e3) {
- onTabClick(key2, e3);
- },
- "onFocus": function onFocus2() {
- scrollToTab(key2);
- doLockAnimation();
- if (!tabsWrapperRef.value) {
- return;
- }
- if (!rtl3) {
- tabsWrapperRef.value.scrollLeft = 0;
- }
- tabsWrapperRef.value.scrollTop = 0;
- }
- }, slots);
- });
- return createVNode("div", {
- "role": "tablist",
- "class": classNames_default("".concat(pre, "-nav"), className),
- "style": style,
- "onKeydown": function onKeydown() {
- doLockAnimation();
- }
- }, [createVNode(ExtraContent, {
- "position": "left",
- "prefixCls": pre,
- "extra": slots.leftExtra
- }, null), createVNode(vc_resize_observer_default, {
- "onResize": onListHolderResize
- }, {
- default: function _default9() {
- return [createVNode("div", {
- "class": classNames_default(wrapPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-left"), pingLeft), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-right"), pingRight), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-top"), pingTop), _defineProperty(_classNames, "".concat(wrapPrefix, "-ping-bottom"), pingBottom), _classNames)),
- "ref": tabsWrapperRef
- }, [createVNode(vc_resize_observer_default, {
- "onResize": onListHolderResize
- }, {
- default: function _default10() {
- return [createVNode("div", {
- "ref": tabListRef,
- "class": "".concat(pre, "-nav-list"),
- "style": {
- transform: "translate(".concat(transformLeft.value, "px, ").concat(transformTop.value, "px)"),
- transition: lockAnimation.value ? "none" : void 0
- }
- }, [tabNodes, createVNode(AddButton_default, {
- "ref": innerAddButtonRef,
- "prefixCls": pre,
- "locale": locale4,
- "editable": editable,
- "style": _objectSpread2(_objectSpread2({}, tabNodes.length === 0 ? void 0 : tabNodeStyle), {}, {
- visibility: hasDropdown ? "hidden" : null
- })
- }, null), createVNode("div", {
- "class": classNames_default("".concat(pre, "-ink-bar"), _defineProperty({}, "".concat(pre, "-ink-bar-animated"), animated.inkBar)),
- "style": inkStyle.value
- }, null)])];
- }
- })])];
- }
- }), createVNode(OperationNode_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "removeAriaLabel": locale4 === null || locale4 === void 0 ? void 0 : locale4.removeAriaLabel,
- "ref": operationsRef,
- "prefixCls": pre,
- "tabs": hiddenTabs.value,
- "class": !hasDropdown && operationsHiddenClassName.value
- }), pick_default(slots, ["moreIcon"])), createVNode(ExtraContent, {
- "position": "right",
- "prefixCls": pre,
- "extra": slots.rightExtra
- }, null), createVNode(ExtraContent, {
- "position": "right",
- "prefixCls": pre,
- "extra": slots.tabBarExtraContent
- }, null)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/tabs/src/TabPanelList/index.js
- var TabPanelList_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "TabPanelList",
- inheritAttrs: false,
- props: {
- activeKey: {
- type: [String, Number]
- },
- id: {
- type: String
- },
- rtl: {
- type: Boolean
- },
- animated: {
- type: Object,
- default: void 0
- },
- tabPosition: {
- type: String
- },
- destroyInactiveTabPane: {
- type: Boolean
- }
- },
- setup: function setup77(props5) {
- var _useInjectTabs = useInjectTabs(), tabs = _useInjectTabs.tabs, prefixCls = _useInjectTabs.prefixCls;
- return function() {
- var id = props5.id, activeKey = props5.activeKey, animated = props5.animated, tabPosition = props5.tabPosition, rtl3 = props5.rtl, destroyInactiveTabPane = props5.destroyInactiveTabPane;
- var tabPaneAnimated = animated.tabPane;
- var pre = prefixCls.value;
- var activeIndex = tabs.value.findIndex(function(tab) {
- return tab.key === activeKey;
- });
- return createVNode("div", {
- "class": "".concat(pre, "-content-holder")
- }, [createVNode("div", {
- "class": ["".concat(pre, "-content"), "".concat(pre, "-content-").concat(tabPosition), _defineProperty({}, "".concat(pre, "-content-animated"), tabPaneAnimated)],
- "style": activeIndex && tabPaneAnimated ? _defineProperty({}, rtl3 ? "marginRight" : "marginLeft", "-".concat(activeIndex, "00%")) : null
- }, [tabs.value.map(function(tab) {
- return cloneElement(tab.node, {
- key: tab.key,
- prefixCls: pre,
- tabKey: tab.key,
- id,
- animated: tabPaneAnimated,
- active: tab.key === activeKey,
- destroyInactiveTabPane
- });
- })])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/tabs/src/Tabs.js
- var uuid2 = 0;
- var tabsProps = function tabsProps2() {
- return {
- prefixCls: {
- type: String
- },
- id: {
- type: String
- },
- activeKey: {
- type: [String, Number]
- },
- defaultActiveKey: {
- type: [String, Number]
- },
- direction: {
- type: String
- },
- animated: {
- type: [Boolean, Object]
- },
- renderTabBar: {
- type: Function
- },
- tabBarGutter: {
- type: Number
- },
- tabBarStyle: {
- type: Object
- },
- tabPosition: {
- type: String
- },
- destroyInactiveTabPane: {
- type: Boolean
- },
- hideAdd: Boolean,
- type: {
- type: String
- },
- size: {
- type: String
- },
- centered: Boolean,
- onEdit: {
- type: Function
- },
- onChange: {
- type: Function
- },
- onTabClick: {
- type: Function
- },
- onTabScroll: {
- type: Function
- },
- "onUpdate:activeKey": {
- type: Function
- },
- // Accessibility
- locale: {
- type: Object,
- default: void 0
- },
- onPrevClick: Function,
- onNextClick: Function,
- tabBarExtraContent: vue_types_default.any
- };
- };
- function parseTabList(children) {
- return children.map(function(node) {
- if (isValidElement(node)) {
- var props5 = _objectSpread2({}, node.props || {});
- for (var _i = 0, _Object$entries = Object.entries(props5); _i < _Object$entries.length; _i++) {
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), k2 = _Object$entries$_i[0], v2 = _Object$entries$_i[1];
- delete props5[k2];
- props5[camelize(k2)] = v2;
- }
- var slots = node.children || {};
- var key2 = node.key !== void 0 ? node.key : void 0;
- var _props$tab = props5.tab, tab = _props$tab === void 0 ? slots.tab : _props$tab, disabled = props5.disabled, forceRender = props5.forceRender, closable = props5.closable, animated = props5.animated, active = props5.active, destroyInactiveTabPane = props5.destroyInactiveTabPane;
- return _objectSpread2(_objectSpread2({
- key: key2
- }, props5), {}, {
- node,
- closeIcon: slots.closeIcon,
- tab,
- disabled: disabled === "" || disabled,
- forceRender: forceRender === "" || forceRender,
- closable: closable === "" || closable,
- animated: animated === "" || animated,
- active: active === "" || active,
- destroyInactiveTabPane: destroyInactiveTabPane === "" || destroyInactiveTabPane
- });
- }
- return null;
- }).filter(function(tab) {
- return tab;
- });
- }
- var InternalTabs = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "InternalTabs",
- inheritAttrs: false,
- props: _objectSpread2(_objectSpread2({}, initDefaultProps_default(tabsProps(), {
- tabPosition: "top",
- animated: {
- inkBar: true,
- tabPane: false
- }
- })), {}, {
- tabs: {
- type: Array
- }
- }),
- slots: ["tabBarExtraContent", "leftExtra", "rightExtra", "moreIcon", "addIcon", "removeIcon", "renderTabBar"],
- // emits: ['tabClick', 'tabScroll', 'change', 'update:activeKey'],
- setup: function setup78(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- devWarning_default(!(props5.onPrevClick !== void 0) && !(props5.onNextClick !== void 0), "Tabs", "`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead.");
- devWarning_default(!(props5.tabBarExtraContent !== void 0), "Tabs", "`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead.");
- devWarning_default(!(slots.tabBarExtraContent !== void 0), "Tabs", "`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");
- var _useConfigInject = useConfigInject_default("tabs", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, size = _useConfigInject.size, rootPrefixCls = _useConfigInject.rootPrefixCls;
- var rtl3 = computed(function() {
- return direction.value === "rtl";
- });
- var mergedAnimated = computed(function() {
- var animated = props5.animated, tabPosition = props5.tabPosition;
- if (animated === false || ["left", "right"].includes(tabPosition)) {
- return {
- inkBar: false,
- tabPane: false
- };
- } else if (animated === true) {
- return {
- inkBar: true,
- tabPane: true
- };
- } else {
- return _objectSpread2({
- inkBar: true,
- tabPane: false
- }, _typeof(animated) === "object" ? animated : {});
- }
- });
- var _useState = useState(false), _useState2 = _slicedToArray(_useState, 2), mobile = _useState2[0], setMobile = _useState2[1];
- onMounted(function() {
- setMobile(isMobile_default());
- });
- var _useMergedState = useMergedState(function() {
- var _props$tabs$;
- return (_props$tabs$ = props5.tabs[0]) === null || _props$tabs$ === void 0 ? void 0 : _props$tabs$.key;
- }, {
- value: computed(function() {
- return props5.activeKey;
- }),
- defaultValue: props5.defaultActiveKey
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedActiveKey = _useMergedState2[0], setMergedActiveKey = _useMergedState2[1];
- var _useState3 = useState(function() {
- return props5.tabs.findIndex(function(tab) {
- return tab.key === mergedActiveKey.value;
- });
- }), _useState4 = _slicedToArray(_useState3, 2), activeIndex = _useState4[0], setActiveIndex = _useState4[1];
- watchEffect(function() {
- var newActiveIndex = props5.tabs.findIndex(function(tab) {
- return tab.key === mergedActiveKey.value;
- });
- if (newActiveIndex === -1) {
- var _props$tabs$newActive;
- newActiveIndex = Math.max(0, Math.min(activeIndex.value, props5.tabs.length - 1));
- setMergedActiveKey((_props$tabs$newActive = props5.tabs[newActiveIndex]) === null || _props$tabs$newActive === void 0 ? void 0 : _props$tabs$newActive.key);
- }
- setActiveIndex(newActiveIndex);
- });
- var _useMergedState3 = useMergedState(null, {
- value: computed(function() {
- return props5.id;
- })
- }), _useMergedState4 = _slicedToArray(_useMergedState3, 2), mergedId = _useMergedState4[0], setMergedId = _useMergedState4[1];
- var mergedTabPosition = computed(function() {
- if (mobile.value && !["left", "right"].includes(props5.tabPosition)) {
- return "top";
- } else {
- return props5.tabPosition;
- }
- });
- onMounted(function() {
- if (!props5.id) {
- setMergedId("rc-tabs-".concat(false ? "test" : uuid2));
- uuid2 += 1;
- }
- });
- var onInternalTabClick = function onInternalTabClick2(key2, e3) {
- var _props$onTabClick;
- (_props$onTabClick = props5.onTabClick) === null || _props$onTabClick === void 0 ? void 0 : _props$onTabClick.call(props5, key2, e3);
- var isActiveChanged = key2 !== mergedActiveKey.value;
- setMergedActiveKey(key2);
- if (isActiveChanged) {
- var _props$onChange;
- (_props$onChange = props5.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props5, key2);
- }
- };
- useProvideTabs({
- tabs: computed(function() {
- return props5.tabs;
- }),
- prefixCls
- });
- return function() {
- var _classNames;
- var id = props5.id, type4 = props5.type, tabBarGutter = props5.tabBarGutter, tabBarStyle = props5.tabBarStyle, locale4 = props5.locale, destroyInactiveTabPane = props5.destroyInactiveTabPane, _props$renderTabBar = props5.renderTabBar, renderTabBar = _props$renderTabBar === void 0 ? slots.renderTabBar : _props$renderTabBar, onTabScroll = props5.onTabScroll, hideAdd = props5.hideAdd, centered = props5.centered;
- var sharedProps = {
- id: mergedId.value,
- activeKey: mergedActiveKey.value,
- animated: mergedAnimated.value,
- tabPosition: mergedTabPosition.value,
- rtl: rtl3.value,
- mobile: mobile.value
- };
- var editable;
- if (type4 === "editable-card") {
- editable = {
- onEdit: function onEdit(editType, _ref2) {
- var _props$onEdit;
- var key2 = _ref2.key, event = _ref2.event;
- (_props$onEdit = props5.onEdit) === null || _props$onEdit === void 0 ? void 0 : _props$onEdit.call(props5, editType === "add" ? event : key2, editType);
- },
- removeIcon: function removeIcon() {
- return createVNode(CloseOutlined_default, null, null);
- },
- addIcon: slots.addIcon ? slots.addIcon : function() {
- return createVNode(PlusOutlined_default, null, null);
- },
- showAdd: hideAdd !== true
- };
- }
- var tabNavBar;
- var tabNavBarProps = _objectSpread2(_objectSpread2({}, sharedProps), {}, {
- moreTransitionName: "".concat(rootPrefixCls.value, "-slide-up"),
- editable,
- locale: locale4,
- tabBarGutter,
- onTabClick: onInternalTabClick,
- onTabScroll,
- style: tabBarStyle
- });
- if (renderTabBar) {
- tabNavBar = renderTabBar(_objectSpread2(_objectSpread2({}, tabNavBarProps), {}, {
- DefaultTabBar: TabNavList_default
- }));
- } else {
- tabNavBar = createVNode(TabNavList_default, tabNavBarProps, pick_default(slots, ["moreIcon", "leftExtra", "rightExtra", "tabBarExtraContent"]));
- }
- var pre = prefixCls.value;
- return createVNode("div", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "id": id,
- "class": classNames_default(pre, "".concat(pre, "-").concat(mergedTabPosition.value), (_classNames = {}, _defineProperty(_classNames, "".concat(pre, "-").concat(size.value), size.value), _defineProperty(_classNames, "".concat(pre, "-card"), ["card", "editable-card"].includes(type4)), _defineProperty(_classNames, "".concat(pre, "-editable-card"), type4 === "editable-card"), _defineProperty(_classNames, "".concat(pre, "-centered"), centered), _defineProperty(_classNames, "".concat(pre, "-mobile"), mobile.value), _defineProperty(_classNames, "".concat(pre, "-editable"), type4 === "editable-card"), _defineProperty(_classNames, "".concat(pre, "-rtl"), rtl3.value), _classNames), attrs.class)
- }), [tabNavBar, createVNode(TabPanelList_default, _objectSpread2(_objectSpread2({
- "destroyInactiveTabPane": destroyInactiveTabPane
- }, sharedProps), {}, {
- "animated": mergedAnimated.value
- }), null)]);
- };
- }
- });
- var Tabs_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATabs",
- inheritAttrs: false,
- props: initDefaultProps_default(tabsProps(), {
- tabPosition: "top",
- animated: {
- inkBar: true,
- tabPane: false
- }
- }),
- slots: ["tabBarExtraContent", "leftExtra", "rightExtra", "moreIcon", "addIcon", "removeIcon", "renderTabBar"],
- // emits: ['tabClick', 'tabScroll', 'change', 'update:activeKey'],
- setup: function setup79(props5, _ref3) {
- var attrs = _ref3.attrs, slots = _ref3.slots, emit = _ref3.emit;
- var handleChange2 = function handleChange3(key2) {
- emit("update:activeKey", key2);
- emit("change", key2);
- };
- return function() {
- var _slots$default;
- var tabs = parseTabList(flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)));
- return createVNode(InternalTabs, _objectSpread2(_objectSpread2(_objectSpread2({}, omit_default(props5, ["onUpdate:activeKey"])), attrs), {}, {
- "onChange": handleChange2,
- "tabs": tabs
- }), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/tabs/src/TabPanelList/TabPane.js
- var tabPaneProps = function tabPaneProps2() {
- return {
- tab: vue_types_default.any,
- disabled: {
- type: Boolean
- },
- forceRender: {
- type: Boolean
- },
- closable: {
- type: Boolean
- },
- animated: {
- type: Boolean
- },
- active: {
- type: Boolean
- },
- destroyInactiveTabPane: {
- type: Boolean
- },
- // Pass by TabPaneList
- prefixCls: {
- type: String
- },
- tabKey: {
- type: [String, Number]
- },
- id: {
- type: String
- }
- // closeIcon: PropTypes.any,
- };
- };
- var TabPane_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATabPane",
- inheritAttrs: false,
- __ANT_TAB_PANE: true,
- props: tabPaneProps(),
- slots: ["closeIcon", "tab"],
- setup: function setup80(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var visited = ref(props5.forceRender);
- watch([function() {
- return props5.active;
- }, function() {
- return props5.destroyInactiveTabPane;
- }], function() {
- if (props5.active) {
- visited.value = true;
- } else if (props5.destroyInactiveTabPane) {
- visited.value = false;
- }
- }, {
- immediate: true
- });
- var mergedStyle = computed(function() {
- if (!props5.active) {
- if (props5.animated) {
- return {
- visibility: "hidden",
- height: 0,
- overflowY: "hidden"
- };
- } else {
- return {
- display: "none"
- };
- }
- }
- return {};
- });
- return function() {
- var _slots$default;
- var prefixCls = props5.prefixCls, forceRender = props5.forceRender, id = props5.id, active = props5.active, tabKey = props5.tabKey;
- return createVNode("div", {
- "id": id && "".concat(id, "-panel-").concat(tabKey),
- "role": "tabpanel",
- "tabindex": active ? 0 : -1,
- "aria-labelledby": id && "".concat(id, "-tab-").concat(tabKey),
- "aria-hidden": !active,
- "style": [mergedStyle.value, attrs.style],
- "class": ["".concat(prefixCls, "-tabpane"), active && "".concat(prefixCls, "-tabpane-active"), attrs.class]
- }, [(active || visited.value || forceRender) && ((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots))]);
- };
- }
- });
- // node_modules/ant-design-vue/es/tabs/src/index.js
- var src_default = Tabs_default;
- // node_modules/ant-design-vue/es/tabs/index.js
- src_default.TabPane = TabPane_default;
- src_default.install = function(app) {
- app.component(src_default.name, src_default);
- app.component(TabPane_default.name, TabPane_default);
- return app;
- };
- var tabs_default = src_default;
- // node_modules/ant-design-vue/es/_util/styleChecker.js
- var canUseDocElement = function canUseDocElement2() {
- return canUseDom_default() && window.document.documentElement;
- };
- var isStyleNameSupport = function isStyleNameSupport2(styleName) {
- if (canUseDom_default() && window.document.documentElement) {
- var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
- var documentElement = window.document.documentElement;
- return styleNameList.some(function(name) {
- return name in documentElement.style;
- });
- }
- return false;
- };
- var isStyleValueSupport = function isStyleValueSupport2(styleName, value) {
- if (!isStyleNameSupport(styleName)) {
- return false;
- }
- var ele = document.createElement("div");
- var origin = ele.style[styleName];
- ele.style[styleName] = value;
- return ele.style[styleName] !== origin;
- };
- function isStyleSupport(styleName, styleValue) {
- if (!Array.isArray(styleName) && styleValue !== void 0) {
- return isStyleValueSupport(styleName, styleValue);
- }
- return isStyleNameSupport(styleName);
- }
- var flexGapSupported;
- var detectFlexGapSupported = function detectFlexGapSupported2() {
- if (!canUseDocElement()) {
- return false;
- }
- if (flexGapSupported !== void 0) {
- return flexGapSupported;
- }
- var flex = document.createElement("div");
- flex.style.display = "flex";
- flex.style.flexDirection = "column";
- flex.style.rowGap = "1px";
- flex.appendChild(document.createElement("div"));
- flex.appendChild(document.createElement("div"));
- document.body.appendChild(flex);
- flexGapSupported = flex.scrollHeight === 1;
- document.body.removeChild(flex);
- return flexGapSupported;
- };
- var styleChecker_default = isStyleSupport;
- // node_modules/ant-design-vue/es/_util/hooks/useFlexGapSupport.js
- var useFlexGapSupport_default = function() {
- var flexible = ref(false);
- onMounted(function() {
- flexible.value = detectFlexGapSupported();
- });
- return flexible;
- };
- // node_modules/ant-design-vue/es/grid/context.js
- var RowContextKey = Symbol("rowContextKey");
- var useProvideRow = function useProvideRow2(state) {
- provide(RowContextKey, state);
- };
- var useInjectRow = function useInjectRow2() {
- return inject(RowContextKey, {
- gutter: computed(function() {
- return void 0;
- }),
- wrap: computed(function() {
- return void 0;
- }),
- supportFlexGap: computed(function() {
- return void 0;
- })
- });
- };
- var context_default2 = useProvideRow;
- // node_modules/ant-design-vue/es/grid/Row.js
- var RowAligns = tuple("top", "middle", "bottom", "stretch");
- var RowJustify = tuple("start", "end", "center", "space-around", "space-between");
- var rowProps = function rowProps2() {
- return {
- align: String,
- justify: String,
- prefixCls: String,
- gutter: {
- type: [Number, Array, Object],
- default: 0
- },
- wrap: {
- type: Boolean,
- default: void 0
- }
- };
- };
- var ARow = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ARow",
- props: rowProps(),
- setup: function setup81(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("row", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var token;
- var screens2 = ref({
- xs: true,
- sm: true,
- md: true,
- lg: true,
- xl: true,
- xxl: true,
- xxxl: true
- });
- var supportFlexGap = useFlexGapSupport_default();
- onMounted(function() {
- token = responsiveObserve_default.subscribe(function(screen) {
- var currentGutter = props5.gutter || 0;
- if (!Array.isArray(currentGutter) && _typeof(currentGutter) === "object" || Array.isArray(currentGutter) && (_typeof(currentGutter[0]) === "object" || _typeof(currentGutter[1]) === "object")) {
- screens2.value = screen;
- }
- });
- });
- onBeforeUnmount(function() {
- responsiveObserve_default.unsubscribe(token);
- });
- var gutter = computed(function() {
- var results = [0, 0];
- var _props$gutter = props5.gutter, gutter2 = _props$gutter === void 0 ? 0 : _props$gutter;
- var normalizedGutter = Array.isArray(gutter2) ? gutter2 : [gutter2, 0];
- normalizedGutter.forEach(function(g2, index3) {
- if (_typeof(g2) === "object") {
- for (var i3 = 0; i3 < responsiveArray.length; i3++) {
- var breakpoint = responsiveArray[i3];
- if (screens2.value[breakpoint] && g2[breakpoint] !== void 0) {
- results[index3] = g2[breakpoint];
- break;
- }
- }
- } else {
- results[index3] = g2 || 0;
- }
- });
- return results;
- });
- context_default2({
- gutter,
- supportFlexGap,
- wrap: computed(function() {
- return props5.wrap;
- })
- });
- var classes = computed(function() {
- var _classNames;
- return classNames_default(prefixCls.value, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-no-wrap"), props5.wrap === false), _defineProperty(_classNames, "".concat(prefixCls.value, "-").concat(props5.justify), props5.justify), _defineProperty(_classNames, "".concat(prefixCls.value, "-").concat(props5.align), props5.align), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _classNames));
- });
- var rowStyle = computed(function() {
- var gt = gutter.value;
- var style = {};
- var horizontalGutter = gt[0] > 0 ? "".concat(gt[0] / -2, "px") : void 0;
- var verticalGutter = gt[1] > 0 ? "".concat(gt[1] / -2, "px") : void 0;
- if (horizontalGutter) {
- style.marginLeft = horizontalGutter;
- style.marginRight = horizontalGutter;
- }
- if (supportFlexGap.value) {
- style.rowGap = "".concat(gt[1], "px");
- } else if (verticalGutter) {
- style.marginTop = verticalGutter;
- style.marginBottom = verticalGutter;
- }
- return style;
- });
- return function() {
- var _slots$default;
- return createVNode("div", {
- "class": classes.value,
- "style": rowStyle.value
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- var Row_default = ARow;
- // node_modules/ant-design-vue/es/grid/Col.js
- function parseFlex(flex) {
- if (typeof flex === "number") {
- return "".concat(flex, " ").concat(flex, " auto");
- }
- if (/^\d+(\.\d+)?(px|em|rem|%)$/.test(flex)) {
- return "0 0 ".concat(flex);
- }
- return flex;
- }
- var colProps = function colProps2() {
- return {
- span: [String, Number],
- order: [String, Number],
- offset: [String, Number],
- push: [String, Number],
- pull: [String, Number],
- xs: {
- type: [String, Number, Object],
- default: void 0
- },
- sm: {
- type: [String, Number, Object],
- default: void 0
- },
- md: {
- type: [String, Number, Object],
- default: void 0
- },
- lg: {
- type: [String, Number, Object],
- default: void 0
- },
- xl: {
- type: [String, Number, Object],
- default: void 0
- },
- xxl: {
- type: [String, Number, Object],
- default: void 0
- },
- xxxl: {
- type: [String, Number, Object],
- default: void 0
- },
- prefixCls: String,
- flex: [String, Number]
- };
- };
- var Col_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACol",
- props: colProps(),
- setup: function setup82(props5, _ref) {
- var slots = _ref.slots;
- var _useInjectRow = useInjectRow(), gutter = _useInjectRow.gutter, supportFlexGap = _useInjectRow.supportFlexGap, wrap = _useInjectRow.wrap;
- var _useConfigInject = useConfigInject_default("col", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var classes = computed(function() {
- var _classNames;
- var span = props5.span, order = props5.order, offset4 = props5.offset, push = props5.push, pull = props5.pull;
- var pre = prefixCls.value;
- var sizeClassObj = {};
- ["xs", "sm", "md", "lg", "xl", "xxl", "xxxl"].forEach(function(size) {
- var _objectSpread23;
- var sizeProps = {};
- var propSize = props5[size];
- if (typeof propSize === "number") {
- sizeProps.span = propSize;
- } else if (_typeof(propSize) === "object") {
- sizeProps = propSize || {};
- }
- sizeClassObj = _objectSpread2(_objectSpread2({}, sizeClassObj), {}, (_objectSpread23 = {}, _defineProperty(_objectSpread23, "".concat(pre, "-").concat(size, "-").concat(sizeProps.span), sizeProps.span !== void 0), _defineProperty(_objectSpread23, "".concat(pre, "-").concat(size, "-order-").concat(sizeProps.order), sizeProps.order || sizeProps.order === 0), _defineProperty(_objectSpread23, "".concat(pre, "-").concat(size, "-offset-").concat(sizeProps.offset), sizeProps.offset || sizeProps.offset === 0), _defineProperty(_objectSpread23, "".concat(pre, "-").concat(size, "-push-").concat(sizeProps.push), sizeProps.push || sizeProps.push === 0), _defineProperty(_objectSpread23, "".concat(pre, "-").concat(size, "-pull-").concat(sizeProps.pull), sizeProps.pull || sizeProps.pull === 0), _defineProperty(_objectSpread23, "".concat(pre, "-rtl"), direction.value === "rtl"), _objectSpread23));
- });
- return classNames_default(pre, (_classNames = {}, _defineProperty(_classNames, "".concat(pre, "-").concat(span), span !== void 0), _defineProperty(_classNames, "".concat(pre, "-order-").concat(order), order), _defineProperty(_classNames, "".concat(pre, "-offset-").concat(offset4), offset4), _defineProperty(_classNames, "".concat(pre, "-push-").concat(push), push), _defineProperty(_classNames, "".concat(pre, "-pull-").concat(pull), pull), _classNames), sizeClassObj);
- });
- var mergedStyle = computed(function() {
- var flex = props5.flex;
- var gutterVal = gutter.value;
- var style = {};
- if (gutterVal && gutterVal[0] > 0) {
- var horizontalGutter = "".concat(gutterVal[0] / 2, "px");
- style.paddingLeft = horizontalGutter;
- style.paddingRight = horizontalGutter;
- }
- if (gutterVal && gutterVal[1] > 0 && !supportFlexGap.value) {
- var verticalGutter = "".concat(gutterVal[1] / 2, "px");
- style.paddingTop = verticalGutter;
- style.paddingBottom = verticalGutter;
- }
- if (flex) {
- style.flex = parseFlex(flex);
- if (wrap.value === false && !style.minWidth) {
- style.minWidth = 0;
- }
- }
- return style;
- });
- return function() {
- var _slots$default;
- return createVNode("div", {
- "class": classes.value,
- "style": mergedStyle.value
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/grid/index.js
- var grid_default = {
- useBreakpoint: useBreakpoint_default
- };
- // node_modules/ant-design-vue/es/row/index.js
- var row_default = withInstall(Row_default);
- // node_modules/ant-design-vue/es/col/index.js
- var col_default = withInstall(Col_default);
- // node_modules/ant-design-vue/es/card/Card.js
- var TabPane = tabs_default.TabPane;
- var cardProps = function cardProps2() {
- return {
- prefixCls: String,
- title: vue_types_default.any,
- extra: vue_types_default.any,
- bordered: {
- type: Boolean,
- default: true
- },
- bodyStyle: {
- type: Object,
- default: void 0
- },
- headStyle: {
- type: Object,
- default: void 0
- },
- loading: {
- type: Boolean,
- default: false
- },
- hoverable: {
- type: Boolean,
- default: false
- },
- type: {
- type: String
- },
- size: {
- type: String
- },
- actions: vue_types_default.any,
- tabList: {
- type: Array
- },
- tabBarExtraContent: vue_types_default.any,
- activeTabKey: String,
- defaultActiveTabKey: String,
- cover: vue_types_default.any,
- onTabChange: {
- type: Function
- }
- };
- };
- var Card = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACard",
- props: cardProps(),
- slots: ["title", "extra", "tabBarExtraContent", "actions", "cover", "customTab"],
- setup: function setup83(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("card", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, size = _useConfigInject.size;
- var getAction = function getAction2(actions) {
- var actionList = actions.map(function(action, index3) {
- return isVNode(action) && !isEmptyElement(action) || !isVNode(action) ? createVNode("li", {
- "style": {
- width: "".concat(100 / actions.length, "%")
- },
- "key": "action-".concat(index3)
- }, [createVNode("span", null, [action])]) : null;
- });
- return actionList;
- };
- var triggerTabChange = function triggerTabChange2(key2) {
- var _props$onTabChange;
- (_props$onTabChange = props5.onTabChange) === null || _props$onTabChange === void 0 ? void 0 : _props$onTabChange.call(props5, key2);
- };
- var isContainGrid = function isContainGrid2() {
- var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- var containGrid;
- obj.forEach(function(element) {
- if (element && isPlainObject_default(element.type) && element.type.__ANT_CARD_GRID) {
- containGrid = true;
- }
- });
- return containGrid;
- };
- return function() {
- var _slots$tabBarExtraCon, _slots$title, _slots$extra, _slots$actions, _slots$cover, _slots$default, _classString, _tabsProps;
- var _props$headStyle = props5.headStyle, headStyle = _props$headStyle === void 0 ? {} : _props$headStyle, _props$bodyStyle = props5.bodyStyle, bodyStyle = _props$bodyStyle === void 0 ? {} : _props$bodyStyle, loading = props5.loading, _props$bordered = props5.bordered, bordered = _props$bordered === void 0 ? true : _props$bordered, type4 = props5.type, tabList = props5.tabList, hoverable = props5.hoverable, activeTabKey = props5.activeTabKey, defaultActiveTabKey = props5.defaultActiveTabKey, _props$tabBarExtraCon = props5.tabBarExtraContent, tabBarExtraContent = _props$tabBarExtraCon === void 0 ? filterEmptyWithUndefined((_slots$tabBarExtraCon = slots.tabBarExtraContent) === null || _slots$tabBarExtraCon === void 0 ? void 0 : _slots$tabBarExtraCon.call(slots)) : _props$tabBarExtraCon, _props$title = props5.title, title = _props$title === void 0 ? filterEmptyWithUndefined((_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots)) : _props$title, _props$extra = props5.extra, extra = _props$extra === void 0 ? filterEmptyWithUndefined((_slots$extra = slots.extra) === null || _slots$extra === void 0 ? void 0 : _slots$extra.call(slots)) : _props$extra, _props$actions = props5.actions, actions = _props$actions === void 0 ? filterEmptyWithUndefined((_slots$actions = slots.actions) === null || _slots$actions === void 0 ? void 0 : _slots$actions.call(slots)) : _props$actions, _props$cover = props5.cover, cover = _props$cover === void 0 ? filterEmptyWithUndefined((_slots$cover = slots.cover) === null || _slots$cover === void 0 ? void 0 : _slots$cover.call(slots)) : _props$cover;
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- var pre = prefixCls.value;
- var classString = (_classString = {}, _defineProperty(_classString, "".concat(pre), true), _defineProperty(_classString, "".concat(pre, "-loading"), loading), _defineProperty(_classString, "".concat(pre, "-bordered"), bordered), _defineProperty(_classString, "".concat(pre, "-hoverable"), !!hoverable), _defineProperty(_classString, "".concat(pre, "-contain-grid"), isContainGrid(children)), _defineProperty(_classString, "".concat(pre, "-contain-tabs"), tabList && tabList.length), _defineProperty(_classString, "".concat(pre, "-").concat(size.value), size.value), _defineProperty(_classString, "".concat(pre, "-type-").concat(type4), !!type4), _defineProperty(_classString, "".concat(pre, "-rtl"), direction.value === "rtl"), _classString);
- var loadingBlockStyle = bodyStyle.padding === 0 || bodyStyle.padding === "0px" ? {
- padding: "24px"
- } : void 0;
- var block = createVNode("div", {
- "class": "".concat(pre, "-loading-block")
- }, null);
- var loadingBlock = createVNode("div", {
- "class": "".concat(pre, "-loading-content"),
- "style": loadingBlockStyle
- }, [createVNode(row_default, {
- "gutter": 8
- }, {
- default: function _default9() {
- return [createVNode(col_default, {
- "span": 22
- }, {
- default: function _default10() {
- return [block];
- }
- })];
- }
- }), createVNode(row_default, {
- "gutter": 8
- }, {
- default: function _default9() {
- return [createVNode(col_default, {
- "span": 8
- }, {
- default: function _default10() {
- return [block];
- }
- }), createVNode(col_default, {
- "span": 15
- }, {
- default: function _default10() {
- return [block];
- }
- })];
- }
- }), createVNode(row_default, {
- "gutter": 8
- }, {
- default: function _default9() {
- return [createVNode(col_default, {
- "span": 6
- }, {
- default: function _default10() {
- return [block];
- }
- }), createVNode(col_default, {
- "span": 18
- }, {
- default: function _default10() {
- return [block];
- }
- })];
- }
- }), createVNode(row_default, {
- "gutter": 8
- }, {
- default: function _default9() {
- return [createVNode(col_default, {
- "span": 13
- }, {
- default: function _default10() {
- return [block];
- }
- }), createVNode(col_default, {
- "span": 9
- }, {
- default: function _default10() {
- return [block];
- }
- })];
- }
- }), createVNode(row_default, {
- "gutter": 8
- }, {
- default: function _default9() {
- return [createVNode(col_default, {
- "span": 4
- }, {
- default: function _default10() {
- return [block];
- }
- }), createVNode(col_default, {
- "span": 3
- }, {
- default: function _default10() {
- return [block];
- }
- }), createVNode(col_default, {
- "span": 16
- }, {
- default: function _default10() {
- return [block];
- }
- })];
- }
- })]);
- var hasActiveTabKey = activeTabKey !== void 0;
- var tabsProps3 = (_tabsProps = {
- size: "large"
- }, _defineProperty(_tabsProps, hasActiveTabKey ? "activeKey" : "defaultActiveKey", hasActiveTabKey ? activeTabKey : defaultActiveTabKey), _defineProperty(_tabsProps, "onChange", triggerTabChange), _defineProperty(_tabsProps, "class", "".concat(pre, "-head-tabs")), _tabsProps);
- var head;
- var tabs = tabList && tabList.length ? createVNode(tabs_default, tabsProps3, {
- default: function _default9() {
- return [tabList.map(function(item) {
- var temp = item.tab, itemSlots = item.slots;
- var name = itemSlots === null || itemSlots === void 0 ? void 0 : itemSlots.tab;
- devWarning_default(!itemSlots, "Card", "tabList slots is deprecated, Please use `customTab` instead.");
- var tab = temp !== void 0 ? temp : slots[name] ? slots[name](item) : null;
- tab = renderSlot(slots, "customTab", item, function() {
- return [tab];
- });
- return createVNode(TabPane, {
- "tab": tab,
- "key": item.key,
- "disabled": item.disabled
- }, null);
- })];
- },
- rightExtra: tabBarExtraContent ? function() {
- return tabBarExtraContent;
- } : null
- }) : null;
- if (title || extra || tabs) {
- head = createVNode("div", {
- "class": "".concat(pre, "-head"),
- "style": headStyle
- }, [createVNode("div", {
- "class": "".concat(pre, "-head-wrapper")
- }, [title && createVNode("div", {
- "class": "".concat(pre, "-head-title")
- }, [title]), extra && createVNode("div", {
- "class": "".concat(pre, "-extra")
- }, [extra])]), tabs]);
- }
- var coverDom = cover ? createVNode("div", {
- "class": "".concat(pre, "-cover")
- }, [cover]) : null;
- var body = createVNode("div", {
- "class": "".concat(pre, "-body"),
- "style": bodyStyle
- }, [loading ? loadingBlock : children]);
- var actionDom = actions && actions.length ? createVNode("ul", {
- "class": "".concat(pre, "-actions")
- }, [getAction(actions)]) : null;
- return createVNode("div", {
- "class": classString,
- "ref": "cardContainerRef"
- }, [head, coverDom, children && children.length ? body : null, actionDom]);
- };
- }
- });
- var Card_default = Card;
- // node_modules/ant-design-vue/es/card/Meta.js
- var cardMetaProps = function cardMetaProps2() {
- return {
- prefixCls: String,
- title: vue_types_default.any,
- description: vue_types_default.any,
- avatar: vue_types_default.any
- };
- };
- var Meta_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACardMeta",
- props: cardMetaProps(),
- slots: ["title", "description", "avatar"],
- setup: function setup84(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("card", props5), prefixCls = _useConfigInject.prefixCls;
- return function() {
- var classString = _defineProperty({}, "".concat(prefixCls.value, "-meta"), true);
- var avatar = getPropsSlot(slots, props5, "avatar");
- var title = getPropsSlot(slots, props5, "title");
- var description = getPropsSlot(slots, props5, "description");
- var avatarDom = avatar ? createVNode("div", {
- "class": "".concat(prefixCls.value, "-meta-avatar")
- }, [avatar]) : null;
- var titleDom = title ? createVNode("div", {
- "class": "".concat(prefixCls.value, "-meta-title")
- }, [title]) : null;
- var descriptionDom = description ? createVNode("div", {
- "class": "".concat(prefixCls.value, "-meta-description")
- }, [description]) : null;
- var MetaDetail = titleDom || descriptionDom ? createVNode("div", {
- "class": "".concat(prefixCls.value, "-meta-detail")
- }, [titleDom, descriptionDom]) : null;
- return createVNode("div", {
- "class": classString
- }, [avatarDom, MetaDetail]);
- };
- }
- });
- // node_modules/ant-design-vue/es/card/Grid.js
- var cardGridProps = function cardGridProps2() {
- return {
- prefixCls: String,
- hoverable: {
- type: Boolean,
- default: true
- }
- };
- };
- var Grid_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACardGrid",
- __ANT_CARD_GRID: true,
- props: cardGridProps(),
- setup: function setup85(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("card", props5), prefixCls = _useConfigInject.prefixCls;
- var classNames2 = computed(function() {
- var _ref2;
- return _ref2 = {}, _defineProperty(_ref2, "".concat(prefixCls.value, "-grid"), true), _defineProperty(_ref2, "".concat(prefixCls.value, "-grid-hoverable"), props5.hoverable), _ref2;
- });
- return function() {
- var _slots$default;
- return createVNode("div", {
- "class": classNames2.value
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/card/index.js
- Card_default.Meta = Meta_default;
- Card_default.Grid = Grid_default;
- Card_default.install = function(app) {
- app.component(Card_default.name, Card_default);
- app.component(Meta_default.name, Meta_default);
- app.component(Grid_default.name, Grid_default);
- return app;
- };
- var card_default = Card_default;
- // node_modules/ant-design-vue/es/collapse/commonProps.js
- var collapseProps = function collapseProps2() {
- return {
- prefixCls: String,
- activeKey: {
- type: [Array, Number, String]
- },
- defaultActiveKey: {
- type: [Array, Number, String]
- },
- accordion: {
- type: Boolean,
- default: void 0
- },
- destroyInactivePanel: {
- type: Boolean,
- default: void 0
- },
- bordered: {
- type: Boolean,
- default: void 0
- },
- expandIcon: Function,
- openAnimation: vue_types_default.object,
- expandIconPosition: vue_types_default.oneOf(tuple("left", "right")),
- collapsible: {
- type: String
- },
- ghost: {
- type: Boolean,
- default: void 0
- },
- onChange: Function,
- "onUpdate:activeKey": Function
- };
- };
- var collapsePanelProps = function collapsePanelProps2() {
- return {
- openAnimation: vue_types_default.object,
- prefixCls: String,
- header: vue_types_default.any,
- headerClass: String,
- showArrow: {
- type: Boolean,
- default: void 0
- },
- isActive: {
- type: Boolean,
- default: void 0
- },
- destroyInactivePanel: {
- type: Boolean,
- default: void 0
- },
- /** @deprecated Use `collapsible="disabled"` instead */
- disabled: {
- type: Boolean,
- default: void 0
- },
- accordion: {
- type: Boolean,
- default: void 0
- },
- forceRender: {
- type: Boolean,
- default: void 0
- },
- expandIcon: Function,
- extra: vue_types_default.any,
- panelKey: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number]),
- collapsible: {
- type: String
- },
- role: String,
- onItemClick: {
- type: Function
- }
- };
- };
- // node_modules/ant-design-vue/es/collapse/Collapse.js
- function getActiveKeysArray(activeKey) {
- var currentActiveKey = activeKey;
- if (!Array.isArray(currentActiveKey)) {
- var activeKeyType = _typeof(currentActiveKey);
- currentActiveKey = activeKeyType === "number" || activeKeyType === "string" ? [currentActiveKey] : [];
- }
- return currentActiveKey.map(function(key2) {
- return String(key2);
- });
- }
- var Collapse_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACollapse",
- inheritAttrs: false,
- props: initDefaultProps_default(collapseProps(), {
- accordion: false,
- destroyInactivePanel: false,
- bordered: true,
- openAnimation: collapseMotion_default("ant-motion-collapse", false),
- expandIconPosition: "left"
- }),
- slots: ["expandIcon"],
- // emits: ['change', 'update:activeKey'],
- setup: function setup86(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, emit = _ref.emit;
- var stateActiveKey = ref(getActiveKeysArray(firstNotUndefined_default([props5.activeKey, props5.defaultActiveKey])));
- watch(function() {
- return props5.activeKey;
- }, function() {
- stateActiveKey.value = getActiveKeysArray(props5.activeKey);
- }, {
- deep: true
- });
- var _useConfigInject = useConfigInject_default("collapse", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var iconPosition = computed(function() {
- var expandIconPosition = props5.expandIconPosition;
- if (expandIconPosition !== void 0) {
- return expandIconPosition;
- }
- return direction.value === "rtl" ? "right" : "left";
- });
- var renderExpandIcon3 = function renderExpandIcon4(panelProps) {
- var _props$expandIcon = props5.expandIcon, expandIcon = _props$expandIcon === void 0 ? slots.expandIcon : _props$expandIcon;
- var icon = expandIcon ? expandIcon(panelProps) : createVNode(RightOutlined_default, {
- "rotate": panelProps.isActive ? 90 : void 0
- }, null);
- return createVNode("div", null, [isValidElement(Array.isArray(expandIcon) ? icon[0] : icon) ? cloneElement(icon, {
- class: "".concat(prefixCls.value, "-arrow")
- }, false) : icon]);
- };
- var setActiveKey = function setActiveKey2(activeKey) {
- if (props5.activeKey === void 0) {
- stateActiveKey.value = activeKey;
- }
- var newKey = props5.accordion ? activeKey[0] : activeKey;
- emit("update:activeKey", newKey);
- emit("change", newKey);
- };
- var onClickItem = function onClickItem2(key2) {
- var activeKey = stateActiveKey.value;
- if (props5.accordion) {
- activeKey = activeKey[0] === key2 ? [] : [key2];
- } else {
- activeKey = _toConsumableArray(activeKey);
- var index3 = activeKey.indexOf(key2);
- var isActive = index3 > -1;
- if (isActive) {
- activeKey.splice(index3, 1);
- } else {
- activeKey.push(key2);
- }
- }
- setActiveKey(activeKey);
- };
- var getNewChild = function getNewChild2(child, index3) {
- var _child$key, _child$children, _child$children$heade;
- if (isEmptyElement(child))
- return;
- var activeKey = stateActiveKey.value;
- var accordion = props5.accordion, destroyInactivePanel = props5.destroyInactivePanel, collapsible = props5.collapsible, openAnimation = props5.openAnimation;
- var key2 = String((_child$key = child.key) !== null && _child$key !== void 0 ? _child$key : index3);
- var _ref2 = child.props || {}, _ref2$header = _ref2.header, header = _ref2$header === void 0 ? (_child$children = child.children) === null || _child$children === void 0 ? void 0 : (_child$children$heade = _child$children.header) === null || _child$children$heade === void 0 ? void 0 : _child$children$heade.call(_child$children) : _ref2$header, headerClass = _ref2.headerClass, childCollapsible = _ref2.collapsible, disabled = _ref2.disabled;
- var isActive = false;
- if (accordion) {
- isActive = activeKey[0] === key2;
- } else {
- isActive = activeKey.indexOf(key2) > -1;
- }
- var mergeCollapsible = childCollapsible !== null && childCollapsible !== void 0 ? childCollapsible : collapsible;
- if (disabled || disabled === "") {
- mergeCollapsible = "disabled";
- }
- var newProps = {
- key: key2,
- panelKey: key2,
- header,
- headerClass,
- isActive,
- prefixCls: prefixCls.value,
- destroyInactivePanel,
- openAnimation,
- accordion,
- onItemClick: mergeCollapsible === "disabled" ? null : onClickItem,
- expandIcon: renderExpandIcon3,
- collapsible: mergeCollapsible
- };
- return cloneElement(child, newProps);
- };
- var getItems = function getItems2() {
- var _slots$default;
- return flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)).map(getNewChild);
- };
- return function() {
- var _classNames;
- var accordion = props5.accordion, bordered = props5.bordered, ghost = props5.ghost;
- var collapseClassName = classNames_default((_classNames = {}, _defineProperty(_classNames, prefixCls.value, true), _defineProperty(_classNames, "".concat(prefixCls.value, "-borderless"), !bordered), _defineProperty(_classNames, "".concat(prefixCls.value, "-icon-position-").concat(iconPosition.value), true), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames, "".concat(prefixCls.value, "-ghost"), !!ghost), _defineProperty(_classNames, attrs.class, !!attrs.class), _classNames));
- return createVNode("div", _objectSpread2(_objectSpread2({
- "class": collapseClassName
- }, getDataAndAriaProps(attrs)), {}, {
- "style": attrs.style,
- "role": accordion ? "tablist" : null
- }), [getItems()]);
- };
- }
- });
- // node_modules/ant-design-vue/es/collapse/PanelContent.js
- var PanelContent_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "PanelContent",
- props: collapsePanelProps(),
- setup: function setup87(props5, _ref) {
- var slots = _ref.slots;
- var rendered = ref(false);
- watchEffect(function() {
- if (props5.isActive || props5.forceRender) {
- rendered.value = true;
- }
- });
- return function() {
- var _classNames, _slots$default;
- if (!rendered.value)
- return null;
- var prefixCls = props5.prefixCls, isActive = props5.isActive, role = props5.role;
- return createVNode("div", {
- "ref": ref,
- "class": classNames_default("".concat(prefixCls, "-content"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-content-active"), isActive), _defineProperty(_classNames, "".concat(prefixCls, "-content-inactive"), !isActive), _classNames)),
- "role": role
- }, [createVNode("div", {
- "class": "".concat(prefixCls, "-content-box")
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/collapse/CollapsePanel.js
- var CollapsePanel_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACollapsePanel",
- inheritAttrs: false,
- props: initDefaultProps_default(collapsePanelProps(), {
- showArrow: true,
- isActive: false,
- onItemClick: function onItemClick() {
- },
- headerClass: "",
- forceRender: false
- }),
- slots: ["expandIcon", "extra", "header"],
- // emits: ['itemClick'],
- setup: function setup88(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, attrs = _ref.attrs;
- devWarning_default(props5.disabled === void 0, "Collapse.Panel", '`disabled` is deprecated. Please use `collapsible="disabled"` instead.');
- var _useConfigInject = useConfigInject_default("collapse", props5), prefixCls = _useConfigInject.prefixCls;
- var handleItemClick = function handleItemClick2() {
- emit("itemClick", props5.panelKey);
- };
- var handleKeyPress = function handleKeyPress2(e3) {
- if (e3.key === "Enter" || e3.keyCode === 13 || e3.which === 13) {
- handleItemClick();
- }
- };
- return function() {
- var _slots$header, _slots$extra, _classNames, _classNames2;
- var _props$header = props5.header, header = _props$header === void 0 ? (_slots$header = slots.header) === null || _slots$header === void 0 ? void 0 : _slots$header.call(slots) : _props$header, headerClass = props5.headerClass, isActive = props5.isActive, showArrow = props5.showArrow, destroyInactivePanel = props5.destroyInactivePanel, accordion = props5.accordion, forceRender = props5.forceRender, openAnimation = props5.openAnimation, _props$expandIcon = props5.expandIcon, expandIcon = _props$expandIcon === void 0 ? slots.expandIcon : _props$expandIcon, _props$extra = props5.extra, extra = _props$extra === void 0 ? (_slots$extra = slots.extra) === null || _slots$extra === void 0 ? void 0 : _slots$extra.call(slots) : _props$extra, collapsible = props5.collapsible;
- var disabled = collapsible === "disabled";
- var prefixClsValue = prefixCls.value;
- var headerCls = classNames_default("".concat(prefixClsValue, "-header"), (_classNames = {}, _defineProperty(_classNames, headerClass, headerClass), _defineProperty(_classNames, "".concat(prefixClsValue, "-header-collapsible-only"), collapsible === "header"), _classNames));
- var itemCls = classNames_default((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixClsValue, "-item"), true), _defineProperty(_classNames2, "".concat(prefixClsValue, "-item-active"), isActive), _defineProperty(_classNames2, "".concat(prefixClsValue, "-item-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixClsValue, "-no-arrow"), !showArrow), _defineProperty(_classNames2, "".concat(attrs.class), !!attrs.class), _classNames2));
- var icon = createVNode("i", {
- "class": "arrow"
- }, null);
- if (showArrow && typeof expandIcon === "function") {
- icon = expandIcon(props5);
- }
- var panelContent = withDirectives(createVNode(PanelContent_default, {
- "prefixCls": prefixClsValue,
- "isActive": isActive,
- "forceRender": forceRender,
- "role": accordion ? "tabpanel" : null
- }, {
- default: slots.default
- }), [[vShow, isActive]]);
- var transitionProps = _objectSpread2({
- appear: false,
- css: false
- }, openAnimation);
- return createVNode("div", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "class": itemCls
- }), [createVNode("div", {
- "class": headerCls,
- "onClick": function onClick2() {
- return collapsible !== "header" && handleItemClick();
- },
- "role": accordion ? "tab" : "button",
- "tabindex": disabled ? -1 : 0,
- "aria-expanded": isActive,
- "onKeypress": handleKeyPress
- }, [showArrow && icon, collapsible === "header" ? createVNode("span", {
- "onClick": handleItemClick,
- "class": "".concat(prefixClsValue, "-header-text")
- }, [header]) : header, extra && createVNode("div", {
- "class": "".concat(prefixClsValue, "-extra")
- }, [extra])]), createVNode(transition_default, transitionProps, {
- default: function _default9() {
- return [!destroyInactivePanel || isActive ? panelContent : null];
- }
- })]);
- };
- }
- });
- // node_modules/ant-design-vue/es/collapse/index.js
- Collapse_default.Panel = CollapsePanel_default;
- Collapse_default.install = function(app) {
- app.component(Collapse_default.name, Collapse_default);
- app.component(CollapsePanel_default.name, CollapsePanel_default);
- return app;
- };
- var collapse_default = Collapse_default;
- // node_modules/ant-design-vue/es/_util/json2mq.js
- var camel2hyphen = function camel2hyphen2(str) {
- return str.replace(/[A-Z]/g, function(match3) {
- return "-" + match3.toLowerCase();
- }).toLowerCase();
- };
- var isDimension = function isDimension2(feature) {
- var re = /[height|width]$/;
- return re.test(feature);
- };
- var obj2mq = function obj2mq2(obj) {
- var mq = "";
- var features = Object.keys(obj);
- features.forEach(function(feature, index3) {
- var value = obj[feature];
- feature = camel2hyphen(feature);
- if (isDimension(feature) && typeof value === "number") {
- value = value + "px";
- }
- if (value === true) {
- mq += feature;
- } else if (value === false) {
- mq += "not " + feature;
- } else {
- mq += "(" + feature + ": " + value + ")";
- }
- if (index3 < features.length - 1) {
- mq += " and ";
- }
- });
- return mq;
- };
- function json2mq_default(query) {
- var mq = "";
- if (typeof query === "string") {
- return query;
- }
- if (query instanceof Array) {
- query.forEach(function(q2, index3) {
- mq += obj2mq(q2);
- if (index3 < query.length - 1) {
- mq += ", ";
- }
- });
- return mq;
- }
- return obj2mq(query);
- }
- // node_modules/lodash-es/now.js
- var now2 = function() {
- return root_default.Date.now();
- };
- var now_default = now2;
- // node_modules/lodash-es/debounce.js
- var FUNC_ERROR_TEXT2 = "Expected a function";
- var nativeMax2 = Math.max;
- var nativeMin = Math.min;
- function debounce(func, wait, options) {
- var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
- if (typeof func != "function") {
- throw new TypeError(FUNC_ERROR_TEXT2);
- }
- wait = toNumber_default(wait) || 0;
- if (isObject_default(options)) {
- leading = !!options.leading;
- maxing = "maxWait" in options;
- maxWait = maxing ? nativeMax2(toNumber_default(options.maxWait) || 0, wait) : maxWait;
- trailing = "trailing" in options ? !!options.trailing : trailing;
- }
- function invokeFunc(time) {
- var args = lastArgs, thisArg = lastThis;
- lastArgs = lastThis = void 0;
- lastInvokeTime = time;
- result = func.apply(thisArg, args);
- return result;
- }
- function leadingEdge(time) {
- lastInvokeTime = time;
- timerId = setTimeout(timerExpired, wait);
- return leading ? invokeFunc(time) : result;
- }
- function remainingWait(time) {
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
- return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
- }
- function shouldInvoke(time) {
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
- }
- function timerExpired() {
- var time = now_default();
- if (shouldInvoke(time)) {
- return trailingEdge(time);
- }
- timerId = setTimeout(timerExpired, remainingWait(time));
- }
- function trailingEdge(time) {
- timerId = void 0;
- if (trailing && lastArgs) {
- return invokeFunc(time);
- }
- lastArgs = lastThis = void 0;
- return result;
- }
- function cancel() {
- if (timerId !== void 0) {
- clearTimeout(timerId);
- }
- lastInvokeTime = 0;
- lastArgs = lastCallTime = lastThis = timerId = void 0;
- }
- function flush() {
- return timerId === void 0 ? result : trailingEdge(now_default());
- }
- function debounced() {
- var time = now_default(), isInvoking = shouldInvoke(time);
- lastArgs = arguments;
- lastThis = this;
- lastCallTime = time;
- if (isInvoking) {
- if (timerId === void 0) {
- return leadingEdge(lastCallTime);
- }
- if (maxing) {
- clearTimeout(timerId);
- timerId = setTimeout(timerExpired, wait);
- return invokeFunc(lastCallTime);
- }
- }
- if (timerId === void 0) {
- timerId = setTimeout(timerExpired, wait);
- }
- return result;
- }
- debounced.cancel = cancel;
- debounced.flush = flush;
- return debounced;
- }
- var debounce_default = debounce;
- // node_modules/ant-design-vue/es/vc-slick/default-props.js
- var defaultProps = {
- accessibility: {
- type: Boolean,
- default: true
- },
- // 自定义高度
- adaptiveHeight: {
- type: Boolean,
- default: false
- },
- afterChange: vue_types_default.any.def(null),
- arrows: {
- type: Boolean,
- default: true
- },
- autoplay: {
- type: Boolean,
- default: false
- },
- autoplaySpeed: vue_types_default.number.def(3e3),
- beforeChange: vue_types_default.any.def(null),
- centerMode: {
- type: Boolean,
- default: false
- },
- centerPadding: vue_types_default.string.def("50px"),
- cssEase: vue_types_default.string.def("ease"),
- dots: {
- type: Boolean,
- default: false
- },
- dotsClass: vue_types_default.string.def("slick-dots"),
- draggable: {
- type: Boolean,
- default: true
- },
- unslick: {
- type: Boolean,
- default: false
- },
- easing: vue_types_default.string.def("linear"),
- edgeFriction: vue_types_default.number.def(0.35),
- fade: {
- type: Boolean,
- default: false
- },
- focusOnSelect: {
- type: Boolean,
- default: false
- },
- infinite: {
- type: Boolean,
- default: true
- },
- initialSlide: vue_types_default.number.def(0),
- lazyLoad: vue_types_default.any.def(null),
- verticalSwiping: {
- type: Boolean,
- default: false
- },
- asNavFor: vue_types_default.any.def(null),
- // 圆点hover是否暂停
- pauseOnDotsHover: {
- type: Boolean,
- default: false
- },
- // focus是否暂停
- pauseOnFocus: {
- type: Boolean,
- default: false
- },
- // hover是否暂停
- pauseOnHover: {
- type: Boolean,
- default: true
- },
- responsive: vue_types_default.array,
- rows: vue_types_default.number.def(1),
- rtl: {
- type: Boolean,
- default: false
- },
- slide: vue_types_default.string.def("div"),
- slidesPerRow: vue_types_default.number.def(1),
- slidesToScroll: vue_types_default.number.def(1),
- slidesToShow: vue_types_default.number.def(1),
- speed: vue_types_default.number.def(500),
- swipe: {
- type: Boolean,
- default: true
- },
- swipeEvent: vue_types_default.any.def(null),
- swipeToSlide: {
- type: Boolean,
- default: false
- },
- touchMove: {
- type: Boolean,
- default: true
- },
- touchThreshold: vue_types_default.number.def(5),
- useCSS: {
- type: Boolean,
- default: true
- },
- useTransform: {
- type: Boolean,
- default: true
- },
- variableWidth: {
- type: Boolean,
- default: false
- },
- vertical: {
- type: Boolean,
- default: false
- },
- waitForAnimate: {
- type: Boolean,
- default: true
- },
- children: vue_types_default.array,
- __propsSymbol__: vue_types_default.any
- };
- var default_props_default = defaultProps;
- // node_modules/ant-design-vue/es/vc-slick/initial-state.js
- var initialState = {
- animating: false,
- autoplaying: null,
- currentDirection: 0,
- currentLeft: null,
- currentSlide: 0,
- direction: 1,
- dragging: false,
- edgeDragged: false,
- initialized: false,
- lazyLoadedList: [],
- listHeight: null,
- listWidth: null,
- scrolling: false,
- slideCount: null,
- slideHeight: null,
- slideWidth: null,
- swipeLeft: null,
- swiped: false,
- swiping: false,
- touchObject: {
- startX: 0,
- startY: 0,
- curX: 0,
- curY: 0
- },
- trackStyle: {},
- trackWidth: 0,
- targetSlide: 0
- };
- var initial_state_default = initialState;
- // node_modules/ant-design-vue/es/vc-slick/utils/innerSliderUtils.js
- function clamp(number4, lowerBound, upperBound) {
- return Math.max(lowerBound, Math.min(number4, upperBound));
- }
- var safePreventDefault = function safePreventDefault2(event) {
- var passiveEvents = ["touchstart", "touchmove", "wheel"];
- if (!passiveEvents.includes(event.type)) {
- event.preventDefault();
- }
- };
- var getOnDemandLazySlides = function getOnDemandLazySlides2(spec) {
- var onDemandSlides = [];
- var startIndex = lazyStartIndex(spec);
- var endIndex = lazyEndIndex(spec);
- for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
- if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {
- onDemandSlides.push(slideIndex);
- }
- }
- return onDemandSlides;
- };
- var lazyStartIndex = function lazyStartIndex2(spec) {
- return spec.currentSlide - lazySlidesOnLeft(spec);
- };
- var lazyEndIndex = function lazyEndIndex2(spec) {
- return spec.currentSlide + lazySlidesOnRight(spec);
- };
- var lazySlidesOnLeft = function lazySlidesOnLeft2(spec) {
- return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0;
- };
- var lazySlidesOnRight = function lazySlidesOnRight2(spec) {
- return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow;
- };
- var getWidth = function getWidth2(elem) {
- return elem && elem.offsetWidth || 0;
- };
- var getHeight = function getHeight2(elem) {
- return elem && elem.offsetHeight || 0;
- };
- var getSwipeDirection = function getSwipeDirection2(touchObject) {
- var verticalSwiping = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var swipeAngle;
- var xDist = touchObject.startX - touchObject.curX;
- var yDist = touchObject.startY - touchObject.curY;
- var r3 = Math.atan2(yDist, xDist);
- swipeAngle = Math.round(r3 * 180 / Math.PI);
- if (swipeAngle < 0) {
- swipeAngle = 360 - Math.abs(swipeAngle);
- }
- if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {
- return "left";
- }
- if (swipeAngle >= 135 && swipeAngle <= 225) {
- return "right";
- }
- if (verticalSwiping === true) {
- if (swipeAngle >= 35 && swipeAngle <= 135) {
- return "up";
- } else {
- return "down";
- }
- }
- return "vertical";
- };
- var canGoNext = function canGoNext2(spec) {
- var canGo = true;
- if (!spec.infinite) {
- if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {
- canGo = false;
- } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) {
- canGo = false;
- }
- }
- return canGo;
- };
- var extractObject = function extractObject2(spec, keys2) {
- var newObject = {};
- keys2.forEach(function(key2) {
- return newObject[key2] = spec[key2];
- });
- return newObject;
- };
- var initializedState = function initializedState2(spec) {
- var slideCount = spec.children.length;
- var listNode = spec.listRef;
- var listWidth = Math.ceil(getWidth(listNode));
- var trackNode = spec.trackRef;
- var trackWidth = Math.ceil(getWidth(trackNode));
- var slideWidth;
- if (!spec.vertical) {
- var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;
- if (typeof spec.centerPadding === "string" && spec.centerPadding.slice(-1) === "%") {
- centerPaddingAdj *= listWidth / 100;
- }
- slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);
- } else {
- slideWidth = listWidth;
- }
- var slideHeight = listNode && getHeight(listNode.querySelector('[data-index="0"]'));
- var listHeight = slideHeight * spec.slidesToShow;
- var currentSlide = spec.currentSlide === void 0 ? spec.initialSlide : spec.currentSlide;
- if (spec.rtl && spec.currentSlide === void 0) {
- currentSlide = slideCount - 1 - spec.initialSlide;
- }
- var lazyLoadedList = spec.lazyLoadedList || [];
- var slidesToLoad = getOnDemandLazySlides(_objectSpread2(_objectSpread2({}, spec), {}, {
- currentSlide,
- lazyLoadedList
- }), spec);
- lazyLoadedList = lazyLoadedList.concat(slidesToLoad);
- var state = {
- slideCount,
- slideWidth,
- listWidth,
- trackWidth,
- currentSlide,
- slideHeight,
- listHeight,
- lazyLoadedList
- };
- if (spec.autoplaying === null && spec.autoplay) {
- state["autoplaying"] = "playing";
- }
- return state;
- };
- var slideHandler = function slideHandler2(spec) {
- var waitForAnimate = spec.waitForAnimate, animating = spec.animating, fade = spec.fade, infinite = spec.infinite, index3 = spec.index, slideCount = spec.slideCount, lazyLoad = spec.lazyLoad, currentSlide = spec.currentSlide, centerMode = spec.centerMode, slidesToScroll = spec.slidesToScroll, slidesToShow = spec.slidesToShow, useCSS = spec.useCSS;
- var lazyLoadedList = spec.lazyLoadedList;
- if (waitForAnimate && animating)
- return {};
- var animationSlide = index3;
- var finalSlide;
- var animationLeft;
- var finalLeft;
- var state = {};
- var nextState = {};
- var targetSlide = infinite ? index3 : clamp(index3, 0, slideCount - 1);
- if (fade) {
- if (!infinite && (index3 < 0 || index3 >= slideCount))
- return {};
- if (index3 < 0) {
- animationSlide = index3 + slideCount;
- } else if (index3 >= slideCount) {
- animationSlide = index3 - slideCount;
- }
- if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {
- lazyLoadedList = lazyLoadedList.concat(animationSlide);
- }
- state = {
- animating: true,
- currentSlide: animationSlide,
- lazyLoadedList,
- targetSlide: animationSlide
- };
- nextState = {
- animating: false,
- targetSlide: animationSlide
- };
- } else {
- finalSlide = animationSlide;
- if (animationSlide < 0) {
- finalSlide = animationSlide + slideCount;
- if (!infinite)
- finalSlide = 0;
- else if (slideCount % slidesToScroll !== 0) {
- finalSlide = slideCount - slideCount % slidesToScroll;
- }
- } else if (!canGoNext(spec) && animationSlide > currentSlide) {
- animationSlide = finalSlide = currentSlide;
- } else if (centerMode && animationSlide >= slideCount) {
- animationSlide = infinite ? slideCount : slideCount - 1;
- finalSlide = infinite ? 0 : slideCount - 1;
- } else if (animationSlide >= slideCount) {
- finalSlide = animationSlide - slideCount;
- if (!infinite)
- finalSlide = slideCount - slidesToShow;
- else if (slideCount % slidesToScroll !== 0)
- finalSlide = 0;
- }
- if (!infinite && animationSlide + slidesToShow >= slideCount) {
- finalSlide = slideCount - slidesToShow;
- }
- animationLeft = getTrackLeft(_objectSpread2(_objectSpread2({}, spec), {}, {
- slideIndex: animationSlide
- }));
- finalLeft = getTrackLeft(_objectSpread2(_objectSpread2({}, spec), {}, {
- slideIndex: finalSlide
- }));
- if (!infinite) {
- if (animationLeft === finalLeft)
- animationSlide = finalSlide;
- animationLeft = finalLeft;
- }
- if (lazyLoad) {
- lazyLoadedList = lazyLoadedList.concat(getOnDemandLazySlides(_objectSpread2(_objectSpread2({}, spec), {}, {
- currentSlide: animationSlide
- })));
- }
- if (!useCSS) {
- state = {
- currentSlide: finalSlide,
- trackStyle: getTrackCSS(_objectSpread2(_objectSpread2({}, spec), {}, {
- left: finalLeft
- })),
- lazyLoadedList,
- targetSlide
- };
- } else {
- state = {
- animating: true,
- currentSlide: finalSlide,
- trackStyle: getTrackAnimateCSS(_objectSpread2(_objectSpread2({}, spec), {}, {
- left: animationLeft
- })),
- lazyLoadedList,
- targetSlide
- };
- nextState = {
- animating: false,
- currentSlide: finalSlide,
- trackStyle: getTrackCSS(_objectSpread2(_objectSpread2({}, spec), {}, {
- left: finalLeft
- })),
- swipeLeft: null,
- targetSlide
- };
- }
- }
- return {
- state,
- nextState
- };
- };
- var changeSlide = function changeSlide2(spec, options) {
- var previousInt, slideOffset, targetSlide;
- var slidesToScroll = spec.slidesToScroll, slidesToShow = spec.slidesToShow, slideCount = spec.slideCount, currentSlide = spec.currentSlide, previousTargetSlide = spec.targetSlide, lazyLoad = spec.lazyLoad, infinite = spec.infinite;
- var unevenOffset = slideCount % slidesToScroll !== 0;
- var indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;
- if (options.message === "previous") {
- slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;
- targetSlide = currentSlide - slideOffset;
- if (lazyLoad && !infinite) {
- previousInt = currentSlide - slideOffset;
- targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;
- }
- if (!infinite) {
- targetSlide = previousTargetSlide - slidesToScroll;
- }
- } else if (options.message === "next") {
- slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;
- targetSlide = currentSlide + slideOffset;
- if (lazyLoad && !infinite) {
- targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset;
- }
- if (!infinite) {
- targetSlide = previousTargetSlide + slidesToScroll;
- }
- } else if (options.message === "dots") {
- targetSlide = options.index * options.slidesToScroll;
- } else if (options.message === "children") {
- targetSlide = options.index;
- if (infinite) {
- var direction = siblingDirection(_objectSpread2(_objectSpread2({}, spec), {}, {
- targetSlide
- }));
- if (targetSlide > options.currentSlide && direction === "left") {
- targetSlide = targetSlide - slideCount;
- } else if (targetSlide < options.currentSlide && direction === "right") {
- targetSlide = targetSlide + slideCount;
- }
- }
- } else if (options.message === "index") {
- targetSlide = Number(options.index);
- }
- return targetSlide;
- };
- var keyHandler = function keyHandler2(e3, accessibility, rtl3) {
- if (e3.target.tagName.match("TEXTAREA|INPUT|SELECT") || !accessibility) {
- return "";
- }
- if (e3.keyCode === 37)
- return rtl3 ? "next" : "previous";
- if (e3.keyCode === 39)
- return rtl3 ? "previous" : "next";
- return "";
- };
- var swipeStart = function swipeStart2(e3, swipe, draggable) {
- e3.target.tagName === "IMG" && safePreventDefault(e3);
- if (!swipe || !draggable && e3.type.indexOf("mouse") !== -1)
- return "";
- return {
- dragging: true,
- touchObject: {
- startX: e3.touches ? e3.touches[0].pageX : e3.clientX,
- startY: e3.touches ? e3.touches[0].pageY : e3.clientY,
- curX: e3.touches ? e3.touches[0].pageX : e3.clientX,
- curY: e3.touches ? e3.touches[0].pageY : e3.clientY
- }
- };
- };
- var swipeMove = function swipeMove2(e3, spec) {
- var scrolling = spec.scrolling, animating = spec.animating, vertical = spec.vertical, swipeToSlide = spec.swipeToSlide, verticalSwiping = spec.verticalSwiping, rtl3 = spec.rtl, currentSlide = spec.currentSlide, edgeFriction = spec.edgeFriction, edgeDragged = spec.edgeDragged, onEdge = spec.onEdge, swiped = spec.swiped, swiping = spec.swiping, slideCount = spec.slideCount, slidesToScroll = spec.slidesToScroll, infinite = spec.infinite, touchObject = spec.touchObject, swipeEvent = spec.swipeEvent, listHeight = spec.listHeight, listWidth = spec.listWidth;
- if (scrolling)
- return;
- if (animating)
- return safePreventDefault(e3);
- if (vertical && swipeToSlide && verticalSwiping)
- safePreventDefault(e3);
- var swipeLeft;
- var state = {};
- var curLeft = getTrackLeft(spec);
- touchObject.curX = e3.touches ? e3.touches[0].pageX : e3.clientX;
- touchObject.curY = e3.touches ? e3.touches[0].pageY : e3.clientY;
- touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2)));
- var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2)));
- if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {
- return {
- scrolling: true
- };
- }
- if (verticalSwiping)
- touchObject.swipeLength = verticalSwipeLength;
- var positionOffset = (!rtl3 ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);
- if (verticalSwiping) {
- positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;
- }
- var dotCount = Math.ceil(slideCount / slidesToScroll);
- var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);
- var touchSwipeLength = touchObject.swipeLength;
- if (!infinite) {
- if (currentSlide === 0 && (swipeDirection === "right" || swipeDirection === "down") || currentSlide + 1 >= dotCount && (swipeDirection === "left" || swipeDirection === "up") || !canGoNext(spec) && (swipeDirection === "left" || swipeDirection === "up")) {
- touchSwipeLength = touchObject.swipeLength * edgeFriction;
- if (edgeDragged === false && onEdge) {
- onEdge(swipeDirection);
- state["edgeDragged"] = true;
- }
- }
- }
- if (!swiped && swipeEvent) {
- swipeEvent(swipeDirection);
- state["swiped"] = true;
- }
- if (!vertical) {
- if (!rtl3) {
- swipeLeft = curLeft + touchSwipeLength * positionOffset;
- } else {
- swipeLeft = curLeft - touchSwipeLength * positionOffset;
- }
- } else {
- swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;
- }
- if (verticalSwiping) {
- swipeLeft = curLeft + touchSwipeLength * positionOffset;
- }
- state = _objectSpread2(_objectSpread2({}, state), {}, {
- touchObject,
- swipeLeft,
- trackStyle: getTrackCSS(_objectSpread2(_objectSpread2({}, spec), {}, {
- left: swipeLeft
- }))
- });
- if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) {
- return state;
- }
- if (touchObject.swipeLength > 10) {
- state["swiping"] = true;
- safePreventDefault(e3);
- }
- return state;
- };
- var swipeEnd = function swipeEnd2(e3, spec) {
- var dragging = spec.dragging, swipe = spec.swipe, touchObject = spec.touchObject, listWidth = spec.listWidth, touchThreshold = spec.touchThreshold, verticalSwiping = spec.verticalSwiping, listHeight = spec.listHeight, swipeToSlide = spec.swipeToSlide, scrolling = spec.scrolling, onSwipe = spec.onSwipe, targetSlide = spec.targetSlide, currentSlide = spec.currentSlide, infinite = spec.infinite;
- if (!dragging) {
- if (swipe)
- safePreventDefault(e3);
- return {};
- }
- var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold;
- var swipeDirection = getSwipeDirection(touchObject, verticalSwiping);
- var state = {
- dragging: false,
- edgeDragged: false,
- scrolling: false,
- swiping: false,
- swiped: false,
- swipeLeft: null,
- touchObject: {}
- };
- if (scrolling) {
- return state;
- }
- if (!touchObject.swipeLength) {
- return state;
- }
- if (touchObject.swipeLength > minSwipe) {
- safePreventDefault(e3);
- if (onSwipe) {
- onSwipe(swipeDirection);
- }
- var slideCount, newSlide;
- var activeSlide = infinite ? currentSlide : targetSlide;
- switch (swipeDirection) {
- case "left":
- case "up":
- newSlide = activeSlide + getSlideCount(spec);
- slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
- state["currentDirection"] = 0;
- break;
- case "right":
- case "down":
- newSlide = activeSlide - getSlideCount(spec);
- slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
- state["currentDirection"] = 1;
- break;
- default:
- slideCount = activeSlide;
- }
- state["triggerSlideHandler"] = slideCount;
- } else {
- var currentLeft = getTrackLeft(spec);
- state["trackStyle"] = getTrackAnimateCSS(_objectSpread2(_objectSpread2({}, spec), {}, {
- left: currentLeft
- }));
- }
- return state;
- };
- var getNavigableIndexes = function getNavigableIndexes2(spec) {
- var max3 = spec.infinite ? spec.slideCount * 2 : spec.slideCount;
- var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;
- var counter = spec.infinite ? spec.slidesToShow * -1 : 0;
- var indexes = [];
- while (breakpoint < max3) {
- indexes.push(breakpoint);
- breakpoint = counter + spec.slidesToScroll;
- counter += Math.min(spec.slidesToScroll, spec.slidesToShow);
- }
- return indexes;
- };
- var checkNavigable = function checkNavigable2(spec, index3) {
- var navigables = getNavigableIndexes(spec);
- var prevNavigable = 0;
- if (index3 > navigables[navigables.length - 1]) {
- index3 = navigables[navigables.length - 1];
- } else {
- for (var n3 in navigables) {
- if (index3 < navigables[n3]) {
- index3 = prevNavigable;
- break;
- }
- prevNavigable = navigables[n3];
- }
- }
- return index3;
- };
- var getSlideCount = function getSlideCount2(spec) {
- var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0;
- if (spec.swipeToSlide) {
- var swipedSlide;
- var slickList = spec.listRef;
- var slides = slickList.querySelectorAll && slickList.querySelectorAll(".slick-slide") || [];
- Array.from(slides).every(function(slide) {
- if (!spec.vertical) {
- if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) {
- swipedSlide = slide;
- return false;
- }
- } else {
- if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {
- swipedSlide = slide;
- return false;
- }
- }
- return true;
- });
- if (!swipedSlide) {
- return 0;
- }
- var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide;
- var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1;
- return slidesTraversed;
- } else {
- return spec.slidesToScroll;
- }
- };
- var checkSpecKeys = function checkSpecKeys2(spec, keysArray) {
- return keysArray.reduce(function(value, key2) {
- return value && spec.hasOwnProperty(key2);
- }, true) ? null : console.error("Keys Missing:", spec);
- };
- var getTrackCSS = function getTrackCSS2(spec) {
- checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth"]);
- var trackWidth, trackHeight;
- var trackChildren = spec.slideCount + 2 * spec.slidesToShow;
- if (!spec.vertical) {
- trackWidth = getTotalSlides(spec) * spec.slideWidth;
- } else {
- trackHeight = trackChildren * spec.slideHeight;
- }
- var style = {
- opacity: 1,
- transition: "",
- WebkitTransition: ""
- };
- if (spec.useTransform) {
- var WebkitTransform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)";
- var transform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)";
- var msTransform = !spec.vertical ? "translateX(" + spec.left + "px)" : "translateY(" + spec.left + "px)";
- style = _objectSpread2(_objectSpread2({}, style), {}, {
- WebkitTransform,
- transform,
- msTransform
- });
- } else {
- if (spec.vertical) {
- style["top"] = spec.left;
- } else {
- style["left"] = spec.left;
- }
- }
- if (spec.fade)
- style = {
- opacity: 1
- };
- if (trackWidth)
- style.width = trackWidth + "px";
- if (trackHeight)
- style.height = trackHeight + "px";
- if (window && !window.addEventListener && window.attachEvent) {
- if (!spec.vertical) {
- style.marginLeft = spec.left + "px";
- } else {
- style.marginTop = spec.left + "px";
- }
- }
- return style;
- };
- var getTrackAnimateCSS = function getTrackAnimateCSS2(spec) {
- checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
- var style = getTrackCSS(spec);
- if (spec.useTransform) {
- style.WebkitTransition = "-webkit-transform " + spec.speed + "ms " + spec.cssEase;
- style.transition = "transform " + spec.speed + "ms " + spec.cssEase;
- } else {
- if (spec.vertical) {
- style.transition = "top " + spec.speed + "ms " + spec.cssEase;
- } else {
- style.transition = "left " + spec.speed + "ms " + spec.cssEase;
- }
- }
- return style;
- };
- var getTrackLeft = function getTrackLeft2(spec) {
- if (spec.unslick) {
- return 0;
- }
- checkSpecKeys(spec, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
- var slideIndex = spec.slideIndex, trackRef = spec.trackRef, infinite = spec.infinite, centerMode = spec.centerMode, slideCount = spec.slideCount, slidesToShow = spec.slidesToShow, slidesToScroll = spec.slidesToScroll, slideWidth = spec.slideWidth, listWidth = spec.listWidth, variableWidth = spec.variableWidth, slideHeight = spec.slideHeight, fade = spec.fade, vertical = spec.vertical;
- var slideOffset = 0;
- var targetLeft;
- var targetSlide;
- var verticalOffset = 0;
- if (fade || spec.slideCount === 1) {
- return 0;
- }
- var slidesToOffset = 0;
- if (infinite) {
- slidesToOffset = -getPreClones(spec);
- if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
- slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll);
- }
- if (centerMode) {
- slidesToOffset += parseInt(slidesToShow / 2);
- }
- } else {
- if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
- slidesToOffset = slidesToShow - slideCount % slidesToScroll;
- }
- if (centerMode) {
- slidesToOffset = parseInt(slidesToShow / 2);
- }
- }
- slideOffset = slidesToOffset * slideWidth;
- verticalOffset = slidesToOffset * slideHeight;
- if (!vertical) {
- targetLeft = slideIndex * slideWidth * -1 + slideOffset;
- } else {
- targetLeft = slideIndex * slideHeight * -1 + verticalOffset;
- }
- if (variableWidth === true) {
- var targetSlideIndex;
- var trackElem = trackRef;
- targetSlideIndex = slideIndex + getPreClones(spec);
- targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];
- targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;
- if (centerMode === true) {
- targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex;
- targetSlide = trackElem && trackElem.children[targetSlideIndex];
- targetLeft = 0;
- for (var slide = 0; slide < targetSlideIndex; slide++) {
- targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth;
- }
- targetLeft -= parseInt(spec.centerPadding);
- targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;
- }
- }
- return targetLeft;
- };
- var getPreClones = function getPreClones2(spec) {
- if (spec.unslick || !spec.infinite) {
- return 0;
- }
- if (spec.variableWidth) {
- return spec.slideCount;
- }
- return spec.slidesToShow + (spec.centerMode ? 1 : 0);
- };
- var getPostClones = function getPostClones2(spec) {
- if (spec.unslick || !spec.infinite) {
- return 0;
- }
- return spec.slideCount;
- };
- var getTotalSlides = function getTotalSlides2(spec) {
- return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec);
- };
- var siblingDirection = function siblingDirection2(spec) {
- if (spec.targetSlide > spec.currentSlide) {
- if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {
- return "left";
- }
- return "right";
- } else {
- if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {
- return "right";
- }
- return "left";
- }
- };
- var slidesOnRight = function slidesOnRight2(_ref) {
- var slidesToShow = _ref.slidesToShow, centerMode = _ref.centerMode, rtl3 = _ref.rtl, centerPadding = _ref.centerPadding;
- if (centerMode) {
- var right = (slidesToShow - 1) / 2 + 1;
- if (parseInt(centerPadding) > 0)
- right += 1;
- if (rtl3 && slidesToShow % 2 === 0)
- right += 1;
- return right;
- }
- if (rtl3) {
- return 0;
- }
- return slidesToShow - 1;
- };
- var slidesOnLeft = function slidesOnLeft2(_ref2) {
- var slidesToShow = _ref2.slidesToShow, centerMode = _ref2.centerMode, rtl3 = _ref2.rtl, centerPadding = _ref2.centerPadding;
- if (centerMode) {
- var left = (slidesToShow - 1) / 2 + 1;
- if (parseInt(centerPadding) > 0)
- left += 1;
- if (!rtl3 && slidesToShow % 2 === 0)
- left += 1;
- return left;
- }
- if (rtl3) {
- return slidesToShow - 1;
- }
- return 0;
- };
- var canUseDOM = function canUseDOM2() {
- return !!(typeof window !== "undefined" && window.document && window.document.createElement);
- };
- // node_modules/ant-design-vue/es/vc-slick/track.js
- var getSlideClasses = function getSlideClasses2(spec) {
- var slickActive, slickCenter;
- var centerOffset, index3;
- if (spec.rtl) {
- index3 = spec.slideCount - 1 - spec.index;
- } else {
- index3 = spec.index;
- }
- var slickCloned = index3 < 0 || index3 >= spec.slideCount;
- if (spec.centerMode) {
- centerOffset = Math.floor(spec.slidesToShow / 2);
- slickCenter = (index3 - spec.currentSlide) % spec.slideCount === 0;
- if (index3 > spec.currentSlide - centerOffset - 1 && index3 <= spec.currentSlide + centerOffset) {
- slickActive = true;
- }
- } else {
- slickActive = spec.currentSlide <= index3 && index3 < spec.currentSlide + spec.slidesToShow;
- }
- var focusedSlide;
- if (spec.targetSlide < 0) {
- focusedSlide = spec.targetSlide + spec.slideCount;
- } else if (spec.targetSlide >= spec.slideCount) {
- focusedSlide = spec.targetSlide - spec.slideCount;
- } else {
- focusedSlide = spec.targetSlide;
- }
- var slickCurrent = index3 === focusedSlide;
- return {
- "slick-slide": true,
- "slick-active": slickActive,
- "slick-center": slickCenter,
- "slick-cloned": slickCloned,
- "slick-current": slickCurrent
- // dubious in case of RTL
- };
- };
- var getSlideStyle = function getSlideStyle2(spec) {
- var style = {};
- if (spec.variableWidth === void 0 || spec.variableWidth === false) {
- style.width = spec.slideWidth + (typeof spec.slideWidth === "number" ? "px" : "");
- }
- if (spec.fade) {
- style.position = "relative";
- if (spec.vertical) {
- style.top = -spec.index * parseInt(spec.slideHeight) + "px";
- } else {
- style.left = -spec.index * parseInt(spec.slideWidth) + "px";
- }
- style.opacity = spec.currentSlide === spec.index ? 1 : 0;
- if (spec.useCSS) {
- style.transition = "opacity " + spec.speed + "ms " + spec.cssEase + ", visibility " + spec.speed + "ms " + spec.cssEase;
- }
- }
- return style;
- };
- var getKey2 = function getKey3(child, fallbackKey) {
- return child.key + "-" + fallbackKey;
- };
- var renderSlides = function renderSlides2(spec, children) {
- var key2;
- var slides = [];
- var preCloneSlides = [];
- var postCloneSlides = [];
- var childrenCount = children.length;
- var startIndex = lazyStartIndex(spec);
- var endIndex = lazyEndIndex(spec);
- children.forEach(function(elem, index3) {
- var child;
- var childOnClickOptions = {
- message: "children",
- index: index3,
- slidesToScroll: spec.slidesToScroll,
- currentSlide: spec.currentSlide
- };
- if (!spec.lazyLoad || spec.lazyLoad && spec.lazyLoadedList.indexOf(index3) >= 0) {
- child = elem;
- } else {
- child = createVNode("div");
- }
- var childStyle = getSlideStyle(_objectSpread2(_objectSpread2({}, spec), {}, {
- index: index3
- }));
- var slideClass = child.props.class || "";
- var slideClasses = getSlideClasses(_objectSpread2(_objectSpread2({}, spec), {}, {
- index: index3
- }));
- slides.push(deepCloneElement(child, {
- key: "original" + getKey2(child, index3),
- tabindex: "-1",
- "data-index": index3,
- "aria-hidden": !slideClasses["slick-active"],
- class: classNames_default(slideClasses, slideClass),
- style: _objectSpread2(_objectSpread2({
- outline: "none"
- }, child.props.style || {}), childStyle),
- onClick: function onClick2() {
- if (spec.focusOnSelect) {
- spec.focusOnSelect(childOnClickOptions);
- }
- }
- }));
- if (spec.infinite && spec.fade === false) {
- var preCloneNo = childrenCount - index3;
- if (preCloneNo <= getPreClones(spec) && childrenCount !== spec.slidesToShow) {
- key2 = -preCloneNo;
- if (key2 >= startIndex) {
- child = elem;
- }
- slideClasses = getSlideClasses(_objectSpread2(_objectSpread2({}, spec), {}, {
- index: key2
- }));
- preCloneSlides.push(deepCloneElement(child, {
- key: "precloned" + getKey2(child, key2),
- class: classNames_default(slideClasses, slideClass),
- tabindex: "-1",
- "data-index": key2,
- "aria-hidden": !slideClasses["slick-active"],
- style: _objectSpread2(_objectSpread2({}, child.props.style || {}), childStyle),
- onClick: function onClick2() {
- if (spec.focusOnSelect) {
- spec.focusOnSelect(childOnClickOptions);
- }
- }
- }));
- }
- if (childrenCount !== spec.slidesToShow) {
- key2 = childrenCount + index3;
- if (key2 < endIndex) {
- child = elem;
- }
- slideClasses = getSlideClasses(_objectSpread2(_objectSpread2({}, spec), {}, {
- index: key2
- }));
- postCloneSlides.push(deepCloneElement(child, {
- key: "postcloned" + getKey2(child, key2),
- tabindex: "-1",
- "data-index": key2,
- "aria-hidden": !slideClasses["slick-active"],
- class: classNames_default(slideClasses, slideClass),
- style: _objectSpread2(_objectSpread2({}, child.props.style || {}), childStyle),
- onClick: function onClick2() {
- if (spec.focusOnSelect) {
- spec.focusOnSelect(childOnClickOptions);
- }
- }
- }));
- }
- }
- });
- if (spec.rtl) {
- return preCloneSlides.concat(slides, postCloneSlides).reverse();
- } else {
- return preCloneSlides.concat(slides, postCloneSlides);
- }
- };
- var Track = function Track2(_2, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var slides = renderSlides(attrs, flattenChildren(slots === null || slots === void 0 ? void 0 : slots.default()));
- var onMouseenter2 = attrs.onMouseenter, onMouseover = attrs.onMouseover, onMouseleave2 = attrs.onMouseleave;
- var mouseEvents = {
- onMouseenter: onMouseenter2,
- onMouseover,
- onMouseleave: onMouseleave2
- };
- var trackProps = _objectSpread2({
- class: "slick-track",
- style: attrs.trackStyle
- }, mouseEvents);
- return createVNode("div", trackProps, [slides]);
- };
- Track.inheritAttrs = false;
- var track_default = Track;
- // node_modules/ant-design-vue/es/vc-slick/dots.js
- var getDotCount = function getDotCount2(spec) {
- var dots;
- if (spec.infinite) {
- dots = Math.ceil(spec.slideCount / spec.slidesToScroll);
- } else {
- dots = Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) + 1;
- }
- return dots;
- };
- var Dots = function Dots2(_2, _ref) {
- var attrs = _ref.attrs;
- var slideCount = attrs.slideCount, slidesToScroll = attrs.slidesToScroll, slidesToShow = attrs.slidesToShow, infinite = attrs.infinite, currentSlide = attrs.currentSlide, appendDots2 = attrs.appendDots, customPaging2 = attrs.customPaging, clickHandler2 = attrs.clickHandler, dotsClass = attrs.dotsClass, onMouseenter2 = attrs.onMouseenter, onMouseover = attrs.onMouseover, onMouseleave2 = attrs.onMouseleave;
- var dotCount = getDotCount({
- slideCount,
- slidesToScroll,
- slidesToShow,
- infinite
- });
- var mouseEvents = {
- onMouseenter: onMouseenter2,
- onMouseover,
- onMouseleave: onMouseleave2
- };
- var dots = [];
- var _loop = function _loop2() {
- var _rightBound = (i3 + 1) * slidesToScroll - 1;
- var rightBound = infinite ? _rightBound : clamp(_rightBound, 0, slideCount - 1);
- var _leftBound = rightBound - (slidesToScroll - 1);
- var leftBound = infinite ? _leftBound : clamp(_leftBound, 0, slideCount - 1);
- var className = classNames_default({
- "slick-active": infinite ? currentSlide >= leftBound && currentSlide <= rightBound : currentSlide === leftBound
- });
- var dotOptions = {
- message: "dots",
- index: i3,
- slidesToScroll,
- currentSlide
- };
- function onClick2(e3) {
- if (e3) {
- e3.preventDefault();
- }
- clickHandler2(dotOptions);
- }
- dots = dots.concat(createVNode("li", {
- "key": i3,
- "class": className
- }, [cloneElement(customPaging2({
- i: i3
- }), {
- onClick: onClick2
- })]));
- };
- for (var i3 = 0; i3 < dotCount; i3++) {
- _loop();
- }
- return cloneElement(appendDots2({
- dots
- }), _objectSpread2({
- class: dotsClass
- }, mouseEvents));
- };
- Dots.inheritAttrs = false;
- var dots_default = Dots;
- // node_modules/ant-design-vue/es/vc-slick/arrows.js
- function noop5() {
- }
- function handler2(options, handle, e3) {
- if (e3) {
- e3.preventDefault();
- }
- handle(options, e3);
- }
- var PrevArrow = function PrevArrow2(_2, _ref) {
- var attrs = _ref.attrs;
- var clickHandler2 = attrs.clickHandler, infinite = attrs.infinite, currentSlide = attrs.currentSlide, slideCount = attrs.slideCount, slidesToShow = attrs.slidesToShow;
- var prevClasses = {
- "slick-arrow": true,
- "slick-prev": true
- };
- var prevHandler = function prevHandler2(e3) {
- handler2({
- message: "previous"
- }, clickHandler2, e3);
- };
- if (!infinite && (currentSlide === 0 || slideCount <= slidesToShow)) {
- prevClasses["slick-disabled"] = true;
- prevHandler = noop5;
- }
- var prevArrowProps = {
- key: "0",
- "data-role": "none",
- class: prevClasses,
- style: {
- display: "block"
- },
- onClick: prevHandler
- };
- var customProps = {
- currentSlide,
- slideCount
- };
- var prevArrow;
- if (attrs.prevArrow) {
- prevArrow = cloneElement(attrs.prevArrow(_objectSpread2(_objectSpread2({}, prevArrowProps), customProps)), {
- key: "0",
- class: prevClasses,
- style: {
- display: "block"
- },
- onClick: prevHandler
- }, false);
- } else {
- prevArrow = createVNode("button", _objectSpread2({
- "key": "0",
- "type": "button"
- }, prevArrowProps), [" ", createTextVNode("Previous")]);
- }
- return prevArrow;
- };
- PrevArrow.inheritAttrs = false;
- var NextArrow = function NextArrow2(_2, _ref2) {
- var attrs = _ref2.attrs;
- var clickHandler2 = attrs.clickHandler, currentSlide = attrs.currentSlide, slideCount = attrs.slideCount;
- var nextClasses = {
- "slick-arrow": true,
- "slick-next": true
- };
- var nextHandler = function nextHandler2(e3) {
- handler2({
- message: "next"
- }, clickHandler2, e3);
- };
- if (!canGoNext(attrs)) {
- nextClasses["slick-disabled"] = true;
- nextHandler = noop5;
- }
- var nextArrowProps = {
- key: "1",
- "data-role": "none",
- class: classNames_default(nextClasses),
- style: {
- display: "block"
- },
- onClick: nextHandler
- };
- var customProps = {
- currentSlide,
- slideCount
- };
- var nextArrow;
- if (attrs.nextArrow) {
- nextArrow = cloneElement(attrs.nextArrow(_objectSpread2(_objectSpread2({}, nextArrowProps), customProps)), {
- key: "1",
- class: classNames_default(nextClasses),
- style: {
- display: "block"
- },
- onClick: nextHandler
- }, false);
- } else {
- nextArrow = createVNode("button", _objectSpread2({
- "key": "1",
- "type": "button"
- }, nextArrowProps), [" ", createTextVNode("Next")]);
- }
- return nextArrow;
- };
- NextArrow.inheritAttrs = false;
- // node_modules/ant-design-vue/es/vc-slick/inner-slider.js
- var _excluded21 = ["animating"];
- function noop6() {
- }
- var inner_slider_default = {
- name: "InnerSlider",
- mixins: [BaseMixin_default],
- inheritAttrs: false,
- props: _objectSpread2({}, default_props_default),
- data: function data2() {
- this.preProps = _objectSpread2({}, this.$props);
- this.list = null;
- this.track = null;
- this.callbackTimers = [];
- this.clickable = true;
- this.debouncedResize = null;
- var ssrState = this.ssrInit();
- return _objectSpread2(_objectSpread2({}, initial_state_default), {}, {
- currentSlide: this.initialSlide,
- slideCount: this.children.length
- }, ssrState);
- },
- watch: {
- __propsSymbol__: function __propsSymbol__() {
- var _this = this;
- var nextProps = this.$props;
- var spec = _objectSpread2(_objectSpread2({
- listRef: this.list,
- trackRef: this.track
- }, nextProps), this.$data);
- var setTrackStyle = false;
- for (var _i = 0, _Object$keys = Object.keys(this.preProps); _i < _Object$keys.length; _i++) {
- var key2 = _Object$keys[_i];
- if (!nextProps.hasOwnProperty(key2)) {
- setTrackStyle = true;
- break;
- }
- if (_typeof(nextProps[key2]) === "object" || typeof nextProps[key2] === "function" || _typeof(nextProps[key2]) === "symbol") {
- continue;
- }
- if (nextProps[key2] !== this.preProps[key2]) {
- setTrackStyle = true;
- break;
- }
- }
- this.updateState(spec, setTrackStyle, function() {
- if (_this.currentSlide >= nextProps.children.length) {
- _this.changeSlide({
- message: "index",
- index: nextProps.children.length - nextProps.slidesToShow,
- currentSlide: _this.currentSlide
- });
- }
- if (!_this.preProps.autoplay && nextProps.autoplay) {
- _this.handleAutoPlay("playing");
- } else if (nextProps.autoplay) {
- _this.handleAutoPlay("update");
- } else {
- _this.pause("paused");
- }
- });
- this.preProps = _objectSpread2({}, nextProps);
- }
- },
- mounted: function mounted3() {
- var _this2 = this;
- this.__emit("init");
- if (this.lazyLoad) {
- var slidesToLoad = getOnDemandLazySlides(_objectSpread2(_objectSpread2({}, this.$props), this.$data));
- if (slidesToLoad.length > 0) {
- this.setState(function(prevState) {
- return {
- lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
- };
- });
- this.__emit("lazyLoad", slidesToLoad);
- }
- }
- this.$nextTick(function() {
- var spec = _objectSpread2({
- listRef: _this2.list,
- trackRef: _this2.track,
- children: _this2.children
- }, _this2.$props);
- _this2.updateState(spec, true, function() {
- _this2.adaptHeight();
- _this2.autoplay && _this2.handleAutoPlay("playing");
- });
- if (_this2.lazyLoad === "progressive") {
- _this2.lazyLoadTimer = setInterval(_this2.progressiveLazyLoad, 1e3);
- }
- _this2.ro = new ResizeObserver_es_default(function() {
- if (_this2.animating) {
- _this2.onWindowResized(false);
- _this2.callbackTimers.push(setTimeout(function() {
- return _this2.onWindowResized();
- }, _this2.speed));
- } else {
- _this2.onWindowResized();
- }
- });
- _this2.ro.observe(_this2.list);
- document.querySelectorAll && Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"), function(slide) {
- slide.onfocus = _this2.$props.pauseOnFocus ? _this2.onSlideFocus : null;
- slide.onblur = _this2.$props.pauseOnFocus ? _this2.onSlideBlur : null;
- });
- if (window.addEventListener) {
- window.addEventListener("resize", _this2.onWindowResized);
- } else {
- window.attachEvent("onresize", _this2.onWindowResized);
- }
- });
- },
- beforeUnmount: function beforeUnmount3() {
- var _this$ro;
- if (this.animationEndCallback) {
- clearTimeout(this.animationEndCallback);
- }
- if (this.lazyLoadTimer) {
- clearInterval(this.lazyLoadTimer);
- }
- if (this.callbackTimers.length) {
- this.callbackTimers.forEach(function(timer) {
- return clearTimeout(timer);
- });
- this.callbackTimers = [];
- }
- if (window.addEventListener) {
- window.removeEventListener("resize", this.onWindowResized);
- } else {
- window.detachEvent("onresize", this.onWindowResized);
- }
- if (this.autoplayTimer) {
- clearInterval(this.autoplayTimer);
- }
- (_this$ro = this.ro) === null || _this$ro === void 0 ? void 0 : _this$ro.disconnect();
- },
- updated: function updated2() {
- this.checkImagesLoad();
- this.__emit("reInit");
- if (this.lazyLoad) {
- var slidesToLoad = getOnDemandLazySlides(_objectSpread2(_objectSpread2({}, this.$props), this.$data));
- if (slidesToLoad.length > 0) {
- this.setState(function(prevState) {
- return {
- lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
- };
- });
- this.__emit("lazyLoad");
- }
- }
- this.adaptHeight();
- },
- methods: {
- listRefHandler: function listRefHandler(ref2) {
- this.list = ref2;
- },
- trackRefHandler: function trackRefHandler(ref2) {
- this.track = ref2;
- },
- adaptHeight: function adaptHeight() {
- if (this.adaptiveHeight && this.list) {
- var elem = this.list.querySelector('[data-index="'.concat(this.currentSlide, '"]'));
- this.list.style.height = getHeight(elem) + "px";
- }
- },
- onWindowResized: function onWindowResized(setTrackStyle) {
- var _this3 = this;
- if (this.debouncedResize)
- this.debouncedResize.cancel();
- this.debouncedResize = debounce_default(function() {
- return _this3.resizeWindow(setTrackStyle);
- }, 50);
- this.debouncedResize();
- },
- resizeWindow: function resizeWindow() {
- var _this4 = this;
- var setTrackStyle = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
- var isTrackMounted = Boolean(this.track);
- if (!isTrackMounted)
- return;
- var spec = _objectSpread2(_objectSpread2({
- listRef: this.list,
- trackRef: this.track,
- children: this.children
- }, this.$props), this.$data);
- this.updateState(spec, setTrackStyle, function() {
- if (_this4.autoplay) {
- _this4.handleAutoPlay("update");
- } else {
- _this4.pause("paused");
- }
- });
- this.setState({
- animating: false
- });
- clearTimeout(this.animationEndCallback);
- delete this.animationEndCallback;
- },
- updateState: function updateState(spec, setTrackStyle, callback) {
- var updatedState = initializedState(spec);
- spec = _objectSpread2(_objectSpread2(_objectSpread2({}, spec), updatedState), {}, {
- slideIndex: updatedState.currentSlide
- });
- var targetLeft = getTrackLeft(spec);
- spec = _objectSpread2(_objectSpread2({}, spec), {}, {
- left: targetLeft
- });
- var trackStyle = getTrackCSS(spec);
- if (setTrackStyle || this.children.length !== spec.children.length) {
- updatedState["trackStyle"] = trackStyle;
- }
- this.setState(updatedState, callback);
- },
- ssrInit: function ssrInit() {
- var children = this.children;
- if (this.variableWidth) {
- var _trackWidth = 0;
- var _trackLeft = 0;
- var childrenWidths = [];
- var preClones = getPreClones(_objectSpread2(_objectSpread2(_objectSpread2({}, this.$props), this.$data), {}, {
- slideCount: children.length
- }));
- var postClones = getPostClones(_objectSpread2(_objectSpread2(_objectSpread2({}, this.$props), this.$data), {}, {
- slideCount: children.length
- }));
- children.forEach(function(child) {
- var _child$props$style, _child$props$style$wi;
- var childWidth = ((_child$props$style = child.props.style) === null || _child$props$style === void 0 ? void 0 : (_child$props$style$wi = _child$props$style.width) === null || _child$props$style$wi === void 0 ? void 0 : _child$props$style$wi.split("px")[0]) || 0;
- childrenWidths.push(childWidth);
- _trackWidth += childWidth;
- });
- for (var i3 = 0; i3 < preClones; i3++) {
- _trackLeft += childrenWidths[childrenWidths.length - 1 - i3];
- _trackWidth += childrenWidths[childrenWidths.length - 1 - i3];
- }
- for (var _i2 = 0; _i2 < postClones; _i2++) {
- _trackWidth += childrenWidths[_i2];
- }
- for (var _i3 = 0; _i3 < this.currentSlide; _i3++) {
- _trackLeft += childrenWidths[_i3];
- }
- var _trackStyle = {
- width: _trackWidth + "px",
- left: -_trackLeft + "px"
- };
- if (this.centerMode) {
- var currentWidth = "".concat(childrenWidths[this.currentSlide], "px");
- _trackStyle.left = "calc(".concat(_trackStyle.left, " + (100% - ").concat(currentWidth, ") / 2 ) ");
- }
- return {
- trackStyle: _trackStyle
- };
- }
- var childrenCount = children.length;
- var spec = _objectSpread2(_objectSpread2(_objectSpread2({}, this.$props), this.$data), {}, {
- slideCount: childrenCount
- });
- var slideCount = getPreClones(spec) + getPostClones(spec) + childrenCount;
- var trackWidth = 100 / this.slidesToShow * slideCount;
- var slideWidth = 100 / slideCount;
- var trackLeft = -slideWidth * (getPreClones(spec) + this.currentSlide) * trackWidth / 100;
- if (this.centerMode) {
- trackLeft += (100 - slideWidth * trackWidth / 100) / 2;
- }
- var trackStyle = {
- width: trackWidth + "%",
- left: trackLeft + "%"
- };
- return {
- slideWidth: slideWidth + "%",
- trackStyle
- };
- },
- checkImagesLoad: function checkImagesLoad() {
- var _this5 = this;
- var images = this.list && this.list.querySelectorAll && this.list.querySelectorAll(".slick-slide img") || [];
- var imagesCount = images.length;
- var loadedCount = 0;
- Array.prototype.forEach.call(images, function(image) {
- var handler5 = function handler6() {
- return ++loadedCount && loadedCount >= imagesCount && _this5.onWindowResized();
- };
- if (!image.onclick) {
- image.onclick = function() {
- return image.parentNode.focus();
- };
- } else {
- var prevClickHandler = image.onclick;
- image.onclick = function() {
- prevClickHandler();
- image.parentNode.focus();
- };
- }
- if (!image.onload) {
- if (_this5.$props.lazyLoad) {
- image.onload = function() {
- _this5.adaptHeight();
- _this5.callbackTimers.push(setTimeout(_this5.onWindowResized, _this5.speed));
- };
- } else {
- image.onload = handler5;
- image.onerror = function() {
- handler5();
- _this5.__emit("lazyLoadError");
- };
- }
- }
- });
- },
- progressiveLazyLoad: function progressiveLazyLoad() {
- var slidesToLoad = [];
- var spec = _objectSpread2(_objectSpread2({}, this.$props), this.$data);
- for (var index3 = this.currentSlide; index3 < this.slideCount + getPostClones(spec); index3++) {
- if (this.lazyLoadedList.indexOf(index3) < 0) {
- slidesToLoad.push(index3);
- break;
- }
- }
- for (var _index = this.currentSlide - 1; _index >= -getPreClones(spec); _index--) {
- if (this.lazyLoadedList.indexOf(_index) < 0) {
- slidesToLoad.push(_index);
- break;
- }
- }
- if (slidesToLoad.length > 0) {
- this.setState(function(state) {
- return {
- lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)
- };
- });
- this.__emit("lazyLoad", slidesToLoad);
- } else {
- if (this.lazyLoadTimer) {
- clearInterval(this.lazyLoadTimer);
- delete this.lazyLoadTimer;
- }
- }
- },
- slideHandler: function slideHandler3(index3) {
- var _this6 = this;
- var dontAnimate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var _this$$props = this.$props, asNavFor = _this$$props.asNavFor, currentSlide = _this$$props.currentSlide, beforeChange = _this$$props.beforeChange, speed = _this$$props.speed, afterChange = _this$$props.afterChange;
- var _slideHandler2 = slideHandler(_objectSpread2(_objectSpread2(_objectSpread2({
- index: index3
- }, this.$props), this.$data), {}, {
- trackRef: this.track,
- useCSS: this.useCSS && !dontAnimate
- })), state = _slideHandler2.state, nextState = _slideHandler2.nextState;
- if (!state)
- return;
- beforeChange && beforeChange(currentSlide, state.currentSlide);
- var slidesToLoad = state.lazyLoadedList.filter(function(value) {
- return _this6.lazyLoadedList.indexOf(value) < 0;
- });
- if (this.$attrs.onLazyLoad && slidesToLoad.length > 0) {
- this.__emit("lazyLoad", slidesToLoad);
- }
- if (!this.$props.waitForAnimate && this.animationEndCallback) {
- clearTimeout(this.animationEndCallback);
- afterChange && afterChange(currentSlide);
- delete this.animationEndCallback;
- }
- this.setState(state, function() {
- if (asNavFor && _this6.asNavForIndex !== index3) {
- _this6.asNavForIndex = index3;
- asNavFor.innerSlider.slideHandler(index3);
- }
- if (!nextState)
- return;
- _this6.animationEndCallback = setTimeout(function() {
- var animating = nextState.animating, firstBatch = _objectWithoutProperties(nextState, _excluded21);
- _this6.setState(firstBatch, function() {
- _this6.callbackTimers.push(setTimeout(function() {
- return _this6.setState({
- animating
- });
- }, 10));
- afterChange && afterChange(state.currentSlide);
- delete _this6.animationEndCallback;
- });
- }, speed);
- });
- },
- changeSlide: function changeSlide3(options) {
- var dontAnimate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var spec = _objectSpread2(_objectSpread2({}, this.$props), this.$data);
- var targetSlide = changeSlide(spec, options);
- if (targetSlide !== 0 && !targetSlide)
- return;
- if (dontAnimate === true) {
- this.slideHandler(targetSlide, dontAnimate);
- } else {
- this.slideHandler(targetSlide);
- }
- this.$props.autoplay && this.handleAutoPlay("update");
- if (this.$props.focusOnSelect) {
- var nodes = this.list.querySelectorAll(".slick-current");
- nodes[0] && nodes[0].focus();
- }
- },
- clickHandler: function clickHandler(e3) {
- if (this.clickable === false) {
- e3.stopPropagation();
- e3.preventDefault();
- }
- this.clickable = true;
- },
- keyHandler: function keyHandler3(e3) {
- var dir = keyHandler(e3, this.accessibility, this.rtl);
- dir !== "" && this.changeSlide({
- message: dir
- });
- },
- selectHandler: function selectHandler(options) {
- this.changeSlide(options);
- },
- disableBodyScroll: function disableBodyScroll() {
- var preventDefault = function preventDefault2(e3) {
- e3 = e3 || window.event;
- if (e3.preventDefault)
- e3.preventDefault();
- e3.returnValue = false;
- };
- window.ontouchmove = preventDefault;
- },
- enableBodyScroll: function enableBodyScroll() {
- window.ontouchmove = null;
- },
- swipeStart: function swipeStart3(e3) {
- if (this.verticalSwiping) {
- this.disableBodyScroll();
- }
- var state = swipeStart(e3, this.swipe, this.draggable);
- state !== "" && this.setState(state);
- },
- swipeMove: function swipeMove3(e3) {
- var state = swipeMove(e3, _objectSpread2(_objectSpread2(_objectSpread2({}, this.$props), this.$data), {}, {
- trackRef: this.track,
- listRef: this.list,
- slideIndex: this.currentSlide
- }));
- if (!state)
- return;
- if (state["swiping"]) {
- this.clickable = false;
- }
- this.setState(state);
- },
- swipeEnd: function swipeEnd3(e3) {
- var state = swipeEnd(e3, _objectSpread2(_objectSpread2(_objectSpread2({}, this.$props), this.$data), {}, {
- trackRef: this.track,
- listRef: this.list,
- slideIndex: this.currentSlide
- }));
- if (!state)
- return;
- var triggerSlideHandler = state["triggerSlideHandler"];
- delete state["triggerSlideHandler"];
- this.setState(state);
- if (triggerSlideHandler === void 0)
- return;
- this.slideHandler(triggerSlideHandler);
- if (this.$props.verticalSwiping) {
- this.enableBodyScroll();
- }
- },
- touchEnd: function touchEnd(e3) {
- this.swipeEnd(e3);
- this.clickable = true;
- },
- slickPrev: function slickPrev() {
- var _this7 = this;
- this.callbackTimers.push(setTimeout(function() {
- return _this7.changeSlide({
- message: "previous"
- });
- }, 0));
- },
- slickNext: function slickNext() {
- var _this8 = this;
- this.callbackTimers.push(setTimeout(function() {
- return _this8.changeSlide({
- message: "next"
- });
- }, 0));
- },
- slickGoTo: function slickGoTo(slide) {
- var _this9 = this;
- var dontAnimate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- slide = Number(slide);
- if (isNaN(slide))
- return "";
- this.callbackTimers.push(setTimeout(function() {
- return _this9.changeSlide({
- message: "index",
- index: slide,
- currentSlide: _this9.currentSlide
- }, dontAnimate);
- }, 0));
- },
- play: function play() {
- var nextIndex;
- if (this.rtl) {
- nextIndex = this.currentSlide - this.slidesToScroll;
- } else {
- if (canGoNext(_objectSpread2(_objectSpread2({}, this.$props), this.$data))) {
- nextIndex = this.currentSlide + this.slidesToScroll;
- } else {
- return false;
- }
- }
- this.slideHandler(nextIndex);
- },
- handleAutoPlay: function handleAutoPlay(playType) {
- if (this.autoplayTimer) {
- clearInterval(this.autoplayTimer);
- }
- var autoplaying = this.autoplaying;
- if (playType === "update") {
- if (autoplaying === "hovered" || autoplaying === "focused" || autoplaying === "paused") {
- return;
- }
- } else if (playType === "leave") {
- if (autoplaying === "paused" || autoplaying === "focused") {
- return;
- }
- } else if (playType === "blur") {
- if (autoplaying === "paused" || autoplaying === "hovered") {
- return;
- }
- }
- this.autoplayTimer = setInterval(this.play, this.autoplaySpeed + 50);
- this.setState({
- autoplaying: "playing"
- });
- },
- pause: function pause(pauseType) {
- if (this.autoplayTimer) {
- clearInterval(this.autoplayTimer);
- this.autoplayTimer = null;
- }
- var autoplaying = this.autoplaying;
- if (pauseType === "paused") {
- this.setState({
- autoplaying: "paused"
- });
- } else if (pauseType === "focused") {
- if (autoplaying === "hovered" || autoplaying === "playing") {
- this.setState({
- autoplaying: "focused"
- });
- }
- } else {
- if (autoplaying === "playing") {
- this.setState({
- autoplaying: "hovered"
- });
- }
- }
- },
- onDotsOver: function onDotsOver() {
- this.autoplay && this.pause("hovered");
- },
- onDotsLeave: function onDotsLeave() {
- this.autoplay && this.autoplaying === "hovered" && this.handleAutoPlay("leave");
- },
- onTrackOver: function onTrackOver() {
- this.autoplay && this.pause("hovered");
- },
- onTrackLeave: function onTrackLeave() {
- this.autoplay && this.autoplaying === "hovered" && this.handleAutoPlay("leave");
- },
- onSlideFocus: function onSlideFocus() {
- this.autoplay && this.pause("focused");
- },
- onSlideBlur: function onSlideBlur() {
- this.autoplay && this.autoplaying === "focused" && this.handleAutoPlay("blur");
- },
- customPaging: function customPaging(_ref) {
- var i3 = _ref.i;
- return createVNode("button", null, [i3 + 1]);
- },
- appendDots: function appendDots(_ref2) {
- var dots = _ref2.dots;
- return createVNode("ul", {
- "style": {
- display: "block"
- }
- }, [dots]);
- }
- },
- render: function render5() {
- var _listProps, _this10 = this;
- var className = classNames_default("slick-slider", this.$attrs.class, {
- "slick-vertical": this.vertical,
- "slick-initialized": true
- });
- var spec = _objectSpread2(_objectSpread2({}, this.$props), this.$data);
- var trackProps = extractObject(spec, ["fade", "cssEase", "speed", "infinite", "centerMode", "focusOnSelect", "currentSlide", "lazyLoad", "lazyLoadedList", "rtl", "slideWidth", "slideHeight", "listHeight", "vertical", "slidesToShow", "slidesToScroll", "slideCount", "trackStyle", "variableWidth", "unslick", "centerPadding", "targetSlide", "useCSS"]);
- var pauseOnHover = this.$props.pauseOnHover;
- trackProps = _objectSpread2(_objectSpread2({}, trackProps), {}, {
- focusOnSelect: this.focusOnSelect && this.clickable ? this.selectHandler : null,
- ref: this.trackRefHandler,
- onMouseleave: pauseOnHover ? this.onTrackLeave : noop6,
- onMouseover: pauseOnHover ? this.onTrackOver : noop6
- });
- var dots;
- if (this.dots === true && this.slideCount >= this.slidesToShow) {
- var dotProps = extractObject(spec, ["dotsClass", "slideCount", "slidesToShow", "currentSlide", "slidesToScroll", "clickHandler", "children", "infinite", "appendDots"]);
- dotProps.customPaging = this.customPaging;
- dotProps.appendDots = this.appendDots;
- var _this$$slots = this.$slots, customPaging2 = _this$$slots.customPaging, appendDots2 = _this$$slots.appendDots;
- if (customPaging2) {
- dotProps.customPaging = customPaging2;
- }
- if (appendDots2) {
- dotProps.appendDots = appendDots2;
- }
- var pauseOnDotsHover = this.$props.pauseOnDotsHover;
- dotProps = _objectSpread2(_objectSpread2({}, dotProps), {}, {
- clickHandler: this.changeSlide,
- onMouseover: pauseOnDotsHover ? this.onDotsOver : noop6,
- onMouseleave: pauseOnDotsHover ? this.onDotsLeave : noop6
- });
- dots = createVNode(dots_default, dotProps, null);
- }
- var prevArrow, nextArrow;
- var arrowProps = extractObject(spec, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow"]);
- arrowProps.clickHandler = this.changeSlide;
- var _this$$slots2 = this.$slots, prevArrowCustom = _this$$slots2.prevArrow, nextArrowCustom = _this$$slots2.nextArrow;
- if (prevArrowCustom) {
- arrowProps.prevArrow = prevArrowCustom;
- }
- if (nextArrowCustom) {
- arrowProps.nextArrow = nextArrowCustom;
- }
- if (this.arrows) {
- prevArrow = createVNode(PrevArrow, arrowProps, null);
- nextArrow = createVNode(NextArrow, arrowProps, null);
- }
- var verticalHeightStyle = null;
- if (this.vertical) {
- verticalHeightStyle = {
- height: typeof this.listHeight === "number" ? "".concat(this.listHeight, "px") : this.listHeight
- };
- }
- var centerPaddingStyle = null;
- if (this.vertical === false) {
- if (this.centerMode === true) {
- centerPaddingStyle = {
- padding: "0px " + this.centerPadding
- };
- }
- } else {
- if (this.centerMode === true) {
- centerPaddingStyle = {
- padding: this.centerPadding + " 0px"
- };
- }
- }
- var listStyle = _objectSpread2(_objectSpread2({}, verticalHeightStyle), centerPaddingStyle);
- var touchMove = this.touchMove;
- var listProps3 = (_listProps = {
- ref: this.listRefHandler,
- class: "slick-list",
- style: listStyle,
- onClick: this.clickHandler,
- onMousedown: touchMove ? this.swipeStart : noop6,
- onMousemove: this.dragging && touchMove ? this.swipeMove : noop6,
- onMouseup: touchMove ? this.swipeEnd : noop6,
- onMouseleave: this.dragging && touchMove ? this.swipeEnd : noop6
- }, _defineProperty(_listProps, supportsPassive_default ? "onTouchstartPassive" : "onTouchstart", touchMove ? this.swipeStart : noop6), _defineProperty(_listProps, supportsPassive_default ? "onTouchmovePassive" : "onTouchmove", this.dragging && touchMove ? this.swipeMove : noop6), _defineProperty(_listProps, "onTouchend", touchMove ? this.touchEnd : noop6), _defineProperty(_listProps, "onTouchcancel", this.dragging && touchMove ? this.swipeEnd : noop6), _defineProperty(_listProps, "onKeydown", this.accessibility ? this.keyHandler : noop6), _listProps);
- var innerSliderProps = {
- class: className,
- dir: "ltr",
- style: this.$attrs.style
- };
- if (this.unslick) {
- listProps3 = {
- class: "slick-list",
- ref: this.listRefHandler
- };
- innerSliderProps = {
- class: className
- };
- }
- return createVNode("div", innerSliderProps, [!this.unslick ? prevArrow : "", createVNode("div", listProps3, [createVNode(track_default, trackProps, {
- default: function _default9() {
- return [_this10.children];
- }
- })]), !this.unslick ? nextArrow : "", !this.unslick ? dots : ""]);
- }
- };
- // node_modules/ant-design-vue/es/vc-slick/slider.js
- var slider_default = defineComponent({
- name: "Slider",
- mixins: [BaseMixin_default],
- inheritAttrs: false,
- props: _objectSpread2({}, default_props_default),
- data: function data3() {
- this._responsiveMediaHandlers = [];
- return {
- breakpoint: null
- };
- },
- // handles responsive breakpoints
- mounted: function mounted4() {
- var _this = this;
- if (this.responsive) {
- var breakpoints = this.responsive.map(function(breakpt) {
- return breakpt.breakpoint;
- });
- breakpoints.sort(function(x2, y2) {
- return x2 - y2;
- });
- breakpoints.forEach(function(breakpoint, index3) {
- var bQuery;
- if (index3 === 0) {
- bQuery = json2mq_default({
- minWidth: 0,
- maxWidth: breakpoint
- });
- } else {
- bQuery = json2mq_default({
- minWidth: breakpoints[index3 - 1] + 1,
- maxWidth: breakpoint
- });
- }
- canUseDOM() && _this.media(bQuery, function() {
- _this.setState({
- breakpoint
- });
- });
- });
- var query = json2mq_default({
- minWidth: breakpoints.slice(-1)[0]
- });
- canUseDOM() && this.media(query, function() {
- _this.setState({
- breakpoint: null
- });
- });
- }
- },
- beforeUnmount: function beforeUnmount4() {
- this._responsiveMediaHandlers.forEach(function(obj) {
- obj.mql.removeListener(obj.listener);
- });
- },
- methods: {
- innerSliderRefHandler: function innerSliderRefHandler(ref2) {
- this.innerSlider = ref2;
- },
- media: function media(query, handler5) {
- var mql = window.matchMedia(query);
- var listener = function listener2(_ref) {
- var matches = _ref.matches;
- if (matches) {
- handler5();
- }
- };
- mql.addListener(listener);
- listener(mql);
- this._responsiveMediaHandlers.push({
- mql,
- query,
- listener
- });
- },
- slickPrev: function slickPrev2() {
- var _this$innerSlider;
- (_this$innerSlider = this.innerSlider) === null || _this$innerSlider === void 0 ? void 0 : _this$innerSlider.slickPrev();
- },
- slickNext: function slickNext2() {
- var _this$innerSlider2;
- (_this$innerSlider2 = this.innerSlider) === null || _this$innerSlider2 === void 0 ? void 0 : _this$innerSlider2.slickNext();
- },
- slickGoTo: function slickGoTo2(slide) {
- var _this$innerSlider3;
- var dontAnimate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- (_this$innerSlider3 = this.innerSlider) === null || _this$innerSlider3 === void 0 ? void 0 : _this$innerSlider3.slickGoTo(slide, dontAnimate);
- },
- slickPause: function slickPause() {
- var _this$innerSlider4;
- (_this$innerSlider4 = this.innerSlider) === null || _this$innerSlider4 === void 0 ? void 0 : _this$innerSlider4.pause("paused");
- },
- slickPlay: function slickPlay() {
- var _this$innerSlider5;
- (_this$innerSlider5 = this.innerSlider) === null || _this$innerSlider5 === void 0 ? void 0 : _this$innerSlider5.handleAutoPlay("play");
- }
- },
- render: function render6() {
- var _this2 = this;
- var settings;
- var newProps;
- if (this.breakpoint) {
- newProps = this.responsive.filter(function(resp) {
- return resp.breakpoint === _this2.breakpoint;
- });
- settings = newProps[0].settings === "unslick" ? "unslick" : _objectSpread2(_objectSpread2({}, this.$props), newProps[0].settings);
- } else {
- settings = _objectSpread2({}, this.$props);
- }
- if (settings.centerMode) {
- if (settings.slidesToScroll > 1 && true) {
- console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(settings.slidesToScroll));
- }
- settings.slidesToScroll = 1;
- }
- if (settings.fade) {
- if (settings.slidesToShow > 1 && true) {
- console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(settings.slidesToShow));
- }
- if (settings.slidesToScroll > 1 && true) {
- console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(settings.slidesToScroll));
- }
- settings.slidesToShow = 1;
- settings.slidesToScroll = 1;
- }
- var children = getSlot(this) || [];
- children = children.filter(function(child) {
- if (typeof child === "string") {
- return !!child.trim();
- }
- return !!child;
- });
- if (settings.variableWidth && (settings.rows > 1 || settings.slidesPerRow > 1)) {
- console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1");
- settings.variableWidth = false;
- }
- var newChildren = [];
- var currentWidth = null;
- for (var i3 = 0; i3 < children.length; i3 += settings.rows * settings.slidesPerRow) {
- var newSlide = [];
- for (var j2 = i3; j2 < i3 + settings.rows * settings.slidesPerRow; j2 += settings.slidesPerRow) {
- var row = [];
- for (var k2 = j2; k2 < j2 + settings.slidesPerRow; k2 += 1) {
- var _children$k$props;
- if (settings.variableWidth && (_children$k$props = children[k2].props) !== null && _children$k$props !== void 0 && _children$k$props.style) {
- currentWidth = children[k2].props.style.width;
- }
- if (k2 >= children.length)
- break;
- row.push(cloneElement(children[k2], {
- key: 100 * i3 + 10 * j2 + k2,
- tabindex: -1,
- style: {
- width: "".concat(100 / settings.slidesPerRow, "%"),
- display: "inline-block"
- }
- }));
- }
- newSlide.push(createVNode("div", {
- "key": 10 * i3 + j2
- }, [row]));
- }
- if (settings.variableWidth) {
- newChildren.push(createVNode("div", {
- "key": i3,
- "style": {
- width: currentWidth
- }
- }, [newSlide]));
- } else {
- newChildren.push(createVNode("div", {
- "key": i3
- }, [newSlide]));
- }
- }
- if (settings === "unslick") {
- var className = "regular slider " + (this.className || "");
- return createVNode("div", {
- "class": className
- }, [children]);
- } else if (newChildren.length <= settings.slidesToShow) {
- settings.unslick = true;
- }
- var sliderProps3 = _objectSpread2(_objectSpread2(_objectSpread2({}, this.$attrs), settings), {}, {
- children: newChildren,
- ref: this.innerSliderRefHandler
- });
- return createVNode(inner_slider_default, _objectSpread2(_objectSpread2({}, sliderProps3), {}, {
- "__propsSymbol__": []
- }), this.$slots);
- }
- });
- // node_modules/ant-design-vue/es/vc-slick/index.js
- var vc_slick_default = slider_default;
- // node_modules/ant-design-vue/es/carousel/index.js
- var _excluded23 = ["class", "style"];
- var carouselProps = function carouselProps2() {
- return {
- effect: String,
- dots: {
- type: Boolean,
- default: true
- },
- vertical: {
- type: Boolean,
- default: void 0
- },
- autoplay: {
- type: Boolean,
- default: void 0
- },
- easing: String,
- beforeChange: Function,
- afterChange: Function,
- // style: PropTypes.React.CSSProperties,
- prefixCls: String,
- accessibility: {
- type: Boolean,
- default: void 0
- },
- nextArrow: vue_types_default.any,
- prevArrow: vue_types_default.any,
- pauseOnHover: {
- type: Boolean,
- default: void 0
- },
- // className: String,
- adaptiveHeight: {
- type: Boolean,
- default: void 0
- },
- arrows: {
- type: Boolean,
- default: false
- },
- autoplaySpeed: Number,
- centerMode: {
- type: Boolean,
- default: void 0
- },
- centerPadding: String,
- cssEase: String,
- dotsClass: String,
- draggable: {
- type: Boolean,
- default: false
- },
- fade: {
- type: Boolean,
- default: void 0
- },
- focusOnSelect: {
- type: Boolean,
- default: void 0
- },
- infinite: {
- type: Boolean,
- default: void 0
- },
- initialSlide: Number,
- lazyLoad: String,
- rtl: {
- type: Boolean,
- default: void 0
- },
- slide: String,
- slidesToShow: Number,
- slidesToScroll: Number,
- speed: Number,
- swipe: {
- type: Boolean,
- default: void 0
- },
- swipeToSlide: {
- type: Boolean,
- default: void 0
- },
- swipeEvent: Function,
- touchMove: {
- type: Boolean,
- default: void 0
- },
- touchThreshold: Number,
- variableWidth: {
- type: Boolean,
- default: void 0
- },
- useCSS: {
- type: Boolean,
- default: void 0
- },
- slickGoTo: Number,
- responsive: Array,
- dotPosition: {
- type: String,
- default: void 0
- },
- verticalSwiping: {
- type: Boolean,
- default: false
- }
- };
- };
- var Carousel = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACarousel",
- inheritAttrs: false,
- props: carouselProps(),
- setup: function setup89(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose;
- var slickRef = ref();
- var goTo = function goTo2(slide) {
- var _slickRef$value;
- var dontAnimate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- (_slickRef$value = slickRef.value) === null || _slickRef$value === void 0 ? void 0 : _slickRef$value.slickGoTo(slide, dontAnimate);
- };
- expose({
- goTo,
- autoplay: function autoplay(palyType) {
- var _slickRef$value2, _slickRef$value2$inne;
- (_slickRef$value2 = slickRef.value) === null || _slickRef$value2 === void 0 ? void 0 : (_slickRef$value2$inne = _slickRef$value2.innerSlider) === null || _slickRef$value2$inne === void 0 ? void 0 : _slickRef$value2$inne.handleAutoPlay(palyType);
- },
- prev: function prev2() {
- var _slickRef$value3;
- (_slickRef$value3 = slickRef.value) === null || _slickRef$value3 === void 0 ? void 0 : _slickRef$value3.slickPrev();
- },
- next: function next2() {
- var _slickRef$value4;
- (_slickRef$value4 = slickRef.value) === null || _slickRef$value4 === void 0 ? void 0 : _slickRef$value4.slickNext();
- },
- innerSlider: computed(function() {
- var _slickRef$value5;
- return (_slickRef$value5 = slickRef.value) === null || _slickRef$value5 === void 0 ? void 0 : _slickRef$value5.innerSlider;
- })
- });
- watchEffect(function() {
- warning_default2(props5.vertical === void 0, "Carousel", "`vertical` is deprecated, please use `dotPosition` instead.");
- });
- var _useConfigInject = useConfigInject_default("carousel", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var dotPosition = computed(function() {
- if (props5.dotPosition)
- return props5.dotPosition;
- if (props5.vertical !== void 0)
- return props5.vertical ? "right" : "bottom";
- return "bottom";
- });
- var vertical = computed(function() {
- return dotPosition.value === "left" || dotPosition.value === "right";
- });
- var dsClass = computed(function() {
- var _classNames;
- var dotsClass = "slick-dots";
- return classNames_default((_classNames = {}, _defineProperty(_classNames, dotsClass, true), _defineProperty(_classNames, "".concat(dotsClass, "-").concat(dotPosition.value), true), _defineProperty(_classNames, "".concat(props5.dotsClass), !!props5.dotsClass), _classNames));
- });
- return function() {
- var _classNames2;
- var dots = props5.dots, arrows = props5.arrows, draggable = props5.draggable, effect = props5.effect;
- var cls = attrs.class, style = attrs.style, restAttrs = _objectWithoutProperties(attrs, _excluded23);
- var fade = effect === "fade" ? true : props5.fade;
- var className = classNames_default(prefixCls.value, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames2, "".concat(prefixCls.value, "-vertical"), vertical.value), _defineProperty(_classNames2, "".concat(cls), !!cls), _classNames2));
- return createVNode("div", {
- "class": className,
- "style": style
- }, [createVNode(vc_slick_default, _objectSpread2(_objectSpread2(_objectSpread2({
- "ref": slickRef
- }, props5), restAttrs), {}, {
- "dots": !!dots,
- "dotsClass": dsClass.value,
- "arrows": arrows,
- "draggable": draggable,
- "fade": fade,
- "vertical": vertical.value
- }), slots)]);
- };
- }
- });
- var carousel_default = withInstall(Carousel);
- // node_modules/ant-design-vue/es/vc-cascader/utils/commonUtil.js
- var VALUE_SPLIT = "__RC_CASCADER_SPLIT__";
- var SHOW_PARENT = "SHOW_PARENT";
- var SHOW_CHILD = "SHOW_CHILD";
- function toPathKey(value) {
- return value.join(VALUE_SPLIT);
- }
- function toPathKeys(value) {
- return value.map(toPathKey);
- }
- function toPathValueStr(pathKey) {
- return pathKey.split(VALUE_SPLIT);
- }
- function fillFieldNames2(fieldNames) {
- var _ref = fieldNames || {}, label = _ref.label, value = _ref.value, children = _ref.children;
- var val = value || "value";
- return {
- label: label || "label",
- value: val,
- key: val,
- children: children || "children"
- };
- }
- function isLeaf(option, fieldNames) {
- var _option$isLeaf, _option$fieldNames$ch;
- return (_option$isLeaf = option.isLeaf) !== null && _option$isLeaf !== void 0 ? _option$isLeaf : !((_option$fieldNames$ch = option[fieldNames.children]) !== null && _option$fieldNames$ch !== void 0 && _option$fieldNames$ch.length);
- }
- function scrollIntoParentView(element) {
- var parent2 = element.parentElement;
- if (!parent2) {
- return;
- }
- var elementToParent = element.offsetTop - parent2.offsetTop;
- if (elementToParent - parent2.scrollTop < 0) {
- parent2.scrollTo({
- top: elementToParent
- });
- } else if (elementToParent + element.offsetHeight - parent2.scrollTop > parent2.offsetHeight) {
- parent2.scrollTo({
- top: elementToParent + element.offsetHeight - parent2.offsetHeight
- });
- }
- }
- // node_modules/ant-design-vue/es/vc-tree/contextTypes.js
- var TreeContextKey = Symbol("TreeContextKey");
- var TreeContext = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "TreeContext",
- props: {
- value: {
- type: Object
- }
- },
- setup: function setup90(props5, _ref) {
- var slots = _ref.slots;
- provide(TreeContextKey, computed(function() {
- return props5.value;
- }));
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- var useInjectTreeContext = function useInjectTreeContext2() {
- return inject(TreeContextKey, computed(function() {
- return {};
- }));
- };
- var KeysStateKey = Symbol("KeysStateKey");
- var useProvideKeysState = function useProvideKeysState2(state) {
- provide(KeysStateKey, state);
- };
- var useInjectKeysState = function useInjectKeysState2() {
- return inject(KeysStateKey, {
- expandedKeys: shallowRef([]),
- selectedKeys: shallowRef([]),
- loadedKeys: shallowRef([]),
- loadingKeys: shallowRef([]),
- checkedKeys: shallowRef([]),
- halfCheckedKeys: shallowRef([]),
- expandedKeysSet: computed(function() {
- return /* @__PURE__ */ new Set();
- }),
- selectedKeysSet: computed(function() {
- return /* @__PURE__ */ new Set();
- }),
- loadedKeysSet: computed(function() {
- return /* @__PURE__ */ new Set();
- }),
- loadingKeysSet: computed(function() {
- return /* @__PURE__ */ new Set();
- }),
- checkedKeysSet: computed(function() {
- return /* @__PURE__ */ new Set();
- }),
- halfCheckedKeysSet: computed(function() {
- return /* @__PURE__ */ new Set();
- }),
- flattenNodes: shallowRef([])
- });
- };
- // node_modules/ant-design-vue/es/vc-tree/Indent.js
- var Indent = function Indent2(_ref) {
- var prefixCls = _ref.prefixCls, level = _ref.level, isStart = _ref.isStart, isEnd = _ref.isEnd;
- var baseClassName = "".concat(prefixCls, "-indent-unit");
- var list = [];
- for (var i3 = 0; i3 < level; i3 += 1) {
- var _ref2;
- list.push(createVNode("span", {
- "key": i3,
- "class": (_ref2 = {}, _defineProperty(_ref2, baseClassName, true), _defineProperty(_ref2, "".concat(baseClassName, "-start"), isStart[i3]), _defineProperty(_ref2, "".concat(baseClassName, "-end"), isEnd[i3]), _ref2)
- }, null));
- }
- return createVNode("span", {
- "aria-hidden": "true",
- "class": "".concat(prefixCls, "-indent")
- }, [list]);
- };
- var Indent_default = Indent;
- // node_modules/ant-design-vue/es/vc-tree/props.js
- var treeNodeProps = {
- eventKey: [String, Number],
- prefixCls: String,
- // By parent
- // expanded: { type: Boolean, default: undefined },
- // selected: { type: Boolean, default: undefined },
- // checked: { type: Boolean, default: undefined },
- // loaded: { type: Boolean, default: undefined },
- // loading: { type: Boolean, default: undefined },
- // halfChecked: { type: Boolean, default: undefined },
- // dragOver: { type: Boolean, default: undefined },
- // dragOverGapTop: { type: Boolean, default: undefined },
- // dragOverGapBottom: { type: Boolean, default: undefined },
- // pos: String,
- title: vue_types_default.any,
- /** New added in Tree for easy data access */
- data: {
- type: Object,
- default: void 0
- },
- parent: {
- type: Object,
- default: void 0
- },
- isStart: {
- type: Array
- },
- isEnd: {
- type: Array
- },
- active: {
- type: Boolean,
- default: void 0
- },
- onMousemove: {
- type: Function
- },
- // By user
- isLeaf: {
- type: Boolean,
- default: void 0
- },
- checkable: {
- type: Boolean,
- default: void 0
- },
- selectable: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- disableCheckbox: {
- type: Boolean,
- default: void 0
- },
- icon: vue_types_default.any,
- switcherIcon: vue_types_default.any,
- domRef: {
- type: Function
- }
- };
- var nodeListProps = {
- prefixCls: {
- type: String
- },
- // data: { type: Array as PropType<FlattenNode[]> },
- motion: {
- type: Object
- },
- focusable: {
- type: Boolean
- },
- activeItem: {
- type: Object
- },
- focused: {
- type: Boolean
- },
- tabindex: {
- type: Number
- },
- checkable: {
- type: Boolean
- },
- selectable: {
- type: Boolean
- },
- disabled: {
- type: Boolean
- },
- // expandedKeys: { type: Array as PropType<Key[]> },
- // selectedKeys: { type: Array as PropType<Key[]> },
- // checkedKeys: { type: Array as PropType<Key[]> },
- // loadedKeys: { type: Array as PropType<Key[]> },
- // loadingKeys: { type: Array as PropType<Key[]> },
- // halfCheckedKeys: { type: Array as PropType<Key[]> },
- // keyEntities: { type: Object as PropType<Record<Key, DataEntity<DataNode>>> },
- // dragging: { type: Boolean as PropType<boolean> },
- // dragOverNodeKey: { type: [String, Number] as PropType<Key> },
- // dropPosition: { type: Number as PropType<number> },
- // Virtual list
- height: {
- type: Number
- },
- itemHeight: {
- type: Number
- },
- virtual: {
- type: Boolean
- },
- onScroll: {
- type: Function
- },
- onKeydown: {
- type: Function
- },
- onFocus: {
- type: Function
- },
- onBlur: {
- type: Function
- },
- onActiveChange: {
- type: Function
- },
- onContextmenu: {
- type: Function
- },
- onListChangeStart: {
- type: Function
- },
- onListChangeEnd: {
- type: Function
- }
- };
- var treeProps = function treeProps2() {
- return {
- prefixCls: String,
- focusable: {
- type: Boolean,
- default: void 0
- },
- activeKey: [Number, String],
- tabindex: Number,
- children: vue_types_default.any,
- treeData: {
- type: Array
- },
- fieldNames: {
- type: Object
- },
- showLine: {
- type: [Boolean, Object],
- default: void 0
- },
- showIcon: {
- type: Boolean,
- default: void 0
- },
- icon: vue_types_default.any,
- selectable: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- multiple: {
- type: Boolean,
- default: void 0
- },
- checkable: {
- type: Boolean,
- default: void 0
- },
- checkStrictly: {
- type: Boolean,
- default: void 0
- },
- draggable: {
- type: [Function, Boolean]
- },
- defaultExpandParent: {
- type: Boolean,
- default: void 0
- },
- autoExpandParent: {
- type: Boolean,
- default: void 0
- },
- defaultExpandAll: {
- type: Boolean,
- default: void 0
- },
- defaultExpandedKeys: {
- type: Array
- },
- expandedKeys: {
- type: Array
- },
- defaultCheckedKeys: {
- type: Array
- },
- checkedKeys: {
- type: [Object, Array]
- },
- defaultSelectedKeys: {
- type: Array
- },
- selectedKeys: {
- type: Array
- },
- allowDrop: {
- type: Function
- },
- dropIndicatorRender: {
- type: Function
- },
- onFocus: {
- type: Function
- },
- onBlur: {
- type: Function
- },
- onKeydown: {
- type: Function
- },
- onContextmenu: {
- type: Function
- },
- onClick: {
- type: Function
- },
- onDblclick: {
- type: Function
- },
- onScroll: {
- type: Function
- },
- onExpand: {
- type: Function
- },
- onCheck: {
- type: Function
- },
- onSelect: {
- type: Function
- },
- onLoad: {
- type: Function
- },
- loadData: {
- type: Function
- },
- loadedKeys: {
- type: Array
- },
- onMouseenter: {
- type: Function
- },
- onMouseleave: {
- type: Function
- },
- onRightClick: {
- type: Function
- },
- onDragstart: {
- type: Function
- },
- onDragenter: {
- type: Function
- },
- onDragover: {
- type: Function
- },
- onDragleave: {
- type: Function
- },
- onDragend: {
- type: Function
- },
- onDrop: {
- type: Function
- },
- /**
- * Used for `rc-tree-select` only.
- * Do not use in your production code directly since this will be refactor.
- */
- onActiveChange: {
- type: Function
- },
- filterTreeNode: {
- type: Function
- },
- motion: vue_types_default.any,
- switcherIcon: vue_types_default.any,
- // Virtual List
- height: Number,
- itemHeight: Number,
- virtual: {
- type: Boolean,
- default: void 0
- },
- // direction for drag logic
- direction: {
- type: String
- }
- };
- };
- // node_modules/ant-design-vue/es/vc-tree/TreeNode.js
- var _excluded24 = ["eventKey", "isLeaf", "isStart", "isEnd", "domRef", "active", "data", "onMousemove", "selectable"];
- var ICON_OPEN = "open";
- var ICON_CLOSE = "close";
- var defaultTitle = "---";
- var TreeNode_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATreeNode",
- inheritAttrs: false,
- props: treeNodeProps,
- isTreeNode: 1,
- slots: ["title", "icon", "switcherIcon"],
- setup: function setup91(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, expose = _ref.expose;
- warning(!("slots" in props5.data), "treeData slots is deprecated, please use ".concat(Object.keys(props5.data.slots || {}).map(function(key2) {
- return "`v-slot:" + key2 + "` ";
- }), "instead"));
- var dragNodeHighlight = ref(false);
- var context2 = useInjectTreeContext();
- var _useInjectKeysState = useInjectKeysState(), expandedKeysSet = _useInjectKeysState.expandedKeysSet, selectedKeysSet = _useInjectKeysState.selectedKeysSet, loadedKeysSet = _useInjectKeysState.loadedKeysSet, loadingKeysSet = _useInjectKeysState.loadingKeysSet, checkedKeysSet = _useInjectKeysState.checkedKeysSet, halfCheckedKeysSet = _useInjectKeysState.halfCheckedKeysSet;
- var _context$value = context2.value, dragOverNodeKey = _context$value.dragOverNodeKey, dropPosition = _context$value.dropPosition, keyEntities = _context$value.keyEntities;
- var mergedTreeNodeProps = computed(function() {
- return getTreeNodeProps(props5.eventKey, {
- expandedKeysSet: expandedKeysSet.value,
- selectedKeysSet: selectedKeysSet.value,
- loadedKeysSet: loadedKeysSet.value,
- loadingKeysSet: loadingKeysSet.value,
- checkedKeysSet: checkedKeysSet.value,
- halfCheckedKeysSet: halfCheckedKeysSet.value,
- dragOverNodeKey,
- dropPosition,
- keyEntities
- });
- });
- var expanded = eagerComputed(function() {
- return mergedTreeNodeProps.value.expanded;
- });
- var selected = eagerComputed(function() {
- return mergedTreeNodeProps.value.selected;
- });
- var checked = eagerComputed(function() {
- return mergedTreeNodeProps.value.checked;
- });
- var loaded = eagerComputed(function() {
- return mergedTreeNodeProps.value.loaded;
- });
- var loading = eagerComputed(function() {
- return mergedTreeNodeProps.value.loading;
- });
- var halfChecked = eagerComputed(function() {
- return mergedTreeNodeProps.value.halfChecked;
- });
- var dragOver = eagerComputed(function() {
- return mergedTreeNodeProps.value.dragOver;
- });
- var dragOverGapTop = eagerComputed(function() {
- return mergedTreeNodeProps.value.dragOverGapTop;
- });
- var dragOverGapBottom = eagerComputed(function() {
- return mergedTreeNodeProps.value.dragOverGapBottom;
- });
- var pos = eagerComputed(function() {
- return mergedTreeNodeProps.value.pos;
- });
- var selectHandle = ref();
- var hasChildren = computed(function() {
- var eventKey = props5.eventKey;
- var keyEntities2 = context2.value.keyEntities;
- var _ref2 = keyEntities2[eventKey] || {}, children = _ref2.children;
- return !!(children || []).length;
- });
- var isLeaf2 = computed(function() {
- var isLeaf3 = props5.isLeaf;
- var loadData = context2.value.loadData;
- var has = hasChildren.value;
- if (isLeaf3 === false) {
- return false;
- }
- return isLeaf3 || !loadData && !has || loadData && loaded.value && !has;
- });
- var nodeState = computed(function() {
- if (isLeaf2.value) {
- return null;
- }
- return expanded.value ? ICON_OPEN : ICON_CLOSE;
- });
- var isDisabled = computed(function() {
- var disabled = props5.disabled;
- var treeDisabled = context2.value.disabled;
- return !!(treeDisabled || disabled);
- });
- var isCheckable = computed(function() {
- var checkable = props5.checkable;
- var treeCheckable = context2.value.checkable;
- if (!treeCheckable || checkable === false)
- return false;
- return treeCheckable;
- });
- var isSelectable = computed(function() {
- var selectable = props5.selectable;
- var treeSelectable = context2.value.selectable;
- if (typeof selectable === "boolean") {
- return selectable;
- }
- return treeSelectable;
- });
- var renderArgsData = computed(function() {
- var data8 = props5.data, active = props5.active, checkable = props5.checkable, disableCheckbox = props5.disableCheckbox, disabled = props5.disabled, selectable = props5.selectable;
- return _objectSpread2(_objectSpread2({
- active,
- checkable,
- disableCheckbox,
- disabled,
- selectable
- }, data8), {}, {
- dataRef: data8,
- data: data8,
- isLeaf: isLeaf2.value,
- checked: checked.value,
- expanded: expanded.value,
- loading: loading.value,
- selected: selected.value,
- halfChecked: halfChecked.value
- });
- });
- var instance = getCurrentInstance();
- var eventData = computed(function() {
- var eventKey = props5.eventKey;
- var keyEntities2 = context2.value.keyEntities;
- var _ref3 = keyEntities2[eventKey] || {}, parent2 = _ref3.parent;
- return _objectSpread2(_objectSpread2({}, convertNodePropsToEventData(_extends({}, props5, mergedTreeNodeProps.value))), {}, {
- parent: parent2
- });
- });
- var dragNodeEvent = reactive({
- eventData,
- eventKey: computed(function() {
- return props5.eventKey;
- }),
- selectHandle,
- pos,
- key: instance.vnode.key
- });
- expose(dragNodeEvent);
- var onSelectorDoubleClick = function onSelectorDoubleClick2(e3) {
- var onNodeDoubleClick = context2.value.onNodeDoubleClick;
- onNodeDoubleClick(e3, eventData.value);
- };
- var onSelect = function onSelect2(e3) {
- if (isDisabled.value)
- return;
- var onNodeSelect = context2.value.onNodeSelect;
- e3.preventDefault();
- onNodeSelect(e3, eventData.value);
- };
- var onCheck = function onCheck2(e3) {
- if (isDisabled.value)
- return;
- var disableCheckbox = props5.disableCheckbox;
- var onNodeCheck = context2.value.onNodeCheck;
- if (!isCheckable.value || disableCheckbox)
- return;
- e3.preventDefault();
- var targetChecked = !checked.value;
- onNodeCheck(e3, eventData.value, targetChecked);
- };
- var onSelectorClick = function onSelectorClick2(e3) {
- var onNodeClick = context2.value.onNodeClick;
- onNodeClick(e3, eventData.value);
- if (isSelectable.value) {
- onSelect(e3);
- } else {
- onCheck(e3);
- }
- };
- var onMouseEnter = function onMouseEnter2(e3) {
- var onNodeMouseEnter = context2.value.onNodeMouseEnter;
- onNodeMouseEnter(e3, eventData.value);
- };
- var onMouseLeave = function onMouseLeave2(e3) {
- var onNodeMouseLeave = context2.value.onNodeMouseLeave;
- onNodeMouseLeave(e3, eventData.value);
- };
- var onContextmenu2 = function onContextmenu3(e3) {
- var onNodeContextMenu = context2.value.onNodeContextMenu;
- onNodeContextMenu(e3, eventData.value);
- };
- var onDragStart = function onDragStart2(e3) {
- var onNodeDragStart = context2.value.onNodeDragStart;
- e3.stopPropagation();
- dragNodeHighlight.value = true;
- onNodeDragStart(e3, dragNodeEvent);
- try {
- e3.dataTransfer.setData("text/plain", "");
- } catch (error) {
- }
- };
- var onDragEnter = function onDragEnter2(e3) {
- var onNodeDragEnter = context2.value.onNodeDragEnter;
- e3.preventDefault();
- e3.stopPropagation();
- onNodeDragEnter(e3, dragNodeEvent);
- };
- var onDragOver = function onDragOver2(e3) {
- var onNodeDragOver = context2.value.onNodeDragOver;
- e3.preventDefault();
- e3.stopPropagation();
- onNodeDragOver(e3, dragNodeEvent);
- };
- var onDragLeave = function onDragLeave2(e3) {
- var onNodeDragLeave = context2.value.onNodeDragLeave;
- e3.stopPropagation();
- onNodeDragLeave(e3, dragNodeEvent);
- };
- var onDragEnd = function onDragEnd2(e3) {
- var onNodeDragEnd = context2.value.onNodeDragEnd;
- e3.stopPropagation();
- dragNodeHighlight.value = false;
- onNodeDragEnd(e3, dragNodeEvent);
- };
- var onDrop = function onDrop2(e3) {
- var onNodeDrop = context2.value.onNodeDrop;
- e3.preventDefault();
- e3.stopPropagation();
- dragNodeHighlight.value = false;
- onNodeDrop(e3, dragNodeEvent);
- };
- var onExpand = function onExpand2(e3) {
- var onNodeExpand = context2.value.onNodeExpand;
- if (loading.value)
- return;
- onNodeExpand(e3, eventData.value);
- };
- var isDraggable = function isDraggable2() {
- var data8 = props5.data;
- var draggable = context2.value.draggable;
- return !!(draggable && (!draggable.nodeDraggable || draggable.nodeDraggable(data8)));
- };
- var renderDragHandler = function renderDragHandler2() {
- var _context$value2 = context2.value, draggable = _context$value2.draggable, prefixCls = _context$value2.prefixCls;
- return draggable && draggable !== null && draggable !== void 0 && draggable.icon ? createVNode("span", {
- "class": "".concat(prefixCls, "-draggable-icon")
- }, [draggable.icon]) : null;
- };
- var renderSwitcherIconDom = function renderSwitcherIconDom2() {
- var _context$value$slots, _props$data, _props$data$slots;
- var _props$switcherIcon = props5.switcherIcon, switcherIconFromProps = _props$switcherIcon === void 0 ? slots.switcherIcon || ((_context$value$slots = context2.value.slots) === null || _context$value$slots === void 0 ? void 0 : _context$value$slots[(_props$data = props5.data) === null || _props$data === void 0 ? void 0 : (_props$data$slots = _props$data.slots) === null || _props$data$slots === void 0 ? void 0 : _props$data$slots.switcherIcon]) : _props$switcherIcon;
- var switcherIconFromCtx = context2.value.switcherIcon;
- var switcherIcon = switcherIconFromProps || switcherIconFromCtx;
- if (typeof switcherIcon === "function") {
- return switcherIcon(renderArgsData.value);
- }
- return switcherIcon;
- };
- var syncLoadData = function syncLoadData2() {
- var _context$value3 = context2.value, loadData = _context$value3.loadData, onNodeLoad = _context$value3.onNodeLoad;
- if (loading.value) {
- return;
- }
- if (loadData && expanded.value && !isLeaf2.value) {
- if (!hasChildren.value && !loaded.value) {
- onNodeLoad(eventData.value);
- }
- }
- };
- onMounted(function() {
- syncLoadData();
- });
- onUpdated(function() {
- syncLoadData();
- });
- var renderSwitcher = function renderSwitcher2() {
- var prefixCls = context2.value.prefixCls;
- var switcherIconDom = renderSwitcherIconDom();
- if (isLeaf2.value) {
- return switcherIconDom !== false ? createVNode("span", {
- "class": classNames_default("".concat(prefixCls, "-switcher"), "".concat(prefixCls, "-switcher-noop"))
- }, [switcherIconDom]) : null;
- }
- var switcherCls = classNames_default("".concat(prefixCls, "-switcher"), "".concat(prefixCls, "-switcher_").concat(expanded.value ? ICON_OPEN : ICON_CLOSE));
- return switcherIconDom !== false ? createVNode("span", {
- "onClick": onExpand,
- "class": switcherCls
- }, [switcherIconDom]) : null;
- };
- var renderCheckbox = function renderCheckbox2() {
- var _context$value$custom, _context$value4;
- var disableCheckbox = props5.disableCheckbox;
- var prefixCls = context2.value.prefixCls;
- var disabled = isDisabled.value;
- var checkable = isCheckable.value;
- if (!checkable)
- return null;
- return createVNode("span", {
- "class": classNames_default("".concat(prefixCls, "-checkbox"), checked.value && "".concat(prefixCls, "-checkbox-checked"), !checked.value && halfChecked.value && "".concat(prefixCls, "-checkbox-indeterminate"), (disabled || disableCheckbox) && "".concat(prefixCls, "-checkbox-disabled")),
- "onClick": onCheck
- }, [(_context$value$custom = (_context$value4 = context2.value).customCheckable) === null || _context$value$custom === void 0 ? void 0 : _context$value$custom.call(_context$value4)]);
- };
- var renderIcon3 = function renderIcon4() {
- var prefixCls = context2.value.prefixCls;
- return createVNode("span", {
- "class": classNames_default("".concat(prefixCls, "-iconEle"), "".concat(prefixCls, "-icon__").concat(nodeState.value || "docu"), loading.value && "".concat(prefixCls, "-icon_loading"))
- }, null);
- };
- var renderDropIndicator = function renderDropIndicator2() {
- var disabled = props5.disabled, eventKey = props5.eventKey;
- var _context$value5 = context2.value, draggable = _context$value5.draggable, dropLevelOffset = _context$value5.dropLevelOffset, dropPosition2 = _context$value5.dropPosition, prefixCls = _context$value5.prefixCls, indent = _context$value5.indent, dropIndicatorRender2 = _context$value5.dropIndicatorRender, dragOverNodeKey2 = _context$value5.dragOverNodeKey, direction = _context$value5.direction;
- var rootDraggable = draggable !== false;
- var showIndicator = !disabled && rootDraggable && dragOverNodeKey2 === eventKey;
- return showIndicator ? dropIndicatorRender2({
- dropPosition: dropPosition2,
- dropLevelOffset,
- indent,
- prefixCls,
- direction
- }) : null;
- };
- var renderSelector = function renderSelector2() {
- var _context$value$slots2, _props$data2, _props$data2$slots, _context$value$slots3;
- var _props$icon = props5.icon, icon = _props$icon === void 0 ? slots.icon : _props$icon, data8 = props5.data;
- var title = slots.title || ((_context$value$slots2 = context2.value.slots) === null || _context$value$slots2 === void 0 ? void 0 : _context$value$slots2[(_props$data2 = props5.data) === null || _props$data2 === void 0 ? void 0 : (_props$data2$slots = _props$data2.slots) === null || _props$data2$slots === void 0 ? void 0 : _props$data2$slots.title]) || ((_context$value$slots3 = context2.value.slots) === null || _context$value$slots3 === void 0 ? void 0 : _context$value$slots3.title) || props5.title;
- var _context$value6 = context2.value, prefixCls = _context$value6.prefixCls, showIcon = _context$value6.showIcon, treeIcon = _context$value6.icon, loadData = _context$value6.loadData;
- var disabled = isDisabled.value;
- var wrapClass = "".concat(prefixCls, "-node-content-wrapper");
- var $icon;
- if (showIcon) {
- var _context$value$slots4, _data$slots;
- var currentIcon = icon || ((_context$value$slots4 = context2.value.slots) === null || _context$value$slots4 === void 0 ? void 0 : _context$value$slots4[data8 === null || data8 === void 0 ? void 0 : (_data$slots = data8.slots) === null || _data$slots === void 0 ? void 0 : _data$slots.icon]) || treeIcon;
- $icon = currentIcon ? createVNode("span", {
- "class": classNames_default("".concat(prefixCls, "-iconEle"), "".concat(prefixCls, "-icon__customize"))
- }, [typeof currentIcon === "function" ? currentIcon(renderArgsData.value) : currentIcon]) : renderIcon3();
- } else if (loadData && loading.value) {
- $icon = renderIcon3();
- }
- var titleNode;
- if (typeof title === "function") {
- titleNode = title(renderArgsData.value);
- } else {
- titleNode = title;
- }
- titleNode = titleNode === void 0 ? defaultTitle : titleNode;
- var $title = createVNode("span", {
- "class": "".concat(prefixCls, "-title")
- }, [titleNode]);
- return createVNode("span", {
- "ref": selectHandle,
- "title": typeof title === "string" ? title : "",
- "class": classNames_default("".concat(wrapClass), "".concat(wrapClass, "-").concat(nodeState.value || "normal"), !disabled && (selected.value || dragNodeHighlight.value) && "".concat(prefixCls, "-node-selected")),
- "onMouseenter": onMouseEnter,
- "onMouseleave": onMouseLeave,
- "onContextmenu": onContextmenu2,
- "onClick": onSelectorClick,
- "onDblclick": onSelectorDoubleClick
- }, [$icon, $title, renderDropIndicator()]);
- };
- return function() {
- var _classNames;
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), eventKey = _props$attrs.eventKey, isLeaf3 = _props$attrs.isLeaf, isStart = _props$attrs.isStart, isEnd = _props$attrs.isEnd, domRef = _props$attrs.domRef, active = _props$attrs.active, data8 = _props$attrs.data, onMousemove = _props$attrs.onMousemove, selectable = _props$attrs.selectable, otherProps = _objectWithoutProperties(_props$attrs, _excluded24);
- var _context$value7 = context2.value, prefixCls = _context$value7.prefixCls, filterTreeNode = _context$value7.filterTreeNode, keyEntities2 = _context$value7.keyEntities, dropContainerKey = _context$value7.dropContainerKey, dropTargetKey = _context$value7.dropTargetKey, draggingNodeKey = _context$value7.draggingNodeKey;
- var disabled = isDisabled.value;
- var dataOrAriaAttributeProps = pickAttrs(otherProps, {
- aria: true,
- data: true
- });
- var _ref4 = keyEntities2[eventKey] || {}, level = _ref4.level;
- var isEndNode = isEnd[isEnd.length - 1];
- var mergedDraggable = isDraggable();
- var draggableWithoutDisabled = !disabled && mergedDraggable;
- var dragging = draggingNodeKey === eventKey;
- var ariaSelected = selectable !== void 0 ? {
- "aria-selected": !!selectable
- } : void 0;
- return createVNode("div", _objectSpread2(_objectSpread2({
- "ref": domRef,
- "class": classNames_default(attrs.class, "".concat(prefixCls, "-treenode"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-treenode-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-switcher-").concat(expanded.value ? "open" : "close"), !isLeaf3), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-checked"), checked.value), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-indeterminate"), halfChecked.value), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-selected"), selected.value), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-loading"), loading.value), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-active"), active), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-leaf-last"), isEndNode), _defineProperty(_classNames, "".concat(prefixCls, "-treenode-draggable"), draggableWithoutDisabled), _defineProperty(_classNames, "dragging", dragging), _defineProperty(_classNames, "drop-target", dropTargetKey === eventKey), _defineProperty(_classNames, "drop-container", dropContainerKey === eventKey), _defineProperty(_classNames, "drag-over", !disabled && dragOver.value), _defineProperty(_classNames, "drag-over-gap-top", !disabled && dragOverGapTop.value), _defineProperty(_classNames, "drag-over-gap-bottom", !disabled && dragOverGapBottom.value), _defineProperty(_classNames, "filter-node", filterTreeNode && filterTreeNode(eventData.value)), _classNames)),
- "style": attrs.style,
- "draggable": draggableWithoutDisabled,
- "aria-grabbed": dragging,
- "onDragstart": draggableWithoutDisabled ? onDragStart : void 0,
- "onDragenter": mergedDraggable ? onDragEnter : void 0,
- "onDragover": mergedDraggable ? onDragOver : void 0,
- "onDragleave": mergedDraggable ? onDragLeave : void 0,
- "onDrop": mergedDraggable ? onDrop : void 0,
- "onDragend": mergedDraggable ? onDragEnd : void 0,
- "onMousemove": onMousemove
- }, ariaSelected), dataOrAriaAttributeProps), [createVNode(Indent_default, {
- "prefixCls": prefixCls,
- "level": level,
- "isStart": isStart,
- "isEnd": isEnd
- }, null), renderDragHandler(), renderSwitcher(), renderCheckbox(), renderSelector()]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tree/util.js
- function arrDel(list, value) {
- if (!list)
- return [];
- var clone2 = list.slice();
- var index3 = clone2.indexOf(value);
- if (index3 >= 0) {
- clone2.splice(index3, 1);
- }
- return clone2;
- }
- function arrAdd(list, value) {
- var clone2 = (list || []).slice();
- if (clone2.indexOf(value) === -1) {
- clone2.push(value);
- }
- return clone2;
- }
- function posToArr(pos) {
- return pos.split("-");
- }
- function getPosition(level, index3) {
- return "".concat(level, "-").concat(index3);
- }
- function isTreeNode(node) {
- return node && node.type && node.type.isTreeNode;
- }
- function getDragChildrenKeys(dragNodeKey, keyEntities) {
- var dragChildrenKeys = [];
- var entity = keyEntities[dragNodeKey];
- function dig() {
- var list = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- list.forEach(function(_ref) {
- var key2 = _ref.key, children = _ref.children;
- dragChildrenKeys.push(key2);
- dig(children);
- });
- }
- dig(entity.children);
- return dragChildrenKeys;
- }
- function isLastChild(treeNodeEntity) {
- if (treeNodeEntity.parent) {
- var posArr = posToArr(treeNodeEntity.pos);
- return Number(posArr[posArr.length - 1]) === treeNodeEntity.parent.children.length - 1;
- }
- return false;
- }
- function isFirstChild(treeNodeEntity) {
- var posArr = posToArr(treeNodeEntity.pos);
- return Number(posArr[posArr.length - 1]) === 0;
- }
- function calcDropPosition(event, dragNode, targetNode, indent, startMousePosition, allowDrop2, flattenedNodes, keyEntities, expandKeysSet, direction) {
- var _abstractDropNodeEnti;
- var clientX = event.clientX, clientY = event.clientY;
- var _event$target$getBoun = event.target.getBoundingClientRect(), top = _event$target$getBoun.top, height = _event$target$getBoun.height;
- var horizontalMouseOffset = (direction === "rtl" ? -1 : 1) * (((startMousePosition === null || startMousePosition === void 0 ? void 0 : startMousePosition.x) || 0) - clientX);
- var rawDropLevelOffset = (horizontalMouseOffset - 12) / indent;
- var abstractDropNodeEntity = keyEntities[targetNode.eventKey];
- if (clientY < top + height / 2) {
- var nodeIndex = flattenedNodes.findIndex(function(flattenedNode) {
- return flattenedNode.key === abstractDropNodeEntity.key;
- });
- var prevNodeIndex = nodeIndex <= 0 ? 0 : nodeIndex - 1;
- var prevNodeKey = flattenedNodes[prevNodeIndex].key;
- abstractDropNodeEntity = keyEntities[prevNodeKey];
- }
- var initialAbstractDropNodeKey = abstractDropNodeEntity.key;
- var abstractDragOverEntity = abstractDropNodeEntity;
- var dragOverNodeKey = abstractDropNodeEntity.key;
- var dropPosition = 0;
- var dropLevelOffset = 0;
- if (!expandKeysSet.has(initialAbstractDropNodeKey)) {
- for (var i3 = 0; i3 < rawDropLevelOffset; i3 += 1) {
- if (isLastChild(abstractDropNodeEntity)) {
- abstractDropNodeEntity = abstractDropNodeEntity.parent;
- dropLevelOffset += 1;
- } else {
- break;
- }
- }
- }
- var abstractDragDataNode = dragNode.eventData;
- var abstractDropDataNode = abstractDropNodeEntity.node;
- var dropAllowed = true;
- if (isFirstChild(abstractDropNodeEntity) && abstractDropNodeEntity.level === 0 && clientY < top + height / 2 && allowDrop2({
- dragNode: abstractDragDataNode,
- dropNode: abstractDropDataNode,
- dropPosition: -1
- }) && abstractDropNodeEntity.key === targetNode.eventKey) {
- dropPosition = -1;
- } else if ((abstractDragOverEntity.children || []).length && expandKeysSet.has(dragOverNodeKey)) {
- if (allowDrop2({
- dragNode: abstractDragDataNode,
- dropNode: abstractDropDataNode,
- dropPosition: 0
- })) {
- dropPosition = 0;
- } else {
- dropAllowed = false;
- }
- } else if (dropLevelOffset === 0) {
- if (rawDropLevelOffset > -1.5) {
- if (allowDrop2({
- dragNode: abstractDragDataNode,
- dropNode: abstractDropDataNode,
- dropPosition: 1
- })) {
- dropPosition = 1;
- } else {
- dropAllowed = false;
- }
- } else {
- if (allowDrop2({
- dragNode: abstractDragDataNode,
- dropNode: abstractDropDataNode,
- dropPosition: 0
- })) {
- dropPosition = 0;
- } else if (allowDrop2({
- dragNode: abstractDragDataNode,
- dropNode: abstractDropDataNode,
- dropPosition: 1
- })) {
- dropPosition = 1;
- } else {
- dropAllowed = false;
- }
- }
- } else {
- if (allowDrop2({
- dragNode: abstractDragDataNode,
- dropNode: abstractDropDataNode,
- dropPosition: 1
- })) {
- dropPosition = 1;
- } else {
- dropAllowed = false;
- }
- }
- return {
- dropPosition,
- dropLevelOffset,
- dropTargetKey: abstractDropNodeEntity.key,
- dropTargetPos: abstractDropNodeEntity.pos,
- dragOverNodeKey,
- dropContainerKey: dropPosition === 0 ? null : ((_abstractDropNodeEnti = abstractDropNodeEntity.parent) === null || _abstractDropNodeEnti === void 0 ? void 0 : _abstractDropNodeEnti.key) || null,
- dropAllowed
- };
- }
- function calcSelectedKeys(selectedKeys, props5) {
- if (!selectedKeys)
- return void 0;
- var multiple = props5.multiple;
- if (multiple) {
- return selectedKeys.slice();
- }
- if (selectedKeys.length) {
- return [selectedKeys[0]];
- }
- return selectedKeys;
- }
- function parseCheckedKeys(keys2) {
- if (!keys2) {
- return null;
- }
- var keyProps;
- if (Array.isArray(keys2)) {
- keyProps = {
- checkedKeys: keys2,
- halfCheckedKeys: void 0
- };
- } else if (_typeof(keys2) === "object") {
- keyProps = {
- checkedKeys: keys2.checked || void 0,
- halfCheckedKeys: keys2.halfChecked || void 0
- };
- } else {
- warning(false, "`checkedKeys` is not an array or an object");
- return null;
- }
- return keyProps;
- }
- function conductExpandParent(keyList, keyEntities) {
- var expandedKeys = /* @__PURE__ */ new Set();
- function conductUp(key2) {
- if (expandedKeys.has(key2))
- return;
- var entity = keyEntities[key2];
- if (!entity)
- return;
- expandedKeys.add(key2);
- var parent2 = entity.parent, node = entity.node;
- if (node.disabled)
- return;
- if (parent2) {
- conductUp(parent2.key);
- }
- }
- (keyList || []).forEach(function(key2) {
- conductUp(key2);
- });
- return _toConsumableArray(expandedKeys);
- }
- // node_modules/ant-design-vue/es/vc-tree/utils/treeUtil.js
- var _excluded25 = ["title", "icon", "switcherIcon"];
- function getKey4(key2, pos) {
- if (key2 !== null && key2 !== void 0) {
- return key2;
- }
- return pos;
- }
- function fillFieldNames3(fieldNames) {
- var _ref = fieldNames || {}, title = _ref.title, _title = _ref._title, key2 = _ref.key, children = _ref.children;
- var mergedTitle = title || "title";
- return {
- title: mergedTitle,
- _title: _title || [mergedTitle],
- key: key2 || "key",
- children: children || "children"
- };
- }
- function convertTreeToData(rootNodes) {
- function dig() {
- var node = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- var treeNodes = filterEmpty(node);
- return treeNodes.map(function(treeNode) {
- var _slots$title, _slots$icon, _slots$switcherIcon, _slots$default;
- if (!isTreeNode(treeNode)) {
- warning(!treeNode, "Tree/TreeNode can only accept TreeNode as children.");
- return null;
- }
- var slots = treeNode.children || {};
- var key2 = treeNode.key;
- var props5 = {};
- for (var _i = 0, _Object$entries = Object.entries(treeNode.props); _i < _Object$entries.length; _i++) {
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), k2 = _Object$entries$_i[0], v2 = _Object$entries$_i[1];
- props5[camelize(k2)] = v2;
- }
- var isLeaf2 = props5.isLeaf, checkable = props5.checkable, selectable = props5.selectable, disabled = props5.disabled, disableCheckbox = props5.disableCheckbox;
- var newProps = {
- isLeaf: isLeaf2 || isLeaf2 === "" || void 0,
- checkable: checkable || checkable === "" || void 0,
- selectable: selectable || selectable === "" || void 0,
- disabled: disabled || disabled === "" || void 0,
- disableCheckbox: disableCheckbox || disableCheckbox === "" || void 0
- };
- var slotsProps = _objectSpread2(_objectSpread2({}, props5), newProps);
- var _props$title = props5.title, title = _props$title === void 0 ? (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots, slotsProps) : _props$title, _props$icon = props5.icon, icon = _props$icon === void 0 ? (_slots$icon = slots.icon) === null || _slots$icon === void 0 ? void 0 : _slots$icon.call(slots, slotsProps) : _props$icon, _props$switcherIcon = props5.switcherIcon, switcherIcon = _props$switcherIcon === void 0 ? (_slots$switcherIcon = slots.switcherIcon) === null || _slots$switcherIcon === void 0 ? void 0 : _slots$switcherIcon.call(slots, slotsProps) : _props$switcherIcon, rest = _objectWithoutProperties(props5, _excluded25);
- var children = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- var dataNode = _objectSpread2(_objectSpread2({}, rest), {}, {
- title,
- icon,
- switcherIcon,
- key: key2,
- isLeaf: isLeaf2
- }, newProps);
- var parsedChildren = dig(children);
- if (parsedChildren.length) {
- dataNode.children = parsedChildren;
- }
- return dataNode;
- });
- }
- return dig(rootNodes);
- }
- function flattenTreeData(treeNodeList, expandedKeys, fieldNames) {
- var _fillFieldNames = fillFieldNames3(fieldNames), fieldTitles = _fillFieldNames._title, fieldKey = _fillFieldNames.key, fieldChildren = _fillFieldNames.children;
- var expandedKeySet = new Set(expandedKeys === true ? [] : expandedKeys);
- var flattenList = [];
- function dig(list) {
- var parent2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
- return list.map(function(treeNode, index3) {
- var pos = getPosition(parent2 ? parent2.pos : "0", index3);
- var mergedKey = getKey4(treeNode[fieldKey], pos);
- var mergedTitle;
- for (var i3 = 0; i3 < fieldTitles.length; i3 += 1) {
- var fieldTitle = fieldTitles[i3];
- if (treeNode[fieldTitle] !== void 0) {
- mergedTitle = treeNode[fieldTitle];
- break;
- }
- }
- var flattenNode = _objectSpread2(_objectSpread2({}, omit_default(treeNode, [].concat(_toConsumableArray(fieldTitles), [fieldKey, fieldChildren]))), {}, {
- title: mergedTitle,
- key: mergedKey,
- parent: parent2,
- pos,
- children: null,
- data: treeNode,
- isStart: [].concat(_toConsumableArray(parent2 ? parent2.isStart : []), [index3 === 0]),
- isEnd: [].concat(_toConsumableArray(parent2 ? parent2.isEnd : []), [index3 === list.length - 1])
- });
- flattenList.push(flattenNode);
- if (expandedKeys === true || expandedKeySet.has(mergedKey)) {
- flattenNode.children = dig(treeNode[fieldChildren] || [], flattenNode);
- } else {
- flattenNode.children = [];
- }
- return flattenNode;
- });
- }
- dig(treeNodeList);
- return flattenList;
- }
- function traverseDataNodes(dataNodes, callback, config) {
- var mergedConfig = {};
- if (_typeof(config) === "object") {
- mergedConfig = config;
- } else {
- mergedConfig = {
- externalGetKey: config
- };
- }
- mergedConfig = mergedConfig || {};
- var _mergedConfig = mergedConfig, childrenPropName = _mergedConfig.childrenPropName, externalGetKey = _mergedConfig.externalGetKey, fieldNames = _mergedConfig.fieldNames;
- var _fillFieldNames2 = fillFieldNames3(fieldNames), fieldKey = _fillFieldNames2.key, fieldChildren = _fillFieldNames2.children;
- var mergeChildrenPropName = childrenPropName || fieldChildren;
- var syntheticGetKey;
- if (externalGetKey) {
- if (typeof externalGetKey === "string") {
- syntheticGetKey = function syntheticGetKey2(node) {
- return node[externalGetKey];
- };
- } else if (typeof externalGetKey === "function") {
- syntheticGetKey = function syntheticGetKey2(node) {
- return externalGetKey(node);
- };
- }
- } else {
- syntheticGetKey = function syntheticGetKey2(node, pos) {
- return getKey4(node[fieldKey], pos);
- };
- }
- function processNode(node, index3, parent2, pathNodes) {
- var children = node ? node[mergeChildrenPropName] : dataNodes;
- var pos = node ? getPosition(parent2.pos, index3) : "0";
- var connectNodes = node ? [].concat(_toConsumableArray(pathNodes), [node]) : [];
- if (node) {
- var key2 = syntheticGetKey(node, pos);
- var data8 = {
- node,
- index: index3,
- pos,
- key: key2,
- parentPos: parent2.node ? parent2.pos : null,
- level: parent2.level + 1,
- nodes: connectNodes
- };
- callback(data8);
- }
- if (children) {
- children.forEach(function(subNode, subIndex) {
- processNode(subNode, subIndex, {
- node,
- pos,
- level: parent2 ? parent2.level + 1 : -1
- }, connectNodes);
- });
- }
- }
- processNode(null);
- }
- function convertDataToEntities(dataNodes) {
- var _ref2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, initWrapper = _ref2.initWrapper, processEntity = _ref2.processEntity, onProcessFinished = _ref2.onProcessFinished, externalGetKey = _ref2.externalGetKey, childrenPropName = _ref2.childrenPropName, fieldNames = _ref2.fieldNames;
- var legacyExternalGetKey = arguments.length > 2 ? arguments[2] : void 0;
- var mergedExternalGetKey = externalGetKey || legacyExternalGetKey;
- var posEntities = {};
- var keyEntities = {};
- var wrapper = {
- posEntities,
- keyEntities
- };
- if (initWrapper) {
- wrapper = initWrapper(wrapper) || wrapper;
- }
- traverseDataNodes(dataNodes, function(item) {
- var node = item.node, index3 = item.index, pos = item.pos, key2 = item.key, parentPos = item.parentPos, level = item.level, nodes = item.nodes;
- var entity = {
- node,
- nodes,
- index: index3,
- key: key2,
- pos,
- level
- };
- var mergedKey = getKey4(key2, pos);
- posEntities[pos] = entity;
- keyEntities[mergedKey] = entity;
- entity.parent = posEntities[parentPos];
- if (entity.parent) {
- entity.parent.children = entity.parent.children || [];
- entity.parent.children.push(entity);
- }
- if (processEntity) {
- processEntity(entity, wrapper);
- }
- }, {
- externalGetKey: mergedExternalGetKey,
- childrenPropName,
- fieldNames
- });
- if (onProcessFinished) {
- onProcessFinished(wrapper);
- }
- return wrapper;
- }
- function getTreeNodeProps(key2, _ref3) {
- var expandedKeysSet = _ref3.expandedKeysSet, selectedKeysSet = _ref3.selectedKeysSet, loadedKeysSet = _ref3.loadedKeysSet, loadingKeysSet = _ref3.loadingKeysSet, checkedKeysSet = _ref3.checkedKeysSet, halfCheckedKeysSet = _ref3.halfCheckedKeysSet, dragOverNodeKey = _ref3.dragOverNodeKey, dropPosition = _ref3.dropPosition, keyEntities = _ref3.keyEntities;
- var entity = keyEntities[key2];
- var treeNodeProps2 = {
- eventKey: key2,
- expanded: expandedKeysSet.has(key2),
- selected: selectedKeysSet.has(key2),
- loaded: loadedKeysSet.has(key2),
- loading: loadingKeysSet.has(key2),
- checked: checkedKeysSet.has(key2),
- halfChecked: halfCheckedKeysSet.has(key2),
- pos: String(entity ? entity.pos : ""),
- parent: entity.parent,
- // [Legacy] Drag props
- // Since the interaction of drag is changed, the semantic of the props are
- // not accuracy, I think it should be finally removed
- dragOver: dragOverNodeKey === key2 && dropPosition === 0,
- dragOverGapTop: dragOverNodeKey === key2 && dropPosition === -1,
- dragOverGapBottom: dragOverNodeKey === key2 && dropPosition === 1
- };
- return treeNodeProps2;
- }
- function convertNodePropsToEventData(props5) {
- var data8 = props5.data, expanded = props5.expanded, selected = props5.selected, checked = props5.checked, loaded = props5.loaded, loading = props5.loading, halfChecked = props5.halfChecked, dragOver = props5.dragOver, dragOverGapTop = props5.dragOverGapTop, dragOverGapBottom = props5.dragOverGapBottom, pos = props5.pos, active = props5.active, eventKey = props5.eventKey;
- var eventData = _objectSpread2(_objectSpread2({
- dataRef: data8
- }, data8), {}, {
- expanded,
- selected,
- checked,
- loaded,
- loading,
- halfChecked,
- dragOver,
- dragOverGapTop,
- dragOverGapBottom,
- pos,
- active,
- eventKey,
- key: eventKey
- });
- if (!("props" in eventData)) {
- Object.defineProperty(eventData, "props", {
- get: function get3() {
- warning(false, "Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`.");
- return props5;
- }
- });
- }
- return eventData;
- }
- // node_modules/ant-design-vue/es/vc-cascader/hooks/useEntities.js
- var useEntities_default = function(options, fieldNames) {
- var entities = computed(function() {
- return convertDataToEntities(options.value, {
- fieldNames: fieldNames.value,
- initWrapper: function initWrapper(wrapper) {
- return _objectSpread2(_objectSpread2({}, wrapper), {}, {
- pathKeyEntities: {}
- });
- },
- processEntity: function processEntity(entity, wrapper) {
- var pathKey = entity.nodes.map(function(node) {
- return node[fieldNames.value.value];
- }).join(VALUE_SPLIT);
- wrapper.pathKeyEntities[pathKey] = entity;
- entity.key = pathKey;
- }
- }).pathKeyEntities;
- });
- return entities;
- };
- // node_modules/ant-design-vue/es/vc-cascader/hooks/useSearchConfig.js
- function useSearchConfig(showSearch) {
- var mergedShowSearch = ref(false);
- var mergedSearchConfig = ref({});
- watchEffect(function() {
- if (!showSearch.value) {
- mergedShowSearch.value = false;
- mergedSearchConfig.value = {};
- return;
- }
- var searchConfig = {
- matchInputWidth: true,
- limit: 50
- };
- if (showSearch.value && _typeof(showSearch.value) === "object") {
- searchConfig = _objectSpread2(_objectSpread2({}, searchConfig), showSearch.value);
- }
- if (searchConfig.limit <= 0) {
- delete searchConfig.limit;
- if (true) {
- warning(false, "'limit' of showSearch should be positive number or false.");
- }
- }
- mergedShowSearch.value = true;
- mergedSearchConfig.value = searchConfig;
- return;
- });
- return {
- showSearch: mergedShowSearch,
- searchConfig: mergedSearchConfig
- };
- }
- // node_modules/ant-design-vue/es/vc-cascader/hooks/useSearchOptions.js
- var SEARCH_MARK = "__rc_cascader_search_mark__";
- var defaultFilter = function defaultFilter2(search, options, _ref) {
- var label = _ref.label;
- return options.some(function(opt) {
- return String(opt[label]).toLowerCase().includes(search.toLowerCase());
- });
- };
- var defaultRender = function defaultRender2(_ref2) {
- var path2 = _ref2.path, fieldNames = _ref2.fieldNames;
- return path2.map(function(opt) {
- return opt[fieldNames.label];
- }).join(" / ");
- };
- var useSearchOptions_default = function(search, options, fieldNames, prefixCls, config, changeOnSelect) {
- return computed(function() {
- var _config$value = config.value, _config$value$filter = _config$value.filter, filter = _config$value$filter === void 0 ? defaultFilter : _config$value$filter, _config$value$render = _config$value.render, render12 = _config$value$render === void 0 ? defaultRender : _config$value$render, _config$value$limit = _config$value.limit, limit = _config$value$limit === void 0 ? 50 : _config$value$limit, sort = _config$value.sort;
- var filteredOptions = [];
- if (!search.value) {
- return [];
- }
- function dig(list, pathOptions) {
- list.forEach(function(option) {
- if (!sort && limit > 0 && filteredOptions.length >= limit) {
- return;
- }
- var connectedPathOptions = [].concat(_toConsumableArray(pathOptions), [option]);
- var children = option[fieldNames.value.children];
- if (
- // If is leaf option
- !children || children.length === 0 || // If is changeOnSelect
- changeOnSelect.value
- ) {
- if (filter(search.value, connectedPathOptions, {
- label: fieldNames.value.label
- })) {
- var _objectSpread23;
- filteredOptions.push(_objectSpread2(_objectSpread2({}, option), {}, (_objectSpread23 = {}, _defineProperty(_objectSpread23, fieldNames.value.label, render12({
- inputValue: search.value,
- path: connectedPathOptions,
- prefixCls: prefixCls.value,
- fieldNames: fieldNames.value
- })), _defineProperty(_objectSpread23, SEARCH_MARK, connectedPathOptions), _objectSpread23)));
- }
- }
- if (children) {
- dig(option[fieldNames.value.children], connectedPathOptions);
- }
- });
- }
- dig(options.value, []);
- if (sort) {
- filteredOptions.sort(function(a2, b2) {
- return sort(a2[SEARCH_MARK], b2[SEARCH_MARK], search.value, fieldNames.value);
- });
- }
- return limit > 0 ? filteredOptions.slice(0, limit) : filteredOptions;
- });
- };
- // node_modules/ant-design-vue/es/vc-cascader/utils/treeUtil.js
- function formatStrategyValues(pathKeys, keyPathEntities, showCheckedStrategy) {
- var valueSet = new Set(pathKeys);
- return pathKeys.filter(function(key2) {
- var entity = keyPathEntities[key2];
- var parent2 = entity ? entity.parent : null;
- var children = entity ? entity.children : null;
- return showCheckedStrategy === SHOW_CHILD ? !(children && children.some(function(child) {
- return child.key && valueSet.has(child.key);
- })) : !(parent2 && !parent2.node.disabled && valueSet.has(parent2.key));
- });
- }
- function toPathOptions(valueCells, options, fieldNames) {
- var stringMode = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
- var currentList = options;
- var valueOptions = [];
- var _loop = function _loop2() {
- var _currentList, _currentList2, _foundOption$fieldNam;
- var valueCell = valueCells[i3];
- var foundIndex = (_currentList = currentList) === null || _currentList === void 0 ? void 0 : _currentList.findIndex(function(option) {
- var val = option[fieldNames.value];
- return stringMode ? String(val) === String(valueCell) : val === valueCell;
- });
- var foundOption = foundIndex !== -1 ? (_currentList2 = currentList) === null || _currentList2 === void 0 ? void 0 : _currentList2[foundIndex] : null;
- valueOptions.push({
- value: (_foundOption$fieldNam = foundOption === null || foundOption === void 0 ? void 0 : foundOption[fieldNames.value]) !== null && _foundOption$fieldNam !== void 0 ? _foundOption$fieldNam : valueCell,
- index: foundIndex,
- option: foundOption
- });
- currentList = foundOption === null || foundOption === void 0 ? void 0 : foundOption[fieldNames.children];
- };
- for (var i3 = 0; i3 < valueCells.length; i3 += 1) {
- _loop();
- }
- return valueOptions;
- }
- // node_modules/ant-design-vue/es/vc-cascader/hooks/useMissingValues.js
- var useMissingValues_default = function(options, fieldNames, rawValues) {
- return computed(function() {
- var missingValues = [];
- var existsValues = [];
- rawValues.value.forEach(function(valueCell) {
- var pathOptions = toPathOptions(valueCell, options.value, fieldNames.value);
- if (pathOptions.every(function(opt) {
- return opt.option;
- })) {
- existsValues.push(valueCell);
- } else {
- missingValues.push(valueCell);
- }
- });
- return [existsValues, missingValues];
- });
- };
- // node_modules/ant-design-vue/es/vc-tree/utils/conductUtil.js
- function removeFromCheckedKeys(halfCheckedKeys, checkedKeys) {
- var filteredKeys = /* @__PURE__ */ new Set();
- halfCheckedKeys.forEach(function(key2) {
- if (!checkedKeys.has(key2)) {
- filteredKeys.add(key2);
- }
- });
- return filteredKeys;
- }
- function isCheckDisabled(node) {
- var _ref = node || {}, disabled = _ref.disabled, disableCheckbox = _ref.disableCheckbox, checkable = _ref.checkable;
- return !!(disabled || disableCheckbox) || checkable === false;
- }
- function fillConductCheck(keys2, levelEntities, maxLevel, syntheticGetCheckDisabled) {
- var checkedKeys = new Set(keys2);
- var halfCheckedKeys = /* @__PURE__ */ new Set();
- for (var level = 0; level <= maxLevel; level += 1) {
- var entities = levelEntities.get(level) || /* @__PURE__ */ new Set();
- entities.forEach(function(entity) {
- var key2 = entity.key, node = entity.node, _entity$children = entity.children, children = _entity$children === void 0 ? [] : _entity$children;
- if (checkedKeys.has(key2) && !syntheticGetCheckDisabled(node)) {
- children.filter(function(childEntity) {
- return !syntheticGetCheckDisabled(childEntity.node);
- }).forEach(function(childEntity) {
- checkedKeys.add(childEntity.key);
- });
- }
- });
- }
- var visitedKeys = /* @__PURE__ */ new Set();
- for (var _level = maxLevel; _level >= 0; _level -= 1) {
- var _entities = levelEntities.get(_level) || /* @__PURE__ */ new Set();
- _entities.forEach(function(entity) {
- var parent2 = entity.parent, node = entity.node;
- if (syntheticGetCheckDisabled(node) || !entity.parent || visitedKeys.has(entity.parent.key)) {
- return;
- }
- if (syntheticGetCheckDisabled(entity.parent.node)) {
- visitedKeys.add(parent2.key);
- return;
- }
- var allChecked = true;
- var partialChecked = false;
- (parent2.children || []).filter(function(childEntity) {
- return !syntheticGetCheckDisabled(childEntity.node);
- }).forEach(function(_ref2) {
- var key2 = _ref2.key;
- var checked = checkedKeys.has(key2);
- if (allChecked && !checked) {
- allChecked = false;
- }
- if (!partialChecked && (checked || halfCheckedKeys.has(key2))) {
- partialChecked = true;
- }
- });
- if (allChecked) {
- checkedKeys.add(parent2.key);
- }
- if (partialChecked) {
- halfCheckedKeys.add(parent2.key);
- }
- visitedKeys.add(parent2.key);
- });
- }
- return {
- checkedKeys: Array.from(checkedKeys),
- halfCheckedKeys: Array.from(removeFromCheckedKeys(halfCheckedKeys, checkedKeys))
- };
- }
- function cleanConductCheck(keys2, halfKeys, levelEntities, maxLevel, syntheticGetCheckDisabled) {
- var checkedKeys = new Set(keys2);
- var halfCheckedKeys = new Set(halfKeys);
- for (var level = 0; level <= maxLevel; level += 1) {
- var entities = levelEntities.get(level) || /* @__PURE__ */ new Set();
- entities.forEach(function(entity) {
- var key2 = entity.key, node = entity.node, _entity$children2 = entity.children, children = _entity$children2 === void 0 ? [] : _entity$children2;
- if (!checkedKeys.has(key2) && !halfCheckedKeys.has(key2) && !syntheticGetCheckDisabled(node)) {
- children.filter(function(childEntity) {
- return !syntheticGetCheckDisabled(childEntity.node);
- }).forEach(function(childEntity) {
- checkedKeys.delete(childEntity.key);
- });
- }
- });
- }
- halfCheckedKeys = /* @__PURE__ */ new Set();
- var visitedKeys = /* @__PURE__ */ new Set();
- for (var _level2 = maxLevel; _level2 >= 0; _level2 -= 1) {
- var _entities2 = levelEntities.get(_level2) || /* @__PURE__ */ new Set();
- _entities2.forEach(function(entity) {
- var parent2 = entity.parent, node = entity.node;
- if (syntheticGetCheckDisabled(node) || !entity.parent || visitedKeys.has(entity.parent.key)) {
- return;
- }
- if (syntheticGetCheckDisabled(entity.parent.node)) {
- visitedKeys.add(parent2.key);
- return;
- }
- var allChecked = true;
- var partialChecked = false;
- (parent2.children || []).filter(function(childEntity) {
- return !syntheticGetCheckDisabled(childEntity.node);
- }).forEach(function(_ref3) {
- var key2 = _ref3.key;
- var checked = checkedKeys.has(key2);
- if (allChecked && !checked) {
- allChecked = false;
- }
- if (!partialChecked && (checked || halfCheckedKeys.has(key2))) {
- partialChecked = true;
- }
- });
- if (!allChecked) {
- checkedKeys.delete(parent2.key);
- }
- if (partialChecked) {
- halfCheckedKeys.add(parent2.key);
- }
- visitedKeys.add(parent2.key);
- });
- }
- return {
- checkedKeys: Array.from(checkedKeys),
- halfCheckedKeys: Array.from(removeFromCheckedKeys(halfCheckedKeys, checkedKeys))
- };
- }
- function conductCheck(keyList, checked, keyEntities, maxLevel, levelEntities, getCheckDisabled) {
- var warningMissKeys = [];
- var syntheticGetCheckDisabled;
- if (getCheckDisabled) {
- syntheticGetCheckDisabled = getCheckDisabled;
- } else {
- syntheticGetCheckDisabled = isCheckDisabled;
- }
- var keys2 = new Set(keyList.filter(function(key2) {
- var hasEntity = !!keyEntities[key2];
- if (!hasEntity) {
- warningMissKeys.push(key2);
- }
- return hasEntity;
- }));
- note(!warningMissKeys.length, "Tree missing follow keys: ".concat(warningMissKeys.slice(0, 100).map(function(key2) {
- return "'".concat(key2, "'");
- }).join(", ")));
- var result;
- if (checked === true) {
- result = fillConductCheck(keys2, levelEntities, maxLevel, syntheticGetCheckDisabled);
- } else {
- result = cleanConductCheck(keys2, checked.halfCheckedKeys, levelEntities, maxLevel, syntheticGetCheckDisabled);
- }
- return result;
- }
- // node_modules/ant-design-vue/es/vc-cascader/hooks/useDisplayValues.js
- var useDisplayValues_default = function(rawValues, options, fieldNames, multiple, displayRender) {
- return computed(function() {
- var mergedDisplayRender = displayRender.value || // Default displayRender
- function(_ref) {
- var labels = _ref.labels;
- var mergedLabels = multiple.value ? labels.slice(-1) : labels;
- var SPLIT = " / ";
- if (mergedLabels.every(function(label) {
- return ["string", "number"].includes(_typeof(label));
- })) {
- return mergedLabels.join(SPLIT);
- }
- return mergedLabels.reduce(function(list, label, index3) {
- var keyedLabel = isValidElement(label) ? cloneElement(label, {
- key: index3
- }) : label;
- if (index3 === 0) {
- return [keyedLabel];
- }
- return [].concat(_toConsumableArray(list), [SPLIT, keyedLabel]);
- }, []);
- };
- return rawValues.value.map(function(valueCells) {
- var valueOptions = toPathOptions(valueCells, options.value, fieldNames.value);
- var label = mergedDisplayRender({
- labels: valueOptions.map(function(_ref2) {
- var _option$fieldNames$va;
- var option = _ref2.option, value2 = _ref2.value;
- return (_option$fieldNames$va = option === null || option === void 0 ? void 0 : option[fieldNames.value.label]) !== null && _option$fieldNames$va !== void 0 ? _option$fieldNames$va : value2;
- }),
- selectedOptions: valueOptions.map(function(_ref3) {
- var option = _ref3.option;
- return option;
- })
- });
- var value = toPathKey(valueCells);
- return {
- label,
- value,
- key: value,
- valueCells
- };
- });
- });
- };
- // node_modules/ant-design-vue/es/vc-cascader/context.js
- var CascaderContextKey = Symbol("CascaderContextKey");
- var useProvideCascader = function useProvideCascader2(props5) {
- provide(CascaderContextKey, props5);
- };
- var useInjectCascader = function useInjectCascader2() {
- return inject(CascaderContextKey);
- };
- // node_modules/ant-design-vue/es/vc-cascader/OptionList/useActive.js
- var useActive_default = function() {
- var baseProps4 = useBaseProps();
- var _useInjectCascader = useInjectCascader(), values = _useInjectCascader.values;
- var _useState = useState([]), _useState2 = _slicedToArray(_useState, 2), activeValueCells = _useState2[0], setActiveValueCells = _useState2[1];
- watch(function() {
- return baseProps4.open;
- }, function() {
- if (baseProps4.open && !baseProps4.multiple) {
- var firstValueCells = values.value[0];
- setActiveValueCells(firstValueCells || []);
- }
- }, {
- immediate: true
- });
- return [activeValueCells, setActiveValueCells];
- };
- // node_modules/ant-design-vue/es/vc-cascader/OptionList/useKeyboard.js
- var useKeyboard_default = function(context2, options, fieldNames, activeValueCells, setActiveValueCells, onKeyBoardSelect) {
- var baseProps4 = useBaseProps();
- var rtl3 = computed(function() {
- return baseProps4.direction === "rtl";
- });
- var _ref = [ref([]), ref(), ref([])], validActiveValueCells = _ref[0], lastActiveIndex = _ref[1], lastActiveOptions = _ref[2];
- watchEffect(function() {
- var activeIndex = -1;
- var currentOptions = options.value;
- var mergedActiveIndexes = [];
- var mergedActiveValueCells = [];
- var len = activeValueCells.value.length;
- var _loop = function _loop2(i4) {
- var nextActiveIndex = currentOptions.findIndex(function(option) {
- return option[fieldNames.value.value] === activeValueCells.value[i4];
- });
- if (nextActiveIndex === -1) {
- return "break";
- }
- activeIndex = nextActiveIndex;
- mergedActiveIndexes.push(activeIndex);
- mergedActiveValueCells.push(activeValueCells.value[i4]);
- currentOptions = currentOptions[activeIndex][fieldNames.value.children];
- };
- for (var i3 = 0; i3 < len && currentOptions; i3 += 1) {
- var _ret = _loop(i3);
- if (_ret === "break")
- break;
- }
- var activeOptions = options.value;
- for (var _i = 0; _i < mergedActiveIndexes.length - 1; _i += 1) {
- activeOptions = activeOptions[mergedActiveIndexes[_i]][fieldNames.value.children];
- }
- var _ref2 = [mergedActiveValueCells, activeIndex, activeOptions];
- validActiveValueCells.value = _ref2[0];
- lastActiveIndex.value = _ref2[1];
- lastActiveOptions.value = _ref2[2];
- });
- var internalSetActiveValueCells = function internalSetActiveValueCells2(next2) {
- setActiveValueCells(next2);
- };
- var offsetActiveOption = function offsetActiveOption2(offset4) {
- var len = lastActiveOptions.value.length;
- var currentIndex = lastActiveIndex.value;
- if (currentIndex === -1 && offset4 < 0) {
- currentIndex = len;
- }
- for (var i3 = 0; i3 < len; i3 += 1) {
- currentIndex = (currentIndex + offset4 + len) % len;
- var option = lastActiveOptions.value[currentIndex];
- if (option && !option.disabled) {
- var value = option[fieldNames.value.value];
- var nextActiveCells = validActiveValueCells.value.slice(0, -1).concat(value);
- internalSetActiveValueCells(nextActiveCells);
- return;
- }
- }
- };
- var prevColumn = function prevColumn2() {
- if (validActiveValueCells.value.length > 1) {
- var nextActiveCells = validActiveValueCells.value.slice(0, -1);
- internalSetActiveValueCells(nextActiveCells);
- } else {
- baseProps4.toggleOpen(false);
- }
- };
- var nextColumn = function nextColumn2() {
- var _lastActiveOptions$va;
- var nextOptions = ((_lastActiveOptions$va = lastActiveOptions.value[lastActiveIndex.value]) === null || _lastActiveOptions$va === void 0 ? void 0 : _lastActiveOptions$va[fieldNames.value.children]) || [];
- var nextOption = nextOptions.find(function(option) {
- return !option.disabled;
- });
- if (nextOption) {
- var nextActiveCells = [].concat(_toConsumableArray(validActiveValueCells.value), [nextOption[fieldNames.value.value]]);
- internalSetActiveValueCells(nextActiveCells);
- }
- };
- context2.expose({
- // scrollTo: treeRef.current?.scrollTo,
- onKeydown: function onKeydown(event) {
- var which = event.which;
- switch (which) {
- case KeyCode_default.UP:
- case KeyCode_default.DOWN: {
- var offset4 = 0;
- if (which === KeyCode_default.UP) {
- offset4 = -1;
- } else if (which === KeyCode_default.DOWN) {
- offset4 = 1;
- }
- if (offset4 !== 0) {
- offsetActiveOption(offset4);
- }
- break;
- }
- case KeyCode_default.LEFT: {
- if (rtl3.value) {
- nextColumn();
- } else {
- prevColumn();
- }
- break;
- }
- case KeyCode_default.RIGHT: {
- if (rtl3.value) {
- prevColumn();
- } else {
- nextColumn();
- }
- break;
- }
- case KeyCode_default.BACKSPACE: {
- if (!baseProps4.searchValue) {
- prevColumn();
- }
- break;
- }
- case KeyCode_default.ENTER: {
- if (validActiveValueCells.value.length) {
- var option = lastActiveOptions.value[lastActiveIndex.value];
- var originOptions = (option === null || option === void 0 ? void 0 : option[SEARCH_MARK]) || [];
- if (originOptions.length) {
- onKeyBoardSelect(originOptions.map(function(opt) {
- return opt[fieldNames.value.value];
- }), originOptions[originOptions.length - 1]);
- } else {
- onKeyBoardSelect(validActiveValueCells.value, option);
- }
- }
- break;
- }
- case KeyCode_default.ESC: {
- baseProps4.toggleOpen(false);
- if (open) {
- event.stopPropagation();
- }
- }
- }
- },
- onKeyup: function onKeyup() {
- }
- });
- };
- // node_modules/ant-design-vue/es/vc-cascader/OptionList/Checkbox.js
- function Checkbox(_ref) {
- var _ref2;
- var prefixCls = _ref.prefixCls, checked = _ref.checked, halfChecked = _ref.halfChecked, disabled = _ref.disabled, onClick2 = _ref.onClick;
- var _useInjectCascader = useInjectCascader(), customSlots = _useInjectCascader.customSlots, checkable = _useInjectCascader.checkable;
- var mergedCheckable = checkable.value !== false ? customSlots.value.checkable : checkable.value;
- var customCheckbox = typeof mergedCheckable === "function" ? mergedCheckable() : typeof mergedCheckable === "boolean" ? null : mergedCheckable;
- return createVNode("span", {
- "class": (_ref2 = {}, _defineProperty(_ref2, prefixCls, true), _defineProperty(_ref2, "".concat(prefixCls, "-checked"), checked), _defineProperty(_ref2, "".concat(prefixCls, "-indeterminate"), !checked && halfChecked), _defineProperty(_ref2, "".concat(prefixCls, "-disabled"), disabled), _ref2),
- "onClick": onClick2
- }, [customCheckbox]);
- }
- Checkbox.props = ["prefixCls", "checked", "halfChecked", "disabled", "onClick"];
- Checkbox.displayName = "Checkbox";
- Checkbox.inheritAttrs = false;
- // node_modules/ant-design-vue/es/vc-cascader/OptionList/Column.js
- var FIX_LABEL = "__cascader_fix_label__";
- function Column(_ref) {
- var _expandIconRef$value, _customSlots$value$ex, _customSlots$value, _loadingIconRef$value, _customSlots$value$lo, _customSlots$value2;
- var prefixCls = _ref.prefixCls, multiple = _ref.multiple, options = _ref.options, activeValue = _ref.activeValue, prevValuePath = _ref.prevValuePath, onToggleOpen = _ref.onToggleOpen, onSelect = _ref.onSelect, onActive = _ref.onActive, checkedSet = _ref.checkedSet, halfCheckedSet = _ref.halfCheckedSet, loadingKeys = _ref.loadingKeys, isSelectable = _ref.isSelectable;
- var menuPrefixCls = "".concat(prefixCls, "-menu");
- var menuItemPrefixCls = "".concat(prefixCls, "-menu-item");
- var _useInjectCascader = useInjectCascader(), fieldNames = _useInjectCascader.fieldNames, changeOnSelect = _useInjectCascader.changeOnSelect, expandTrigger = _useInjectCascader.expandTrigger, expandIconRef = _useInjectCascader.expandIcon, loadingIconRef = _useInjectCascader.loadingIcon, dropdownMenuColumnStyle = _useInjectCascader.dropdownMenuColumnStyle, customSlots = _useInjectCascader.customSlots;
- var expandIcon = (_expandIconRef$value = expandIconRef.value) !== null && _expandIconRef$value !== void 0 ? _expandIconRef$value : (_customSlots$value$ex = (_customSlots$value = customSlots.value).expandIcon) === null || _customSlots$value$ex === void 0 ? void 0 : _customSlots$value$ex.call(_customSlots$value);
- var loadingIcon = (_loadingIconRef$value = loadingIconRef.value) !== null && _loadingIconRef$value !== void 0 ? _loadingIconRef$value : (_customSlots$value$lo = (_customSlots$value2 = customSlots.value).loadingIcon) === null || _customSlots$value$lo === void 0 ? void 0 : _customSlots$value$lo.call(_customSlots$value2);
- var hoverOpen = expandTrigger.value === "hover";
- return createVNode("ul", {
- "class": menuPrefixCls,
- "role": "menu"
- }, [options.map(function(option) {
- var _option$FIX_LABEL, _ref2;
- var disabled = option.disabled;
- var searchOptions = option[SEARCH_MARK];
- var label = (_option$FIX_LABEL = option[FIX_LABEL]) !== null && _option$FIX_LABEL !== void 0 ? _option$FIX_LABEL : option[fieldNames.value.label];
- var value = option[fieldNames.value.value];
- var isMergedLeaf = isLeaf(option, fieldNames.value);
- var fullPath = searchOptions ? searchOptions.map(function(opt) {
- return opt[fieldNames.value.value];
- }) : [].concat(_toConsumableArray(prevValuePath), [value]);
- var fullPathKey = toPathKey(fullPath);
- var isLoading = loadingKeys.includes(fullPathKey);
- var checked = checkedSet.has(fullPathKey);
- var halfChecked = halfCheckedSet.has(fullPathKey);
- var triggerOpenPath = function triggerOpenPath2() {
- if (!disabled && (!hoverOpen || !isMergedLeaf)) {
- onActive(fullPath);
- }
- };
- var triggerSelect = function triggerSelect2() {
- if (isSelectable(option)) {
- onSelect(fullPath, isMergedLeaf);
- }
- };
- var title;
- if (typeof option.title === "string") {
- title = option.title;
- } else if (typeof label === "string") {
- title = label;
- }
- return createVNode("li", {
- "key": fullPathKey,
- "class": [menuItemPrefixCls, (_ref2 = {}, _defineProperty(_ref2, "".concat(menuItemPrefixCls, "-expand"), !isMergedLeaf), _defineProperty(_ref2, "".concat(menuItemPrefixCls, "-active"), activeValue === value), _defineProperty(_ref2, "".concat(menuItemPrefixCls, "-disabled"), disabled), _defineProperty(_ref2, "".concat(menuItemPrefixCls, "-loading"), isLoading), _ref2)],
- "style": dropdownMenuColumnStyle.value,
- "role": "menuitemcheckbox",
- "title": title,
- "aria-checked": checked,
- "data-path-key": fullPathKey,
- "onClick": function onClick2() {
- triggerOpenPath();
- if (!multiple || isMergedLeaf) {
- triggerSelect();
- }
- },
- "onDblclick": function onDblclick() {
- if (changeOnSelect.value) {
- onToggleOpen(false);
- }
- },
- "onMouseenter": function onMouseenter2() {
- if (hoverOpen) {
- triggerOpenPath();
- }
- },
- "onMousedown": function onMousedown2(e3) {
- e3.preventDefault();
- }
- }, [multiple && createVNode(Checkbox, {
- "prefixCls": "".concat(prefixCls, "-checkbox"),
- "checked": checked,
- "halfChecked": halfChecked,
- "disabled": disabled,
- "onClick": function onClick2(e3) {
- e3.stopPropagation();
- triggerSelect();
- }
- }, null), createVNode("div", {
- "class": "".concat(menuItemPrefixCls, "-content")
- }, [label]), !isLoading && expandIcon && !isMergedLeaf && createVNode("div", {
- "class": "".concat(menuItemPrefixCls, "-expand-icon")
- }, [expandIcon]), isLoading && loadingIcon && createVNode("div", {
- "class": "".concat(menuItemPrefixCls, "-loading-icon")
- }, [loadingIcon])]);
- })]);
- }
- Column.props = ["prefixCls", "multiple", "options", "activeValue", "prevValuePath", "onToggleOpen", "onSelect", "onActive", "checkedSet", "halfCheckedSet", "loadingKeys", "isSelectable"];
- Column.displayName = "Column";
- Column.inheritAttrs = false;
- // node_modules/ant-design-vue/es/vc-cascader/OptionList/index.js
- var OptionList_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "OptionList",
- inheritAttrs: false,
- setup: function setup92(_props, context2) {
- var attrs = context2.attrs, slots = context2.slots;
- var baseProps4 = useBaseProps();
- var containerRef = ref();
- var rtl3 = computed(function() {
- return baseProps4.direction === "rtl";
- });
- var _useInjectCascader = useInjectCascader(), options = _useInjectCascader.options, values = _useInjectCascader.values, halfValues = _useInjectCascader.halfValues, fieldNames = _useInjectCascader.fieldNames, changeOnSelect = _useInjectCascader.changeOnSelect, onSelect = _useInjectCascader.onSelect, searchOptions = _useInjectCascader.searchOptions, dropdownPrefixCls = _useInjectCascader.dropdownPrefixCls, loadData = _useInjectCascader.loadData, expandTrigger = _useInjectCascader.expandTrigger, customSlots = _useInjectCascader.customSlots;
- var mergedPrefixCls = computed(function() {
- return dropdownPrefixCls.value || baseProps4.prefixCls;
- });
- var loadingKeys = shallowRef([]);
- var internalLoadData = function internalLoadData2(valueCells) {
- if (!loadData.value || baseProps4.searchValue) {
- return;
- }
- var optionList = toPathOptions(valueCells, options.value, fieldNames.value);
- var rawOptions = optionList.map(function(_ref) {
- var option = _ref.option;
- return option;
- });
- var lastOption = rawOptions[rawOptions.length - 1];
- if (lastOption && !isLeaf(lastOption, fieldNames.value)) {
- var pathKey = toPathKey(valueCells);
- loadingKeys.value = [].concat(_toConsumableArray(loadingKeys.value), [pathKey]);
- loadData.value(rawOptions);
- }
- };
- watchEffect(function() {
- if (loadingKeys.value.length) {
- loadingKeys.value.forEach(function(loadingKey) {
- var valueStrCells = toPathValueStr(loadingKey);
- var optionList = toPathOptions(valueStrCells, options.value, fieldNames.value, true).map(function(_ref2) {
- var option = _ref2.option;
- return option;
- });
- var lastOption = optionList[optionList.length - 1];
- if (!lastOption || lastOption[fieldNames.value.children] || isLeaf(lastOption, fieldNames.value)) {
- loadingKeys.value = loadingKeys.value.filter(function(key2) {
- return key2 !== loadingKey;
- });
- }
- });
- }
- });
- var checkedSet = computed(function() {
- return new Set(toPathKeys(values.value));
- });
- var halfCheckedSet = computed(function() {
- return new Set(toPathKeys(halfValues.value));
- });
- var _useActive = useActive_default(), _useActive2 = _slicedToArray(_useActive, 2), activeValueCells = _useActive2[0], setActiveValueCells = _useActive2[1];
- var onPathOpen = function onPathOpen2(nextValueCells) {
- setActiveValueCells(nextValueCells);
- internalLoadData(nextValueCells);
- };
- var isSelectable = function isSelectable2(option) {
- var disabled = option.disabled;
- var isMergedLeaf = isLeaf(option, fieldNames.value);
- return !disabled && (isMergedLeaf || changeOnSelect.value || baseProps4.multiple);
- };
- var onPathSelect = function onPathSelect2(valuePath, leaf) {
- var fromKeyboard = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
- onSelect(valuePath);
- if (!baseProps4.multiple && (leaf || changeOnSelect.value && (expandTrigger.value === "hover" || fromKeyboard))) {
- baseProps4.toggleOpen(false);
- }
- };
- var mergedOptions = computed(function() {
- if (baseProps4.searchValue) {
- return searchOptions.value;
- }
- return options.value;
- });
- var optionColumns = computed(function() {
- var optionList = [{
- options: mergedOptions.value
- }];
- var currentList = mergedOptions.value;
- var _loop = function _loop2() {
- var activeValueCell = activeValueCells.value[i3];
- var currentOption = currentList.find(function(option) {
- return option[fieldNames.value.value] === activeValueCell;
- });
- var subOptions = currentOption === null || currentOption === void 0 ? void 0 : currentOption[fieldNames.value.children];
- if (!(subOptions !== null && subOptions !== void 0 && subOptions.length)) {
- return "break";
- }
- currentList = subOptions;
- optionList.push({
- options: subOptions
- });
- };
- for (var i3 = 0; i3 < activeValueCells.value.length; i3 += 1) {
- var _ret = _loop();
- if (_ret === "break")
- break;
- }
- return optionList;
- });
- var onKeyboardSelect = function onKeyboardSelect2(selectValueCells, option) {
- if (isSelectable(option)) {
- onPathSelect(selectValueCells, isLeaf(option, fieldNames.value), true);
- }
- };
- useKeyboard_default(context2, mergedOptions, fieldNames, activeValueCells, onPathOpen, onKeyboardSelect);
- var onListMouseDown = function onListMouseDown2(event) {
- event.preventDefault();
- };
- onMounted(function() {
- watch(activeValueCells, function(cells) {
- for (var i3 = 0; i3 < cells.length; i3 += 1) {
- var _containerRef$value;
- var cellPath = cells.slice(0, i3 + 1);
- var cellKeyPath = toPathKey(cellPath);
- var ele = (_containerRef$value = containerRef.value) === null || _containerRef$value === void 0 ? void 0 : _containerRef$value.querySelector('li[data-path-key="'.concat(cellKeyPath.replace(/\\{0,2}"/g, '\\"'), '"]'));
- if (ele) {
- scrollIntoParentView(ele);
- }
- }
- }, {
- flush: "post",
- immediate: true
- });
- });
- return function() {
- var _slots$notFoundConten, _customSlots$value$no, _customSlots$value, _optionColumns$value$, _optionColumns$value$2, _ref3, _ref4;
- var _baseProps$notFoundCo = baseProps4.notFoundContent, notFoundContent = _baseProps$notFoundCo === void 0 ? ((_slots$notFoundConten = slots.notFoundContent) === null || _slots$notFoundConten === void 0 ? void 0 : _slots$notFoundConten.call(slots)) || ((_customSlots$value$no = (_customSlots$value = customSlots.value).notFoundContent) === null || _customSlots$value$no === void 0 ? void 0 : _customSlots$value$no.call(_customSlots$value)) : _baseProps$notFoundCo, multiple = baseProps4.multiple, toggleOpen = baseProps4.toggleOpen;
- var isEmpty2 = !((_optionColumns$value$ = optionColumns.value[0]) !== null && _optionColumns$value$ !== void 0 && (_optionColumns$value$2 = _optionColumns$value$.options) !== null && _optionColumns$value$2 !== void 0 && _optionColumns$value$2.length);
- var emptyList = [(_ref3 = {}, _defineProperty(_ref3, fieldNames.value.value, "__EMPTY__"), _defineProperty(_ref3, FIX_LABEL, notFoundContent), _defineProperty(_ref3, "disabled", true), _ref3)];
- var columnProps = _objectSpread2(_objectSpread2({}, attrs), {}, {
- multiple: !isEmpty2 && multiple,
- onSelect: onPathSelect,
- onActive: onPathOpen,
- onToggleOpen: toggleOpen,
- checkedSet: checkedSet.value,
- halfCheckedSet: halfCheckedSet.value,
- loadingKeys: loadingKeys.value,
- isSelectable
- });
- var mergedOptionColumns = isEmpty2 ? [{
- options: emptyList
- }] : optionColumns.value;
- var columnNodes = mergedOptionColumns.map(function(col, index3) {
- var prevValuePath = activeValueCells.value.slice(0, index3);
- var activeValue = activeValueCells.value[index3];
- return createVNode(Column, _objectSpread2(_objectSpread2({
- "key": index3
- }, columnProps), {}, {
- "prefixCls": mergedPrefixCls.value,
- "options": col.options,
- "prevValuePath": prevValuePath,
- "activeValue": activeValue
- }), null);
- });
- return createVNode("div", {
- "class": ["".concat(mergedPrefixCls.value, "-menus"), (_ref4 = {}, _defineProperty(_ref4, "".concat(mergedPrefixCls.value, "-menu-empty"), isEmpty2), _defineProperty(_ref4, "".concat(mergedPrefixCls.value, "-rtl"), rtl3.value), _ref4)],
- "onMousedown": onListMouseDown,
- "ref": containerRef
- }, [columnNodes]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tree/useMaxLevel.js
- function useMaxLevel(keyEntities) {
- var maxLevel = ref(0);
- var levelEntities = shallowRef();
- watchEffect(function() {
- var newLevelEntities = /* @__PURE__ */ new Map();
- var newMaxLevel = 0;
- var keyEntitiesValue = keyEntities.value || {};
- for (var key2 in keyEntitiesValue) {
- if (Object.prototype.hasOwnProperty.call(keyEntitiesValue, key2)) {
- var entity = keyEntitiesValue[key2];
- var level = entity.level;
- var levelSet = newLevelEntities.get(level);
- if (!levelSet) {
- levelSet = /* @__PURE__ */ new Set();
- newLevelEntities.set(level, levelSet);
- }
- levelSet.add(entity);
- newMaxLevel = Math.max(newMaxLevel, level);
- }
- }
- maxLevel.value = newMaxLevel;
- levelEntities.value = newLevelEntities;
- });
- return {
- maxLevel,
- levelEntities
- };
- }
- // node_modules/ant-design-vue/es/vc-cascader/Cascader.js
- function baseCascaderProps() {
- return _objectSpread2(_objectSpread2({}, omit_default(baseSelectPropsWithoutPrivate(), ["tokenSeparators", "mode", "showSearch"])), {}, {
- // MISC
- id: String,
- prefixCls: String,
- fieldNames: Object,
- children: Array,
- // Value
- value: {
- type: [String, Number, Array]
- },
- defaultValue: {
- type: [String, Number, Array]
- },
- changeOnSelect: {
- type: Boolean,
- default: void 0
- },
- displayRender: Function,
- checkable: {
- type: Boolean,
- default: void 0
- },
- showCheckedStrategy: {
- type: String,
- default: SHOW_PARENT
- },
- // Search
- showSearch: {
- type: [Boolean, Object],
- default: void 0
- },
- searchValue: String,
- onSearch: Function,
- // Trigger
- expandTrigger: String,
- // Options
- options: Array,
- /** @private Internal usage. Do not use in your production. */
- dropdownPrefixCls: String,
- loadData: Function,
- // Open
- /** @deprecated Use `open` instead */
- popupVisible: {
- type: Boolean,
- default: void 0
- },
- /** @deprecated Use `dropdownClassName` instead */
- popupClassName: String,
- dropdownClassName: String,
- dropdownMenuColumnStyle: {
- type: Object,
- default: void 0
- },
- /** @deprecated Use `dropdownStyle` instead */
- popupStyle: {
- type: Object,
- default: void 0
- },
- dropdownStyle: {
- type: Object,
- default: void 0
- },
- /** @deprecated Use `placement` instead */
- popupPlacement: String,
- placement: String,
- /** @deprecated Use `onDropdownVisibleChange` instead */
- onPopupVisibleChange: Function,
- onDropdownVisibleChange: Function,
- // Icon
- expandIcon: vue_types_default.any,
- loadingIcon: vue_types_default.any
- });
- }
- function internalCascaderProps() {
- return _objectSpread2(_objectSpread2({}, baseCascaderProps()), {}, {
- onChange: Function,
- customSlots: Object
- });
- }
- function isMultipleValue(value) {
- return Array.isArray(value) && Array.isArray(value[0]);
- }
- function toRawValues(value) {
- if (!value) {
- return [];
- }
- if (isMultipleValue(value)) {
- return value;
- }
- return (value.length === 0 ? [] : [value]).map(function(val) {
- return Array.isArray(val) ? val : [val];
- });
- }
- var Cascader_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Cascader",
- inheritAttrs: false,
- props: initDefaultProps_default(internalCascaderProps(), {}),
- setup: function setup93(props5, _ref) {
- var attrs = _ref.attrs, expose = _ref.expose, slots = _ref.slots;
- var mergedId = useId(toRef(props5, "id"));
- var multiple = computed(function() {
- return !!props5.checkable;
- });
- var _useMergedState = useMergedState(props5.defaultValue, {
- value: computed(function() {
- return props5.value;
- }),
- postState: toRawValues
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), rawValues = _useMergedState2[0], setRawValues = _useMergedState2[1];
- var mergedFieldNames = computed(function() {
- return fillFieldNames2(props5.fieldNames);
- });
- var mergedOptions = computed(function() {
- return props5.options || [];
- });
- var pathKeyEntities = useEntities_default(mergedOptions, mergedFieldNames);
- var getValueByKeyPath = function getValueByKeyPath2(pathKeys) {
- var keyPathEntities = pathKeyEntities.value;
- return pathKeys.map(function(pathKey) {
- var nodes = keyPathEntities[pathKey].nodes;
- return nodes.map(function(node) {
- return node[mergedFieldNames.value.value];
- });
- });
- };
- var _useMergedState3 = useMergedState("", {
- value: computed(function() {
- return props5.searchValue;
- }),
- postState: function postState(search) {
- return search || "";
- }
- }), _useMergedState4 = _slicedToArray(_useMergedState3, 2), mergedSearchValue = _useMergedState4[0], setSearchValue = _useMergedState4[1];
- var onInternalSearch = function onInternalSearch2(searchText, info) {
- setSearchValue(searchText);
- if (info.source !== "blur" && props5.onSearch) {
- props5.onSearch(searchText);
- }
- };
- var _useSearchConfig = useSearchConfig(toRef(props5, "showSearch")), mergedShowSearch = _useSearchConfig.showSearch, mergedSearchConfig = _useSearchConfig.searchConfig;
- var searchOptions = useSearchOptions_default(mergedSearchValue, mergedOptions, mergedFieldNames, computed(function() {
- return props5.dropdownPrefixCls || props5.prefixCls;
- }), mergedSearchConfig, toRef(props5, "changeOnSelect"));
- var missingValuesInfo = useMissingValues_default(mergedOptions, mergedFieldNames, rawValues);
- var _ref2 = [ref([]), ref([]), ref([])], checkedValues = _ref2[0], halfCheckedValues = _ref2[1], missingCheckedValues = _ref2[2];
- var _useMaxLevel = useMaxLevel(pathKeyEntities), maxLevel = _useMaxLevel.maxLevel, levelEntities = _useMaxLevel.levelEntities;
- watchEffect(function() {
- var _missingValuesInfo$va = _slicedToArray(missingValuesInfo.value, 2), existValues = _missingValuesInfo$va[0], missingValues = _missingValuesInfo$va[1];
- if (!multiple.value || !rawValues.value.length) {
- var _ref3 = [existValues, [], missingValues];
- checkedValues.value = _ref3[0];
- halfCheckedValues.value = _ref3[1];
- missingCheckedValues.value = _ref3[2];
- return;
- }
- var keyPathValues = toPathKeys(existValues);
- var keyPathEntities = pathKeyEntities.value;
- var _conductCheck = conductCheck(keyPathValues, true, keyPathEntities, maxLevel.value, levelEntities.value), checkedKeys = _conductCheck.checkedKeys, halfCheckedKeys = _conductCheck.halfCheckedKeys;
- var _ref4 = [getValueByKeyPath(checkedKeys), getValueByKeyPath(halfCheckedKeys), missingValues];
- checkedValues.value = _ref4[0];
- halfCheckedValues.value = _ref4[1];
- missingCheckedValues.value = _ref4[2];
- });
- var deDuplicatedValues = computed(function() {
- var checkedKeys = toPathKeys(checkedValues.value);
- var deduplicateKeys = formatStrategyValues(checkedKeys, pathKeyEntities.value, props5.showCheckedStrategy);
- return [].concat(_toConsumableArray(missingCheckedValues.value), _toConsumableArray(getValueByKeyPath(deduplicateKeys)));
- });
- var displayValues = useDisplayValues_default(deDuplicatedValues, mergedOptions, mergedFieldNames, multiple, toRef(props5, "displayRender"));
- var triggerChange = function triggerChange2(nextValues) {
- setRawValues(nextValues);
- if (props5.onChange) {
- var nextRawValues = toRawValues(nextValues);
- var valueOptions = nextRawValues.map(function(valueCells) {
- return toPathOptions(valueCells, mergedOptions.value, mergedFieldNames.value).map(function(valueOpt) {
- return valueOpt.option;
- });
- });
- var triggerValues = multiple.value ? nextRawValues : nextRawValues[0];
- var triggerOptions = multiple.value ? valueOptions : valueOptions[0];
- props5.onChange(triggerValues, triggerOptions);
- }
- };
- var onInternalSelect = function onInternalSelect2(valuePath) {
- setSearchValue("");
- if (!multiple.value) {
- triggerChange(valuePath);
- } else {
- var pathKey = toPathKey(valuePath);
- var checkedPathKeys = toPathKeys(checkedValues.value);
- var halfCheckedPathKeys = toPathKeys(halfCheckedValues.value);
- var existInChecked = checkedPathKeys.includes(pathKey);
- var existInMissing = missingCheckedValues.value.some(function(valueCells) {
- return toPathKey(valueCells) === pathKey;
- });
- var nextCheckedValues = checkedValues.value;
- var nextMissingValues = missingCheckedValues.value;
- if (existInMissing && !existInChecked) {
- nextMissingValues = missingCheckedValues.value.filter(function(valueCells) {
- return toPathKey(valueCells) !== pathKey;
- });
- } else {
- var nextRawCheckedKeys = existInChecked ? checkedPathKeys.filter(function(key2) {
- return key2 !== pathKey;
- }) : [].concat(_toConsumableArray(checkedPathKeys), [pathKey]);
- var checkedKeys;
- if (existInChecked) {
- var _conductCheck2 = conductCheck(nextRawCheckedKeys, {
- checked: false,
- halfCheckedKeys: halfCheckedPathKeys
- }, pathKeyEntities.value, maxLevel.value, levelEntities.value);
- checkedKeys = _conductCheck2.checkedKeys;
- } else {
- var _conductCheck3 = conductCheck(nextRawCheckedKeys, true, pathKeyEntities.value, maxLevel.value, levelEntities.value);
- checkedKeys = _conductCheck3.checkedKeys;
- }
- var deDuplicatedKeys = formatStrategyValues(checkedKeys, pathKeyEntities.value, props5.showCheckedStrategy);
- nextCheckedValues = getValueByKeyPath(deDuplicatedKeys);
- }
- triggerChange([].concat(_toConsumableArray(nextMissingValues), _toConsumableArray(nextCheckedValues)));
- }
- };
- var onDisplayValuesChange = function onDisplayValuesChange2(_2, info) {
- if (info.type === "clear") {
- triggerChange([]);
- return;
- }
- var valueCells = info.values[0].valueCells;
- onInternalSelect(valueCells);
- };
- if (true) {
- watchEffect(function() {
- devWarning_default(!props5.onPopupVisibleChange, "Cascader", "`popupVisibleChange` is deprecated. Please use `dropdownVisibleChange` instead.");
- devWarning_default(props5.popupVisible === void 0, "Cascader", "`popupVisible` is deprecated. Please use `open` instead.");
- devWarning_default(props5.popupClassName === void 0, "Cascader", "`popupClassName` is deprecated. Please use `dropdownClassName` instead.");
- devWarning_default(props5.popupPlacement === void 0, "Cascader", "`popupPlacement` is deprecated. Please use `placement` instead.");
- devWarning_default(props5.popupStyle === void 0, "Cascader", "`popupStyle` is deprecated. Please use `dropdownStyle` instead.");
- });
- }
- var mergedOpen = computed(function() {
- return props5.open !== void 0 ? props5.open : props5.popupVisible;
- });
- var mergedDropdownClassName = computed(function() {
- return props5.dropdownClassName || props5.popupClassName;
- });
- var mergedDropdownStyle = computed(function() {
- return props5.dropdownStyle || props5.popupStyle || {};
- });
- var mergedPlacement = computed(function() {
- return props5.placement || props5.popupPlacement;
- });
- var onInternalDropdownVisibleChange = function onInternalDropdownVisibleChange2(nextVisible) {
- var _props$onDropdownVisi, _props$onPopupVisible;
- (_props$onDropdownVisi = props5.onDropdownVisibleChange) === null || _props$onDropdownVisi === void 0 ? void 0 : _props$onDropdownVisi.call(props5, nextVisible);
- (_props$onPopupVisible = props5.onPopupVisibleChange) === null || _props$onPopupVisible === void 0 ? void 0 : _props$onPopupVisible.call(props5, nextVisible);
- };
- var _toRefs = toRefs(props5), changeOnSelect = _toRefs.changeOnSelect, checkable = _toRefs.checkable, dropdownPrefixCls = _toRefs.dropdownPrefixCls, loadData = _toRefs.loadData, expandTrigger = _toRefs.expandTrigger, expandIcon = _toRefs.expandIcon, loadingIcon = _toRefs.loadingIcon, dropdownMenuColumnStyle = _toRefs.dropdownMenuColumnStyle, customSlots = _toRefs.customSlots;
- useProvideCascader({
- options: mergedOptions,
- fieldNames: mergedFieldNames,
- values: checkedValues,
- halfValues: halfCheckedValues,
- changeOnSelect,
- onSelect: onInternalSelect,
- checkable,
- searchOptions,
- dropdownPrefixCls,
- loadData,
- expandTrigger,
- expandIcon,
- loadingIcon,
- dropdownMenuColumnStyle,
- customSlots
- });
- var selectRef = ref();
- expose({
- focus: function focus() {
- var _selectRef$value;
- (_selectRef$value = selectRef.value) === null || _selectRef$value === void 0 ? void 0 : _selectRef$value.focus();
- },
- blur: function blur() {
- var _selectRef$value2;
- (_selectRef$value2 = selectRef.value) === null || _selectRef$value2 === void 0 ? void 0 : _selectRef$value2.blur();
- },
- scrollTo: function scrollTo3(arg) {
- var _selectRef$value3;
- (_selectRef$value3 = selectRef.value) === null || _selectRef$value3 === void 0 ? void 0 : _selectRef$value3.scrollTo(arg);
- }
- });
- var pickProps = computed(function() {
- return omit_default(props5, [
- "id",
- "prefixCls",
- "fieldNames",
- // Value
- "defaultValue",
- "value",
- "changeOnSelect",
- "onChange",
- "displayRender",
- "checkable",
- // Search
- "searchValue",
- "onSearch",
- "showSearch",
- // Trigger
- "expandTrigger",
- // Options
- "options",
- "dropdownPrefixCls",
- "loadData",
- // Open
- "popupVisible",
- "open",
- "popupClassName",
- "dropdownClassName",
- "dropdownMenuColumnStyle",
- "popupPlacement",
- "placement",
- "onDropdownVisibleChange",
- "onPopupVisibleChange",
- // Icon
- "expandIcon",
- "loadingIcon",
- "customSlots",
- "showCheckedStrategy",
- // Children
- "children"
- ]);
- });
- return function() {
- var emptyOptions = !(mergedSearchValue.value ? searchOptions.value : mergedOptions.value).length;
- var _props$dropdownMatchS = props5.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? false : _props$dropdownMatchS;
- var dropdownStyle = (
- // Search to match width
- mergedSearchValue.value && mergedSearchConfig.value.matchInputWidth || // Empty keep the width
- emptyOptions ? {} : {
- minWidth: "auto"
- }
- );
- return createVNode(BaseSelect_default, _objectSpread2(_objectSpread2(_objectSpread2({}, pickProps.value), attrs), {}, {
- "ref": selectRef,
- "id": mergedId,
- "prefixCls": props5.prefixCls,
- "dropdownMatchSelectWidth": dropdownMatchSelectWidth,
- "dropdownStyle": _objectSpread2(_objectSpread2({}, mergedDropdownStyle.value), dropdownStyle),
- "displayValues": displayValues.value,
- "onDisplayValuesChange": onDisplayValuesChange,
- "mode": multiple.value ? "multiple" : void 0,
- "searchValue": mergedSearchValue.value,
- "onSearch": onInternalSearch,
- "showSearch": mergedShowSearch.value,
- "OptionList": OptionList_default2,
- "emptyOptions": emptyOptions,
- "open": mergedOpen.value,
- "dropdownClassName": mergedDropdownClassName.value,
- "placement": mergedPlacement.value,
- "onDropdownVisibleChange": onInternalDropdownVisibleChange,
- "getRawInputElement": function getRawInputElement() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- }
- }), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-cascader/index.js
- var vc_cascader_default = Cascader_default;
- // node_modules/lodash-es/_arrayEach.js
- function arrayEach(array4, iteratee) {
- var index3 = -1, length = array4 == null ? 0 : array4.length;
- while (++index3 < length) {
- if (iteratee(array4[index3], index3, array4) === false) {
- break;
- }
- }
- return array4;
- }
- var arrayEach_default = arrayEach;
- // node_modules/lodash-es/_copyObject.js
- function copyObject(source, props5, object4, customizer) {
- var isNew = !object4;
- object4 || (object4 = {});
- var index3 = -1, length = props5.length;
- while (++index3 < length) {
- var key2 = props5[index3];
- var newValue = customizer ? customizer(object4[key2], source[key2], key2, object4, source) : void 0;
- if (newValue === void 0) {
- newValue = source[key2];
- }
- if (isNew) {
- baseAssignValue_default(object4, key2, newValue);
- } else {
- assignValue_default(object4, key2, newValue);
- }
- }
- return object4;
- }
- var copyObject_default = copyObject;
- // node_modules/lodash-es/_baseAssign.js
- function baseAssign(object4, source) {
- return object4 && copyObject_default(source, keys_default(source), object4);
- }
- var baseAssign_default = baseAssign;
- // node_modules/lodash-es/_nativeKeysIn.js
- function nativeKeysIn(object4) {
- var result = [];
- if (object4 != null) {
- for (var key2 in Object(object4)) {
- result.push(key2);
- }
- }
- return result;
- }
- var nativeKeysIn_default = nativeKeysIn;
- // node_modules/lodash-es/_baseKeysIn.js
- var objectProto15 = Object.prototype;
- var hasOwnProperty13 = objectProto15.hasOwnProperty;
- function baseKeysIn(object4) {
- if (!isObject_default(object4)) {
- return nativeKeysIn_default(object4);
- }
- var isProto = isPrototype_default(object4), result = [];
- for (var key2 in object4) {
- if (!(key2 == "constructor" && (isProto || !hasOwnProperty13.call(object4, key2)))) {
- result.push(key2);
- }
- }
- return result;
- }
- var baseKeysIn_default = baseKeysIn;
- // node_modules/lodash-es/keysIn.js
- function keysIn(object4) {
- return isArrayLike_default(object4) ? arrayLikeKeys_default(object4, true) : baseKeysIn_default(object4);
- }
- var keysIn_default = keysIn;
- // node_modules/lodash-es/_baseAssignIn.js
- function baseAssignIn(object4, source) {
- return object4 && copyObject_default(source, keysIn_default(source), object4);
- }
- var baseAssignIn_default = baseAssignIn;
- // node_modules/lodash-es/_cloneBuffer.js
- var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
- var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
- var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
- var Buffer2 = moduleExports3 ? root_default.Buffer : void 0;
- var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
- function cloneBuffer(buffer, isDeep) {
- if (isDeep) {
- return buffer.slice();
- }
- var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
- buffer.copy(result);
- return result;
- }
- var cloneBuffer_default = cloneBuffer;
- // node_modules/lodash-es/_copyArray.js
- function copyArray(source, array4) {
- var index3 = -1, length = source.length;
- array4 || (array4 = Array(length));
- while (++index3 < length) {
- array4[index3] = source[index3];
- }
- return array4;
- }
- var copyArray_default = copyArray;
- // node_modules/lodash-es/_copySymbols.js
- function copySymbols(source, object4) {
- return copyObject_default(source, getSymbols_default(source), object4);
- }
- var copySymbols_default = copySymbols;
- // node_modules/lodash-es/_getSymbolsIn.js
- var nativeGetSymbols2 = Object.getOwnPropertySymbols;
- var getSymbolsIn = !nativeGetSymbols2 ? stubArray_default : function(object4) {
- var result = [];
- while (object4) {
- arrayPush_default(result, getSymbols_default(object4));
- object4 = getPrototype_default(object4);
- }
- return result;
- };
- var getSymbolsIn_default = getSymbolsIn;
- // node_modules/lodash-es/_copySymbolsIn.js
- function copySymbolsIn(source, object4) {
- return copyObject_default(source, getSymbolsIn_default(source), object4);
- }
- var copySymbolsIn_default = copySymbolsIn;
- // node_modules/lodash-es/_getAllKeysIn.js
- function getAllKeysIn(object4) {
- return baseGetAllKeys_default(object4, keysIn_default, getSymbolsIn_default);
- }
- var getAllKeysIn_default = getAllKeysIn;
- // node_modules/lodash-es/_initCloneArray.js
- var objectProto16 = Object.prototype;
- var hasOwnProperty14 = objectProto16.hasOwnProperty;
- function initCloneArray(array4) {
- var length = array4.length, result = new array4.constructor(length);
- if (length && typeof array4[0] == "string" && hasOwnProperty14.call(array4, "index")) {
- result.index = array4.index;
- result.input = array4.input;
- }
- return result;
- }
- var initCloneArray_default = initCloneArray;
- // node_modules/lodash-es/_cloneArrayBuffer.js
- function cloneArrayBuffer(arrayBuffer) {
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
- new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
- return result;
- }
- var cloneArrayBuffer_default = cloneArrayBuffer;
- // node_modules/lodash-es/_cloneDataView.js
- function cloneDataView(dataView, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer_default(dataView.buffer) : dataView.buffer;
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
- }
- var cloneDataView_default = cloneDataView;
- // node_modules/lodash-es/_cloneRegExp.js
- var reFlags = /\w*$/;
- function cloneRegExp(regexp4) {
- var result = new regexp4.constructor(regexp4.source, reFlags.exec(regexp4));
- result.lastIndex = regexp4.lastIndex;
- return result;
- }
- var cloneRegExp_default = cloneRegExp;
- // node_modules/lodash-es/_cloneSymbol.js
- var symbolProto3 = Symbol_default ? Symbol_default.prototype : void 0;
- var symbolValueOf2 = symbolProto3 ? symbolProto3.valueOf : void 0;
- function cloneSymbol(symbol) {
- return symbolValueOf2 ? Object(symbolValueOf2.call(symbol)) : {};
- }
- var cloneSymbol_default = cloneSymbol;
- // node_modules/lodash-es/_cloneTypedArray.js
- function cloneTypedArray(typedArray, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
- }
- var cloneTypedArray_default = cloneTypedArray;
- // node_modules/lodash-es/_initCloneByTag.js
- var boolTag3 = "[object Boolean]";
- var dateTag3 = "[object Date]";
- var mapTag4 = "[object Map]";
- var numberTag3 = "[object Number]";
- var regexpTag3 = "[object RegExp]";
- var setTag4 = "[object Set]";
- var stringTag3 = "[object String]";
- var symbolTag3 = "[object Symbol]";
- var arrayBufferTag3 = "[object ArrayBuffer]";
- var dataViewTag4 = "[object DataView]";
- var float32Tag2 = "[object Float32Array]";
- var float64Tag2 = "[object Float64Array]";
- var int8Tag2 = "[object Int8Array]";
- var int16Tag2 = "[object Int16Array]";
- var int32Tag2 = "[object Int32Array]";
- var uint8Tag2 = "[object Uint8Array]";
- var uint8ClampedTag2 = "[object Uint8ClampedArray]";
- var uint16Tag2 = "[object Uint16Array]";
- var uint32Tag2 = "[object Uint32Array]";
- function initCloneByTag(object4, tag, isDeep) {
- var Ctor = object4.constructor;
- switch (tag) {
- case arrayBufferTag3:
- return cloneArrayBuffer_default(object4);
- case boolTag3:
- case dateTag3:
- return new Ctor(+object4);
- case dataViewTag4:
- return cloneDataView_default(object4, isDeep);
- case float32Tag2:
- case float64Tag2:
- case int8Tag2:
- case int16Tag2:
- case int32Tag2:
- case uint8Tag2:
- case uint8ClampedTag2:
- case uint16Tag2:
- case uint32Tag2:
- return cloneTypedArray_default(object4, isDeep);
- case mapTag4:
- return new Ctor();
- case numberTag3:
- case stringTag3:
- return new Ctor(object4);
- case regexpTag3:
- return cloneRegExp_default(object4);
- case setTag4:
- return new Ctor();
- case symbolTag3:
- return cloneSymbol_default(object4);
- }
- }
- var initCloneByTag_default = initCloneByTag;
- // node_modules/lodash-es/_baseCreate.js
- var objectCreate = Object.create;
- var baseCreate = function() {
- function object4() {
- }
- return function(proto) {
- if (!isObject_default(proto)) {
- return {};
- }
- if (objectCreate) {
- return objectCreate(proto);
- }
- object4.prototype = proto;
- var result = new object4();
- object4.prototype = void 0;
- return result;
- };
- }();
- var baseCreate_default = baseCreate;
- // node_modules/lodash-es/_initCloneObject.js
- function initCloneObject(object4) {
- return typeof object4.constructor == "function" && !isPrototype_default(object4) ? baseCreate_default(getPrototype_default(object4)) : {};
- }
- var initCloneObject_default = initCloneObject;
- // node_modules/lodash-es/_baseIsMap.js
- var mapTag5 = "[object Map]";
- function baseIsMap(value) {
- return isObjectLike_default(value) && getTag_default(value) == mapTag5;
- }
- var baseIsMap_default = baseIsMap;
- // node_modules/lodash-es/isMap.js
- var nodeIsMap = nodeUtil_default && nodeUtil_default.isMap;
- var isMap = nodeIsMap ? baseUnary_default(nodeIsMap) : baseIsMap_default;
- var isMap_default = isMap;
- // node_modules/lodash-es/_baseIsSet.js
- var setTag5 = "[object Set]";
- function baseIsSet(value) {
- return isObjectLike_default(value) && getTag_default(value) == setTag5;
- }
- var baseIsSet_default = baseIsSet;
- // node_modules/lodash-es/isSet.js
- var nodeIsSet = nodeUtil_default && nodeUtil_default.isSet;
- var isSet = nodeIsSet ? baseUnary_default(nodeIsSet) : baseIsSet_default;
- var isSet_default = isSet;
- // node_modules/lodash-es/_baseClone.js
- var CLONE_DEEP_FLAG = 1;
- var CLONE_FLAT_FLAG = 2;
- var CLONE_SYMBOLS_FLAG = 4;
- var argsTag4 = "[object Arguments]";
- var arrayTag3 = "[object Array]";
- var boolTag4 = "[object Boolean]";
- var dateTag4 = "[object Date]";
- var errorTag3 = "[object Error]";
- var funcTag3 = "[object Function]";
- var genTag2 = "[object GeneratorFunction]";
- var mapTag6 = "[object Map]";
- var numberTag4 = "[object Number]";
- var objectTag5 = "[object Object]";
- var regexpTag4 = "[object RegExp]";
- var setTag6 = "[object Set]";
- var stringTag4 = "[object String]";
- var symbolTag4 = "[object Symbol]";
- var weakMapTag3 = "[object WeakMap]";
- var arrayBufferTag4 = "[object ArrayBuffer]";
- var dataViewTag5 = "[object DataView]";
- var float32Tag3 = "[object Float32Array]";
- var float64Tag3 = "[object Float64Array]";
- var int8Tag3 = "[object Int8Array]";
- var int16Tag3 = "[object Int16Array]";
- var int32Tag3 = "[object Int32Array]";
- var uint8Tag3 = "[object Uint8Array]";
- var uint8ClampedTag3 = "[object Uint8ClampedArray]";
- var uint16Tag3 = "[object Uint16Array]";
- var uint32Tag3 = "[object Uint32Array]";
- var cloneableTags = {};
- cloneableTags[argsTag4] = cloneableTags[arrayTag3] = cloneableTags[arrayBufferTag4] = cloneableTags[dataViewTag5] = cloneableTags[boolTag4] = cloneableTags[dateTag4] = cloneableTags[float32Tag3] = cloneableTags[float64Tag3] = cloneableTags[int8Tag3] = cloneableTags[int16Tag3] = cloneableTags[int32Tag3] = cloneableTags[mapTag6] = cloneableTags[numberTag4] = cloneableTags[objectTag5] = cloneableTags[regexpTag4] = cloneableTags[setTag6] = cloneableTags[stringTag4] = cloneableTags[symbolTag4] = cloneableTags[uint8Tag3] = cloneableTags[uint8ClampedTag3] = cloneableTags[uint16Tag3] = cloneableTags[uint32Tag3] = true;
- cloneableTags[errorTag3] = cloneableTags[funcTag3] = cloneableTags[weakMapTag3] = false;
- function baseClone(value, bitmask, customizer, key2, object4, stack) {
- var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
- if (customizer) {
- result = object4 ? customizer(value, key2, object4, stack) : customizer(value);
- }
- if (result !== void 0) {
- return result;
- }
- if (!isObject_default(value)) {
- return value;
- }
- var isArr = isArray_default(value);
- if (isArr) {
- result = initCloneArray_default(value);
- if (!isDeep) {
- return copyArray_default(value, result);
- }
- } else {
- var tag = getTag_default(value), isFunc = tag == funcTag3 || tag == genTag2;
- if (isBuffer_default(value)) {
- return cloneBuffer_default(value, isDeep);
- }
- if (tag == objectTag5 || tag == argsTag4 || isFunc && !object4) {
- result = isFlat || isFunc ? {} : initCloneObject_default(value);
- if (!isDeep) {
- return isFlat ? copySymbolsIn_default(value, baseAssignIn_default(result, value)) : copySymbols_default(value, baseAssign_default(result, value));
- }
- } else {
- if (!cloneableTags[tag]) {
- return object4 ? value : {};
- }
- result = initCloneByTag_default(value, tag, isDeep);
- }
- }
- stack || (stack = new Stack_default());
- var stacked = stack.get(value);
- if (stacked) {
- return stacked;
- }
- stack.set(value, result);
- if (isSet_default(value)) {
- value.forEach(function(subValue) {
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
- });
- } else if (isMap_default(value)) {
- value.forEach(function(subValue, key3) {
- result.set(key3, baseClone(subValue, bitmask, customizer, key3, value, stack));
- });
- }
- var keysFunc = isFull ? isFlat ? getAllKeysIn_default : getAllKeys_default : isFlat ? keysIn_default : keys_default;
- var props5 = isArr ? void 0 : keysFunc(value);
- arrayEach_default(props5 || value, function(subValue, key3) {
- if (props5) {
- key3 = subValue;
- subValue = value[key3];
- }
- assignValue_default(result, key3, baseClone(subValue, bitmask, customizer, key3, value, stack));
- });
- return result;
- }
- var baseClone_default = baseClone;
- // node_modules/lodash-es/cloneDeep.js
- var CLONE_DEEP_FLAG2 = 1;
- var CLONE_SYMBOLS_FLAG2 = 4;
- function cloneDeep(value) {
- return baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2);
- }
- var cloneDeep_default = cloneDeep;
- // node_modules/ant-design-vue/es/form/utils/validateUtil.js
- var import_regenerator3 = __toESM(require_regenerator());
- // node_modules/async-validator/dist-web/index.js
- function _extends2() {
- _extends2 = Object.assign ? Object.assign.bind() : function(target) {
- for (var i3 = 1; i3 < arguments.length; i3++) {
- var source = arguments[i3];
- for (var key2 in source) {
- if (Object.prototype.hasOwnProperty.call(source, key2)) {
- target[key2] = source[key2];
- }
- }
- }
- return target;
- };
- return _extends2.apply(this, arguments);
- }
- function _inheritsLoose(subClass, superClass) {
- subClass.prototype = Object.create(superClass.prototype);
- subClass.prototype.constructor = subClass;
- _setPrototypeOf(subClass, superClass);
- }
- function _getPrototypeOf(o2) {
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
- return o3.__proto__ || Object.getPrototypeOf(o3);
- };
- return _getPrototypeOf(o2);
- }
- function _setPrototypeOf(o2, p) {
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
- o3.__proto__ = p2;
- return o3;
- };
- return _setPrototypeOf(o2, p);
- }
- function _isNativeReflectConstruct() {
- if (typeof Reflect === "undefined" || !Reflect.construct)
- return false;
- if (Reflect.construct.sham)
- return false;
- if (typeof Proxy === "function")
- return true;
- try {
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
- }));
- return true;
- } catch (e3) {
- return false;
- }
- }
- function _construct(Parent, args, Class) {
- if (_isNativeReflectConstruct()) {
- _construct = Reflect.construct.bind();
- } else {
- _construct = function _construct2(Parent2, args2, Class2) {
- var a2 = [null];
- a2.push.apply(a2, args2);
- var Constructor = Function.bind.apply(Parent2, a2);
- var instance = new Constructor();
- if (Class2)
- _setPrototypeOf(instance, Class2.prototype);
- return instance;
- };
- }
- return _construct.apply(null, arguments);
- }
- function _isNativeFunction(fn) {
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
- }
- function _wrapNativeSuper(Class) {
- var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
- _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
- if (Class2 === null || !_isNativeFunction(Class2))
- return Class2;
- if (typeof Class2 !== "function") {
- throw new TypeError("Super expression must either be null or a function");
- }
- if (typeof _cache !== "undefined") {
- if (_cache.has(Class2))
- return _cache.get(Class2);
- _cache.set(Class2, Wrapper);
- }
- function Wrapper() {
- return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
- }
- Wrapper.prototype = Object.create(Class2.prototype, {
- constructor: {
- value: Wrapper,
- enumerable: false,
- writable: true,
- configurable: true
- }
- });
- return _setPrototypeOf(Wrapper, Class2);
- };
- return _wrapNativeSuper(Class);
- }
- var formatRegExp = /%[sdj%]/g;
- var warning2 = function warning3() {
- };
- if (typeof process !== "undefined" && process.env && true && typeof window !== "undefined" && typeof document !== "undefined") {
- warning2 = function warning4(type4, errors) {
- if (typeof console !== "undefined" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === "undefined") {
- if (errors.every(function(e3) {
- return typeof e3 === "string";
- })) {
- console.warn(type4, errors);
- }
- }
- };
- }
- function convertFieldsError(errors) {
- if (!errors || !errors.length)
- return null;
- var fields = {};
- errors.forEach(function(error) {
- var field = error.field;
- fields[field] = fields[field] || [];
- fields[field].push(error);
- });
- return fields;
- }
- function format2(template) {
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- var i3 = 0;
- var len = args.length;
- if (typeof template === "function") {
- return template.apply(null, args);
- }
- if (typeof template === "string") {
- var str = template.replace(formatRegExp, function(x2) {
- if (x2 === "%%") {
- return "%";
- }
- if (i3 >= len) {
- return x2;
- }
- switch (x2) {
- case "%s":
- return String(args[i3++]);
- case "%d":
- return Number(args[i3++]);
- case "%j":
- try {
- return JSON.stringify(args[i3++]);
- } catch (_2) {
- return "[Circular]";
- }
- break;
- default:
- return x2;
- }
- });
- return str;
- }
- return template;
- }
- function isNativeStringType(type4) {
- return type4 === "string" || type4 === "url" || type4 === "hex" || type4 === "email" || type4 === "date" || type4 === "pattern";
- }
- function isEmptyValue(value, type4) {
- if (value === void 0 || value === null) {
- return true;
- }
- if (type4 === "array" && Array.isArray(value) && !value.length) {
- return true;
- }
- if (isNativeStringType(type4) && typeof value === "string" && !value) {
- return true;
- }
- return false;
- }
- function asyncParallelArray(arr, func, callback) {
- var results = [];
- var total2 = 0;
- var arrLength = arr.length;
- function count(errors) {
- results.push.apply(results, errors || []);
- total2++;
- if (total2 === arrLength) {
- callback(results);
- }
- }
- arr.forEach(function(a2) {
- func(a2, count);
- });
- }
- function asyncSerialArray(arr, func, callback) {
- var index3 = 0;
- var arrLength = arr.length;
- function next2(errors) {
- if (errors && errors.length) {
- callback(errors);
- return;
- }
- var original = index3;
- index3 = index3 + 1;
- if (original < arrLength) {
- func(arr[original], next2);
- } else {
- callback([]);
- }
- }
- next2([]);
- }
- function flattenObjArr(objArr) {
- var ret = [];
- Object.keys(objArr).forEach(function(k2) {
- ret.push.apply(ret, objArr[k2] || []);
- });
- return ret;
- }
- var AsyncValidationError = function(_Error) {
- _inheritsLoose(AsyncValidationError2, _Error);
- function AsyncValidationError2(errors, fields) {
- var _this;
- _this = _Error.call(this, "Async Validation Error") || this;
- _this.errors = errors;
- _this.fields = fields;
- return _this;
- }
- return AsyncValidationError2;
- }(_wrapNativeSuper(Error));
- function asyncMap(objArr, option, func, callback, source) {
- if (option.first) {
- var _pending = new Promise(function(resolve, reject) {
- var next2 = function next3(errors) {
- callback(errors);
- return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve(source);
- };
- var flattenArr = flattenObjArr(objArr);
- asyncSerialArray(flattenArr, func, next2);
- });
- _pending["catch"](function(e3) {
- return e3;
- });
- return _pending;
- }
- var firstFields = option.firstFields === true ? Object.keys(objArr) : option.firstFields || [];
- var objArrKeys = Object.keys(objArr);
- var objArrLength = objArrKeys.length;
- var total2 = 0;
- var results = [];
- var pending = new Promise(function(resolve, reject) {
- var next2 = function next3(errors) {
- results.push.apply(results, errors);
- total2++;
- if (total2 === objArrLength) {
- callback(results);
- return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve(source);
- }
- };
- if (!objArrKeys.length) {
- callback(results);
- resolve(source);
- }
- objArrKeys.forEach(function(key2) {
- var arr = objArr[key2];
- if (firstFields.indexOf(key2) !== -1) {
- asyncSerialArray(arr, func, next2);
- } else {
- asyncParallelArray(arr, func, next2);
- }
- });
- });
- pending["catch"](function(e3) {
- return e3;
- });
- return pending;
- }
- function isErrorObj(obj) {
- return !!(obj && obj.message !== void 0);
- }
- function getValue3(value, path2) {
- var v2 = value;
- for (var i3 = 0; i3 < path2.length; i3++) {
- if (v2 == void 0) {
- return v2;
- }
- v2 = v2[path2[i3]];
- }
- return v2;
- }
- function complementError(rule, source) {
- return function(oe) {
- var fieldValue;
- if (rule.fullFields) {
- fieldValue = getValue3(source, rule.fullFields);
- } else {
- fieldValue = source[oe.field || rule.fullField];
- }
- if (isErrorObj(oe)) {
- oe.field = oe.field || rule.fullField;
- oe.fieldValue = fieldValue;
- return oe;
- }
- return {
- message: typeof oe === "function" ? oe() : oe,
- fieldValue,
- field: oe.field || rule.fullField
- };
- };
- }
- function deepMerge(target, source) {
- if (source) {
- for (var s2 in source) {
- if (source.hasOwnProperty(s2)) {
- var value = source[s2];
- if (typeof value === "object" && typeof target[s2] === "object") {
- target[s2] = _extends2({}, target[s2], value);
- } else {
- target[s2] = value;
- }
- }
- }
- }
- return target;
- }
- var required$1 = function required(rule, value, source, errors, options, type4) {
- if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type4 || rule.type))) {
- errors.push(format2(options.messages.required, rule.fullField));
- }
- };
- var whitespace = function whitespace2(rule, value, source, errors, options) {
- if (/^\s+$/.test(value) || value === "") {
- errors.push(format2(options.messages.whitespace, rule.fullField));
- }
- };
- var urlReg;
- var getUrlRegex = function() {
- if (urlReg) {
- return urlReg;
- }
- var word = "[a-fA-F\\d:]";
- var b2 = function b3(options) {
- return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
- };
- var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
- var v6seg = "[a-fA-F\\d]{1,4}";
- var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
- var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
- var v4exact = new RegExp("^" + v4 + "$");
- var v6exact = new RegExp("^" + v6 + "$");
- var ip = function ip2(options) {
- return options && options.exact ? v46Exact : new RegExp("(?:" + b2(options) + v4 + b2(options) + ")|(?:" + b2(options) + v6 + b2(options) + ")", "g");
- };
- ip.v4 = function(options) {
- return options && options.exact ? v4exact : new RegExp("" + b2(options) + v4 + b2(options), "g");
- };
- ip.v6 = function(options) {
- return options && options.exact ? v6exact : new RegExp("" + b2(options) + v6 + b2(options), "g");
- };
- var protocol = "(?:(?:[a-z]+:)?//)";
- var auth = "(?:\\S+(?::\\S*)?@)?";
- var ipv4 = ip.v4().source;
- var ipv6 = ip.v6().source;
- var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
- var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
- var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
- var port = "(?::\\d{2,5})?";
- var path2 = '(?:[/?#][^\\s"]*)?';
- var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path2;
- urlReg = new RegExp("(?:^" + regex + "$)", "i");
- return urlReg;
- };
- var pattern$2 = {
- // http://emailregex.com/
- email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
- // 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',
- // ),
- hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
- };
- var types = {
- integer: function integer(value) {
- return types.number(value) && parseInt(value, 10) === value;
- },
- "float": function float(value) {
- return types.number(value) && !types.integer(value);
- },
- array: function array(value) {
- return Array.isArray(value);
- },
- regexp: function regexp(value) {
- if (value instanceof RegExp) {
- return true;
- }
- try {
- return !!new RegExp(value);
- } catch (e3) {
- return false;
- }
- },
- date: function date(value) {
- return typeof value.getTime === "function" && typeof value.getMonth === "function" && typeof value.getYear === "function" && !isNaN(value.getTime());
- },
- number: function number(value) {
- if (isNaN(value)) {
- return false;
- }
- return typeof value === "number";
- },
- object: function object(value) {
- return typeof value === "object" && !types.array(value);
- },
- method: function method(value) {
- return typeof value === "function";
- },
- email: function email(value) {
- return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
- },
- url: function url(value) {
- return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
- },
- hex: function hex(value) {
- return typeof value === "string" && !!value.match(pattern$2.hex);
- }
- };
- var type$1 = function type(rule, value, source, errors, options) {
- if (rule.required && value === void 0) {
- required$1(rule, value, source, errors, options);
- return;
- }
- var custom = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"];
- var ruleType = rule.type;
- if (custom.indexOf(ruleType) > -1) {
- if (!types[ruleType](value)) {
- errors.push(format2(options.messages.types[ruleType], rule.fullField, rule.type));
- }
- } else if (ruleType && typeof value !== rule.type) {
- errors.push(format2(options.messages.types[ruleType], rule.fullField, rule.type));
- }
- };
- var range = function range2(rule, value, source, errors, options) {
- var len = typeof rule.len === "number";
- var min3 = typeof rule.min === "number";
- var max3 = typeof rule.max === "number";
- var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
- var val = value;
- var key2 = null;
- var num = typeof value === "number";
- var str = typeof value === "string";
- var arr = Array.isArray(value);
- if (num) {
- key2 = "number";
- } else if (str) {
- key2 = "string";
- } else if (arr) {
- key2 = "array";
- }
- if (!key2) {
- return false;
- }
- if (arr) {
- val = value.length;
- }
- if (str) {
- val = value.replace(spRegexp, "_").length;
- }
- if (len) {
- if (val !== rule.len) {
- errors.push(format2(options.messages[key2].len, rule.fullField, rule.len));
- }
- } else if (min3 && !max3 && val < rule.min) {
- errors.push(format2(options.messages[key2].min, rule.fullField, rule.min));
- } else if (max3 && !min3 && val > rule.max) {
- errors.push(format2(options.messages[key2].max, rule.fullField, rule.max));
- } else if (min3 && max3 && (val < rule.min || val > rule.max)) {
- errors.push(format2(options.messages[key2].range, rule.fullField, rule.min, rule.max));
- }
- };
- var ENUM$1 = "enum";
- var enumerable$1 = function enumerable(rule, value, source, errors, options) {
- rule[ENUM$1] = Array.isArray(rule[ENUM$1]) ? rule[ENUM$1] : [];
- if (rule[ENUM$1].indexOf(value) === -1) {
- errors.push(format2(options.messages[ENUM$1], rule.fullField, rule[ENUM$1].join(", ")));
- }
- };
- var pattern$1 = function pattern(rule, value, source, errors, options) {
- if (rule.pattern) {
- if (rule.pattern instanceof RegExp) {
- rule.pattern.lastIndex = 0;
- if (!rule.pattern.test(value)) {
- errors.push(format2(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- } else if (typeof rule.pattern === "string") {
- var _pattern = new RegExp(rule.pattern);
- if (!_pattern.test(value)) {
- errors.push(format2(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
- }
- }
- }
- };
- var rules = {
- required: required$1,
- whitespace,
- type: type$1,
- range,
- "enum": enumerable$1,
- pattern: pattern$1
- };
- var string = function string2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, "string") && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, "string");
- if (!isEmptyValue(value, "string")) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- rules.pattern(rule, value, source, errors, options);
- if (rule.whitespace === true) {
- rules.whitespace(rule, value, source, errors, options);
- }
- }
- }
- callback(errors);
- };
- var method2 = function method3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var number2 = function number3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (value === "") {
- value = void 0;
- }
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var _boolean = function _boolean2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var regexp2 = function regexp3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value)) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var integer2 = function integer3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var floatFn = function floatFn2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var array2 = function array3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if ((value === void 0 || value === null) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, "array");
- if (value !== void 0 && value !== null) {
- rules.type(rule, value, source, errors, options);
- rules.range(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var object2 = function object3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var ENUM = "enum";
- var enumerable2 = function enumerable3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (value !== void 0) {
- rules[ENUM](rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var pattern2 = function pattern3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, "string") && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value, "string")) {
- rules.pattern(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var date2 = function date3(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, "date") && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- if (!isEmptyValue(value, "date")) {
- var dateObject;
- if (value instanceof Date) {
- dateObject = value;
- } else {
- dateObject = new Date(value);
- }
- rules.type(rule, dateObject, source, errors, options);
- if (dateObject) {
- rules.range(rule, dateObject.getTime(), source, errors, options);
- }
- }
- }
- callback(errors);
- };
- var required2 = function required3(rule, value, callback, source, options) {
- var errors = [];
- var type4 = Array.isArray(value) ? "array" : typeof value;
- rules.required(rule, value, source, errors, options, type4);
- callback(errors);
- };
- var type2 = function type3(rule, value, callback, source, options) {
- var ruleType = rule.type;
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value, ruleType) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options, ruleType);
- if (!isEmptyValue(value, ruleType)) {
- rules.type(rule, value, source, errors, options);
- }
- }
- callback(errors);
- };
- var any = function any2(rule, value, callback, source, options) {
- var errors = [];
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
- if (validate) {
- if (isEmptyValue(value) && !rule.required) {
- return callback();
- }
- rules.required(rule, value, source, errors, options);
- }
- callback(errors);
- };
- var validators = {
- string,
- method: method2,
- number: number2,
- "boolean": _boolean,
- regexp: regexp2,
- integer: integer2,
- "float": floatFn,
- array: array2,
- object: object2,
- "enum": enumerable2,
- pattern: pattern2,
- date: date2,
- url: type2,
- hex: type2,
- email: type2,
- required: required2,
- any
- };
- function newMessages() {
- return {
- "default": "Validation error on field %s",
- required: "%s is required",
- "enum": "%s must be one of %s",
- whitespace: "%s cannot be empty",
- date: {
- format: "%s date %s is invalid for format %s",
- parse: "%s date could not be parsed, %s is invalid ",
- invalid: "%s date %s is invalid"
- },
- types: {
- string: "%s is not a %s",
- method: "%s is not a %s (function)",
- array: "%s is not an %s",
- object: "%s is not an %s",
- number: "%s is not a %s",
- date: "%s is not a %s",
- "boolean": "%s is not a %s",
- integer: "%s is not an %s",
- "float": "%s is not a %s",
- regexp: "%s is not a valid %s",
- email: "%s is not a valid %s",
- url: "%s is not a valid %s",
- hex: "%s is not a valid %s"
- },
- string: {
- len: "%s must be exactly %s characters",
- min: "%s must be at least %s characters",
- max: "%s cannot be longer than %s characters",
- range: "%s must be between %s and %s characters"
- },
- number: {
- len: "%s must equal %s",
- min: "%s cannot be less than %s",
- max: "%s cannot be greater than %s",
- range: "%s must be between %s and %s"
- },
- array: {
- len: "%s must be exactly %s in length",
- min: "%s cannot be less than %s in length",
- max: "%s cannot be greater than %s in length",
- range: "%s must be between %s and %s in length"
- },
- pattern: {
- mismatch: "%s value %s does not match pattern %s"
- },
- clone: function clone2() {
- var cloned = JSON.parse(JSON.stringify(this));
- cloned.clone = this.clone;
- return cloned;
- }
- };
- }
- var messages = newMessages();
- var Schema = function() {
- function Schema2(descriptor) {
- this.rules = null;
- this._messages = messages;
- this.define(descriptor);
- }
- var _proto = Schema2.prototype;
- _proto.define = function define2(rules2) {
- var _this = this;
- if (!rules2) {
- throw new Error("Cannot configure a schema with no rules");
- }
- if (typeof rules2 !== "object" || Array.isArray(rules2)) {
- throw new Error("Rules must be an object");
- }
- this.rules = {};
- Object.keys(rules2).forEach(function(name) {
- var item = rules2[name];
- _this.rules[name] = Array.isArray(item) ? item : [item];
- });
- };
- _proto.messages = function messages2(_messages) {
- if (_messages) {
- this._messages = deepMerge(newMessages(), _messages);
- }
- return this._messages;
- };
- _proto.validate = function validate(source_, o2, oc) {
- var _this2 = this;
- if (o2 === void 0) {
- o2 = {};
- }
- if (oc === void 0) {
- oc = function oc2() {
- };
- }
- var source = source_;
- var options = o2;
- var callback = oc;
- if (typeof options === "function") {
- callback = options;
- options = {};
- }
- if (!this.rules || Object.keys(this.rules).length === 0) {
- if (callback) {
- callback(null, source);
- }
- return Promise.resolve(source);
- }
- function complete(results) {
- var errors = [];
- var fields = {};
- function add(e3) {
- if (Array.isArray(e3)) {
- var _errors;
- errors = (_errors = errors).concat.apply(_errors, e3);
- } else {
- errors.push(e3);
- }
- }
- for (var i3 = 0; i3 < results.length; i3++) {
- add(results[i3]);
- }
- if (!errors.length) {
- callback(null, source);
- } else {
- fields = convertFieldsError(errors);
- callback(errors, fields);
- }
- }
- if (options.messages) {
- var messages$1 = this.messages();
- if (messages$1 === messages) {
- messages$1 = newMessages();
- }
- deepMerge(messages$1, options.messages);
- options.messages = messages$1;
- } else {
- options.messages = this.messages();
- }
- var series = {};
- var keys2 = options.keys || Object.keys(this.rules);
- keys2.forEach(function(z2) {
- var arr = _this2.rules[z2];
- var value = source[z2];
- arr.forEach(function(r3) {
- var rule = r3;
- if (typeof rule.transform === "function") {
- if (source === source_) {
- source = _extends2({}, source);
- }
- value = source[z2] = rule.transform(value);
- }
- if (typeof rule === "function") {
- rule = {
- validator: rule
- };
- } else {
- rule = _extends2({}, rule);
- }
- rule.validator = _this2.getValidationMethod(rule);
- if (!rule.validator) {
- return;
- }
- rule.field = z2;
- rule.fullField = rule.fullField || z2;
- rule.type = _this2.getType(rule);
- series[z2] = series[z2] || [];
- series[z2].push({
- rule,
- value,
- source,
- field: z2
- });
- });
- });
- var errorFields = {};
- return asyncMap(series, options, function(data8, doIt) {
- var rule = data8.rule;
- var deep = (rule.type === "object" || rule.type === "array") && (typeof rule.fields === "object" || typeof rule.defaultField === "object");
- deep = deep && (rule.required || !rule.required && data8.value);
- rule.field = data8.field;
- function addFullField(key2, schema) {
- return _extends2({}, schema, {
- fullField: rule.fullField + "." + key2,
- fullFields: rule.fullFields ? [].concat(rule.fullFields, [key2]) : [key2]
- });
- }
- function cb(e3) {
- if (e3 === void 0) {
- e3 = [];
- }
- var errorList = Array.isArray(e3) ? e3 : [e3];
- if (!options.suppressWarning && errorList.length) {
- Schema2.warning("async-validator:", errorList);
- }
- if (errorList.length && rule.message !== void 0) {
- errorList = [].concat(rule.message);
- }
- var filledErrors = errorList.map(complementError(rule, source));
- if (options.first && filledErrors.length) {
- errorFields[rule.field] = 1;
- return doIt(filledErrors);
- }
- if (!deep) {
- doIt(filledErrors);
- } else {
- if (rule.required && !data8.value) {
- if (rule.message !== void 0) {
- filledErrors = [].concat(rule.message).map(complementError(rule, source));
- } else if (options.error) {
- filledErrors = [options.error(rule, format2(options.messages.required, rule.field))];
- }
- return doIt(filledErrors);
- }
- var fieldsSchema = {};
- if (rule.defaultField) {
- Object.keys(data8.value).map(function(key2) {
- fieldsSchema[key2] = rule.defaultField;
- });
- }
- fieldsSchema = _extends2({}, fieldsSchema, data8.rule.fields);
- var paredFieldsSchema = {};
- Object.keys(fieldsSchema).forEach(function(field) {
- var fieldSchema = fieldsSchema[field];
- var fieldSchemaList = Array.isArray(fieldSchema) ? fieldSchema : [fieldSchema];
- paredFieldsSchema[field] = fieldSchemaList.map(addFullField.bind(null, field));
- });
- var schema = new Schema2(paredFieldsSchema);
- schema.messages(options.messages);
- if (data8.rule.options) {
- data8.rule.options.messages = options.messages;
- data8.rule.options.error = options.error;
- }
- schema.validate(data8.value, data8.rule.options || options, function(errs) {
- var finalErrors = [];
- if (filledErrors && filledErrors.length) {
- finalErrors.push.apply(finalErrors, filledErrors);
- }
- if (errs && errs.length) {
- finalErrors.push.apply(finalErrors, errs);
- }
- doIt(finalErrors.length ? finalErrors : null);
- });
- }
- }
- var res;
- if (rule.asyncValidator) {
- res = rule.asyncValidator(rule, data8.value, cb, data8.source, options);
- } else if (rule.validator) {
- try {
- res = rule.validator(rule, data8.value, cb, data8.source, options);
- } catch (error) {
- console.error == null ? void 0 : console.error(error);
- if (!options.suppressValidatorError) {
- setTimeout(function() {
- throw error;
- }, 0);
- }
- cb(error.message);
- }
- if (res === true) {
- cb();
- } else if (res === false) {
- cb(typeof rule.message === "function" ? rule.message(rule.fullField || rule.field) : rule.message || (rule.fullField || rule.field) + " fails");
- } else if (res instanceof Array) {
- cb(res);
- } else if (res instanceof Error) {
- cb(res.message);
- }
- }
- if (res && res.then) {
- res.then(function() {
- return cb();
- }, function(e3) {
- return cb(e3);
- });
- }
- }, function(results) {
- complete(results);
- }, source);
- };
- _proto.getType = function getType(rule) {
- if (rule.type === void 0 && rule.pattern instanceof RegExp) {
- rule.type = "pattern";
- }
- if (typeof rule.validator !== "function" && rule.type && !validators.hasOwnProperty(rule.type)) {
- throw new Error(format2("Unknown rule type %s", rule.type));
- }
- return rule.type || "string";
- };
- _proto.getValidationMethod = function getValidationMethod(rule) {
- if (typeof rule.validator === "function") {
- return rule.validator;
- }
- var keys2 = Object.keys(rule);
- var messageIndex = keys2.indexOf("message");
- if (messageIndex !== -1) {
- keys2.splice(messageIndex, 1);
- }
- if (keys2.length === 1 && keys2[0] === "required") {
- return validators.required;
- }
- return validators[this.getType(rule)] || void 0;
- };
- return Schema2;
- }();
- Schema.register = function register2(type4, validator) {
- if (typeof validator !== "function") {
- throw new Error("Cannot register a validator by type, validator is not a function");
- }
- validators[type4] = validator;
- };
- Schema.warning = warning2;
- Schema.messages = messages;
- Schema.validators = validators;
- // node_modules/ant-design-vue/es/form/utils/typeUtil.js
- function toArray3(value) {
- if (value === void 0 || value === null) {
- return [];
- }
- return Array.isArray(value) ? value : [value];
- }
- // node_modules/ant-design-vue/es/vc-util/get.js
- function get(entity, path2) {
- var current2 = entity;
- for (var i3 = 0; i3 < path2.length; i3 += 1) {
- if (current2 === null || current2 === void 0) {
- return void 0;
- }
- current2 = current2[path2[i3]];
- }
- return current2;
- }
- // node_modules/ant-design-vue/es/vc-util/set.js
- function internalSet(entity, paths, value, removeIfUndefined) {
- if (!paths.length) {
- return value;
- }
- var _paths = _toArray(paths), path2 = _paths[0], restPath = _paths.slice(1);
- var clone2;
- if (!entity && typeof path2 === "number") {
- clone2 = [];
- } else if (Array.isArray(entity)) {
- clone2 = _toConsumableArray(entity);
- } else {
- clone2 = _objectSpread2({}, entity);
- }
- if (removeIfUndefined && value === void 0 && restPath.length === 1) {
- delete clone2[path2][restPath[0]];
- } else {
- clone2[path2] = internalSet(clone2[path2], restPath, value, removeIfUndefined);
- }
- return clone2;
- }
- function set(entity, paths, value) {
- var removeIfUndefined = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
- if (paths.length && removeIfUndefined && value === void 0 && !get(entity, paths.slice(0, -1))) {
- return entity;
- }
- return internalSet(entity, paths, value, removeIfUndefined);
- }
- // node_modules/ant-design-vue/es/form/utils/valueUtil.js
- function getNamePath(path2) {
- return toArray3(path2);
- }
- function getValue4(store, namePath) {
- var value = get(store, namePath);
- return value;
- }
- function setValue(store, namePath, value) {
- var removeIfUndefined = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
- var newStore = set(store, namePath, value, removeIfUndefined);
- return newStore;
- }
- function containsNamePath(namePathList, namePath) {
- return namePathList && namePathList.some(function(path2) {
- return matchNamePath(path2, namePath);
- });
- }
- function isObject4(obj) {
- return _typeof(obj) === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
- }
- function internalSetValues(store, values) {
- var newStore = Array.isArray(store) ? _toConsumableArray(store) : _objectSpread2({}, store);
- if (!values) {
- return newStore;
- }
- Object.keys(values).forEach(function(key2) {
- var prevValue = newStore[key2];
- var value = values[key2];
- var recursive = isObject4(prevValue) && isObject4(value);
- newStore[key2] = recursive ? internalSetValues(prevValue, value || {}) : value;
- });
- return newStore;
- }
- function setValues(store) {
- for (var _len = arguments.length, restValues = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- restValues[_key - 1] = arguments[_key];
- }
- return restValues.reduce(function(current2, newStore) {
- return internalSetValues(current2, newStore);
- }, store);
- }
- function cloneByNamePathList(store, namePathList) {
- var newStore = {};
- namePathList.forEach(function(namePath) {
- var value = getValue4(store, namePath);
- newStore = setValue(newStore, namePath, value);
- });
- return newStore;
- }
- function matchNamePath(namePath, changedNamePath) {
- if (!namePath || !changedNamePath || namePath.length !== changedNamePath.length) {
- return false;
- }
- return namePath.every(function(nameUnit, i3) {
- return changedNamePath[i3] === nameUnit;
- });
- }
- // node_modules/ant-design-vue/es/form/utils/messages.js
- var typeTemplate2 = "'${name}' is not a valid ${type}";
- var defaultValidateMessages = {
- default: "Validation error on field '${name}'",
- required: "'${name}' is required",
- enum: "'${name}' must be one of [${enum}]",
- whitespace: "'${name}' cannot be empty",
- date: {
- format: "'${name}' is invalid for format date",
- parse: "'${name}' could not be parsed as date",
- invalid: "'${name}' is invalid date"
- },
- types: {
- string: typeTemplate2,
- method: typeTemplate2,
- array: typeTemplate2,
- object: typeTemplate2,
- number: typeTemplate2,
- date: typeTemplate2,
- boolean: typeTemplate2,
- integer: typeTemplate2,
- float: typeTemplate2,
- regexp: typeTemplate2,
- email: typeTemplate2,
- url: typeTemplate2,
- hex: typeTemplate2
- },
- string: {
- len: "'${name}' must be exactly ${len} characters",
- min: "'${name}' must be at least ${min} characters",
- max: "'${name}' cannot be longer than ${max} characters",
- range: "'${name}' must be between ${min} and ${max} characters"
- },
- number: {
- len: "'${name}' must equal ${len}",
- min: "'${name}' cannot be less than ${min}",
- max: "'${name}' cannot be greater than ${max}",
- range: "'${name}' must be between ${min} and ${max}"
- },
- array: {
- len: "'${name}' must be exactly ${len} in length",
- min: "'${name}' cannot be less than ${min} in length",
- max: "'${name}' cannot be greater than ${max} in length",
- range: "'${name}' must be between ${min} and ${max} in length"
- },
- pattern: {
- mismatch: "'${name}' does not match pattern ${pattern}"
- }
- };
- // node_modules/ant-design-vue/es/form/utils/validateUtil.js
- var AsyncValidator = Schema;
- function replaceMessage(template, kv) {
- return template.replace(/\$\{\w+\}/g, function(str) {
- var key2 = str.slice(2, -1);
- return kv[key2];
- });
- }
- function validateRule(_x, _x2, _x3, _x4, _x5) {
- return _validateRule.apply(this, arguments);
- }
- function _validateRule() {
- _validateRule = _asyncToGenerator(import_regenerator3.default.mark(function _callee2(name, value, rule, options, messageVariables) {
- var cloneRule, subRuleField, validator, messages2, result, subResults, kv, fillVariableResult;
- return import_regenerator3.default.wrap(function _callee2$(_context2) {
- while (1)
- switch (_context2.prev = _context2.next) {
- case 0:
- cloneRule = _objectSpread2({}, rule);
- delete cloneRule.ruleIndex;
- delete cloneRule.trigger;
- subRuleField = null;
- if (cloneRule && cloneRule.type === "array" && cloneRule.defaultField) {
- subRuleField = cloneRule.defaultField;
- delete cloneRule.defaultField;
- }
- validator = new AsyncValidator(_defineProperty({}, name, [cloneRule]));
- messages2 = setValues({}, defaultValidateMessages, options.validateMessages);
- validator.messages(messages2);
- result = [];
- _context2.prev = 9;
- _context2.next = 12;
- return Promise.resolve(validator.validate(_defineProperty({}, name, value), _objectSpread2({}, options)));
- case 12:
- _context2.next = 17;
- break;
- case 14:
- _context2.prev = 14;
- _context2.t0 = _context2["catch"](9);
- if (_context2.t0.errors) {
- result = _context2.t0.errors.map(function(_ref4, index3) {
- var message = _ref4.message;
- return (
- // Wrap VueNode with `key`
- isValidElement(message) ? cloneVNode(message, {
- key: "error_".concat(index3)
- }) : message
- );
- });
- } else {
- console.error(_context2.t0);
- result = [messages2.default()];
- }
- case 17:
- if (!(!result.length && subRuleField)) {
- _context2.next = 22;
- break;
- }
- _context2.next = 20;
- return Promise.all(value.map(function(subValue, i3) {
- return validateRule("".concat(name, ".").concat(i3), subValue, subRuleField, options, messageVariables);
- }));
- case 20:
- subResults = _context2.sent;
- return _context2.abrupt("return", subResults.reduce(function(prev2, errors) {
- return [].concat(_toConsumableArray(prev2), _toConsumableArray(errors));
- }, []));
- case 22:
- kv = _objectSpread2(_objectSpread2({}, rule), {}, {
- name,
- enum: (rule.enum || []).join(", ")
- }, messageVariables);
- fillVariableResult = result.map(function(error) {
- if (typeof error === "string") {
- return replaceMessage(error, kv);
- }
- return error;
- });
- return _context2.abrupt("return", fillVariableResult);
- case 25:
- case "end":
- return _context2.stop();
- }
- }, _callee2, null, [[9, 14]]);
- }));
- return _validateRule.apply(this, arguments);
- }
- function validateRules(namePath, value, rules2, options, validateFirst, messageVariables) {
- var name = namePath.join(".");
- var filledRules = rules2.map(function(currentRule, ruleIndex) {
- var originValidatorFunc = currentRule.validator;
- var cloneRule = _objectSpread2(_objectSpread2({}, currentRule), {}, {
- ruleIndex
- });
- if (originValidatorFunc) {
- cloneRule.validator = function(rule, val, callback) {
- var hasPromise = false;
- var wrappedCallback = function wrappedCallback2() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- Promise.resolve().then(function() {
- warning(!hasPromise, "Your validator function has already return a promise. `callback` will be ignored.");
- if (!hasPromise) {
- callback.apply(void 0, args);
- }
- });
- };
- var promise = originValidatorFunc(rule, val, wrappedCallback);
- hasPromise = promise && typeof promise.then === "function" && typeof promise.catch === "function";
- warning(hasPromise, "`callback` is deprecated. Please return a promise instead.");
- if (hasPromise) {
- promise.then(function() {
- callback();
- }).catch(function(err) {
- callback(err || " ");
- });
- }
- };
- }
- return cloneRule;
- }).sort(function(_ref, _ref2) {
- var w1 = _ref.warningOnly, i1 = _ref.ruleIndex;
- var w2 = _ref2.warningOnly, i22 = _ref2.ruleIndex;
- if (!!w1 === !!w2) {
- return i1 - i22;
- }
- if (w1) {
- return 1;
- }
- return -1;
- });
- var summaryPromise;
- if (validateFirst === true) {
- summaryPromise = new Promise(function() {
- var _ref3 = _asyncToGenerator(import_regenerator3.default.mark(function _callee(resolve, reject) {
- var i3, rule, errors;
- return import_regenerator3.default.wrap(function _callee$(_context) {
- while (1)
- switch (_context.prev = _context.next) {
- case 0:
- i3 = 0;
- case 1:
- if (!(i3 < filledRules.length)) {
- _context.next = 12;
- break;
- }
- rule = filledRules[i3];
- _context.next = 5;
- return validateRule(name, value, rule, options, messageVariables);
- case 5:
- errors = _context.sent;
- if (!errors.length) {
- _context.next = 9;
- break;
- }
- reject([{
- errors,
- rule
- }]);
- return _context.abrupt("return");
- case 9:
- i3 += 1;
- _context.next = 1;
- break;
- case 12:
- resolve([]);
- case 13:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return function(_x6, _x7) {
- return _ref3.apply(this, arguments);
- };
- }());
- } else {
- var rulePromises = filledRules.map(function(rule) {
- return validateRule(name, value, rule, options, messageVariables).then(function(errors) {
- return {
- errors,
- rule
- };
- });
- });
- summaryPromise = (validateFirst ? finishOnFirstFailed(rulePromises) : finishOnAllFailed(rulePromises)).then(function(errors) {
- return Promise.reject(errors);
- });
- }
- summaryPromise.catch(function(e3) {
- return e3;
- });
- return summaryPromise;
- }
- function finishOnAllFailed(_x8) {
- return _finishOnAllFailed.apply(this, arguments);
- }
- function _finishOnAllFailed() {
- _finishOnAllFailed = _asyncToGenerator(import_regenerator3.default.mark(function _callee3(rulePromises) {
- return import_regenerator3.default.wrap(function _callee3$(_context3) {
- while (1)
- switch (_context3.prev = _context3.next) {
- case 0:
- return _context3.abrupt("return", Promise.all(rulePromises).then(function(errorsList) {
- var _ref5;
- var errors = (_ref5 = []).concat.apply(_ref5, _toConsumableArray(errorsList));
- return errors;
- }));
- case 1:
- case "end":
- return _context3.stop();
- }
- }, _callee3);
- }));
- return _finishOnAllFailed.apply(this, arguments);
- }
- function finishOnFirstFailed(_x9) {
- return _finishOnFirstFailed.apply(this, arguments);
- }
- function _finishOnFirstFailed() {
- _finishOnFirstFailed = _asyncToGenerator(import_regenerator3.default.mark(function _callee4(rulePromises) {
- var count;
- return import_regenerator3.default.wrap(function _callee4$(_context4) {
- while (1)
- switch (_context4.prev = _context4.next) {
- case 0:
- count = 0;
- return _context4.abrupt("return", new Promise(function(resolve) {
- rulePromises.forEach(function(promise) {
- promise.then(function(ruleError) {
- if (ruleError.errors.length) {
- resolve([ruleError]);
- }
- count += 1;
- if (count === rulePromises.length) {
- resolve([]);
- }
- });
- });
- }));
- case 2:
- case "end":
- return _context4.stop();
- }
- }, _callee4);
- }));
- return _finishOnFirstFailed.apply(this, arguments);
- }
- // node_modules/lodash-es/_baseIsMatch.js
- var COMPARE_PARTIAL_FLAG5 = 1;
- var COMPARE_UNORDERED_FLAG3 = 2;
- function baseIsMatch(object4, source, matchData, customizer) {
- var index3 = matchData.length, length = index3, noCustomizer = !customizer;
- if (object4 == null) {
- return !length;
- }
- object4 = Object(object4);
- while (index3--) {
- var data8 = matchData[index3];
- if (noCustomizer && data8[2] ? data8[1] !== object4[data8[0]] : !(data8[0] in object4)) {
- return false;
- }
- }
- while (++index3 < length) {
- data8 = matchData[index3];
- var key2 = data8[0], objValue = object4[key2], srcValue = data8[1];
- if (noCustomizer && data8[2]) {
- if (objValue === void 0 && !(key2 in object4)) {
- return false;
- }
- } else {
- var stack = new Stack_default();
- if (customizer) {
- var result = customizer(objValue, srcValue, key2, object4, source, stack);
- }
- if (!(result === void 0 ? baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result)) {
- return false;
- }
- }
- }
- return true;
- }
- var baseIsMatch_default = baseIsMatch;
- // node_modules/lodash-es/_isStrictComparable.js
- function isStrictComparable(value) {
- return value === value && !isObject_default(value);
- }
- var isStrictComparable_default = isStrictComparable;
- // node_modules/lodash-es/_getMatchData.js
- function getMatchData(object4) {
- var result = keys_default(object4), length = result.length;
- while (length--) {
- var key2 = result[length], value = object4[key2];
- result[length] = [key2, value, isStrictComparable_default(value)];
- }
- return result;
- }
- var getMatchData_default = getMatchData;
- // node_modules/lodash-es/_matchesStrictComparable.js
- function matchesStrictComparable(key2, srcValue) {
- return function(object4) {
- if (object4 == null) {
- return false;
- }
- return object4[key2] === srcValue && (srcValue !== void 0 || key2 in Object(object4));
- };
- }
- var matchesStrictComparable_default = matchesStrictComparable;
- // node_modules/lodash-es/_baseMatches.js
- function baseMatches(source) {
- var matchData = getMatchData_default(source);
- if (matchData.length == 1 && matchData[0][2]) {
- return matchesStrictComparable_default(matchData[0][0], matchData[0][1]);
- }
- return function(object4) {
- return object4 === source || baseIsMatch_default(object4, source, matchData);
- };
- }
- var baseMatches_default = baseMatches;
- // node_modules/lodash-es/get.js
- function get2(object4, path2, defaultValue) {
- var result = object4 == null ? void 0 : baseGet_default(object4, path2);
- return result === void 0 ? defaultValue : result;
- }
- var get_default = get2;
- // node_modules/lodash-es/_baseMatchesProperty.js
- var COMPARE_PARTIAL_FLAG6 = 1;
- var COMPARE_UNORDERED_FLAG4 = 2;
- function baseMatchesProperty(path2, srcValue) {
- if (isKey_default(path2) && isStrictComparable_default(srcValue)) {
- return matchesStrictComparable_default(toKey_default(path2), srcValue);
- }
- return function(object4) {
- var objValue = get_default(object4, path2);
- return objValue === void 0 && objValue === srcValue ? hasIn_default(object4, path2) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
- };
- }
- var baseMatchesProperty_default = baseMatchesProperty;
- // node_modules/lodash-es/_basePropertyDeep.js
- function basePropertyDeep(path2) {
- return function(object4) {
- return baseGet_default(object4, path2);
- };
- }
- var basePropertyDeep_default = basePropertyDeep;
- // node_modules/lodash-es/property.js
- function property(path2) {
- return isKey_default(path2) ? baseProperty_default(toKey_default(path2)) : basePropertyDeep_default(path2);
- }
- var property_default = property;
- // node_modules/lodash-es/_baseIteratee.js
- function baseIteratee(value) {
- if (typeof value == "function") {
- return value;
- }
- if (value == null) {
- return identity_default;
- }
- if (typeof value == "object") {
- return isArray_default(value) ? baseMatchesProperty_default(value[0], value[1]) : baseMatches_default(value);
- }
- return property_default(value);
- }
- var baseIteratee_default = baseIteratee;
- // node_modules/lodash-es/_createFind.js
- function createFind(findIndexFunc) {
- return function(collection, predicate, fromIndex) {
- var iterable = Object(collection);
- if (!isArrayLike_default(collection)) {
- var iteratee = baseIteratee_default(predicate, 3);
- collection = keys_default(collection);
- predicate = function(key2) {
- return iteratee(iterable[key2], key2, iterable);
- };
- }
- var index3 = findIndexFunc(collection, predicate, fromIndex);
- return index3 > -1 ? iterable[iteratee ? collection[index3] : index3] : void 0;
- };
- }
- var createFind_default = createFind;
- // node_modules/lodash-es/findIndex.js
- var nativeMax3 = Math.max;
- function findIndex(array4, predicate, fromIndex) {
- var length = array4 == null ? 0 : array4.length;
- if (!length) {
- return -1;
- }
- var index3 = fromIndex == null ? 0 : toInteger_default(fromIndex);
- if (index3 < 0) {
- index3 = nativeMax3(length + index3, 0);
- }
- return baseFindIndex_default(array4, baseIteratee_default(predicate, 3), index3);
- }
- var findIndex_default = findIndex;
- // node_modules/lodash-es/find.js
- var find = createFind_default(findIndex_default);
- var find_default = find;
- // node_modules/ant-design-vue/es/form/context.js
- var FormContextKey = Symbol("formContextKey");
- var useProvideForm = function useProvideForm2(state) {
- provide(FormContextKey, state);
- };
- var useInjectForm = function useInjectForm2() {
- return inject(FormContextKey, {
- name: computed(function() {
- return void 0;
- }),
- labelAlign: computed(function() {
- return "right";
- }),
- vertical: computed(function() {
- return false;
- }),
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- addField: function addField(_eventKey, _field) {
- },
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- removeField: function removeField(_eventKey) {
- },
- model: computed(function() {
- return void 0;
- }),
- rules: computed(function() {
- return void 0;
- }),
- colon: computed(function() {
- return void 0;
- }),
- labelWrap: computed(function() {
- return void 0;
- }),
- labelCol: computed(function() {
- return void 0;
- }),
- requiredMark: computed(function() {
- return false;
- }),
- validateTrigger: computed(function() {
- return void 0;
- }),
- onValidate: function onValidate() {
- },
- validateMessages: computed(function() {
- return defaultValidateMessages;
- })
- });
- };
- var FormItemPrefixContextKey = Symbol("formItemPrefixContextKey");
- var useProvideFormItemPrefix = function useProvideFormItemPrefix2(state) {
- provide(FormItemPrefixContextKey, state);
- };
- var useInjectFormItemPrefix = function useInjectFormItemPrefix2() {
- return inject(FormItemPrefixContextKey, {
- prefixCls: computed(function() {
- return "";
- })
- });
- };
- // node_modules/ant-design-vue/es/form/FormItemLabel.js
- var FormItemLabel = function FormItemLabel2(props5, _ref) {
- var _props$label, _slots$label, _slots$tooltip, _classNames2;
- var slots = _ref.slots, emit = _ref.emit, attrs = _ref.attrs;
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), prefixCls = _props$attrs.prefixCls, htmlFor = _props$attrs.htmlFor, labelCol = _props$attrs.labelCol, labelAlign = _props$attrs.labelAlign, colon = _props$attrs.colon, required4 = _props$attrs.required, requiredMark = _props$attrs.requiredMark;
- var _useLocaleReceiver = useLocaleReceiver("Form"), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), formLocale = _useLocaleReceiver2[0];
- var label = (_props$label = props5.label) !== null && _props$label !== void 0 ? _props$label : (_slots$label = slots.label) === null || _slots$label === void 0 ? void 0 : _slots$label.call(slots);
- if (!label)
- return null;
- var _useInjectForm = useInjectForm(), vertical = _useInjectForm.vertical, contextLabelAlign = _useInjectForm.labelAlign, contextLabelCol = _useInjectForm.labelCol, labelWrap = _useInjectForm.labelWrap, contextColon = _useInjectForm.colon;
- var mergedLabelCol = labelCol || (contextLabelCol === null || contextLabelCol === void 0 ? void 0 : contextLabelCol.value) || {};
- var mergedLabelAlign = labelAlign || (contextLabelAlign === null || contextLabelAlign === void 0 ? void 0 : contextLabelAlign.value);
- var labelClsBasic = "".concat(prefixCls, "-item-label");
- var labelColClassName = classNames_default(labelClsBasic, mergedLabelAlign === "left" && "".concat(labelClsBasic, "-left"), mergedLabelCol.class, _defineProperty({}, "".concat(labelClsBasic, "-wrap"), !!labelWrap.value));
- var labelChildren = label;
- var computedColon = colon === true || (contextColon === null || contextColon === void 0 ? void 0 : contextColon.value) !== false && colon !== false;
- var haveColon = computedColon && !vertical.value;
- if (haveColon && typeof label === "string" && label.trim() !== "") {
- labelChildren = label.replace(/[:|:]\s*$/, "");
- }
- labelChildren = createVNode(Fragment, null, [labelChildren, (_slots$tooltip = slots.tooltip) === null || _slots$tooltip === void 0 ? void 0 : _slots$tooltip.call(slots, {
- class: "".concat(prefixCls, "-item-tooltip")
- })]);
- if (requiredMark === "optional" && !required4) {
- var _formLocale$value, _defaultLocale$Form;
- labelChildren = createVNode(Fragment, null, [labelChildren, createVNode("span", {
- "class": "".concat(prefixCls, "-item-optional")
- }, [((_formLocale$value = formLocale.value) === null || _formLocale$value === void 0 ? void 0 : _formLocale$value.optional) || ((_defaultLocale$Form = default_default.Form) === null || _defaultLocale$Form === void 0 ? void 0 : _defaultLocale$Form.optional)])]);
- }
- var labelClassName = classNames_default((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-item-required"), required4), _defineProperty(_classNames2, "".concat(prefixCls, "-item-required-mark-optional"), requiredMark === "optional"), _defineProperty(_classNames2, "".concat(prefixCls, "-item-no-colon"), !computedColon), _classNames2));
- return createVNode(Col_default, _objectSpread2(_objectSpread2({}, mergedLabelCol), {}, {
- "class": labelColClassName
- }), {
- default: function _default9() {
- return [createVNode("label", {
- "for": htmlFor,
- "class": labelClassName,
- "title": typeof label === "string" ? label : "",
- "onClick": function onClick2(e3) {
- return emit("click", e3);
- }
- }, [labelChildren])];
- }
- });
- };
- FormItemLabel.displayName = "FormItemLabel";
- FormItemLabel.inheritAttrs = false;
- var FormItemLabel_default = FormItemLabel;
- // node_modules/ant-design-vue/es/form/ErrorList.js
- var ErrorList_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ErrorList",
- props: ["errors", "help", "onDomErrorVisibleChange", "helpStatus", "warnings"],
- setup: function setup94(props5) {
- var _useConfigInject = useConfigInject_default("", props5), rootPrefixCls = _useConfigInject.prefixCls;
- var _useInjectFormItemPre = useInjectFormItemPrefix(), prefixCls = _useInjectFormItemPre.prefixCls, status = _useInjectFormItemPre.status;
- var baseClassName = computed(function() {
- return "".concat(prefixCls.value, "-item-explain");
- });
- var visible = computed(function() {
- return !!(props5.errors && props5.errors.length);
- });
- var innerStatus = ref(status.value);
- watch([visible, status], function() {
- if (visible.value) {
- innerStatus.value = status.value;
- }
- });
- return function() {
- var _props$errors, _props$errors2;
- var colMItem = collapseMotion_default("".concat(rootPrefixCls.value, "-show-help-item"));
- var transitionGroupProps = getTransitionGroupProps("".concat(rootPrefixCls.value, "-show-help-item"), colMItem);
- transitionGroupProps.class = baseClassName.value;
- return (_props$errors = props5.errors) !== null && _props$errors !== void 0 && _props$errors.length ? createVNode(TransitionGroup, _objectSpread2(_objectSpread2({}, transitionGroupProps), {}, {
- "tag": "div"
- }), {
- default: function _default9() {
- return [(_props$errors2 = props5.errors) === null || _props$errors2 === void 0 ? void 0 : _props$errors2.map(function(error, index3) {
- return createVNode("div", {
- "key": index3,
- "role": "alert",
- "class": innerStatus.value ? "".concat(baseClassName.value, "-").concat(innerStatus.value) : ""
- }, [error]);
- })];
- }
- }) : null;
- };
- }
- });
- // node_modules/ant-design-vue/es/form/FormItemInput.js
- var iconMap = {
- success: CheckCircleFilled_default,
- warning: ExclamationCircleFilled_default,
- error: CloseCircleFilled_default,
- validating: LoadingOutlined_default
- };
- var FormItemInput = defineComponent({
- compatConfig: {
- MODE: 3
- },
- slots: ["help", "extra", "errors"],
- inheritAttrs: false,
- props: ["prefixCls", "errors", "hasFeedback", "onDomErrorVisibleChange", "wrapperCol", "help", "extra", "status"],
- setup: function setup95(props5, _ref) {
- var slots = _ref.slots;
- var formContext = useInjectForm();
- var contextWrapperCol = formContext.wrapperCol;
- var subFormContext = _objectSpread2({}, formContext);
- delete subFormContext.labelCol;
- delete subFormContext.wrapperCol;
- useProvideForm(subFormContext);
- useProvideFormItemPrefix({
- prefixCls: computed(function() {
- return props5.prefixCls;
- }),
- status: computed(function() {
- return props5.status;
- })
- });
- return function() {
- var _slots$help, _slots$errors, _slots$extra;
- var prefixCls = props5.prefixCls, wrapperCol = props5.wrapperCol, _props$help = props5.help, help = _props$help === void 0 ? (_slots$help = slots.help) === null || _slots$help === void 0 ? void 0 : _slots$help.call(slots) : _props$help, _props$errors = props5.errors, errors = _props$errors === void 0 ? (_slots$errors = slots.errors) === null || _slots$errors === void 0 ? void 0 : _slots$errors.call(slots) : _props$errors, hasFeedback = props5.hasFeedback, status = props5.status, _props$extra = props5.extra, extra = _props$extra === void 0 ? (_slots$extra = slots.extra) === null || _slots$extra === void 0 ? void 0 : _slots$extra.call(slots) : _props$extra;
- var baseClassName = "".concat(prefixCls, "-item");
- var mergedWrapperCol = wrapperCol || (contextWrapperCol === null || contextWrapperCol === void 0 ? void 0 : contextWrapperCol.value) || {};
- var className = classNames_default("".concat(baseClassName, "-control"), mergedWrapperCol.class);
- var IconNode = status && iconMap[status];
- return createVNode(Col_default, _objectSpread2(_objectSpread2({}, mergedWrapperCol), {}, {
- "class": className
- }), {
- default: function _default9() {
- var _slots$default;
- return createVNode(Fragment, null, [createVNode("div", {
- "class": "".concat(baseClassName, "-control-input")
- }, [createVNode("div", {
- "class": "".concat(baseClassName, "-control-input-content")
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), hasFeedback && IconNode ? createVNode("span", {
- "class": "".concat(baseClassName, "-children-icon")
- }, [createVNode(IconNode, null, null)]) : null]), createVNode(ErrorList_default, {
- "errors": errors,
- "help": help,
- "class": "".concat(baseClassName, "-explain-connected")
- }, null), extra ? createVNode("div", {
- "class": "".concat(baseClassName, "-extra")
- }, [extra]) : null]);
- }
- });
- };
- }
- });
- var FormItemInput_default = FormItemInput;
- // node_modules/ant-design-vue/es/form/utils/useDebounce.js
- function useDebounce(value) {
- var cacheValue = shallowRef(value.value.slice());
- var timeout = null;
- watchEffect(function() {
- clearTimeout(timeout);
- timeout = setTimeout(function() {
- cacheValue.value = value.value;
- }, value.value.length ? 0 : 10);
- });
- return cacheValue;
- }
- // node_modules/ant-design-vue/es/form/FormItem.js
- var ValidateStatuses = tuple("success", "warning", "error", "validating", "");
- function getPropByPath(obj, namePathList, strict) {
- var tempObj = obj;
- var keyArr = namePathList;
- var i3 = 0;
- try {
- for (var len = keyArr.length; i3 < len - 1; ++i3) {
- if (!tempObj && !strict)
- break;
- var key2 = keyArr[i3];
- if (key2 in tempObj) {
- tempObj = tempObj[key2];
- } else {
- if (strict) {
- throw Error("please transfer a valid name path to form item!");
- }
- break;
- }
- }
- if (strict && !tempObj) {
- throw Error("please transfer a valid name path to form item!");
- }
- } catch (error) {
- console.error("please transfer a valid name path to form item!");
- }
- return {
- o: tempObj,
- k: keyArr[i3],
- v: tempObj ? tempObj[keyArr[i3]] : void 0
- };
- }
- var formItemProps = function formItemProps2() {
- return {
- htmlFor: String,
- prefixCls: String,
- label: vue_types_default.any,
- help: vue_types_default.any,
- extra: vue_types_default.any,
- labelCol: {
- type: Object
- },
- wrapperCol: {
- type: Object
- },
- hasFeedback: {
- type: Boolean,
- default: false
- },
- colon: {
- type: Boolean,
- default: void 0
- },
- labelAlign: String,
- prop: {
- type: [String, Number, Array]
- },
- name: {
- type: [String, Number, Array]
- },
- rules: [Array, Object],
- autoLink: {
- type: Boolean,
- default: true
- },
- required: {
- type: Boolean,
- default: void 0
- },
- validateFirst: {
- type: Boolean,
- default: void 0
- },
- validateStatus: vue_types_default.oneOf(tuple("", "success", "warning", "error", "validating")),
- validateTrigger: {
- type: [String, Array]
- },
- messageVariables: {
- type: Object
- },
- hidden: Boolean,
- noStyle: Boolean
- };
- };
- var indexGuid3 = 0;
- var defaultItemNamePrefixCls = "form_item";
- var FormItem_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AFormItem",
- inheritAttrs: false,
- __ANT_NEW_FORM_ITEM: true,
- props: formItemProps(),
- slots: ["help", "label", "extra"],
- setup: function setup96(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose;
- warning(props5.prop === void 0, "`prop` is deprecated. Please use `name` instead.");
- var eventKey = "form-item-".concat(++indexGuid3);
- var _useConfigInject = useConfigInject_default("form", props5), prefixCls = _useConfigInject.prefixCls;
- var formContext = useInjectForm();
- var fieldName = computed(function() {
- return props5.name || props5.prop;
- });
- var errors = ref([]);
- var validateDisabled = ref(false);
- var inputRef = ref();
- var namePath = computed(function() {
- var val = fieldName.value;
- return getNamePath(val);
- });
- var fieldId = computed(function() {
- if (!namePath.value.length) {
- return void 0;
- } else {
- var formName = formContext.name.value;
- var mergedId = namePath.value.join("_");
- return formName ? "".concat(formName, "_").concat(mergedId) : "".concat(defaultItemNamePrefixCls, "_").concat(mergedId);
- }
- });
- var getNewFieldValue = function getNewFieldValue2() {
- var model = formContext.model.value;
- if (!model || !fieldName.value) {
- return;
- } else {
- return getPropByPath(model, namePath.value, true).v;
- }
- };
- var fieldValue = computed(function() {
- return getNewFieldValue();
- });
- var initialValue = ref(cloneDeep_default(fieldValue.value));
- var mergedValidateTrigger = computed(function() {
- var validateTrigger = props5.validateTrigger !== void 0 ? props5.validateTrigger : formContext.validateTrigger.value;
- validateTrigger = validateTrigger === void 0 ? "change" : validateTrigger;
- return toArray3(validateTrigger);
- });
- var rulesRef = computed(function() {
- var formRules = formContext.rules.value;
- var selfRules = props5.rules;
- var requiredRule = props5.required !== void 0 ? {
- required: !!props5.required,
- trigger: mergedValidateTrigger.value
- } : [];
- var prop = getPropByPath(formRules, namePath.value);
- formRules = formRules ? prop.o[prop.k] || prop.v : [];
- var rules2 = [].concat(selfRules || formRules || []);
- if (find_default(rules2, function(rule) {
- return rule.required;
- })) {
- return rules2;
- } else {
- return rules2.concat(requiredRule);
- }
- });
- var isRequired2 = computed(function() {
- var rules2 = rulesRef.value;
- var isRequired3 = false;
- if (rules2 && rules2.length) {
- rules2.every(function(rule) {
- if (rule.required) {
- isRequired3 = true;
- return false;
- }
- return true;
- });
- }
- return isRequired3 || props5.required;
- });
- var validateState = ref();
- watchEffect(function() {
- validateState.value = props5.validateStatus;
- });
- var messageVariables = computed(function() {
- var variables = {};
- if (typeof props5.label === "string") {
- variables.label = props5.label;
- } else if (props5.name) {
- variables.label = String(props5.name);
- }
- if (props5.messageVariables) {
- variables = _objectSpread2(_objectSpread2({}, variables), props5.messageVariables);
- }
- return variables;
- });
- var validateRules2 = function validateRules3(options) {
- if (namePath.value.length === 0) {
- return;
- }
- var _props$validateFirst = props5.validateFirst, validateFirst = _props$validateFirst === void 0 ? false : _props$validateFirst;
- var _ref2 = options || {}, triggerName = _ref2.triggerName;
- var filteredRules = rulesRef.value;
- if (triggerName) {
- filteredRules = filteredRules.filter(function(rule) {
- var trigger2 = rule.trigger;
- if (!trigger2 && !mergedValidateTrigger.value.length) {
- return true;
- }
- var triggerList = toArray3(trigger2 || mergedValidateTrigger.value);
- return triggerList.includes(triggerName);
- });
- }
- if (!filteredRules.length) {
- return Promise.resolve();
- }
- var promise = validateRules(namePath.value, fieldValue.value, filteredRules, _objectSpread2({
- validateMessages: formContext.validateMessages.value
- }, options), validateFirst, messageVariables.value);
- validateState.value = "validating";
- errors.value = [];
- promise.catch(function(e3) {
- return e3;
- }).then(function() {
- var results = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- if (validateState.value === "validating") {
- var res = results.filter(function(result) {
- return result && result.errors.length;
- });
- validateState.value = res.length ? "error" : "success";
- errors.value = res.map(function(r3) {
- return r3.errors;
- });
- formContext.onValidate(fieldName.value, !errors.value.length, errors.value.length ? toRaw(errors.value[0]) : null);
- }
- });
- return promise;
- };
- var _onFieldBlur = function onFieldBlur2() {
- validateRules2({
- triggerName: "blur"
- });
- };
- var _onFieldChange = function onFieldChange2() {
- if (validateDisabled.value) {
- validateDisabled.value = false;
- return;
- }
- validateRules2({
- triggerName: "change"
- });
- };
- var clearValidate2 = function clearValidate3() {
- validateState.value = props5.validateStatus;
- validateDisabled.value = false;
- errors.value = [];
- };
- var resetField = function resetField2() {
- validateState.value = props5.validateStatus;
- validateDisabled.value = true;
- errors.value = [];
- var model = formContext.model.value || {};
- var value = fieldValue.value;
- var prop = getPropByPath(model, namePath.value, true);
- if (Array.isArray(value)) {
- prop.o[prop.k] = [].concat(initialValue.value);
- } else {
- prop.o[prop.k] = initialValue.value;
- }
- nextTick(function() {
- validateDisabled.value = false;
- });
- };
- var htmlFor = computed(function() {
- return props5.htmlFor === void 0 ? fieldId.value : props5.htmlFor;
- });
- var onLabelClick = function onLabelClick2() {
- var id = htmlFor.value;
- if (!id || !inputRef.value) {
- return;
- }
- var control = inputRef.value.$el.querySelector('[id="'.concat(id, '"]'));
- if (control && control.focus) {
- control.focus();
- }
- };
- expose({
- onFieldBlur: _onFieldBlur,
- onFieldChange: _onFieldChange,
- clearValidate: clearValidate2,
- resetField
- });
- useProvideFormItemContext({
- id: fieldId,
- onFieldBlur: function onFieldBlur2() {
- if (props5.autoLink) {
- _onFieldBlur();
- }
- },
- onFieldChange: function onFieldChange2() {
- if (props5.autoLink) {
- _onFieldChange();
- }
- },
- clearValidate: clearValidate2
- }, computed(function() {
- return !!(props5.autoLink && formContext.model.value && fieldName.value);
- }));
- var registered = false;
- watch(fieldName, function(val) {
- if (val) {
- if (!registered) {
- registered = true;
- formContext.addField(eventKey, {
- fieldValue,
- fieldId,
- fieldName,
- resetField,
- clearValidate: clearValidate2,
- namePath,
- validateRules: validateRules2,
- rules: rulesRef
- });
- }
- } else {
- registered = false;
- formContext.removeField(eventKey);
- }
- }, {
- immediate: true
- });
- onBeforeUnmount(function() {
- formContext.removeField(eventKey);
- });
- var debounceErrors = useDebounce(errors);
- var mergedValidateStatus = computed(function() {
- if (props5.validateStatus !== void 0) {
- return props5.validateStatus;
- } else if (debounceErrors.value.length) {
- return "error";
- }
- return validateState.value;
- });
- var itemClassName = computed(function() {
- var _ref3;
- return _ref3 = {}, _defineProperty(_ref3, "".concat(prefixCls.value, "-item"), true), _defineProperty(_ref3, "".concat(prefixCls.value, "-item-has-feedback"), mergedValidateStatus.value && props5.hasFeedback), _defineProperty(_ref3, "".concat(prefixCls.value, "-item-has-success"), mergedValidateStatus.value === "success"), _defineProperty(_ref3, "".concat(prefixCls.value, "-item-has-warning"), mergedValidateStatus.value === "warning"), _defineProperty(_ref3, "".concat(prefixCls.value, "-item-has-error"), mergedValidateStatus.value === "error"), _defineProperty(_ref3, "".concat(prefixCls.value, "-item-is-validating"), mergedValidateStatus.value === "validating"), _defineProperty(_ref3, "".concat(prefixCls.value, "-item-hidden"), props5.hidden), _ref3;
- });
- return function() {
- var _slots$default, _props$help;
- if (props5.noStyle)
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- var help = (_props$help = props5.help) !== null && _props$help !== void 0 ? _props$help : slots.help ? filterEmpty(slots.help()) : null;
- return createVNode(Row_default, _objectSpread2(_objectSpread2({}, attrs), {}, {
- "class": [itemClassName.value, help !== void 0 && help !== null || debounceErrors.value.length ? "".concat(prefixCls.value, "-item-with-help") : "", attrs.class],
- "key": "row"
- }), {
- default: function _default9() {
- var _props$label, _slots$label, _props$extra, _slots$extra;
- return createVNode(Fragment, null, [createVNode(FormItemLabel_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "htmlFor": htmlFor.value,
- "required": isRequired2.value,
- "requiredMark": formContext.requiredMark.value,
- "prefixCls": prefixCls.value,
- "onClick": onLabelClick,
- "label": (_props$label = props5.label) !== null && _props$label !== void 0 ? _props$label : (_slots$label = slots.label) === null || _slots$label === void 0 ? void 0 : _slots$label.call(slots)
- }), null), createVNode(FormItemInput_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "errors": help !== void 0 && help !== null ? toArray3(help) : debounceErrors.value,
- "prefixCls": prefixCls.value,
- "status": mergedValidateStatus.value,
- "ref": inputRef,
- "help": help,
- "extra": (_props$extra = props5.extra) !== null && _props$extra !== void 0 ? _props$extra : (_slots$extra = slots.extra) === null || _slots$extra === void 0 ? void 0 : _slots$extra.call(slots)
- }), {
- default: slots.default
- })]);
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/form/utils/asyncUtil.js
- function allPromiseFinish(promiseList) {
- var hasError = false;
- var count = promiseList.length;
- var results = [];
- if (!promiseList.length) {
- return Promise.resolve([]);
- }
- return new Promise(function(resolve, reject) {
- promiseList.forEach(function(promise, index3) {
- promise.catch(function(e3) {
- hasError = true;
- return e3;
- }).then(function(result) {
- count -= 1;
- results[index3] = result;
- if (count > 0) {
- return;
- }
- if (hasError) {
- reject(results);
- }
- resolve(results);
- });
- });
- });
- }
- // node_modules/compute-scroll-into-view/dist/index.mjs
- function t2(t3) {
- return "object" == typeof t3 && null != t3 && 1 === t3.nodeType;
- }
- function e2(t3, e3) {
- return (!e3 || "hidden" !== t3) && "visible" !== t3 && "clip" !== t3;
- }
- function n2(t3, n3) {
- if (t3.clientHeight < t3.scrollHeight || t3.clientWidth < t3.scrollWidth) {
- var r3 = getComputedStyle(t3, null);
- return e2(r3.overflowY, n3) || e2(r3.overflowX, n3) || function(t4) {
- var e3 = function(t5) {
- if (!t5.ownerDocument || !t5.ownerDocument.defaultView)
- return null;
- try {
- return t5.ownerDocument.defaultView.frameElement;
- } catch (t6) {
- return null;
- }
- }(t4);
- return !!e3 && (e3.clientHeight < t4.scrollHeight || e3.clientWidth < t4.scrollWidth);
- }(t3);
- }
- return false;
- }
- function r2(t3, e3, n3, r3, i3, o2, l2, d2) {
- return o2 < t3 && l2 > e3 || o2 > t3 && l2 < e3 ? 0 : o2 <= t3 && d2 <= n3 || l2 >= e3 && d2 >= n3 ? o2 - t3 - r3 : l2 > e3 && d2 < n3 || o2 < t3 && d2 > n3 ? l2 - e3 + i3 : 0;
- }
- var i2 = function(e3, i3) {
- var o2 = window, l2 = i3.scrollMode, d2 = i3.block, f2 = i3.inline, h3 = i3.boundary, u2 = i3.skipOverflowHiddenElements, s2 = "function" == typeof h3 ? h3 : function(t3) {
- return t3 !== h3;
- };
- if (!t2(e3))
- throw new TypeError("Invalid target");
- for (var a2, c2, g2 = document.scrollingElement || document.documentElement, p = [], m2 = e3; t2(m2) && s2(m2); ) {
- if ((m2 = null == (c2 = (a2 = m2).parentElement) ? a2.getRootNode().host || null : c2) === g2) {
- p.push(m2);
- break;
- }
- null != m2 && m2 === document.body && n2(m2) && !n2(document.documentElement) || null != m2 && n2(m2, u2) && p.push(m2);
- }
- for (var w2 = o2.visualViewport ? o2.visualViewport.width : innerWidth, v2 = o2.visualViewport ? o2.visualViewport.height : innerHeight, W = window.scrollX || pageXOffset, H = window.scrollY || pageYOffset, b2 = e3.getBoundingClientRect(), y2 = b2.height, E2 = b2.width, M2 = b2.top, V2 = b2.right, x2 = b2.bottom, I2 = b2.left, C2 = "start" === d2 || "nearest" === d2 ? M2 : "end" === d2 ? x2 : M2 + y2 / 2, R2 = "center" === f2 ? I2 + E2 / 2 : "end" === f2 ? V2 : I2, T2 = [], k2 = 0; k2 < p.length; k2++) {
- var B2 = p[k2], D2 = B2.getBoundingClientRect(), O2 = D2.height, X = D2.width, Y2 = D2.top, L2 = D2.right, S2 = D2.bottom, j2 = D2.left;
- if ("if-needed" === l2 && M2 >= 0 && I2 >= 0 && x2 <= v2 && V2 <= w2 && M2 >= Y2 && x2 <= S2 && I2 >= j2 && V2 <= L2)
- return T2;
- var N2 = getComputedStyle(B2), q2 = parseInt(N2.borderLeftWidth, 10), z2 = parseInt(N2.borderTopWidth, 10), A2 = parseInt(N2.borderRightWidth, 10), F2 = parseInt(N2.borderBottomWidth, 10), G = 0, J2 = 0, K = "offsetWidth" in B2 ? B2.offsetWidth - B2.clientWidth - q2 - A2 : 0, P2 = "offsetHeight" in B2 ? B2.offsetHeight - B2.clientHeight - z2 - F2 : 0, Q = "offsetWidth" in B2 ? 0 === B2.offsetWidth ? 0 : X / B2.offsetWidth : 0, U = "offsetHeight" in B2 ? 0 === B2.offsetHeight ? 0 : O2 / B2.offsetHeight : 0;
- if (g2 === B2)
- G = "start" === d2 ? C2 : "end" === d2 ? C2 - v2 : "nearest" === d2 ? r2(H, H + v2, v2, z2, F2, H + C2, H + C2 + y2, y2) : C2 - v2 / 2, J2 = "start" === f2 ? R2 : "center" === f2 ? R2 - w2 / 2 : "end" === f2 ? R2 - w2 : r2(W, W + w2, w2, q2, A2, W + R2, W + R2 + E2, E2), G = Math.max(0, G + H), J2 = Math.max(0, J2 + W);
- else {
- G = "start" === d2 ? C2 - Y2 - z2 : "end" === d2 ? C2 - S2 + F2 + P2 : "nearest" === d2 ? r2(Y2, S2, O2, z2, F2 + P2, C2, C2 + y2, y2) : C2 - (Y2 + O2 / 2) + P2 / 2, J2 = "start" === f2 ? R2 - j2 - q2 : "center" === f2 ? R2 - (j2 + X / 2) + K / 2 : "end" === f2 ? R2 - L2 + A2 + K : r2(j2, L2, X, q2, A2 + K, R2, R2 + E2, E2);
- var Z = B2.scrollLeft, $2 = B2.scrollTop;
- C2 += $2 - (G = Math.max(0, Math.min($2 + G / U, B2.scrollHeight - O2 / U + P2))), R2 += Z - (J2 = Math.max(0, Math.min(Z + J2 / Q, B2.scrollWidth - X / Q + K)));
- }
- T2.push({ el: B2, top: G, left: J2 });
- }
- return T2;
- };
- // node_modules/scroll-into-view-if-needed/es/index.js
- function isOptionsObject(options) {
- return options === Object(options) && Object.keys(options).length !== 0;
- }
- function defaultBehavior(actions, behavior) {
- if (behavior === void 0) {
- behavior = "auto";
- }
- var canSmoothScroll = "scrollBehavior" in document.body.style;
- actions.forEach(function(_ref) {
- var el = _ref.el, top = _ref.top, left = _ref.left;
- if (el.scroll && canSmoothScroll) {
- el.scroll({
- top,
- left,
- behavior
- });
- } else {
- el.scrollTop = top;
- el.scrollLeft = left;
- }
- });
- }
- function getOptions(options) {
- if (options === false) {
- return {
- block: "end",
- inline: "nearest"
- };
- }
- if (isOptionsObject(options)) {
- return options;
- }
- return {
- block: "start",
- inline: "nearest"
- };
- }
- function scrollIntoView(target, options) {
- var isTargetAttached = target.isConnected || target.ownerDocument.documentElement.contains(target);
- if (isOptionsObject(options) && typeof options.behavior === "function") {
- return options.behavior(isTargetAttached ? i2(target, options) : []);
- }
- if (!isTargetAttached) {
- return;
- }
- var computeOptions = getOptions(options);
- return defaultBehavior(i2(target, computeOptions), computeOptions.behavior);
- }
- var es_default = scrollIntoView;
- // node_modules/lodash-es/_baseIntersection.js
- var nativeMin2 = Math.min;
- function baseIntersection(arrays, iteratee, comparator) {
- var includes2 = comparator ? arrayIncludesWith_default : arrayIncludes_default, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array(othLength), maxLength = Infinity, result = [];
- while (othIndex--) {
- var array4 = arrays[othIndex];
- if (othIndex && iteratee) {
- array4 = arrayMap_default(array4, baseUnary_default(iteratee));
- }
- maxLength = nativeMin2(array4.length, maxLength);
- caches[othIndex] = !comparator && (iteratee || length >= 120 && array4.length >= 120) ? new SetCache_default(othIndex && array4) : void 0;
- }
- array4 = arrays[0];
- var index3 = -1, seen = caches[0];
- outer:
- while (++index3 < length && result.length < maxLength) {
- var value = array4[index3], computed2 = iteratee ? iteratee(value) : value;
- value = comparator || value !== 0 ? value : 0;
- if (!(seen ? cacheHas_default(seen, computed2) : includes2(result, computed2, comparator))) {
- othIndex = othLength;
- while (--othIndex) {
- var cache = caches[othIndex];
- if (!(cache ? cacheHas_default(cache, computed2) : includes2(arrays[othIndex], computed2, comparator))) {
- continue outer;
- }
- }
- if (seen) {
- seen.push(computed2);
- }
- result.push(value);
- }
- }
- return result;
- }
- var baseIntersection_default = baseIntersection;
- // node_modules/lodash-es/_baseRest.js
- function baseRest(func, start) {
- return setToString_default(overRest_default(func, start, identity_default), func + "");
- }
- var baseRest_default = baseRest;
- // node_modules/lodash-es/isArrayLikeObject.js
- function isArrayLikeObject(value) {
- return isObjectLike_default(value) && isArrayLike_default(value);
- }
- var isArrayLikeObject_default = isArrayLikeObject;
- // node_modules/lodash-es/_castArrayLikeObject.js
- function castArrayLikeObject(value) {
- return isArrayLikeObject_default(value) ? value : [];
- }
- var castArrayLikeObject_default = castArrayLikeObject;
- // node_modules/lodash-es/intersection.js
- var intersection = baseRest_default(function(arrays) {
- var mapped = arrayMap_default(arrays, castArrayLikeObject_default);
- return mapped.length && mapped[0] === arrays[0] ? baseIntersection_default(mapped) : [];
- });
- var intersection_default = intersection;
- // node_modules/lodash-es/last.js
- function last(array4) {
- var length = array4 == null ? 0 : array4.length;
- return length ? array4[length - 1] : void 0;
- }
- var last_default = last;
- // node_modules/lodash-es/_parent.js
- function parent(object4, path2) {
- return path2.length < 2 ? object4 : baseGet_default(object4, baseSlice_default(path2, 0, -1));
- }
- var parent_default = parent;
- // node_modules/lodash-es/_baseUnset.js
- function baseUnset(object4, path2) {
- path2 = castPath_default(path2, object4);
- object4 = parent_default(object4, path2);
- return object4 == null || delete object4[toKey_default(last_default(path2))];
- }
- var baseUnset_default = baseUnset;
- // node_modules/lodash-es/_customOmitClone.js
- function customOmitClone(value) {
- return isPlainObject_default(value) ? void 0 : value;
- }
- var customOmitClone_default = customOmitClone;
- // node_modules/lodash-es/omit.js
- var CLONE_DEEP_FLAG3 = 1;
- var CLONE_FLAT_FLAG2 = 2;
- var CLONE_SYMBOLS_FLAG3 = 4;
- var omit2 = flatRest_default(function(object4, paths) {
- var result = {};
- if (object4 == null) {
- return result;
- }
- var isDeep = false;
- paths = arrayMap_default(paths, function(path2) {
- path2 = castPath_default(path2, object4);
- isDeep || (isDeep = path2.length > 1);
- return path2;
- });
- copyObject_default(object4, getAllKeysIn_default(object4), result);
- if (isDeep) {
- result = baseClone_default(result, CLONE_DEEP_FLAG3 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG3, customOmitClone_default);
- }
- var length = paths.length;
- while (length--) {
- baseUnset_default(result, paths[length]);
- }
- return result;
- });
- var omit_default2 = omit2;
- // node_modules/ant-design-vue/es/form/useForm.js
- function isRequired(rules2) {
- var isRequired2 = false;
- if (rules2 && rules2.length) {
- rules2.every(function(rule) {
- if (rule.required) {
- isRequired2 = true;
- return false;
- }
- return true;
- });
- }
- return isRequired2;
- }
- function toArray4(value) {
- if (value === void 0 || value === null) {
- return [];
- }
- return Array.isArray(value) ? value : [value];
- }
- function getPropByPath2(obj, path2, strict) {
- var tempObj = obj;
- path2 = path2.replace(/\[(\w+)\]/g, ".$1");
- path2 = path2.replace(/^\./, "");
- var keyArr = path2.split(".");
- var i3 = 0;
- for (var len = keyArr.length; i3 < len - 1; ++i3) {
- if (!tempObj && !strict)
- break;
- var key2 = keyArr[i3];
- if (key2 in tempObj) {
- tempObj = tempObj[key2];
- } else {
- if (strict) {
- throw new Error("please transfer a valid name path to validate!");
- }
- break;
- }
- }
- return {
- o: tempObj,
- k: keyArr[i3],
- v: tempObj ? tempObj[keyArr[i3]] : null,
- isValid: tempObj && keyArr[i3] in tempObj
- };
- }
- function useForm(modelRef) {
- var rulesRef = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ref({});
- var options = arguments.length > 2 ? arguments[2] : void 0;
- var initialModel = cloneDeep_default(unref(modelRef));
- var validateInfos = reactive({});
- var rulesKeys = shallowRef([]);
- var resetFields = function resetFields2(newValues) {
- _extends(unref(modelRef), _objectSpread2(_objectSpread2({}, cloneDeep_default(initialModel)), newValues));
- nextTick(function() {
- Object.keys(validateInfos).forEach(function(key2) {
- validateInfos[key2] = {
- autoLink: false,
- required: isRequired(unref(rulesRef)[key2])
- };
- });
- });
- };
- var filterRules = function filterRules2() {
- var rules2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- var trigger2 = arguments.length > 1 ? arguments[1] : void 0;
- if (!trigger2.length) {
- return rules2;
- } else {
- return rules2.filter(function(rule) {
- var triggerList = toArray4(rule.trigger || "change");
- return intersection_default(triggerList, trigger2).length;
- });
- }
- };
- var lastValidatePromise = null;
- var validateFields = function validateFields2(names) {
- var option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var strict = arguments.length > 2 ? arguments[2] : void 0;
- var promiseList = [];
- var values = {};
- var _loop = function _loop2() {
- var name = names[i3];
- var prop = getPropByPath2(unref(modelRef), name, strict);
- if (!prop.isValid)
- return "continue";
- values[name] = prop.v;
- var rules2 = filterRules(unref(rulesRef)[name], toArray4(option && option.trigger));
- if (rules2.length) {
- promiseList.push(validateField(name, prop.v, rules2, option || {}).then(function() {
- return {
- name,
- errors: [],
- warnings: []
- };
- }).catch(function(ruleErrors) {
- var mergedErrors = [];
- var mergedWarnings = [];
- ruleErrors.forEach(function(_ref) {
- var warningOnly = _ref.rule.warningOnly, errors = _ref.errors;
- if (warningOnly) {
- mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
- } else {
- mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
- }
- });
- if (mergedErrors.length) {
- return Promise.reject({
- name,
- errors: mergedErrors,
- warnings: mergedWarnings
- });
- }
- return {
- name,
- errors: mergedErrors,
- warnings: mergedWarnings
- };
- }));
- }
- };
- for (var i3 = 0; i3 < names.length; i3++) {
- var _ret = _loop();
- if (_ret === "continue")
- continue;
- }
- var summaryPromise = allPromiseFinish(promiseList);
- lastValidatePromise = summaryPromise;
- var returnPromise = summaryPromise.then(function() {
- if (lastValidatePromise === summaryPromise) {
- return Promise.resolve(values);
- }
- return Promise.reject([]);
- }).catch(function(results) {
- var errorList = results.filter(function(result) {
- return result && result.errors.length;
- });
- return Promise.reject({
- values,
- errorFields: errorList,
- outOfDate: lastValidatePromise !== summaryPromise
- });
- });
- returnPromise.catch(function(e3) {
- return e3;
- });
- return returnPromise;
- };
- var validateField = function validateField2(name, value, rules2) {
- var option = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
- var promise = validateRules([name], value, rules2, _objectSpread2({
- validateMessages: defaultValidateMessages
- }, option), !!option.validateFirst);
- if (!validateInfos[name]) {
- return promise.catch(function(e3) {
- return e3;
- });
- }
- validateInfos[name].validateStatus = "validating";
- promise.catch(function(e3) {
- return e3;
- }).then(function() {
- var results = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- if (validateInfos[name].validateStatus === "validating") {
- var _options$onValidate;
- var res = results.filter(function(result) {
- return result && result.errors.length;
- });
- validateInfos[name].validateStatus = res.length ? "error" : "success";
- validateInfos[name].help = res.length ? res.map(function(r3) {
- return r3.errors;
- }) : null;
- options === null || options === void 0 ? void 0 : (_options$onValidate = options.onValidate) === null || _options$onValidate === void 0 ? void 0 : _options$onValidate.call(options, name, !res.length, res.length ? toRaw(validateInfos[name].help[0]) : null);
- }
- });
- return promise;
- };
- var validate = function validate2(names, option) {
- var keys2 = [];
- var strict = true;
- if (!names) {
- strict = false;
- keys2 = rulesKeys.value;
- } else if (Array.isArray(names)) {
- keys2 = names;
- } else {
- keys2 = [names];
- }
- var promises = validateFields(keys2, option || {}, strict);
- promises.catch(function(e3) {
- return e3;
- });
- return promises;
- };
- var clearValidate2 = function clearValidate3(names) {
- var keys2 = [];
- if (!names) {
- keys2 = rulesKeys.value;
- } else if (Array.isArray(names)) {
- keys2 = names;
- } else {
- keys2 = [names];
- }
- keys2.forEach(function(key2) {
- validateInfos[key2] && _extends(validateInfos[key2], {
- validateStatus: "",
- help: null
- });
- });
- };
- var mergeValidateInfo = function mergeValidateInfo2(items) {
- var info = {
- autoLink: false
- };
- var help = [];
- var infos = Array.isArray(items) ? items : [items];
- for (var i3 = 0; i3 < infos.length; i3++) {
- var arg = infos[i3];
- if ((arg === null || arg === void 0 ? void 0 : arg.validateStatus) === "error") {
- info.validateStatus = "error";
- arg.help && help.push(arg.help);
- }
- info.required = info.required || (arg === null || arg === void 0 ? void 0 : arg.required);
- }
- info.help = help;
- return info;
- };
- var oldModel = initialModel;
- var isFirstTime = true;
- var modelFn = function modelFn2(model) {
- var names = [];
- rulesKeys.value.forEach(function(key2) {
- var prop = getPropByPath2(model, key2, false);
- var oldProp = getPropByPath2(oldModel, key2, false);
- var isFirstValidation = isFirstTime && (options === null || options === void 0 ? void 0 : options.immediate) && prop.isValid;
- if (isFirstValidation || !isEqual_default(prop.v, oldProp.v)) {
- names.push(key2);
- }
- });
- validate(names, {
- trigger: "change"
- });
- isFirstTime = false;
- oldModel = cloneDeep_default(toRaw(model));
- };
- var debounceOptions = options === null || options === void 0 ? void 0 : options.debounce;
- var first = true;
- watch(rulesRef, function() {
- rulesKeys.value = rulesRef ? Object.keys(unref(rulesRef)) : [];
- if (!first && options && options.validateOnRuleChange) {
- validate();
- }
- first = false;
- }, {
- deep: true,
- immediate: true
- });
- watch(rulesKeys, function() {
- var newValidateInfos = {};
- rulesKeys.value.forEach(function(key3) {
- newValidateInfos[key3] = _extends({}, validateInfos[key3], {
- autoLink: false,
- required: isRequired(unref(rulesRef)[key3])
- });
- delete validateInfos[key3];
- });
- for (var key2 in validateInfos) {
- if (Object.prototype.hasOwnProperty.call(validateInfos, key2)) {
- delete validateInfos[key2];
- }
- }
- _extends(validateInfos, newValidateInfos);
- }, {
- immediate: true
- });
- watch(modelRef, debounceOptions && debounceOptions.wait ? debounce_default(modelFn, debounceOptions.wait, omit_default2(debounceOptions, ["wait"])) : modelFn, {
- immediate: options && !!options.immediate,
- deep: true
- });
- return {
- modelRef,
- rulesRef,
- initialModel,
- validateInfos,
- resetFields,
- validate,
- validateField,
- mergeValidateInfo,
- clearValidate: clearValidate2
- };
- }
- var useForm_default = useForm;
- // node_modules/ant-design-vue/es/form/Form.js
- var formProps = function formProps2() {
- return {
- layout: vue_types_default.oneOf(tuple("horizontal", "inline", "vertical")),
- labelCol: {
- type: Object
- },
- wrapperCol: {
- type: Object
- },
- colon: {
- type: Boolean,
- default: void 0
- },
- labelAlign: vue_types_default.oneOf(tuple("left", "right")),
- labelWrap: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- requiredMark: {
- type: [String, Boolean],
- default: void 0
- },
- /** @deprecated Will warning in future branch. Pls use `requiredMark` instead. */
- hideRequiredMark: {
- type: Boolean,
- default: void 0
- },
- model: vue_types_default.object,
- rules: {
- type: Object
- },
- validateMessages: {
- type: Object,
- default: void 0
- },
- validateOnRuleChange: {
- type: Boolean,
- default: void 0
- },
- // 提交失败自动滚动到第一个错误字段
- scrollToFirstError: {
- type: [Boolean, Object]
- },
- onSubmit: Function,
- name: String,
- validateTrigger: {
- type: [String, Array]
- },
- size: {
- type: String
- },
- onValuesChange: {
- type: Function
- },
- onFieldsChange: {
- type: Function
- },
- onFinish: {
- type: Function
- },
- onFinishFailed: {
- type: Function
- },
- onValidate: {
- type: Function
- }
- };
- };
- function isEqualName(name1, name2) {
- return isEqual_default(toArray3(name1), toArray3(name2));
- }
- var Form = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AForm",
- inheritAttrs: false,
- props: initDefaultProps_default(formProps(), {
- layout: "horizontal",
- hideRequiredMark: false,
- colon: true
- }),
- Item: FormItem_default,
- useForm: useForm_default,
- // emits: ['finishFailed', 'submit', 'finish', 'validate'],
- setup: function setup97(props5, _ref) {
- var emit = _ref.emit, slots = _ref.slots, expose = _ref.expose, attrs = _ref.attrs;
- var size = useInjectSize(props5);
- var _useConfigInject = useConfigInject_default("form", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, contextForm = _useConfigInject.form;
- var requiredMark = computed(function() {
- return props5.requiredMark === "" || props5.requiredMark;
- });
- var mergedRequiredMark = computed(function() {
- var _contextForm$value;
- if (requiredMark.value !== void 0) {
- return requiredMark.value;
- }
- if (contextForm && ((_contextForm$value = contextForm.value) === null || _contextForm$value === void 0 ? void 0 : _contextForm$value.requiredMark) !== void 0) {
- return contextForm.value.requiredMark;
- }
- if (props5.hideRequiredMark) {
- return false;
- }
- return true;
- });
- var mergedColon = computed(function() {
- var _props$colon, _contextForm$value2;
- return (_props$colon = props5.colon) !== null && _props$colon !== void 0 ? _props$colon : (_contextForm$value2 = contextForm.value) === null || _contextForm$value2 === void 0 ? void 0 : _contextForm$value2.colon;
- });
- var _useInjectGlobalForm = useInjectGlobalForm(), globalValidateMessages = _useInjectGlobalForm.validateMessages;
- var validateMessages = computed(function() {
- return _objectSpread2(_objectSpread2(_objectSpread2({}, defaultValidateMessages), globalValidateMessages.value), props5.validateMessages);
- });
- var formClassName = computed(function() {
- var _classNames;
- return classNames_default(prefixCls.value, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-").concat(props5.layout), true), _defineProperty(_classNames, "".concat(prefixCls.value, "-hide-required-mark"), mergedRequiredMark.value === false), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames, "".concat(prefixCls.value, "-").concat(size.value), size.value), _classNames));
- });
- var lastValidatePromise = ref();
- var fields = {};
- var addField = function addField2(eventKey, field) {
- fields[eventKey] = field;
- };
- var removeField = function removeField2(eventKey) {
- delete fields[eventKey];
- };
- var getFieldsByNameList = function getFieldsByNameList2(nameList) {
- var provideNameList = !!nameList;
- var namePathList = provideNameList ? toArray3(nameList).map(getNamePath) : [];
- if (!provideNameList) {
- return Object.values(fields);
- } else {
- return Object.values(fields).filter(function(field) {
- return namePathList.findIndex(function(namePath) {
- return isEqualName(namePath, field.fieldName.value);
- }) > -1;
- });
- }
- };
- var resetFields = function resetFields2(name) {
- if (!props5.model) {
- warning_default2(false, "Form", "model is required for resetFields to work.");
- return;
- }
- getFieldsByNameList(name).forEach(function(field) {
- field.resetField();
- });
- };
- var clearValidate2 = function clearValidate3(name) {
- getFieldsByNameList(name).forEach(function(field) {
- field.clearValidate();
- });
- };
- var handleFinishFailed = function handleFinishFailed2(errorInfo) {
- var scrollToFirstError = props5.scrollToFirstError;
- emit("finishFailed", errorInfo);
- if (scrollToFirstError && errorInfo.errorFields.length) {
- var scrollToFieldOptions = {};
- if (_typeof(scrollToFirstError) === "object") {
- scrollToFieldOptions = scrollToFirstError;
- }
- scrollToField(errorInfo.errorFields[0].name, scrollToFieldOptions);
- }
- };
- var validate = function validate2() {
- return validateField.apply(void 0, arguments);
- };
- var scrollToField = function scrollToField2(name) {
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var fields2 = getFieldsByNameList(name ? [name] : void 0);
- if (fields2.length) {
- var fieldId = fields2[0].fieldId.value;
- var node = fieldId ? document.getElementById(fieldId) : null;
- if (node) {
- es_default(node, _objectSpread2({
- scrollMode: "if-needed",
- block: "nearest"
- }, options));
- }
- }
- };
- var getFieldsValue = function getFieldsValue2() {
- var nameList = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
- if (nameList === true) {
- var allNameList = [];
- Object.values(fields).forEach(function(_ref2) {
- var namePath = _ref2.namePath;
- allNameList.push(namePath.value);
- });
- return cloneByNamePathList(props5.model, allNameList);
- } else {
- return cloneByNamePathList(props5.model, nameList);
- }
- };
- var validateFields = function validateFields2(nameList, options) {
- warning_default2(!(nameList instanceof Function), "Form", "validateFields/validateField/validate not support callback, please use promise instead");
- if (!props5.model) {
- warning_default2(false, "Form", "model is required for validateFields to work.");
- return Promise.reject("Form `model` is required for validateFields to work.");
- }
- var provideNameList = !!nameList;
- var namePathList = provideNameList ? toArray3(nameList).map(getNamePath) : [];
- var promiseList = [];
- Object.values(fields).forEach(function(field) {
- var _field$rules;
- if (!provideNameList) {
- namePathList.push(field.namePath.value);
- }
- if (!((_field$rules = field.rules) !== null && _field$rules !== void 0 && _field$rules.value.length)) {
- return;
- }
- var fieldNamePath = field.namePath.value;
- if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
- var promise = field.validateRules(_objectSpread2({
- validateMessages: validateMessages.value
- }, options));
- promiseList.push(promise.then(function() {
- return {
- name: fieldNamePath,
- errors: [],
- warnings: []
- };
- }).catch(function(ruleErrors) {
- var mergedErrors = [];
- var mergedWarnings = [];
- ruleErrors.forEach(function(_ref3) {
- var warningOnly = _ref3.rule.warningOnly, errors = _ref3.errors;
- if (warningOnly) {
- mergedWarnings.push.apply(mergedWarnings, _toConsumableArray(errors));
- } else {
- mergedErrors.push.apply(mergedErrors, _toConsumableArray(errors));
- }
- });
- if (mergedErrors.length) {
- return Promise.reject({
- name: fieldNamePath,
- errors: mergedErrors,
- warnings: mergedWarnings
- });
- }
- return {
- name: fieldNamePath,
- errors: mergedErrors,
- warnings: mergedWarnings
- };
- }));
- }
- });
- var summaryPromise = allPromiseFinish(promiseList);
- lastValidatePromise.value = summaryPromise;
- var returnPromise = summaryPromise.then(function() {
- if (lastValidatePromise.value === summaryPromise) {
- return Promise.resolve(getFieldsValue(namePathList));
- }
- return Promise.reject([]);
- }).catch(function(results) {
- var errorList = results.filter(function(result) {
- return result && result.errors.length;
- });
- return Promise.reject({
- values: getFieldsValue(namePathList),
- errorFields: errorList,
- outOfDate: lastValidatePromise.value !== summaryPromise
- });
- });
- returnPromise.catch(function(e3) {
- return e3;
- });
- return returnPromise;
- };
- var validateField = function validateField2() {
- return validateFields.apply(void 0, arguments);
- };
- var handleSubmit = function handleSubmit2(e3) {
- e3.preventDefault();
- e3.stopPropagation();
- emit("submit", e3);
- if (props5.model) {
- var res = validateFields();
- res.then(function(values) {
- emit("finish", values);
- }).catch(function(errors) {
- handleFinishFailed(errors);
- });
- }
- };
- expose({
- resetFields,
- clearValidate: clearValidate2,
- validateFields,
- getFieldsValue,
- validate,
- scrollToField
- });
- useProvideForm({
- model: computed(function() {
- return props5.model;
- }),
- name: computed(function() {
- return props5.name;
- }),
- labelAlign: computed(function() {
- return props5.labelAlign;
- }),
- labelCol: computed(function() {
- return props5.labelCol;
- }),
- labelWrap: computed(function() {
- return props5.labelWrap;
- }),
- wrapperCol: computed(function() {
- return props5.wrapperCol;
- }),
- vertical: computed(function() {
- return props5.layout === "vertical";
- }),
- colon: mergedColon,
- requiredMark: mergedRequiredMark,
- validateTrigger: computed(function() {
- return props5.validateTrigger;
- }),
- rules: computed(function() {
- return props5.rules;
- }),
- addField,
- removeField,
- onValidate: function onValidate(name, status, errors) {
- emit("validate", name, status, errors);
- },
- validateMessages
- });
- watch(function() {
- return props5.rules;
- }, function() {
- if (props5.validateOnRuleChange) {
- validateFields();
- }
- });
- return function() {
- var _slots$default;
- return createVNode("form", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "onSubmit": handleSubmit,
- "class": [formClassName.value, attrs.class]
- }), [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- var Form_default = Form;
- // node_modules/ant-design-vue/es/form/index.js
- Form_default.useInjectFormItemContext = useInjectFormItemContext;
- Form_default.ItemRest = FormItemContext_default;
- Form_default.install = function(app) {
- app.component(Form_default.name, Form_default);
- app.component(Form_default.Item.name, Form_default.Item);
- app.component(FormItemContext_default.name, FormItemContext_default);
- return app;
- };
- var form_default = Form_default;
- // node_modules/ant-design-vue/es/cascader/index.js
- var _excluded26 = ["notFoundContent", "expandIcon", "multiple", "bordered", "allowClear", "choiceTransitionName", "transitionName", "id"];
- function highlightKeyword(str, lowerKeyword, prefixCls) {
- var cells = str.toLowerCase().split(lowerKeyword).reduce(function(list, cur, index3) {
- return index3 === 0 ? [cur] : [].concat(_toConsumableArray(list), [lowerKeyword, cur]);
- }, []);
- var fillCells = [];
- var start = 0;
- cells.forEach(function(cell, index3) {
- var end = start + cell.length;
- var originWorld = str.slice(start, end);
- start = end;
- if (index3 % 2 === 1) {
- var _originWorld = function() {
- return originWorld;
- }();
- originWorld = createVNode("span", {
- "class": "".concat(prefixCls, "-menu-item-keyword"),
- "key": "seperator"
- }, [originWorld]);
- }
- fillCells.push(originWorld);
- });
- return fillCells;
- }
- var defaultSearchRender = function defaultSearchRender2(_ref) {
- var inputValue = _ref.inputValue, path2 = _ref.path, prefixCls = _ref.prefixCls, fieldNames = _ref.fieldNames;
- var optionList = [];
- var lower2 = inputValue.toLowerCase();
- path2.forEach(function(node, index3) {
- if (index3 !== 0) {
- optionList.push(" / ");
- }
- var label = node[fieldNames.label];
- var type4 = _typeof(label);
- if (type4 === "string" || type4 === "number") {
- label = highlightKeyword(String(label), lower2, prefixCls);
- }
- optionList.push(label);
- });
- return optionList;
- };
- function cascaderProps() {
- return _objectSpread2(_objectSpread2({}, omit_default(internalCascaderProps(), ["customSlots", "checkable", "options"])), {}, {
- multiple: {
- type: Boolean,
- default: void 0
- },
- size: String,
- bordered: {
- type: Boolean,
- default: void 0
- },
- placement: {
- type: String
- },
- suffixIcon: vue_types_default.any,
- options: Array,
- "onUpdate:value": Function
- });
- }
- var Cascader = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACascader",
- inheritAttrs: false,
- props: initDefaultProps_default(cascaderProps(), {
- bordered: true,
- choiceTransitionName: "",
- allowClear: true
- }),
- setup: function setup98(props5, _ref2) {
- var attrs = _ref2.attrs, expose = _ref2.expose, slots = _ref2.slots, emit = _ref2.emit;
- var formItemContext = useInjectFormItemContext();
- var _useConfigInject = useConfigInject_default("cascader", props5), cascaderPrefixCls = _useConfigInject.prefixCls, rootPrefixCls = _useConfigInject.rootPrefixCls, getPrefixCls2 = _useConfigInject.getPrefixCls, direction = _useConfigInject.direction, getPopupContainer = _useConfigInject.getPopupContainer, renderEmpty2 = _useConfigInject.renderEmpty, size = _useConfigInject.size;
- var prefixCls = computed(function() {
- return getPrefixCls2("select", props5.prefixCls);
- });
- var isRtl = computed(function() {
- return direction.value === "rtl";
- });
- if (true) {
- watchEffect(function() {
- devWarning_default(!props5.multiple || !props5.displayRender || !slots.displayRender, "Cascader", "`displayRender` not work on `multiple`. Please use `tagRender` instead.");
- });
- }
- var mergedShowSearch = computed(function() {
- if (!props5.showSearch) {
- return props5.showSearch;
- }
- var searchConfig = {
- render: defaultSearchRender
- };
- if (_typeof(props5.showSearch) === "object") {
- searchConfig = _objectSpread2(_objectSpread2({}, searchConfig), props5.showSearch);
- }
- return searchConfig;
- });
- var mergedDropdownClassName = computed(function() {
- return classNames_default(props5.dropdownClassName || props5.popupClassName, "".concat(cascaderPrefixCls.value, "-dropdown"), _defineProperty({}, "".concat(cascaderPrefixCls.value, "-dropdown-rtl"), isRtl.value));
- });
- var selectRef = ref();
- expose({
- focus: function focus() {
- var _selectRef$value;
- (_selectRef$value = selectRef.value) === null || _selectRef$value === void 0 ? void 0 : _selectRef$value.focus();
- },
- blur: function blur() {
- var _selectRef$value2;
- (_selectRef$value2 = selectRef.value) === null || _selectRef$value2 === void 0 ? void 0 : _selectRef$value2.blur();
- }
- });
- var handleChange2 = function handleChange3() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- emit("update:value", args[0]);
- emit.apply(void 0, ["change"].concat(args));
- formItemContext.onFieldChange();
- };
- var handleBlur = function handleBlur2() {
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
- emit.apply(void 0, ["blur"].concat(args));
- formItemContext.onFieldBlur();
- };
- var mergedShowArrow = computed(function() {
- return props5.showArrow !== void 0 ? props5.showArrow : props5.loading || !props5.multiple;
- });
- var placement = computed(function() {
- if (props5.placement !== void 0) {
- return props5.placement;
- }
- return direction.value === "rtl" ? "bottomRight" : "bottomLeft";
- });
- return function() {
- var _slots$notFoundConten, _slots$expandIcon, _ref3;
- var _props$notFoundConten = props5.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? (_slots$notFoundConten = slots.notFoundContent) === null || _slots$notFoundConten === void 0 ? void 0 : _slots$notFoundConten.call(slots) : _props$notFoundConten, _props$expandIcon = props5.expandIcon, expandIcon = _props$expandIcon === void 0 ? (_slots$expandIcon = slots.expandIcon) === null || _slots$expandIcon === void 0 ? void 0 : _slots$expandIcon.call(slots) : _props$expandIcon, multiple = props5.multiple, bordered = props5.bordered, allowClear = props5.allowClear, choiceTransitionName = props5.choiceTransitionName, transitionName2 = props5.transitionName, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id, restProps = _objectWithoutProperties(props5, _excluded26);
- var mergedNotFoundContent = notFoundContent || renderEmpty2.value("Cascader");
- var mergedExpandIcon = expandIcon;
- if (!expandIcon) {
- mergedExpandIcon = isRtl.value ? createVNode(LeftOutlined_default, null, null) : createVNode(RightOutlined_default, null, null);
- }
- var loadingIcon = createVNode("span", {
- "class": "".concat(prefixCls.value, "-menu-item-loading-icon")
- }, [createVNode(LoadingOutlined_default, {
- "spin": true
- }, null)]);
- var _getIcons = getIcons(_objectSpread2(_objectSpread2({}, props5), {}, {
- multiple,
- prefixCls: prefixCls.value,
- showArrow: mergedShowArrow.value
- }), slots), suffixIcon = _getIcons.suffixIcon, removeIcon = _getIcons.removeIcon, clearIcon = _getIcons.clearIcon;
- return createVNode(vc_cascader_default, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), attrs), {}, {
- "id": id,
- "prefixCls": prefixCls.value,
- "class": [cascaderPrefixCls.value, (_ref3 = {}, _defineProperty(_ref3, "".concat(prefixCls.value, "-lg"), size.value === "large"), _defineProperty(_ref3, "".concat(prefixCls.value, "-sm"), size.value === "small"), _defineProperty(_ref3, "".concat(prefixCls.value, "-rtl"), isRtl.value), _defineProperty(_ref3, "".concat(prefixCls.value, "-borderless"), !bordered), _ref3), attrs.class],
- "direction": direction.value,
- "placement": placement.value,
- "notFoundContent": mergedNotFoundContent,
- "allowClear": allowClear,
- "showSearch": mergedShowSearch.value,
- "expandIcon": mergedExpandIcon,
- "inputIcon": suffixIcon,
- "removeIcon": removeIcon,
- "clearIcon": clearIcon,
- "loadingIcon": loadingIcon,
- "checkable": !!multiple,
- "dropdownClassName": mergedDropdownClassName.value,
- "dropdownPrefixCls": cascaderPrefixCls.value,
- "choiceTransitionName": getTransitionName(rootPrefixCls.value, "", choiceTransitionName),
- "transitionName": getTransitionName(rootPrefixCls.value, getTransitionDirection(placement.value), transitionName2),
- "getPopupContainer": getPopupContainer.value,
- "customSlots": _objectSpread2(_objectSpread2({}, slots), {}, {
- checkable: function checkable() {
- return createVNode("span", {
- "class": "".concat(cascaderPrefixCls.value, "-checkbox-inner")
- }, null);
- }
- }),
- "tagRender": props5.tagRender || slots.tagRender,
- "displayRender": props5.displayRender || slots.displayRender,
- "maxTagPlaceholder": props5.maxTagPlaceholder || slots.maxTagPlaceholder,
- "showArrow": props5.showArrow,
- "onChange": handleChange2,
- "onBlur": handleBlur,
- "ref": selectRef
- }), slots);
- };
- }
- });
- var cascader_default = withInstall(Cascader);
- // node_modules/ant-design-vue/es/checkbox/interface.js
- var abstractCheckboxGroupProps = function abstractCheckboxGroupProps2() {
- return {
- name: String,
- prefixCls: String,
- options: {
- type: Array,
- default: function _default9() {
- return [];
- }
- },
- disabled: Boolean,
- id: String
- };
- };
- var checkboxGroupProps = function checkboxGroupProps2() {
- return _objectSpread2(_objectSpread2({}, abstractCheckboxGroupProps()), {}, {
- defaultValue: {
- type: Array
- },
- value: {
- type: Array
- },
- onChange: {
- type: Function
- },
- "onUpdate:value": {
- type: Function
- }
- });
- };
- var abstractCheckboxProps = function abstractCheckboxProps2() {
- return {
- prefixCls: String,
- defaultChecked: {
- type: Boolean,
- default: void 0
- },
- checked: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- isGroup: {
- type: Boolean,
- default: void 0
- },
- value: vue_types_default.any,
- name: String,
- id: String,
- indeterminate: {
- type: Boolean,
- default: void 0
- },
- type: {
- type: String,
- default: "checkbox"
- },
- autofocus: {
- type: Boolean,
- default: void 0
- },
- onChange: Function,
- "onUpdate:checked": Function,
- onClick: Function,
- skipGroup: {
- type: Boolean,
- default: false
- }
- };
- };
- var checkboxProps2 = function checkboxProps3() {
- return _objectSpread2(_objectSpread2({}, abstractCheckboxProps()), {}, {
- indeterminate: {
- type: Boolean,
- default: false
- }
- });
- };
- var CheckboxGroupContextKey = Symbol("CheckboxGroupContext");
- // node_modules/ant-design-vue/es/checkbox/Checkbox.js
- var _excluded27 = ["indeterminate", "skipGroup", "id"];
- var _excluded28 = ["onMouseenter", "onMouseleave", "onInput", "class", "style"];
- var Checkbox_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACheckbox",
- inheritAttrs: false,
- __ANT_CHECKBOX: true,
- props: checkboxProps2(),
- // emits: ['change', 'update:checked'],
- setup: function setup99(props5, _ref) {
- var emit = _ref.emit, attrs = _ref.attrs, slots = _ref.slots, expose = _ref.expose;
- var formItemContext = useInjectFormItemContext();
- var _useConfigInject = useConfigInject_default("checkbox", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var checkboxGroup = inject(CheckboxGroupContextKey, void 0);
- var uniId = Symbol("checkboxUniId");
- watchEffect(function() {
- if (!props5.skipGroup && checkboxGroup) {
- checkboxGroup.registerValue(uniId, props5.value);
- }
- });
- onBeforeUnmount(function() {
- if (checkboxGroup) {
- checkboxGroup.cancelValue(uniId);
- }
- });
- onMounted(function() {
- warning_default2(props5.checked !== void 0 || checkboxGroup || props5.value === void 0, "Checkbox", "`value` is not validate prop, do you mean `checked`?");
- });
- var handleChange2 = function handleChange3(event) {
- var targetChecked = event.target.checked;
- emit("update:checked", targetChecked);
- emit("change", event);
- };
- var checkboxRef = ref();
- var focus = function focus2() {
- var _checkboxRef$value;
- (_checkboxRef$value = checkboxRef.value) === null || _checkboxRef$value === void 0 ? void 0 : _checkboxRef$value.focus();
- };
- var blur = function blur2() {
- var _checkboxRef$value2;
- (_checkboxRef$value2 = checkboxRef.value) === null || _checkboxRef$value2 === void 0 ? void 0 : _checkboxRef$value2.blur();
- };
- expose({
- focus,
- blur
- });
- return function() {
- var _slots$default, _classNames;
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- var indeterminate = props5.indeterminate, skipGroup = props5.skipGroup, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id, restProps = _objectWithoutProperties(props5, _excluded27);
- var onMouseenter2 = attrs.onMouseenter, onMouseleave2 = attrs.onMouseleave, onInput = attrs.onInput, className = attrs.class, style = attrs.style, restAttrs = _objectWithoutProperties(attrs, _excluded28);
- var checkboxProps4 = _objectSpread2(_objectSpread2({}, restProps), {}, {
- id,
- prefixCls: prefixCls.value
- }, restAttrs);
- if (checkboxGroup && !skipGroup) {
- checkboxProps4.onChange = function() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- emit.apply(void 0, ["change"].concat(args));
- checkboxGroup.toggleOption({
- label: children,
- value: props5.value
- });
- };
- checkboxProps4.name = checkboxGroup.name.value;
- checkboxProps4.checked = checkboxGroup.mergedValue.value.indexOf(props5.value) !== -1;
- checkboxProps4.disabled = props5.disabled || checkboxGroup.disabled.value;
- checkboxProps4.indeterminate = indeterminate;
- } else {
- checkboxProps4.onChange = handleChange2;
- }
- var classString = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-wrapper"), true), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames, "".concat(prefixCls.value, "-wrapper-checked"), checkboxProps4.checked), _defineProperty(_classNames, "".concat(prefixCls.value, "-wrapper-disabled"), checkboxProps4.disabled), _classNames), className);
- var checkboxClass = classNames_default(_defineProperty({}, "".concat(prefixCls.value, "-indeterminate"), indeterminate));
- return createVNode("label", {
- "class": classString,
- "style": style,
- "onMouseenter": onMouseenter2,
- "onMouseleave": onMouseleave2
- }, [createVNode(Checkbox_default, _objectSpread2(_objectSpread2({}, checkboxProps4), {}, {
- "class": checkboxClass,
- "ref": checkboxRef
- }), null), children.length ? createVNode("span", null, [children]) : null]);
- };
- }
- });
- // node_modules/ant-design-vue/es/checkbox/Group.js
- var Group_default3 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACheckboxGroup",
- props: checkboxGroupProps(),
- // emits: ['change', 'update:value'],
- setup: function setup100(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, expose = _ref.expose;
- var formItemContext = useInjectFormItemContext();
- var _useConfigInject = useConfigInject_default("checkbox", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var mergedValue = ref((props5.value === void 0 ? props5.defaultValue : props5.value) || []);
- watch(function() {
- return props5.value;
- }, function() {
- mergedValue.value = props5.value || [];
- });
- var options = computed(function() {
- return props5.options.map(function(option) {
- if (typeof option === "string" || typeof option === "number") {
- return {
- label: option,
- value: option
- };
- }
- return option;
- });
- });
- var triggerUpdate = ref(Symbol());
- var registeredValuesMap = ref(/* @__PURE__ */ new Map());
- var cancelValue = function cancelValue2(id) {
- registeredValuesMap.value.delete(id);
- triggerUpdate.value = Symbol();
- };
- var registerValue = function registerValue2(id, value) {
- registeredValuesMap.value.set(id, value);
- triggerUpdate.value = Symbol();
- };
- var registeredValues = ref(/* @__PURE__ */ new Map());
- watch(triggerUpdate, function() {
- var valuseMap = /* @__PURE__ */ new Map();
- var _iterator = _createForOfIteratorHelper(registeredValuesMap.value.values()), _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done; ) {
- var value = _step.value;
- valuseMap.set(value, true);
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- registeredValues.value = valuseMap;
- });
- var toggleOption = function toggleOption2(option) {
- var optionIndex = mergedValue.value.indexOf(option.value);
- var value = _toConsumableArray(mergedValue.value);
- if (optionIndex === -1) {
- value.push(option.value);
- } else {
- value.splice(optionIndex, 1);
- }
- if (props5.value === void 0) {
- mergedValue.value = value;
- }
- var val = value.filter(function(val2) {
- return registeredValues.value.has(val2);
- }).sort(function(a2, b2) {
- var indexA = options.value.findIndex(function(opt) {
- return opt.value === a2;
- });
- var indexB = options.value.findIndex(function(opt) {
- return opt.value === b2;
- });
- return indexA - indexB;
- });
- emit("update:value", val);
- emit("change", val);
- formItemContext.onFieldChange();
- };
- provide(CheckboxGroupContextKey, {
- cancelValue,
- registerValue,
- toggleOption,
- mergedValue,
- name: computed(function() {
- return props5.name;
- }),
- disabled: computed(function() {
- return props5.disabled;
- })
- });
- expose({
- mergedValue
- });
- return function() {
- var _slots$default;
- var _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id;
- var children = null;
- var groupPrefixCls = "".concat(prefixCls.value, "-group");
- if (options.value && options.value.length > 0) {
- children = options.value.map(function(option) {
- var _slots$label;
- return createVNode(Checkbox_default2, {
- "prefixCls": prefixCls.value,
- "key": option.value.toString(),
- "disabled": "disabled" in option ? option.disabled : props5.disabled,
- "indeterminate": option.indeterminate,
- "value": option.value,
- "checked": mergedValue.value.indexOf(option.value) !== -1,
- "onChange": option.onChange,
- "class": "".concat(groupPrefixCls, "-item")
- }, {
- default: function _default9() {
- return [option.label === void 0 ? (_slots$label = slots.label) === null || _slots$label === void 0 ? void 0 : _slots$label.call(slots, option) : option.label];
- }
- });
- });
- }
- return createVNode("div", {
- "class": [groupPrefixCls, _defineProperty({}, "".concat(groupPrefixCls, "-rtl"), direction.value === "rtl")],
- "id": id
- }, [children || ((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots))]);
- };
- }
- });
- // node_modules/ant-design-vue/es/checkbox/index.js
- Checkbox_default2.Group = Group_default3;
- Checkbox_default2.install = function(app) {
- app.component(Checkbox_default2.name, Checkbox_default2);
- app.component(Group_default3.name, Group_default3);
- return app;
- };
- var checkbox_default = Checkbox_default2;
- // node_modules/ant-design-vue/es/comment/index.js
- var commentProps = function commentProps2() {
- return {
- actions: Array,
- /** The element to display as the comment author. */
- author: vue_types_default.any,
- /** The element to display as the comment avatar - generally an antd Avatar */
- avatar: vue_types_default.any,
- /** The main content of the comment */
- content: vue_types_default.any,
- /** Comment prefix defaults to '.ant-comment' */
- prefixCls: String,
- /** A datetime element containing the time to be displayed */
- datetime: vue_types_default.any
- };
- };
- var Comment2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AComment",
- props: commentProps(),
- slots: ["actions", "author", "avatar", "content", "datetime"],
- setup: function setup101(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("comment", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var renderNested = function renderNested2(prefixCls2, children) {
- return createVNode("div", {
- "class": "".concat(prefixCls2, "-nested")
- }, [children]);
- };
- var getAction = function getAction2(actions) {
- if (!actions || !actions.length) {
- return null;
- }
- var actionList = actions.map(function(action, index3) {
- return createVNode("li", {
- "key": "action-".concat(index3)
- }, [action]);
- });
- return actionList;
- };
- return function() {
- var _props$actions, _slots$actions, _props$author, _slots$author, _props$avatar, _slots$avatar, _props$content, _slots$content, _props$datetime, _slots$datetime, _slots$default;
- var pre = prefixCls.value;
- var actions = (_props$actions = props5.actions) !== null && _props$actions !== void 0 ? _props$actions : (_slots$actions = slots.actions) === null || _slots$actions === void 0 ? void 0 : _slots$actions.call(slots);
- var author = (_props$author = props5.author) !== null && _props$author !== void 0 ? _props$author : (_slots$author = slots.author) === null || _slots$author === void 0 ? void 0 : _slots$author.call(slots);
- var avatar = (_props$avatar = props5.avatar) !== null && _props$avatar !== void 0 ? _props$avatar : (_slots$avatar = slots.avatar) === null || _slots$avatar === void 0 ? void 0 : _slots$avatar.call(slots);
- var content = (_props$content = props5.content) !== null && _props$content !== void 0 ? _props$content : (_slots$content = slots.content) === null || _slots$content === void 0 ? void 0 : _slots$content.call(slots);
- var datetime = (_props$datetime = props5.datetime) !== null && _props$datetime !== void 0 ? _props$datetime : (_slots$datetime = slots.datetime) === null || _slots$datetime === void 0 ? void 0 : _slots$datetime.call(slots);
- var avatarDom = createVNode("div", {
- "class": "".concat(pre, "-avatar")
- }, [typeof avatar === "string" ? createVNode("img", {
- "src": avatar,
- "alt": "comment-avatar"
- }, null) : avatar]);
- var actionDom = actions ? createVNode("ul", {
- "class": "".concat(pre, "-actions")
- }, [getAction(Array.isArray(actions) ? actions : [actions])]) : null;
- var authorContent = createVNode("div", {
- "class": "".concat(pre, "-content-author")
- }, [author && createVNode("span", {
- "class": "".concat(pre, "-content-author-name")
- }, [author]), datetime && createVNode("span", {
- "class": "".concat(pre, "-content-author-time")
- }, [datetime])]);
- var contentDom = createVNode("div", {
- "class": "".concat(pre, "-content")
- }, [authorContent, createVNode("div", {
- "class": "".concat(pre, "-content-detail")
- }, [content]), actionDom]);
- var comment = createVNode("div", {
- "class": "".concat(pre, "-inner")
- }, [avatarDom, contentDom]);
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- return createVNode("div", {
- "class": [pre, _defineProperty({}, "".concat(pre, "-rtl"), direction.value === "rtl")]
- }, [comment, children && children.length ? renderNested(pre, children) : null]);
- };
- }
- });
- var comment_default = withInstall(Comment2);
- // node_modules/ant-design-vue/es/date-picker/PickerButton.js
- var PickerButton = function PickerButton2(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- return createVNode(button_default2, _objectSpread2(_objectSpread2({
- "size": "small",
- "type": "primary"
- }, props5), attrs), slots);
- };
- var PickerButton_default = PickerButton;
- // node_modules/ant-design-vue/es/tag/CheckableTag.js
- var checkableTagProps = function checkableTagProps2() {
- return {
- prefixCls: String,
- checked: {
- type: Boolean,
- default: void 0
- },
- onChange: {
- type: Function
- },
- onClick: {
- type: Function
- },
- "onUpdate:checked": Function
- };
- };
- var CheckableTag = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ACheckableTag",
- props: checkableTagProps(),
- // emits: ['update:checked', 'change', 'click'],
- setup: function setup102(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit;
- var _useConfigInject = useConfigInject_default("tag", props5), prefixCls = _useConfigInject.prefixCls;
- var handleClick = function handleClick2(e3) {
- var checked = props5.checked;
- emit("update:checked", !checked);
- emit("change", !checked);
- emit("click", e3);
- };
- var cls = computed(function() {
- var _classNames;
- return classNames_default(prefixCls.value, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-checkable"), true), _defineProperty(_classNames, "".concat(prefixCls.value, "-checkable-checked"), props5.checked), _classNames));
- });
- return function() {
- var _slots$default;
- return createVNode("span", {
- "class": cls.value,
- "onClick": handleClick
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- var CheckableTag_default = CheckableTag;
- // node_modules/ant-design-vue/es/tag/index.js
- var PresetColorRegex2 = new RegExp("^(".concat(PresetColorTypes.join("|"), ")(-inverse)?$"));
- var PresetStatusColorRegex = new RegExp("^(".concat(PresetStatusColorTypes.join("|"), ")$"));
- var tagProps = function tagProps2() {
- return {
- prefixCls: String,
- color: {
- type: String
- },
- closable: {
- type: Boolean,
- default: false
- },
- closeIcon: vue_types_default.any,
- visible: {
- type: Boolean,
- default: void 0
- },
- onClose: {
- type: Function
- },
- "onUpdate:visible": Function,
- icon: vue_types_default.any
- };
- };
- var Tag = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATag",
- props: tagProps(),
- // emits: ['update:visible', 'close'],
- slots: ["closeIcon", "icon"],
- setup: function setup103(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("tag", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var visible = ref(true);
- watchEffect(function() {
- if (props5.visible !== void 0) {
- visible.value = props5.visible;
- }
- });
- var handleCloseClick = function handleCloseClick2(e3) {
- e3.stopPropagation();
- emit("update:visible", false);
- emit("close", e3);
- if (e3.defaultPrevented) {
- return;
- }
- if (props5.visible === void 0) {
- visible.value = false;
- }
- };
- var isPresetColor2 = computed(function() {
- var color = props5.color;
- if (!color) {
- return false;
- }
- return PresetColorRegex2.test(color) || PresetStatusColorRegex.test(color);
- });
- var tagClassName = computed(function() {
- var _classNames;
- return classNames_default(prefixCls.value, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-").concat(props5.color), isPresetColor2.value), _defineProperty(_classNames, "".concat(prefixCls.value, "-has-color"), props5.color && !isPresetColor2.value), _defineProperty(_classNames, "".concat(prefixCls.value, "-hidden"), !visible.value), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _classNames));
- });
- return function() {
- var _slots$icon, _slots$closeIcon, _slots$default;
- var _props$icon = props5.icon, icon = _props$icon === void 0 ? (_slots$icon = slots.icon) === null || _slots$icon === void 0 ? void 0 : _slots$icon.call(slots) : _props$icon, color = props5.color, _props$closeIcon = props5.closeIcon, closeIcon = _props$closeIcon === void 0 ? (_slots$closeIcon = slots.closeIcon) === null || _slots$closeIcon === void 0 ? void 0 : _slots$closeIcon.call(slots) : _props$closeIcon, _props$closable = props5.closable, closable = _props$closable === void 0 ? false : _props$closable;
- var renderCloseIcon = function renderCloseIcon2() {
- if (closable) {
- return closeIcon ? createVNode("span", {
- "class": "".concat(prefixCls.value, "-close-icon"),
- "onClick": handleCloseClick
- }, [closeIcon]) : createVNode(CloseOutlined_default, {
- "class": "".concat(prefixCls.value, "-close-icon"),
- "onClick": handleCloseClick
- }, null);
- }
- return null;
- };
- var tagStyle = {
- backgroundColor: color && !isPresetColor2.value ? color : void 0
- };
- var iconNode = icon || null;
- var children = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- var kids = iconNode ? createVNode(Fragment, null, [iconNode, createVNode("span", null, [children])]) : children;
- var isNeedWave = "onClick" in attrs;
- var tagNode = createVNode("span", {
- "class": tagClassName.value,
- "style": tagStyle
- }, [kids, renderCloseIcon()]);
- return isNeedWave ? createVNode(wave_default, null, {
- default: function _default9() {
- return [tagNode];
- }
- }) : tagNode;
- };
- }
- });
- Tag.CheckableTag = CheckableTag_default;
- Tag.install = function(app) {
- app.component(Tag.name, Tag);
- app.component(CheckableTag_default.name, CheckableTag_default);
- return app;
- };
- var tag_default = Tag;
- // node_modules/ant-design-vue/es/date-picker/PickerTag.js
- function PickerTag(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- return createVNode(tag_default, _objectSpread2(_objectSpread2({
- "color": "blue"
- }, props5), attrs), slots);
- }
- // node_modules/ant-design-vue/es/date-picker/util.js
- function getPlaceholder(picker, locale4, customizePlaceholder) {
- if (customizePlaceholder !== void 0) {
- return customizePlaceholder;
- }
- if (picker === "year" && locale4.lang.yearPlaceholder) {
- return locale4.lang.yearPlaceholder;
- }
- if (picker === "quarter" && locale4.lang.quarterPlaceholder) {
- return locale4.lang.quarterPlaceholder;
- }
- if (picker === "month" && locale4.lang.monthPlaceholder) {
- return locale4.lang.monthPlaceholder;
- }
- if (picker === "week" && locale4.lang.weekPlaceholder) {
- return locale4.lang.weekPlaceholder;
- }
- if (picker === "time" && locale4.timePickerLocale.placeholder) {
- return locale4.timePickerLocale.placeholder;
- }
- return locale4.lang.placeholder;
- }
- function getRangePlaceholder(picker, locale4, customizePlaceholder) {
- if (customizePlaceholder !== void 0) {
- return customizePlaceholder;
- }
- if (picker === "year" && locale4.lang.yearPlaceholder) {
- return locale4.lang.rangeYearPlaceholder;
- }
- if (picker === "month" && locale4.lang.monthPlaceholder) {
- return locale4.lang.rangeMonthPlaceholder;
- }
- if (picker === "week" && locale4.lang.weekPlaceholder) {
- return locale4.lang.rangeWeekPlaceholder;
- }
- if (picker === "time" && locale4.timePickerLocale.placeholder) {
- return locale4.timePickerLocale.rangePlaceholder;
- }
- return locale4.lang.rangePlaceholder;
- }
- // node_modules/ant-design-vue/es/date-picker/generatePicker/props.js
- function commonProps() {
- return {
- id: String,
- dropdownClassName: String,
- dropdownAlign: {
- type: Object
- },
- popupStyle: {
- type: Object
- },
- transitionName: String,
- placeholder: String,
- allowClear: {
- type: Boolean,
- default: void 0
- },
- autofocus: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- tabindex: Number,
- open: {
- type: Boolean,
- default: void 0
- },
- defaultOpen: {
- type: Boolean,
- default: void 0
- },
- /** Make input readOnly to avoid popup keyboard in mobile */
- inputReadOnly: {
- type: Boolean,
- default: void 0
- },
- format: {
- type: [String, Function, Array]
- },
- // Value
- // format: string | CustomFormat<DateType> | (string | CustomFormat<DateType>)[];
- // Render
- // suffixIcon?: VueNode;
- // clearIcon?: VueNode;
- // prevIcon?: VueNode;
- // nextIcon?: VueNode;
- // superPrevIcon?: VueNode;
- // superNextIcon?: VueNode;
- getPopupContainer: {
- type: Function
- },
- panelRender: {
- type: Function
- },
- // // Events
- onChange: {
- type: Function
- },
- "onUpdate:value": {
- type: Function
- },
- onOk: {
- type: Function
- },
- onOpenChange: {
- type: Function
- },
- "onUpdate:open": {
- type: Function
- },
- onFocus: {
- type: Function
- },
- onBlur: {
- type: Function
- },
- onMousedown: {
- type: Function
- },
- onMouseup: {
- type: Function
- },
- onMouseenter: {
- type: Function
- },
- onMouseleave: {
- type: Function
- },
- onClick: {
- type: Function
- },
- onContextmenu: {
- type: Function
- },
- onKeydown: {
- type: Function
- },
- // WAI-ARIA
- role: String,
- name: String,
- autocomplete: String,
- direction: {
- type: String
- },
- showToday: {
- type: Boolean,
- default: void 0
- },
- showTime: {
- type: [Boolean, Object],
- default: void 0
- },
- locale: {
- type: Object
- },
- size: {
- type: String
- },
- bordered: {
- type: Boolean,
- default: void 0
- },
- dateRender: {
- type: Function
- },
- disabledDate: {
- type: Function
- },
- mode: {
- type: String
- },
- picker: {
- type: String
- },
- valueFormat: String,
- /** @deprecated Please use `disabledTime` instead. */
- disabledHours: Function,
- /** @deprecated Please use `disabledTime` instead. */
- disabledMinutes: Function,
- /** @deprecated Please use `disabledTime` instead. */
- disabledSeconds: Function
- };
- }
- function datePickerProps() {
- return {
- defaultPickerValue: {
- type: [String, Object]
- },
- defaultValue: {
- type: [String, Object]
- },
- value: {
- type: [String, Object]
- },
- disabledTime: {
- type: Function
- },
- renderExtraFooter: {
- type: Function
- },
- showNow: {
- type: Boolean,
- default: void 0
- },
- monthCellRender: {
- type: Function
- },
- // deprecated Please use `monthCellRender"` instead.',
- monthCellContentRender: {
- type: Function
- }
- };
- }
- function rangePickerProps() {
- return {
- allowEmpty: {
- type: Array
- },
- dateRender: {
- type: Function
- },
- defaultPickerValue: {
- type: Array
- },
- defaultValue: {
- type: Array
- },
- value: {
- type: Array
- },
- disabledTime: {
- type: Function
- },
- disabled: {
- type: [Boolean, Array]
- },
- renderExtraFooter: {
- type: Function
- },
- separator: {
- type: String
- },
- ranges: {
- type: Object
- },
- placeholder: Array,
- mode: {
- type: Array
- },
- onChange: {
- type: Function
- },
- "onUpdate:value": {
- type: Function
- },
- onCalendarChange: {
- type: Function
- },
- onPanelChange: {
- type: Function
- },
- onOk: {
- type: Function
- }
- };
- }
- // node_modules/ant-design-vue/es/date-picker/generatePicker/generateSinglePicker.js
- var _excluded29 = ["bordered", "placeholder", "suffixIcon", "showToday", "transitionName", "allowClear", "dateRender", "renderExtraFooter", "monthCellRender", "clearIcon", "id"];
- function generateSinglePicker(generateConfig2, extraProps) {
- function getPicker(picker, displayName) {
- var comProps = _objectSpread2(_objectSpread2(_objectSpread2({}, commonProps()), datePickerProps()), extraProps);
- return defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: displayName,
- inheritAttrs: false,
- props: comProps,
- slots: [
- "suffixIcon",
- // 'clearIcon',
- "prevIcon",
- "nextIcon",
- "superPrevIcon",
- "superNextIcon",
- // 'panelRender',
- "dateRender",
- "renderExtraFooter",
- "monthCellRender"
- ],
- setup: function setup220(_props, _ref) {
- var slots = _ref.slots, expose = _ref.expose, attrs = _ref.attrs, emit = _ref.emit;
- var props5 = _props;
- var formItemContext = useInjectFormItemContext();
- devWarning_default(!(props5.monthCellContentRender || slots.monthCellContentRender), "DatePicker", '`monthCellContentRender` is deprecated. Please use `monthCellRender"` instead.');
- devWarning_default(!attrs.getCalendarContainer, "DatePicker", '`getCalendarContainer` is deprecated. Please use `getPopupContainer"` instead.');
- var _useConfigInject = useConfigInject_default("picker", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, getPopupContainer = _useConfigInject.getPopupContainer, size = _useConfigInject.size, rootPrefixCls = _useConfigInject.rootPrefixCls;
- var pickerRef = ref();
- expose({
- focus: function focus() {
- var _pickerRef$value;
- (_pickerRef$value = pickerRef.value) === null || _pickerRef$value === void 0 ? void 0 : _pickerRef$value.focus();
- },
- blur: function blur() {
- var _pickerRef$value2;
- (_pickerRef$value2 = pickerRef.value) === null || _pickerRef$value2 === void 0 ? void 0 : _pickerRef$value2.blur();
- }
- });
- var maybeToString = function maybeToString2(date4) {
- return props5.valueFormat ? generateConfig2.toString(date4, props5.valueFormat) : date4;
- };
- var onChange3 = function onChange4(date4, dateString) {
- var value2 = maybeToString(date4);
- emit("update:value", value2);
- emit("change", value2, dateString);
- formItemContext.onFieldChange();
- };
- var onOpenChange = function onOpenChange2(open2) {
- emit("update:open", open2);
- emit("openChange", open2);
- };
- var onFocus2 = function onFocus3(e3) {
- emit("focus", e3);
- };
- var onBlur2 = function onBlur3(e3) {
- emit("blur", e3);
- formItemContext.onFieldBlur();
- };
- var onPanelChange = function onPanelChange2(date4, mode) {
- var value2 = maybeToString(date4);
- emit("panelChange", value2, mode);
- };
- var onOk = function onOk2(date4) {
- var value2 = maybeToString(date4);
- emit("ok", value2);
- };
- var _useLocaleReceiver = useLocaleReceiver("DatePicker", en_US_default4), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), contextLocale = _useLocaleReceiver2[0];
- var value = computed(function() {
- if (props5.value) {
- return props5.valueFormat ? generateConfig2.toDate(props5.value, props5.valueFormat) : props5.value;
- }
- return props5.value === "" ? void 0 : props5.value;
- });
- var defaultValue = computed(function() {
- if (props5.defaultValue) {
- return props5.valueFormat ? generateConfig2.toDate(props5.defaultValue, props5.valueFormat) : props5.defaultValue;
- }
- return props5.defaultValue === "" ? void 0 : props5.defaultValue;
- });
- var defaultPickerValue = computed(function() {
- if (props5.defaultPickerValue) {
- return props5.valueFormat ? generateConfig2.toDate(props5.defaultPickerValue, props5.valueFormat) : props5.defaultPickerValue;
- }
- return props5.defaultPickerValue === "" ? void 0 : props5.defaultPickerValue;
- });
- return function() {
- var _slots$suffixIcon, _slots$clearIcon, _classNames, _slots$prevIcon, _slots$nextIcon, _slots$superPrevIcon, _slots$superNextIcon;
- var locale4 = _objectSpread2(_objectSpread2({}, contextLocale.value), props5.locale);
- var p = _objectSpread2(_objectSpread2({}, props5), attrs);
- var _p$bordered = p.bordered, bordered = _p$bordered === void 0 ? true : _p$bordered, placeholder = p.placeholder, _p$suffixIcon = p.suffixIcon, suffixIcon = _p$suffixIcon === void 0 ? (_slots$suffixIcon = slots.suffixIcon) === null || _slots$suffixIcon === void 0 ? void 0 : _slots$suffixIcon.call(slots) : _p$suffixIcon, _p$showToday = p.showToday, showToday = _p$showToday === void 0 ? true : _p$showToday, transitionName2 = p.transitionName, _p$allowClear = p.allowClear, allowClear = _p$allowClear === void 0 ? true : _p$allowClear, _p$dateRender = p.dateRender, dateRender = _p$dateRender === void 0 ? slots.dateRender : _p$dateRender, _p$renderExtraFooter = p.renderExtraFooter, renderExtraFooter = _p$renderExtraFooter === void 0 ? slots.renderExtraFooter : _p$renderExtraFooter, _p$monthCellRender = p.monthCellRender, monthCellRender = _p$monthCellRender === void 0 ? slots.monthCellRender || props5.monthCellContentRender || slots.monthCellContentRender : _p$monthCellRender, _p$clearIcon = p.clearIcon, clearIcon = _p$clearIcon === void 0 ? (_slots$clearIcon = slots.clearIcon) === null || _slots$clearIcon === void 0 ? void 0 : _slots$clearIcon.call(slots) : _p$clearIcon, _p$id = p.id, id = _p$id === void 0 ? formItemContext.id.value : _p$id, restProps = _objectWithoutProperties(p, _excluded29);
- var showTime = p.showTime === "" ? true : p.showTime;
- var format4 = p.format;
- var additionalOverrideProps = {};
- if (picker) {
- additionalOverrideProps.picker = picker;
- }
- var mergedPicker = picker || p.picker || "date";
- additionalOverrideProps = _objectSpread2(_objectSpread2(_objectSpread2({}, additionalOverrideProps), showTime ? getTimeProps(_objectSpread2({
- format: format4,
- picker: mergedPicker
- }, _typeof(showTime) === "object" ? showTime : {})) : {}), mergedPicker === "time" ? getTimeProps(_objectSpread2(_objectSpread2({
- format: format4
- }, restProps), {}, {
- picker: mergedPicker
- })) : {});
- var pre = prefixCls.value;
- return createVNode(vc_picker_default, _objectSpread2(_objectSpread2(_objectSpread2({
- "monthCellRender": monthCellRender,
- "dateRender": dateRender,
- "renderExtraFooter": renderExtraFooter,
- "ref": pickerRef,
- "placeholder": getPlaceholder(mergedPicker, locale4, placeholder),
- "suffixIcon": suffixIcon || (mergedPicker === "time" ? createVNode(ClockCircleOutlined_default, null, null) : createVNode(CalendarOutlined_default, null, null)),
- "clearIcon": clearIcon || createVNode(CloseCircleFilled_default, null, null),
- "allowClear": allowClear,
- "transitionName": transitionName2 || "".concat(rootPrefixCls.value, "-slide-up")
- }, restProps), additionalOverrideProps), {}, {
- "id": id,
- "picker": mergedPicker,
- "value": value.value,
- "defaultValue": defaultValue.value,
- "defaultPickerValue": defaultPickerValue.value,
- "showToday": showToday,
- "locale": locale4.lang,
- "class": classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(pre, "-").concat(size.value), size.value), _defineProperty(_classNames, "".concat(pre, "-borderless"), !bordered), _classNames), attrs.class),
- "prefixCls": pre,
- "getPopupContainer": attrs.getCalendarContainer || getPopupContainer.value,
- "generateConfig": generateConfig2,
- "prevIcon": ((_slots$prevIcon = slots.prevIcon) === null || _slots$prevIcon === void 0 ? void 0 : _slots$prevIcon.call(slots)) || createVNode("span", {
- "class": "".concat(pre, "-prev-icon")
- }, null),
- "nextIcon": ((_slots$nextIcon = slots.nextIcon) === null || _slots$nextIcon === void 0 ? void 0 : _slots$nextIcon.call(slots)) || createVNode("span", {
- "class": "".concat(pre, "-next-icon")
- }, null),
- "superPrevIcon": ((_slots$superPrevIcon = slots.superPrevIcon) === null || _slots$superPrevIcon === void 0 ? void 0 : _slots$superPrevIcon.call(slots)) || createVNode("span", {
- "class": "".concat(pre, "-super-prev-icon")
- }, null),
- "superNextIcon": ((_slots$superNextIcon = slots.superNextIcon) === null || _slots$superNextIcon === void 0 ? void 0 : _slots$superNextIcon.call(slots)) || createVNode("span", {
- "class": "".concat(pre, "-super-next-icon")
- }, null),
- "components": Components,
- "direction": direction.value,
- "onChange": onChange3,
- "onOpenChange": onOpenChange,
- "onFocus": onFocus2,
- "onBlur": onBlur2,
- "onPanelChange": onPanelChange,
- "onOk": onOk
- }), null);
- };
- }
- });
- }
- var DatePicker2 = getPicker(void 0, "ADatePicker");
- var WeekPicker2 = getPicker("week", "AWeekPicker");
- var MonthPicker2 = getPicker("month", "AMonthPicker");
- var YearPicker2 = getPicker("year", "AYearPicker");
- var TimePicker3 = getPicker("time", "TimePicker");
- var QuarterPicker2 = getPicker("quarter", "AQuarterPicker");
- return {
- DatePicker: DatePicker2,
- WeekPicker: WeekPicker2,
- MonthPicker: MonthPicker2,
- YearPicker: YearPicker2,
- TimePicker: TimePicker3,
- QuarterPicker: QuarterPicker2
- };
- }
- // node_modules/ant-design-vue/es/date-picker/generatePicker/generateRangePicker.js
- var _excluded30 = ["prefixCls", "bordered", "placeholder", "suffixIcon", "picker", "transitionName", "allowClear", "dateRender", "renderExtraFooter", "separator", "clearIcon", "id"];
- function generateRangePicker(generateConfig2, extraProps) {
- var RangePicker2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ARangePicker",
- inheritAttrs: false,
- props: _objectSpread2(_objectSpread2(_objectSpread2({}, commonProps()), rangePickerProps()), extraProps),
- slots: [
- "suffixIcon",
- // 'clearIcon',
- "prevIcon",
- "nextIcon",
- "superPrevIcon",
- "superNextIcon",
- // 'panelRender',
- "dateRender",
- "renderExtraFooter"
- // 'separator',
- ],
- setup: function setup220(_props, _ref) {
- var expose = _ref.expose, slots = _ref.slots, attrs = _ref.attrs, emit = _ref.emit;
- var props5 = _props;
- var formItemContext = useInjectFormItemContext();
- devWarning_default(!attrs.getCalendarContainer, "DatePicker", '`getCalendarContainer` is deprecated. Please use `getPopupContainer"` instead.');
- var _useConfigInject = useConfigInject_default("picker", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, getPopupContainer = _useConfigInject.getPopupContainer, size = _useConfigInject.size, rootPrefixCls = _useConfigInject.rootPrefixCls;
- var pickerRef = ref();
- expose({
- focus: function focus() {
- var _pickerRef$value;
- (_pickerRef$value = pickerRef.value) === null || _pickerRef$value === void 0 ? void 0 : _pickerRef$value.focus();
- },
- blur: function blur() {
- var _pickerRef$value2;
- (_pickerRef$value2 = pickerRef.value) === null || _pickerRef$value2 === void 0 ? void 0 : _pickerRef$value2.blur();
- }
- });
- var maybeToStrings = function maybeToStrings2(dates) {
- return props5.valueFormat ? generateConfig2.toString(dates, props5.valueFormat) : dates;
- };
- var onChange3 = function onChange4(dates, dateStrings) {
- var values = maybeToStrings(dates);
- emit("update:value", values);
- emit("change", values, dateStrings);
- formItemContext.onFieldChange();
- };
- var onOpenChange = function onOpenChange2(open2) {
- emit("update:open", open2);
- emit("openChange", open2);
- };
- var onFocus2 = function onFocus3(e3) {
- emit("focus", e3);
- };
- var onBlur2 = function onBlur3(e3) {
- emit("blur", e3);
- formItemContext.onFieldBlur();
- };
- var onPanelChange = function onPanelChange2(dates, modes) {
- var values = maybeToStrings(dates);
- emit("panelChange", values, modes);
- };
- var onOk = function onOk2(dates) {
- var value2 = maybeToStrings(dates);
- emit("ok", value2);
- };
- var onCalendarChange = function onCalendarChange2(dates, dateStrings, info) {
- var values = maybeToStrings(dates);
- emit("calendarChange", values, dateStrings, info);
- };
- var _useLocaleReceiver = useLocaleReceiver("DatePicker", en_US_default4), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), contextLocale = _useLocaleReceiver2[0];
- var value = computed(function() {
- if (props5.value) {
- return props5.valueFormat ? generateConfig2.toDate(props5.value, props5.valueFormat) : props5.value;
- }
- return props5.value;
- });
- var defaultValue = computed(function() {
- if (props5.defaultValue) {
- return props5.valueFormat ? generateConfig2.toDate(props5.defaultValue, props5.valueFormat) : props5.defaultValue;
- }
- return props5.defaultValue;
- });
- var defaultPickerValue = computed(function() {
- if (props5.defaultPickerValue) {
- return props5.valueFormat ? generateConfig2.toDate(props5.defaultPickerValue, props5.valueFormat) : props5.defaultPickerValue;
- }
- return props5.defaultPickerValue;
- });
- return function() {
- var _slots$suffixIcon, _slots$separator, _slots$clearIcon, _classNames, _slots$prevIcon, _slots$nextIcon, _slots$superPrevIcon, _slots$superNextIcon;
- var locale4 = _objectSpread2(_objectSpread2({}, contextLocale.value), props5.locale);
- var p = _objectSpread2(_objectSpread2({}, props5), attrs);
- var customizePrefixCls = p.prefixCls, _p$bordered = p.bordered, bordered = _p$bordered === void 0 ? true : _p$bordered, placeholder = p.placeholder, _p$suffixIcon = p.suffixIcon, suffixIcon = _p$suffixIcon === void 0 ? (_slots$suffixIcon = slots.suffixIcon) === null || _slots$suffixIcon === void 0 ? void 0 : _slots$suffixIcon.call(slots) : _p$suffixIcon, _p$picker = p.picker, picker = _p$picker === void 0 ? "date" : _p$picker, transitionName2 = p.transitionName, _p$allowClear = p.allowClear, allowClear = _p$allowClear === void 0 ? true : _p$allowClear, _p$dateRender = p.dateRender, dateRender = _p$dateRender === void 0 ? slots.dateRender : _p$dateRender, _p$renderExtraFooter = p.renderExtraFooter, renderExtraFooter = _p$renderExtraFooter === void 0 ? slots.renderExtraFooter : _p$renderExtraFooter, _p$separator = p.separator, separator = _p$separator === void 0 ? (_slots$separator = slots.separator) === null || _slots$separator === void 0 ? void 0 : _slots$separator.call(slots) : _p$separator, _p$clearIcon = p.clearIcon, clearIcon = _p$clearIcon === void 0 ? (_slots$clearIcon = slots.clearIcon) === null || _slots$clearIcon === void 0 ? void 0 : _slots$clearIcon.call(slots) : _p$clearIcon, _p$id = p.id, id = _p$id === void 0 ? formItemContext.id.value : _p$id, restProps = _objectWithoutProperties(p, _excluded30);
- delete restProps["onUpdate:value"];
- delete restProps["onUpdate:open"];
- var format4 = p.format, showTime = p.showTime;
- var additionalOverrideProps = {};
- additionalOverrideProps = _objectSpread2(_objectSpread2(_objectSpread2({}, additionalOverrideProps), showTime ? getTimeProps(_objectSpread2({
- format: format4,
- picker
- }, showTime)) : {}), picker === "time" ? getTimeProps(_objectSpread2(_objectSpread2({
- format: format4
- }, omit_default(restProps, ["disabledTime"])), {}, {
- picker
- })) : {});
- var pre = prefixCls.value;
- return createVNode(RangePicker_default, _objectSpread2(_objectSpread2(_objectSpread2({
- "dateRender": dateRender,
- "renderExtraFooter": renderExtraFooter,
- "separator": separator || createVNode("span", {
- "aria-label": "to",
- "class": "".concat(pre, "-separator")
- }, [createVNode(SwapRightOutlined_default, null, null)]),
- "ref": pickerRef,
- "placeholder": getRangePlaceholder(picker, locale4, placeholder),
- "suffixIcon": suffixIcon || (picker === "time" ? createVNode(ClockCircleOutlined_default, null, null) : createVNode(CalendarOutlined_default, null, null)),
- "clearIcon": clearIcon || createVNode(CloseCircleFilled_default, null, null),
- "allowClear": allowClear,
- "transitionName": transitionName2 || "".concat(rootPrefixCls.value, "-slide-up")
- }, restProps), additionalOverrideProps), {}, {
- "id": id,
- "value": value.value,
- "defaultValue": defaultValue.value,
- "defaultPickerValue": defaultPickerValue.value,
- "picker": picker,
- "class": classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(pre, "-").concat(size.value), size.value), _defineProperty(_classNames, "".concat(pre, "-borderless"), !bordered), _classNames), attrs.class),
- "locale": locale4.lang,
- "prefixCls": pre,
- "getPopupContainer": attrs.getCalendarContainer || getPopupContainer.value,
- "generateConfig": generateConfig2,
- "prevIcon": ((_slots$prevIcon = slots.prevIcon) === null || _slots$prevIcon === void 0 ? void 0 : _slots$prevIcon.call(slots)) || createVNode("span", {
- "class": "".concat(pre, "-prev-icon")
- }, null),
- "nextIcon": ((_slots$nextIcon = slots.nextIcon) === null || _slots$nextIcon === void 0 ? void 0 : _slots$nextIcon.call(slots)) || createVNode("span", {
- "class": "".concat(pre, "-next-icon")
- }, null),
- "superPrevIcon": ((_slots$superPrevIcon = slots.superPrevIcon) === null || _slots$superPrevIcon === void 0 ? void 0 : _slots$superPrevIcon.call(slots)) || createVNode("span", {
- "class": "".concat(pre, "-super-prev-icon")
- }, null),
- "superNextIcon": ((_slots$superNextIcon = slots.superNextIcon) === null || _slots$superNextIcon === void 0 ? void 0 : _slots$superNextIcon.call(slots)) || createVNode("span", {
- "class": "".concat(pre, "-super-next-icon")
- }, null),
- "components": Components,
- "direction": direction.value,
- "onChange": onChange3,
- "onOpenChange": onOpenChange,
- "onFocus": onFocus2,
- "onBlur": onBlur2,
- "onPanelChange": onPanelChange,
- "onOk": onOk,
- "onCalendarChange": onCalendarChange
- }), null);
- };
- }
- });
- return RangePicker2;
- }
- // node_modules/ant-design-vue/es/date-picker/generatePicker/index.js
- var Components = {
- button: PickerButton_default,
- rangeItem: PickerTag
- };
- function toArray5(list) {
- if (!list) {
- return [];
- }
- return Array.isArray(list) ? list : [list];
- }
- function getTimeProps(props5) {
- var format4 = props5.format, picker = props5.picker, showHour = props5.showHour, showMinute = props5.showMinute, showSecond = props5.showSecond, use12Hours = props5.use12Hours;
- var firstFormat = toArray5(format4)[0];
- var showTimeObj = _objectSpread2({}, props5);
- if (firstFormat && typeof firstFormat === "string") {
- if (!firstFormat.includes("s") && showSecond === void 0) {
- showTimeObj.showSecond = false;
- }
- if (!firstFormat.includes("m") && showMinute === void 0) {
- showTimeObj.showMinute = false;
- }
- if (!firstFormat.includes("H") && !firstFormat.includes("h") && showHour === void 0) {
- showTimeObj.showHour = false;
- }
- if ((firstFormat.includes("a") || firstFormat.includes("A")) && use12Hours === void 0) {
- showTimeObj.use12Hours = true;
- }
- }
- if (picker === "time") {
- return showTimeObj;
- }
- if (typeof firstFormat === "function") {
- delete showTimeObj.format;
- }
- return {
- showTime: showTimeObj
- };
- }
- function generatePicker(generateConfig2, extraProps) {
- var _generateSinglePicker = generateSinglePicker(generateConfig2, extraProps), DatePicker2 = _generateSinglePicker.DatePicker, WeekPicker2 = _generateSinglePicker.WeekPicker, MonthPicker2 = _generateSinglePicker.MonthPicker, YearPicker2 = _generateSinglePicker.YearPicker, TimePicker3 = _generateSinglePicker.TimePicker, QuarterPicker2 = _generateSinglePicker.QuarterPicker;
- var RangePicker2 = generateRangePicker(generateConfig2, extraProps);
- return {
- DatePicker: DatePicker2,
- WeekPicker: WeekPicker2,
- MonthPicker: MonthPicker2,
- YearPicker: YearPicker2,
- TimePicker: TimePicker3,
- QuarterPicker: QuarterPicker2,
- RangePicker: RangePicker2
- };
- }
- var generatePicker_default = generatePicker;
- // node_modules/ant-design-vue/es/date-picker/dayjs.js
- var _generatePicker = generatePicker_default(dayjs_default);
- var DatePicker = _generatePicker.DatePicker;
- var WeekPicker = _generatePicker.WeekPicker;
- var MonthPicker = _generatePicker.MonthPicker;
- var YearPicker = _generatePicker.YearPicker;
- var TimePicker = _generatePicker.TimePicker;
- var QuarterPicker = _generatePicker.QuarterPicker;
- var RangePicker = _generatePicker.RangePicker;
- var dayjs_default3 = _extends(DatePicker, {
- WeekPicker,
- MonthPicker,
- YearPicker,
- RangePicker,
- TimePicker,
- QuarterPicker,
- install: function install2(app) {
- app.component(DatePicker.name, DatePicker);
- app.component(RangePicker.name, RangePicker);
- app.component(MonthPicker.name, MonthPicker);
- app.component(WeekPicker.name, WeekPicker);
- app.component(QuarterPicker.name, QuarterPicker);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/date-picker/index.js
- var date_picker_default = dayjs_default3;
- // node_modules/ant-design-vue/es/descriptions/Cell.js
- function notEmpty(val) {
- return val !== void 0 && val !== null;
- }
- var Cell = function Cell2(props5) {
- var itemPrefixCls = props5.itemPrefixCls, component = props5.component, span = props5.span, labelStyle = props5.labelStyle, contentStyle = props5.contentStyle, bordered = props5.bordered, label = props5.label, content = props5.content, colon = props5.colon;
- var Component = component;
- if (bordered) {
- var _ref;
- return createVNode(Component, {
- "class": [(_ref = {}, _defineProperty(_ref, "".concat(itemPrefixCls, "-item-label"), notEmpty(label)), _defineProperty(_ref, "".concat(itemPrefixCls, "-item-content"), notEmpty(content)), _ref)],
- "colSpan": span
- }, {
- default: function _default9() {
- return [notEmpty(label) && createVNode("span", {
- "style": labelStyle
- }, [label]), notEmpty(content) && createVNode("span", {
- "style": contentStyle
- }, [content])];
- }
- });
- }
- return createVNode(Component, {
- "class": ["".concat(itemPrefixCls, "-item")],
- "colSpan": span
- }, {
- default: function _default9() {
- return [createVNode("div", {
- "class": "".concat(itemPrefixCls, "-item-container")
- }, [label && createVNode("span", {
- "class": ["".concat(itemPrefixCls, "-item-label"), _defineProperty({}, "".concat(itemPrefixCls, "-item-no-colon"), !colon)],
- "style": labelStyle
- }, [label]), content && createVNode("span", {
- "class": "".concat(itemPrefixCls, "-item-content"),
- "style": contentStyle
- }, [content])])];
- }
- });
- };
- var Cell_default = Cell;
- // node_modules/ant-design-vue/es/descriptions/Row.js
- var Row = function Row2(props5) {
- var renderCells = function renderCells2(items, _ref, _ref2) {
- var colon = _ref.colon, prefixCls2 = _ref.prefixCls, bordered2 = _ref.bordered;
- var component = _ref2.component, type4 = _ref2.type, showLabel = _ref2.showLabel, showContent = _ref2.showContent, rootLabelStyle = _ref2.labelStyle, rootContentStyle = _ref2.contentStyle;
- return items.map(function(item, index4) {
- var _item$children, _item$children$label;
- var itemProps = item.props || {};
- var _itemProps$prefixCls = itemProps.prefixCls, itemPrefixCls = _itemProps$prefixCls === void 0 ? prefixCls2 : _itemProps$prefixCls, _itemProps$span = itemProps.span, span = _itemProps$span === void 0 ? 1 : _itemProps$span, _itemProps$labelStyle = itemProps.labelStyle, labelStyle2 = _itemProps$labelStyle === void 0 ? itemProps["label-style"] : _itemProps$labelStyle, _itemProps$contentSty = itemProps.contentStyle, contentStyle2 = _itemProps$contentSty === void 0 ? itemProps["content-style"] : _itemProps$contentSty, _itemProps$label = itemProps.label, label = _itemProps$label === void 0 ? (_item$children = item.children) === null || _item$children === void 0 ? void 0 : (_item$children$label = _item$children.label) === null || _item$children$label === void 0 ? void 0 : _item$children$label.call(_item$children) : _itemProps$label;
- var children = getSlot(item);
- var className = getClass(item);
- var style = getStyle(item);
- var key2 = item.key;
- if (typeof component === "string") {
- return createVNode(Cell_default, {
- "key": "".concat(type4, "-").concat(String(key2) || index4),
- "class": className,
- "style": style,
- "labelStyle": _objectSpread2(_objectSpread2({}, rootLabelStyle), labelStyle2),
- "contentStyle": _objectSpread2(_objectSpread2({}, rootContentStyle), contentStyle2),
- "span": span,
- "colon": colon,
- "component": component,
- "itemPrefixCls": itemPrefixCls,
- "bordered": bordered2,
- "label": showLabel ? label : null,
- "content": showContent ? children : null
- }, null);
- }
- return [createVNode(Cell_default, {
- "key": "label-".concat(String(key2) || index4),
- "class": className,
- "style": _objectSpread2(_objectSpread2(_objectSpread2({}, rootLabelStyle), style), labelStyle2),
- "span": 1,
- "colon": colon,
- "component": component[0],
- "itemPrefixCls": itemPrefixCls,
- "bordered": bordered2,
- "label": label
- }, null), createVNode(Cell_default, {
- "key": "content-".concat(String(key2) || index4),
- "class": className,
- "style": _objectSpread2(_objectSpread2(_objectSpread2({}, rootContentStyle), style), contentStyle2),
- "span": span * 2 - 1,
- "component": component[1],
- "itemPrefixCls": itemPrefixCls,
- "bordered": bordered2,
- "content": children
- }, null)];
- });
- };
- var prefixCls = props5.prefixCls, vertical = props5.vertical, row = props5.row, index3 = props5.index, bordered = props5.bordered;
- var _inject = inject(descriptionsContext, {
- labelStyle: ref({}),
- contentStyle: ref({})
- }), labelStyle = _inject.labelStyle, contentStyle = _inject.contentStyle;
- if (vertical) {
- return createVNode(Fragment, null, [createVNode("tr", {
- "key": "label-".concat(index3),
- "class": "".concat(prefixCls, "-row")
- }, [renderCells(row, props5, {
- component: "th",
- type: "label",
- showLabel: true,
- labelStyle: labelStyle.value,
- contentStyle: contentStyle.value
- })]), createVNode("tr", {
- "key": "content-".concat(index3),
- "class": "".concat(prefixCls, "-row")
- }, [renderCells(row, props5, {
- component: "td",
- type: "content",
- showContent: true,
- labelStyle: labelStyle.value,
- contentStyle: contentStyle.value
- })])]);
- }
- return createVNode("tr", {
- "key": index3,
- "class": "".concat(prefixCls, "-row")
- }, [renderCells(row, props5, {
- component: bordered ? ["th", "td"] : "td",
- type: "item",
- showLabel: true,
- showContent: true,
- labelStyle: labelStyle.value,
- contentStyle: contentStyle.value
- })]);
- };
- var Row_default2 = Row;
- // node_modules/ant-design-vue/es/descriptions/index.js
- var DescriptionsItemProps = {
- prefixCls: String,
- label: vue_types_default.any,
- span: Number
- };
- var descriptionsItemProp = function descriptionsItemProp2() {
- return {
- prefixCls: String,
- label: vue_types_default.any,
- labelStyle: {
- type: Object,
- default: void 0
- },
- contentStyle: {
- type: Object,
- default: void 0
- },
- span: {
- type: Number,
- default: 1
- }
- };
- };
- var DescriptionsItem = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ADescriptionsItem",
- props: descriptionsItemProp(),
- slots: ["label"],
- setup: function setup104(_2, _ref) {
- var slots = _ref.slots;
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- var DEFAULT_COLUMN_MAP = {
- xxxl: 3,
- xxl: 3,
- xl: 3,
- lg: 3,
- md: 3,
- sm: 2,
- xs: 1
- };
- function getColumn(column, screens2) {
- if (typeof column === "number") {
- return column;
- }
- if (_typeof(column) === "object") {
- for (var i3 = 0; i3 < responsiveArray.length; i3++) {
- var breakpoint = responsiveArray[i3];
- if (screens2[breakpoint] && column[breakpoint] !== void 0) {
- return column[breakpoint] || DEFAULT_COLUMN_MAP[breakpoint];
- }
- }
- }
- return 3;
- }
- function getFilledItem(node, span, rowRestCol) {
- var clone2 = node;
- if (span === void 0 || span > rowRestCol) {
- clone2 = cloneElement(node, {
- span: rowRestCol
- });
- warning_default2(span === void 0, "Descriptions", "Sum of column `span` in a line not match `column` of Descriptions.");
- }
- return clone2;
- }
- function getRows(children, column) {
- var childNodes = flattenChildren(children);
- var rows = [];
- var tmpRow = [];
- var rowRestCol = column;
- childNodes.forEach(function(node, index3) {
- var _node$props;
- var span = (_node$props = node.props) === null || _node$props === void 0 ? void 0 : _node$props.span;
- var mergedSpan = span || 1;
- if (index3 === childNodes.length - 1) {
- tmpRow.push(getFilledItem(node, span, rowRestCol));
- rows.push(tmpRow);
- return;
- }
- if (mergedSpan < rowRestCol) {
- rowRestCol -= mergedSpan;
- tmpRow.push(node);
- } else {
- tmpRow.push(getFilledItem(node, mergedSpan, rowRestCol));
- rows.push(tmpRow);
- rowRestCol = column;
- tmpRow = [];
- }
- });
- return rows;
- }
- var descriptionsProps = function descriptionsProps2() {
- return {
- prefixCls: String,
- bordered: {
- type: Boolean,
- default: void 0
- },
- size: {
- type: String,
- default: "default"
- },
- title: vue_types_default.any,
- extra: vue_types_default.any,
- column: {
- type: [Number, Object],
- default: function _default9() {
- return DEFAULT_COLUMN_MAP;
- }
- },
- layout: String,
- colon: {
- type: Boolean,
- default: void 0
- },
- labelStyle: {
- type: Object,
- default: void 0
- },
- contentStyle: {
- type: Object,
- default: void 0
- }
- };
- };
- var descriptionsContext = Symbol("descriptionsContext");
- var Descriptions = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ADescriptions",
- props: descriptionsProps(),
- slots: ["title", "extra"],
- Item: DescriptionsItem,
- setup: function setup105(props5, _ref2) {
- var slots = _ref2.slots;
- var _useConfigInject = useConfigInject_default("descriptions", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var token;
- var screens2 = ref({});
- onBeforeMount(function() {
- token = responsiveObserve_default.subscribe(function(screen) {
- if (_typeof(props5.column) !== "object") {
- return;
- }
- screens2.value = screen;
- });
- });
- onBeforeUnmount(function() {
- responsiveObserve_default.unsubscribe(token);
- });
- provide(descriptionsContext, {
- labelStyle: toRef(props5, "labelStyle"),
- contentStyle: toRef(props5, "contentStyle")
- });
- var mergeColumn = computed(function() {
- return getColumn(props5.column, screens2.value);
- });
- return function() {
- var _slots$title, _slots$extra, _slots$default2, _ref3;
- var size = props5.size, _props$bordered = props5.bordered, bordered = _props$bordered === void 0 ? false : _props$bordered, _props$layout = props5.layout, layout = _props$layout === void 0 ? "horizontal" : _props$layout, _props$colon = props5.colon, colon = _props$colon === void 0 ? true : _props$colon, _props$title = props5.title, title = _props$title === void 0 ? (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots) : _props$title, _props$extra = props5.extra, extra = _props$extra === void 0 ? (_slots$extra = slots.extra) === null || _slots$extra === void 0 ? void 0 : _slots$extra.call(slots) : _props$extra;
- var children = (_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots);
- var rows = getRows(children, mergeColumn.value);
- return createVNode("div", {
- "class": [prefixCls.value, (_ref3 = {}, _defineProperty(_ref3, "".concat(prefixCls.value, "-").concat(size), size !== "default"), _defineProperty(_ref3, "".concat(prefixCls.value, "-bordered"), !!bordered), _defineProperty(_ref3, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _ref3)]
- }, [(title || extra) && createVNode("div", {
- "class": "".concat(prefixCls.value, "-header")
- }, [title && createVNode("div", {
- "class": "".concat(prefixCls.value, "-title")
- }, [title]), extra && createVNode("div", {
- "class": "".concat(prefixCls.value, "-extra")
- }, [extra])]), createVNode("div", {
- "class": "".concat(prefixCls.value, "-view")
- }, [createVNode("table", null, [createVNode("tbody", null, [rows.map(function(row, index3) {
- return createVNode(Row_default2, {
- "key": index3,
- "index": index3,
- "colon": colon,
- "prefixCls": prefixCls.value,
- "vertical": layout === "vertical",
- "bordered": bordered,
- "row": row
- }, null);
- })])])])]);
- };
- }
- });
- Descriptions.install = function(app) {
- app.component(Descriptions.name, Descriptions);
- app.component(Descriptions.Item.name, Descriptions.Item);
- return app;
- };
- var descriptions_default = Descriptions;
- // node_modules/ant-design-vue/es/divider/index.js
- var dividerProps = function dividerProps2() {
- return {
- prefixCls: String,
- type: {
- type: String,
- default: "horizontal"
- },
- dashed: {
- type: Boolean,
- default: false
- },
- orientation: {
- type: String,
- default: "center"
- },
- plain: {
- type: Boolean,
- default: false
- },
- orientationMargin: [String, Number]
- };
- };
- var Divider = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ADivider",
- props: dividerProps(),
- setup: function setup106(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("divider", props5), prefixClsRef = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var hasCustomMarginLeft = computed(function() {
- return props5.orientation === "left" && props5.orientationMargin != null;
- });
- var hasCustomMarginRight = computed(function() {
- return props5.orientation === "right" && props5.orientationMargin != null;
- });
- var classString = computed(function() {
- var _ref2;
- var type4 = props5.type, dashed = props5.dashed, plain = props5.plain;
- var prefixCls = prefixClsRef.value;
- return _ref2 = {}, _defineProperty(_ref2, prefixCls, true), _defineProperty(_ref2, "".concat(prefixCls, "-").concat(type4), true), _defineProperty(_ref2, "".concat(prefixCls, "-dashed"), !!dashed), _defineProperty(_ref2, "".concat(prefixCls, "-plain"), !!plain), _defineProperty(_ref2, "".concat(prefixCls, "-rtl"), direction.value === "rtl"), _defineProperty(_ref2, "".concat(prefixCls, "-no-default-orientation-margin-left"), hasCustomMarginLeft.value), _defineProperty(_ref2, "".concat(prefixCls, "-no-default-orientation-margin-right"), hasCustomMarginRight.value), _ref2;
- });
- var innerStyle = computed(function() {
- var marginValue = typeof props5.orientationMargin === "number" ? "".concat(props5.orientationMargin, "px") : props5.orientationMargin;
- return _objectSpread2(_objectSpread2({}, hasCustomMarginLeft.value && {
- marginLeft: marginValue
- }), hasCustomMarginRight.value && {
- marginRight: marginValue
- });
- });
- var orientationPrefix = computed(function() {
- return props5.orientation.length > 0 ? "-" + props5.orientation : props5.orientation;
- });
- return function() {
- var _slots$default;
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- return createVNode("div", {
- "class": [classString.value, children.length ? "".concat(prefixClsRef.value, "-with-text ").concat(prefixClsRef.value, "-with-text").concat(orientationPrefix.value) : ""],
- "role": "separator"
- }, [children.length ? createVNode("span", {
- "class": "".concat(prefixClsRef.value, "-inner-text"),
- "style": innerStyle.value
- }, [children]) : null]);
- };
- }
- });
- var divider_default = withInstall(Divider);
- // node_modules/ant-design-vue/es/dropdown/index.js
- dropdown_default.Button = dropdown_button_default;
- dropdown_default.install = function(app) {
- app.component(dropdown_default.name, dropdown_default);
- app.component(dropdown_button_default.name, dropdown_button_default);
- return app;
- };
- var dropdown_default2 = dropdown_default;
- // node_modules/ant-design-vue/es/_util/getScrollBarSize.js
- var cached;
- function getScrollBarSize(fresh) {
- if (typeof document === "undefined") {
- return 0;
- }
- if (fresh || cached === void 0) {
- var inner = document.createElement("div");
- inner.style.width = "100%";
- inner.style.height = "200px";
- var outer = document.createElement("div");
- var outerStyle = outer.style;
- outerStyle.position = "absolute";
- outerStyle.top = "0";
- outerStyle.left = "0";
- outerStyle.pointerEvents = "none";
- outerStyle.visibility = "hidden";
- outerStyle.width = "200px";
- outerStyle.height = "150px";
- outerStyle.overflow = "hidden";
- outer.appendChild(inner);
- document.body.appendChild(outer);
- var widthContained = inner.offsetWidth;
- outer.style.overflow = "scroll";
- var widthScroll = inner.offsetWidth;
- if (widthContained === widthScroll) {
- widthScroll = outer.clientWidth;
- }
- document.body.removeChild(outer);
- cached = widthContained - widthScroll;
- }
- return cached;
- }
- function ensureSize(str) {
- var match3 = str.match(/^(.*)px$/);
- var value = Number(match3 === null || match3 === void 0 ? void 0 : match3[1]);
- return Number.isNaN(value) ? getScrollBarSize() : value;
- }
- function getTargetScrollBarSize(target) {
- if (typeof document === "undefined" || !target || !(target instanceof Element)) {
- return {
- width: 0,
- height: 0
- };
- }
- var _getComputedStyle2 = getComputedStyle(target, "::-webkit-scrollbar"), width = _getComputedStyle2.width, height = _getComputedStyle2.height;
- return {
- width: ensureSize(width),
- height: ensureSize(height)
- };
- }
- // node_modules/ant-design-vue/es/vc-drawer/src/IDrawerPropTypes.js
- var props3 = function props4() {
- return {
- prefixCls: String,
- width: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number]),
- height: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number]),
- style: {
- type: Object,
- default: void 0
- },
- class: String,
- placement: {
- type: String
- },
- wrapperClassName: String,
- level: {
- type: [String, Array]
- },
- levelMove: {
- type: [Number, Function, Array]
- },
- duration: String,
- ease: String,
- showMask: {
- type: Boolean,
- default: void 0
- },
- maskClosable: {
- type: Boolean,
- default: void 0
- },
- maskStyle: {
- type: Object,
- default: void 0
- },
- afterVisibleChange: Function,
- keyboard: {
- type: Boolean,
- default: void 0
- },
- contentWrapperStyle: {
- type: Object,
- default: void 0
- },
- autofocus: {
- type: Boolean,
- default: void 0
- },
- open: {
- type: Boolean,
- default: void 0
- }
- };
- };
- var drawerProps = function drawerProps2() {
- return _objectSpread2(_objectSpread2({}, props3()), {}, {
- forceRender: {
- type: Boolean,
- default: void 0
- },
- getContainer: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.func, vue_types_default.object, vue_types_default.looseBool])
- });
- };
- var drawerChildProps = function drawerChildProps2() {
- return _objectSpread2(_objectSpread2({}, props3()), {}, {
- getContainer: Function,
- getOpenCount: Function,
- scrollLocker: vue_types_default.any,
- switchScrollingEffect: Function
- });
- };
- // node_modules/ant-design-vue/es/vc-drawer/src/utils.js
- function dataToArray(vars) {
- if (Array.isArray(vars)) {
- return vars;
- }
- return [vars];
- }
- var transitionEndObject = {
- transition: "transitionend",
- WebkitTransition: "webkitTransitionEnd",
- MozTransition: "transitionend",
- OTransition: "oTransitionEnd otransitionend"
- };
- var transitionStr = Object.keys(transitionEndObject).filter(function(key2) {
- if (typeof document === "undefined") {
- return false;
- }
- var html = document.getElementsByTagName("html")[0];
- return key2 in (html ? html.style : {});
- })[0];
- var transitionEndFun = transitionEndObject[transitionStr];
- function addEventListener3(target, eventType, callback, options) {
- if (target.addEventListener) {
- target.addEventListener(eventType, callback, options);
- } else if (target.attachEvent) {
- target.attachEvent("on".concat(eventType), callback);
- }
- }
- function removeEventListener2(target, eventType, callback, options) {
- if (target.removeEventListener) {
- target.removeEventListener(eventType, callback, options);
- } else if (target.attachEvent) {
- target.detachEvent("on".concat(eventType), callback);
- }
- }
- function transformArguments(arg, cb) {
- var result = typeof arg === "function" ? arg(cb) : arg;
- if (Array.isArray(result)) {
- if (result.length === 2) {
- return result;
- }
- return [result[0], result[1]];
- }
- return [result];
- }
- var isNumeric3 = function isNumeric4(value) {
- return !isNaN(parseFloat(value)) && isFinite(value);
- };
- var windowIsUndefined = !(typeof window !== "undefined" && window.document && window.document.createElement);
- var getTouchParentScroll = function getTouchParentScroll2(root2, currentTarget, differX, differY) {
- if (!currentTarget || currentTarget === document || currentTarget instanceof Document) {
- return false;
- }
- if (currentTarget === root2.parentNode) {
- return true;
- }
- var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
- var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
- var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight;
- var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth;
- var style = document.defaultView.getComputedStyle(currentTarget);
- var overflowY = style.overflowY === "auto" || style.overflowY === "scroll";
- var overflowX = style.overflowX === "auto" || style.overflowX === "scroll";
- var y2 = scrollY && overflowY;
- var x2 = scrollX && overflowX;
- if (isY && (!y2 || y2 && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!x2 || x2 && (currentTarget.scrollLeft >= scrollX && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0))) {
- return getTouchParentScroll2(root2, currentTarget.parentNode, differX, differY);
- }
- return false;
- };
- // node_modules/ant-design-vue/es/vc-drawer/src/DrawerChild.js
- var _excluded31 = ["width", "height", "open", "prefixCls", "placement", "level", "levelMove", "ease", "duration", "getContainer", "onChange", "afterVisibleChange", "showMask", "maskClosable", "maskStyle", "keyboard", "getOpenCount", "scrollLocker", "contentWrapperStyle", "style", "class"];
- var currentDrawer = {};
- var DrawerChild = defineComponent({
- compatConfig: {
- MODE: 3
- },
- inheritAttrs: false,
- props: drawerChildProps(),
- emits: ["close", "handleClick", "change"],
- setup: function setup107(props5, _ref) {
- var emit = _ref.emit, slots = _ref.slots;
- var state = reactive({
- startPos: {
- x: null,
- y: null
- }
- });
- var timeout;
- var contentWrapper = ref();
- var dom = ref();
- var maskDom = ref();
- var handlerDom = ref();
- var contentDom = ref();
- var levelDom = [];
- var drawerId = "drawer_id_".concat(Number((Date.now() + Math.random()).toString().replace(".", Math.round(Math.random() * 9).toString())).toString(16));
- var passive = !windowIsUndefined && supportsPassive_default ? {
- passive: false
- } : false;
- onMounted(function() {
- nextTick(function() {
- var open2 = props5.open, getContainer5 = props5.getContainer, showMask = props5.showMask, autofocus = props5.autofocus;
- var container = getContainer5 === null || getContainer5 === void 0 ? void 0 : getContainer5();
- getLevelDom(props5);
- if (open2) {
- if (container && container.parentNode === document.body) {
- currentDrawer[drawerId] = open2;
- }
- openLevelTransition();
- nextTick(function() {
- if (autofocus) {
- domFocus();
- }
- });
- if (showMask) {
- var _props$scrollLocker;
- (_props$scrollLocker = props5.scrollLocker) === null || _props$scrollLocker === void 0 ? void 0 : _props$scrollLocker.lock();
- }
- }
- });
- });
- watch(function() {
- return props5.level;
- }, function() {
- getLevelDom(props5);
- }, {
- flush: "post"
- });
- watch(function() {
- return props5.open;
- }, function() {
- var open2 = props5.open, getContainer5 = props5.getContainer, scrollLocker = props5.scrollLocker, showMask = props5.showMask, autofocus = props5.autofocus;
- var container = getContainer5 === null || getContainer5 === void 0 ? void 0 : getContainer5();
- if (container && container.parentNode === document.body) {
- currentDrawer[drawerId] = !!open2;
- }
- openLevelTransition();
- if (open2) {
- if (autofocus) {
- domFocus();
- }
- if (showMask) {
- scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.lock();
- }
- } else {
- scrollLocker === null || scrollLocker === void 0 ? void 0 : scrollLocker.unLock();
- }
- }, {
- flush: "post"
- });
- onUnmounted(function() {
- var _props$scrollLocker2;
- var open2 = props5.open;
- delete currentDrawer[drawerId];
- if (open2) {
- setLevelTransform(false);
- document.body.style.touchAction = "";
- }
- (_props$scrollLocker2 = props5.scrollLocker) === null || _props$scrollLocker2 === void 0 ? void 0 : _props$scrollLocker2.unLock();
- });
- watch(function() {
- return props5.placement;
- }, function(val) {
- if (val) {
- contentDom.value = null;
- }
- });
- var domFocus = function domFocus2() {
- var _dom$value, _dom$value$focus;
- (_dom$value = dom.value) === null || _dom$value === void 0 ? void 0 : (_dom$value$focus = _dom$value.focus) === null || _dom$value$focus === void 0 ? void 0 : _dom$value$focus.call(_dom$value);
- };
- var removeStartHandler = function removeStartHandler2(e3) {
- if (e3.touches.length > 1) {
- return;
- }
- state.startPos = {
- x: e3.touches[0].clientX,
- y: e3.touches[0].clientY
- };
- };
- var removeMoveHandler = function removeMoveHandler2(e3) {
- if (e3.changedTouches.length > 1) {
- return;
- }
- var currentTarget = e3.currentTarget;
- var differX = e3.changedTouches[0].clientX - state.startPos.x;
- var differY = e3.changedTouches[0].clientY - state.startPos.y;
- if ((currentTarget === maskDom.value || currentTarget === handlerDom.value || currentTarget === contentDom.value && getTouchParentScroll(currentTarget, e3.target, differX, differY)) && e3.cancelable) {
- e3.preventDefault();
- }
- };
- var transitionEnd = function transitionEnd2(e3) {
- var dom2 = e3.target;
- removeEventListener2(dom2, transitionEndFun, transitionEnd2);
- dom2.style.transition = "";
- };
- var onClose = function onClose2(e3) {
- emit("close", e3);
- };
- var onKeyDown = function onKeyDown2(e3) {
- if (e3.keyCode === KeyCode_default.ESC) {
- e3.stopPropagation();
- onClose(e3);
- }
- };
- var onWrapperTransitionEnd = function onWrapperTransitionEnd2(e3) {
- var open2 = props5.open, afterVisibleChange2 = props5.afterVisibleChange;
- if (e3.target === contentWrapper.value && e3.propertyName.match(/transform$/)) {
- dom.value.style.transition = "";
- if (!open2 && getCurrentDrawerSome()) {
- document.body.style.overflowX = "";
- if (maskDom.value) {
- maskDom.value.style.left = "";
- maskDom.value.style.width = "";
- }
- }
- if (afterVisibleChange2) {
- afterVisibleChange2(!!open2);
- }
- }
- };
- var horizontalBoolAndPlacementName = computed(function() {
- var placement = props5.placement;
- var isHorizontal = placement === "left" || placement === "right";
- var placementName = "translate".concat(isHorizontal ? "X" : "Y");
- return {
- isHorizontal,
- placementName
- };
- });
- var openLevelTransition = function openLevelTransition2() {
- var open2 = props5.open, width = props5.width, height = props5.height;
- var _horizontalBoolAndPla = horizontalBoolAndPlacementName.value, isHorizontal = _horizontalBoolAndPla.isHorizontal, placementName = _horizontalBoolAndPla.placementName;
- var contentValue = contentDom.value ? contentDom.value.getBoundingClientRect()[isHorizontal ? "width" : "height"] : 0;
- var value = (isHorizontal ? width : height) || contentValue;
- setLevelAndScrolling(open2, placementName, value);
- };
- var setLevelTransform = function setLevelTransform2(open2, placementName, value, right) {
- var placement = props5.placement, levelMove = props5.levelMove, duration = props5.duration, ease = props5.ease, showMask = props5.showMask;
- levelDom.forEach(function(dom2) {
- dom2.style.transition = "transform ".concat(duration, " ").concat(ease);
- addEventListener3(dom2, transitionEndFun, transitionEnd);
- var levelValue = open2 ? value : 0;
- if (levelMove) {
- var $levelMove = transformArguments(levelMove, {
- target: dom2,
- open: open2
- });
- levelValue = open2 ? $levelMove[0] : $levelMove[1] || 0;
- }
- var $value = typeof levelValue === "number" ? "".concat(levelValue, "px") : levelValue;
- var placementPos = placement === "left" || placement === "top" ? $value : "-".concat($value);
- placementPos = showMask && placement === "right" && right ? "calc(".concat(placementPos, " + ").concat(right, "px)") : placementPos;
- dom2.style.transform = levelValue ? "".concat(placementName, "(").concat(placementPos, ")") : "";
- });
- };
- var setLevelAndScrolling = function setLevelAndScrolling2(open2, placementName, value) {
- if (!windowIsUndefined) {
- var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? getScrollBarSize(true) : 0;
- setLevelTransform(open2, placementName, value, right);
- toggleScrollingToDrawerAndBody(right);
- }
- emit("change", open2);
- };
- var toggleScrollingToDrawerAndBody = function toggleScrollingToDrawerAndBody2(right) {
- var getContainer5 = props5.getContainer, showMask = props5.showMask, open2 = props5.open;
- var container = getContainer5 === null || getContainer5 === void 0 ? void 0 : getContainer5();
- if (container && container.parentNode === document.body && showMask) {
- var eventArray = ["touchstart"];
- var domArray = [document.body, maskDom.value, handlerDom.value, contentDom.value];
- if (open2 && document.body.style.overflow !== "hidden") {
- if (right) {
- addScrollingEffect(right);
- }
- document.body.style.touchAction = "none";
- domArray.forEach(function(item, i3) {
- if (!item) {
- return;
- }
- addEventListener3(item, eventArray[i3] || "touchmove", i3 ? removeMoveHandler : removeStartHandler, passive);
- });
- } else if (getCurrentDrawerSome()) {
- document.body.style.touchAction = "";
- if (right) {
- remScrollingEffect(right);
- }
- domArray.forEach(function(item, i3) {
- if (!item) {
- return;
- }
- removeEventListener2(item, eventArray[i3] || "touchmove", i3 ? removeMoveHandler : removeStartHandler, passive);
- });
- }
- }
- };
- var addScrollingEffect = function addScrollingEffect2(right) {
- var placement = props5.placement, duration = props5.duration, ease = props5.ease;
- var widthTransition = "width ".concat(duration, " ").concat(ease);
- var transformTransition = "transform ".concat(duration, " ").concat(ease);
- dom.value.style.transition = "none";
- switch (placement) {
- case "right":
- dom.value.style.transform = "translateX(-".concat(right, "px)");
- break;
- case "top":
- case "bottom":
- dom.value.style.width = "calc(100% - ".concat(right, "px)");
- dom.value.style.transform = "translateZ(0)";
- break;
- default:
- break;
- }
- clearTimeout(timeout);
- timeout = setTimeout(function() {
- if (dom.value) {
- dom.value.style.transition = "".concat(transformTransition, ",").concat(widthTransition);
- dom.value.style.width = "";
- dom.value.style.transform = "";
- }
- });
- };
- var remScrollingEffect = function remScrollingEffect2(right) {
- var placement = props5.placement, duration = props5.duration, ease = props5.ease;
- dom.value.style.transition = "none";
- var heightTransition;
- var widthTransition = "width ".concat(duration, " ").concat(ease);
- var transformTransition = "transform ".concat(duration, " ").concat(ease);
- switch (placement) {
- case "left": {
- dom.value.style.width = "100%";
- widthTransition = "width 0s ".concat(ease, " ").concat(duration);
- break;
- }
- case "right": {
- dom.value.style.transform = "translateX(".concat(right, "px)");
- dom.value.style.width = "100%";
- widthTransition = "width 0s ".concat(ease, " ").concat(duration);
- if (maskDom.value) {
- maskDom.value.style.left = "-".concat(right, "px");
- maskDom.value.style.width = "calc(100% + ".concat(right, "px)");
- }
- break;
- }
- case "top":
- case "bottom": {
- dom.value.style.width = "calc(100% + ".concat(right, "px)");
- dom.value.style.height = "100%";
- dom.value.style.transform = "translateZ(0)";
- heightTransition = "height 0s ".concat(ease, " ").concat(duration);
- break;
- }
- default:
- break;
- }
- clearTimeout(timeout);
- timeout = setTimeout(function() {
- if (dom.value) {
- dom.value.style.transition = "".concat(transformTransition, ",").concat(heightTransition ? "".concat(heightTransition, ",") : "").concat(widthTransition);
- dom.value.style.transform = "";
- dom.value.style.width = "";
- dom.value.style.height = "";
- }
- });
- };
- var getCurrentDrawerSome = function getCurrentDrawerSome2() {
- return !Object.keys(currentDrawer).some(function(key2) {
- return currentDrawer[key2];
- });
- };
- var getLevelDom = function getLevelDom2(_ref2) {
- var level = _ref2.level, getContainer5 = _ref2.getContainer;
- if (windowIsUndefined) {
- return;
- }
- var container = getContainer5 === null || getContainer5 === void 0 ? void 0 : getContainer5();
- var parent2 = container ? container.parentNode : null;
- levelDom = [];
- if (level === "all") {
- var children = parent2 ? Array.prototype.slice.call(parent2.children) : [];
- children.forEach(function(child) {
- if (child.nodeName !== "SCRIPT" && child.nodeName !== "STYLE" && child.nodeName !== "LINK" && child !== container) {
- levelDom.push(child);
- }
- });
- } else if (level) {
- dataToArray(level).forEach(function(key2) {
- document.querySelectorAll(key2).forEach(function(item) {
- levelDom.push(item);
- });
- });
- }
- };
- var onHandleClick = function onHandleClick2(e3) {
- emit("handleClick", e3);
- };
- var canOpen = ref(false);
- watch(dom, function() {
- nextTick(function() {
- canOpen.value = true;
- });
- });
- return function() {
- var _classnames, _slots$default, _slots$handler;
- var width = props5.width, height = props5.height, $open = props5.open, prefixCls = props5.prefixCls, placement = props5.placement, level = props5.level, levelMove = props5.levelMove, ease = props5.ease, duration = props5.duration, getContainer5 = props5.getContainer, onChange3 = props5.onChange, afterVisibleChange2 = props5.afterVisibleChange, showMask = props5.showMask, maskClosable = props5.maskClosable, maskStyle = props5.maskStyle, keyboard = props5.keyboard, getOpenCount2 = props5.getOpenCount, scrollLocker = props5.scrollLocker, contentWrapperStyle = props5.contentWrapperStyle, style = props5.style, className = props5.class, otherProps = _objectWithoutProperties(props5, _excluded31);
- var open2 = $open && canOpen.value;
- var wrapperClassName = classNames_default(prefixCls, (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-").concat(placement), true), _defineProperty(_classnames, "".concat(prefixCls, "-open"), open2), _defineProperty(_classnames, className, !!className), _defineProperty(_classnames, "no-mask", !showMask), _classnames));
- var placementName = horizontalBoolAndPlacementName.value.placementName;
- var placementPos = placement === "left" || placement === "top" ? "-100%" : "100%";
- var transform = open2 ? "" : "".concat(placementName, "(").concat(placementPos, ")");
- return createVNode("div", _objectSpread2(_objectSpread2({}, omit_default(otherProps, ["switchScrollingEffect", "autofocus"])), {}, {
- "tabindex": -1,
- "class": wrapperClassName,
- "style": style,
- "ref": dom,
- "onKeydown": open2 && keyboard ? onKeyDown : void 0,
- "onTransitionend": onWrapperTransitionEnd
- }), [showMask && createVNode("div", {
- "class": "".concat(prefixCls, "-mask"),
- "onClick": maskClosable ? onClose : void 0,
- "style": maskStyle,
- "ref": maskDom
- }, null), createVNode("div", {
- "class": "".concat(prefixCls, "-content-wrapper"),
- "style": _objectSpread2({
- transform,
- msTransform: transform,
- width: isNumeric3(width) ? "".concat(width, "px") : width,
- height: isNumeric3(height) ? "".concat(height, "px") : height
- }, contentWrapperStyle),
- "ref": contentWrapper
- }, [createVNode("div", {
- "class": "".concat(prefixCls, "-content"),
- "ref": contentDom
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), slots.handler ? createVNode("div", {
- "onClick": onHandleClick,
- "ref": handlerDom
- }, [(_slots$handler = slots.handler) === null || _slots$handler === void 0 ? void 0 : _slots$handler.call(slots)]) : null])]);
- };
- }
- });
- var DrawerChild_default = DrawerChild;
- // node_modules/ant-design-vue/es/_util/setStyle.js
- function setStyle(style) {
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var _options$element = options.element, element = _options$element === void 0 ? document.body : _options$element;
- var oldStyle = {};
- var styleKeys = Object.keys(style);
- styleKeys.forEach(function(key2) {
- oldStyle[key2] = element.style[key2];
- });
- styleKeys.forEach(function(key2) {
- element.style[key2] = style[key2];
- });
- return oldStyle;
- }
- var setStyle_default = setStyle;
- // node_modules/ant-design-vue/es/_util/switchScrollingEffect.js
- function isBodyOverflowing() {
- return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
- }
- var cacheStyle = {};
- var switchScrollingEffect_default = function(close3) {
- if (!isBodyOverflowing() && !close3) {
- return;
- }
- var scrollingEffectClassName2 = "ant-scrolling-effect";
- var scrollingEffectClassNameReg2 = new RegExp("".concat(scrollingEffectClassName2), "g");
- var bodyClassName = document.body.className;
- if (close3) {
- if (!scrollingEffectClassNameReg2.test(bodyClassName))
- return;
- setStyle_default(cacheStyle);
- cacheStyle = {};
- document.body.className = bodyClassName.replace(scrollingEffectClassNameReg2, "").trim();
- return;
- }
- var scrollBarSize = getScrollBarSize();
- if (scrollBarSize) {
- cacheStyle = setStyle_default({
- position: "relative",
- width: "calc(100% - ".concat(scrollBarSize, "px)")
- });
- if (!scrollingEffectClassNameReg2.test(bodyClassName)) {
- var addClassName = "".concat(bodyClassName, " ").concat(scrollingEffectClassName2);
- document.body.className = addClassName.trim();
- }
- }
- };
- // node_modules/ant-design-vue/es/vc-util/Dom/scrollLocker.js
- var locks = [];
- var scrollingEffectClassName = "ant-scrolling-effect";
- var scrollingEffectClassNameReg = new RegExp("".concat(scrollingEffectClassName), "g");
- var uuid3 = 0;
- var cacheStyle2 = /* @__PURE__ */ new Map();
- var ScrollLocker = _createClass(function ScrollLocker2(_options) {
- var _this = this;
- _classCallCheck(this, ScrollLocker2);
- _defineProperty(this, "getContainer", function() {
- var _this$options;
- return (_this$options = _this.options) === null || _this$options === void 0 ? void 0 : _this$options.container;
- });
- _defineProperty(this, "reLock", function(options) {
- var findLock = locks.find(function(_ref) {
- var target = _ref.target;
- return target === _this.lockTarget;
- });
- if (findLock) {
- _this.unLock();
- }
- _this.options = options;
- if (findLock) {
- findLock.options = options;
- _this.lock();
- }
- });
- _defineProperty(this, "lock", function() {
- var _this$options3;
- if (locks.some(function(_ref2) {
- var target = _ref2.target;
- return target === _this.lockTarget;
- })) {
- return;
- }
- if (locks.some(function(_ref3) {
- var _this$options2;
- var options = _ref3.options;
- return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options2 = _this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.container);
- })) {
- locks = [].concat(_toConsumableArray(locks), [{
- target: _this.lockTarget,
- options: _this.options
- }]);
- return;
- }
- var scrollBarSize = 0;
- var container = ((_this$options3 = _this.options) === null || _this$options3 === void 0 ? void 0 : _this$options3.container) || document.body;
- if (container === document.body && window.innerWidth - document.documentElement.clientWidth > 0 || container.scrollHeight > container.clientHeight) {
- scrollBarSize = getScrollBarSize();
- }
- var containerClassName = container.className;
- if (locks.filter(function(_ref4) {
- var _this$options4;
- var options = _ref4.options;
- return (options === null || options === void 0 ? void 0 : options.container) === ((_this$options4 = _this.options) === null || _this$options4 === void 0 ? void 0 : _this$options4.container);
- }).length === 0) {
- cacheStyle2.set(container, setStyle_default({
- width: scrollBarSize !== 0 ? "calc(100% - ".concat(scrollBarSize, "px)") : void 0,
- overflow: "hidden",
- overflowX: "hidden",
- overflowY: "hidden"
- }, {
- element: container
- }));
- }
- if (!scrollingEffectClassNameReg.test(containerClassName)) {
- var addClassName = "".concat(containerClassName, " ").concat(scrollingEffectClassName);
- container.className = addClassName.trim();
- }
- locks = [].concat(_toConsumableArray(locks), [{
- target: _this.lockTarget,
- options: _this.options
- }]);
- });
- _defineProperty(this, "unLock", function() {
- var _this$options5;
- var findLock = locks.find(function(_ref5) {
- var target = _ref5.target;
- return target === _this.lockTarget;
- });
- locks = locks.filter(function(_ref6) {
- var target = _ref6.target;
- return target !== _this.lockTarget;
- });
- if (!findLock || locks.some(function(_ref7) {
- var _findLock$options;
- var options = _ref7.options;
- return (options === null || options === void 0 ? void 0 : options.container) === ((_findLock$options = findLock.options) === null || _findLock$options === void 0 ? void 0 : _findLock$options.container);
- })) {
- return;
- }
- var container = ((_this$options5 = _this.options) === null || _this$options5 === void 0 ? void 0 : _this$options5.container) || document.body;
- var containerClassName = container.className;
- if (!scrollingEffectClassNameReg.test(containerClassName))
- return;
- setStyle_default(cacheStyle2.get(container), {
- element: container
- });
- cacheStyle2.delete(container);
- container.className = container.className.replace(scrollingEffectClassNameReg, "").trim();
- });
- this.lockTarget = uuid3++;
- this.options = _options;
- });
- // node_modules/ant-design-vue/es/_util/PortalWrapper.js
- var openCount = 0;
- var supportDom = canUseDom_default();
- var cacheOverflow = {};
- var getParent3 = function getParent4(getContainer5) {
- if (!supportDom) {
- return null;
- }
- if (getContainer5) {
- if (typeof getContainer5 === "string") {
- return document.querySelectorAll(getContainer5)[0];
- }
- if (typeof getContainer5 === "function") {
- return getContainer5();
- }
- if (_typeof(getContainer5) === "object" && getContainer5 instanceof window.HTMLElement) {
- return getContainer5;
- }
- }
- return document.body;
- };
- var PortalWrapper_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "PortalWrapper",
- inheritAttrs: false,
- props: {
- wrapperClassName: String,
- forceRender: {
- type: Boolean,
- default: void 0
- },
- getContainer: vue_types_default.any,
- visible: {
- type: Boolean,
- default: void 0
- }
- },
- setup: function setup108(props5, _ref) {
- var slots = _ref.slots;
- var container = ref();
- var componentRef = ref();
- var rafId = ref();
- var scrollLocker = new ScrollLocker({
- container: getParent3(props5.getContainer)
- });
- var removeCurrentContainer = function removeCurrentContainer2() {
- var _container$value, _container$value$pare;
- (_container$value = container.value) === null || _container$value === void 0 ? void 0 : (_container$value$pare = _container$value.parentNode) === null || _container$value$pare === void 0 ? void 0 : _container$value$pare.removeChild(container.value);
- };
- var attachToParent = function attachToParent2() {
- var force = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
- if (force || container.value && !container.value.parentNode) {
- var parent2 = getParent3(props5.getContainer);
- if (parent2) {
- parent2.appendChild(container.value);
- return true;
- }
- return false;
- }
- return true;
- };
- var getContainer5 = function getContainer6() {
- if (!supportDom) {
- return null;
- }
- if (!container.value) {
- container.value = document.createElement("div");
- attachToParent(true);
- }
- setWrapperClassName();
- return container.value;
- };
- var setWrapperClassName = function setWrapperClassName2() {
- var wrapperClassName = props5.wrapperClassName;
- if (container.value && wrapperClassName && wrapperClassName !== container.value.className) {
- container.value.className = wrapperClassName;
- }
- };
- onUpdated(function() {
- setWrapperClassName();
- attachToParent();
- });
- var switchScrolling = function switchScrolling2() {
- if (openCount === 1 && !Object.keys(cacheOverflow).length) {
- switchScrollingEffect_default();
- cacheOverflow = setStyle_default({
- overflow: "hidden",
- overflowX: "hidden",
- overflowY: "hidden"
- });
- } else if (!openCount) {
- setStyle_default(cacheOverflow);
- cacheOverflow = {};
- switchScrollingEffect_default(true);
- }
- };
- var instance = getCurrentInstance();
- onMounted(function() {
- var init = false;
- watch([function() {
- return props5.visible;
- }, function() {
- return props5.getContainer;
- }], function(_ref2, _ref3) {
- var _ref4 = _slicedToArray(_ref2, 2), visible = _ref4[0], getContainer6 = _ref4[1];
- var _ref5 = _slicedToArray(_ref3, 2), prevVisible = _ref5[0], prevGetContainer = _ref5[1];
- if (supportDom && getParent3(props5.getContainer) === document.body) {
- if (visible && !prevVisible) {
- openCount += 1;
- } else if (init) {
- openCount -= 1;
- }
- }
- if (init) {
- var getContainerIsFunc = typeof getContainer6 === "function" && typeof prevGetContainer === "function";
- if (getContainerIsFunc ? getContainer6.toString() !== prevGetContainer.toString() : getContainer6 !== prevGetContainer) {
- removeCurrentContainer();
- }
- if (visible && visible !== prevVisible && supportDom && getParent3(getContainer6) !== scrollLocker.getContainer()) {
- scrollLocker.reLock({
- container: getParent3(getContainer6)
- });
- }
- }
- init = true;
- }, {
- immediate: true,
- flush: "post"
- });
- nextTick(function() {
- if (!attachToParent()) {
- rafId.value = wrapperRaf(function() {
- instance.update();
- });
- }
- });
- });
- onBeforeUnmount(function() {
- var visible = props5.visible, getContainer6 = props5.getContainer;
- if (supportDom && getParent3(getContainer6) === document.body) {
- openCount = visible && openCount ? openCount - 1 : openCount;
- }
- removeCurrentContainer();
- wrapperRaf.cancel(rafId.value);
- });
- return function() {
- var forceRender = props5.forceRender, visible = props5.visible;
- var portal = null;
- var childProps = {
- getOpenCount: function getOpenCount2() {
- return openCount;
- },
- getContainer: getContainer5,
- switchScrollingEffect: switchScrolling,
- scrollLocker
- };
- if (forceRender || visible || componentRef.value) {
- portal = createVNode(Portal_default, {
- "getContainer": getContainer5,
- "ref": componentRef
- }, {
- default: function _default9() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots, childProps);
- }
- });
- }
- return portal;
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-drawer/src/DrawerWrapper.js
- var _excluded33 = ["afterVisibleChange", "getContainer", "wrapperClassName", "forceRender"];
- var _excluded210 = ["visible", "afterClose"];
- var DrawerWrapper = defineComponent({
- compatConfig: {
- MODE: 3
- },
- inheritAttrs: false,
- props: initDefaultProps_default(drawerProps(), {
- prefixCls: "drawer",
- placement: "left",
- getContainer: "body",
- level: "all",
- duration: ".3s",
- ease: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
- afterVisibleChange: function afterVisibleChange() {
- },
- showMask: true,
- maskClosable: true,
- maskStyle: {},
- wrapperClassName: "",
- keyboard: true,
- forceRender: false,
- autofocus: true
- }),
- emits: ["handleClick", "close"],
- slots: ["handler"],
- setup: function setup109(props5, _ref) {
- var emit = _ref.emit, slots = _ref.slots;
- var dom = ref(null);
- var onHandleClick = function onHandleClick2(e3) {
- emit("handleClick", e3);
- };
- var onClose = function onClose2(e3) {
- emit("close", e3);
- };
- return function() {
- var afterVisibleChange2 = props5.afterVisibleChange, getContainer5 = props5.getContainer, wrapperClassName = props5.wrapperClassName, forceRender = props5.forceRender, otherProps = _objectWithoutProperties(props5, _excluded33);
- var portal = null;
- if (!getContainer5) {
- return createVNode("div", {
- "class": wrapperClassName,
- "ref": dom
- }, [createVNode(DrawerChild_default, _objectSpread2(_objectSpread2({}, otherProps), {}, {
- "open": props5.open,
- "getContainer": function getContainer6() {
- return dom.value;
- },
- "onClose": onClose,
- "onHandleClick": onHandleClick
- }), slots)]);
- }
- var $forceRender = !!slots.handler || forceRender;
- if ($forceRender || props5.open || dom.value) {
- portal = createVNode(PortalWrapper_default, {
- "visible": props5.open,
- "forceRender": $forceRender,
- "getContainer": getContainer5,
- "wrapperClassName": wrapperClassName
- }, {
- default: function _default9(_ref2) {
- var visible = _ref2.visible, afterClose = _ref2.afterClose, rest = _objectWithoutProperties(_ref2, _excluded210);
- return createVNode(DrawerChild_default, _objectSpread2(_objectSpread2(_objectSpread2({
- "ref": dom
- }, otherProps), rest), {}, {
- "open": visible !== void 0 ? visible : props5.open,
- "afterVisibleChange": afterClose !== void 0 ? afterClose : props5.afterVisibleChange,
- "onClose": onClose,
- "onHandleClick": onHandleClick
- }), slots);
- }
- });
- }
- return portal;
- };
- }
- });
- var DrawerWrapper_default = DrawerWrapper;
- // node_modules/ant-design-vue/es/vc-drawer/index.js
- var vc_drawer_default = DrawerWrapper_default;
- // node_modules/ant-design-vue/es/drawer/index.js
- var _excluded34 = ["width", "height", "visible", "placement", "mask", "wrapClassName", "class"];
- var PlacementTypes = tuple("top", "right", "bottom", "left");
- var SizeTypes = tuple("default", "large");
- var defaultPushState = {
- distance: 180
- };
- var drawerProps3 = function drawerProps4() {
- return {
- autofocus: {
- type: Boolean,
- default: void 0
- },
- closable: {
- type: Boolean,
- default: void 0
- },
- closeIcon: vue_types_default.any,
- destroyOnClose: {
- type: Boolean,
- default: void 0
- },
- forceRender: {
- type: Boolean,
- default: void 0
- },
- getContainer: vue_types_default.any,
- maskClosable: {
- type: Boolean,
- default: void 0
- },
- mask: {
- type: Boolean,
- default: void 0
- },
- maskStyle: {
- type: Object,
- default: void 0
- },
- /** @deprecated Use `style` instead */
- wrapStyle: {
- type: Object,
- default: void 0
- },
- style: {
- type: Object,
- default: void 0
- },
- class: vue_types_default.any,
- /** @deprecated Use `class` instead */
- wrapClassName: String,
- size: {
- type: String
- },
- drawerStyle: {
- type: Object,
- default: void 0
- },
- headerStyle: {
- type: Object,
- default: void 0
- },
- bodyStyle: {
- type: Object,
- default: void 0
- },
- contentWrapperStyle: {
- type: Object,
- default: void 0
- },
- title: vue_types_default.any,
- visible: {
- type: Boolean,
- default: void 0
- },
- width: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number]),
- height: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number]),
- zIndex: Number,
- prefixCls: String,
- push: vue_types_default.oneOfType([vue_types_default.looseBool, {
- type: Object
- }]),
- placement: vue_types_default.oneOf(PlacementTypes),
- keyboard: {
- type: Boolean,
- default: void 0
- },
- extra: vue_types_default.any,
- footer: vue_types_default.any,
- footerStyle: {
- type: Object,
- default: void 0
- },
- level: vue_types_default.any,
- levelMove: {
- type: [Number, Array, Function]
- },
- handle: vue_types_default.any,
- /** @deprecated Use `@afterVisibleChange` instead */
- afterVisibleChange: Function,
- onAfterVisibleChange: Function,
- "onUpdate:visible": Function,
- onClose: Function
- };
- };
- var Drawer = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ADrawer",
- inheritAttrs: false,
- props: initDefaultProps_default(drawerProps3(), {
- closable: true,
- placement: "right",
- maskClosable: true,
- mask: true,
- level: null,
- keyboard: true,
- push: defaultPushState
- }),
- slots: ["closeIcon", "title", "extra", "footer", "handle"],
- // emits: ['update:visible', 'close', 'afterVisibleChange'],
- setup: function setup110(props5, _ref) {
- var emit = _ref.emit, slots = _ref.slots, attrs = _ref.attrs;
- var sPush = ref(false);
- var destroyClose = ref(false);
- var vcDrawer = ref(null);
- var parentDrawerOpts = inject("parentDrawerOpts", null);
- var _useConfigInject = useConfigInject_default("drawer", props5), prefixCls = _useConfigInject.prefixCls;
- devWarning_default(!props5.afterVisibleChange, "Drawer", "`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead");
- devWarning_default(props5.wrapStyle === void 0, "Drawer", "`wrapStyle` prop is deprecated, please use `style` instead");
- devWarning_default(props5.wrapClassName === void 0, "Drawer", "`wrapClassName` prop is deprecated, please use `class` instead");
- var setPush = function setPush2() {
- sPush.value = true;
- };
- var setPull = function setPull2() {
- sPush.value = false;
- nextTick(function() {
- domFocus();
- });
- };
- provide("parentDrawerOpts", {
- setPush,
- setPull
- });
- onMounted(function() {
- var visible = props5.visible;
- if (visible && parentDrawerOpts) {
- parentDrawerOpts.setPush();
- }
- });
- onUnmounted(function() {
- if (parentDrawerOpts) {
- parentDrawerOpts.setPull();
- }
- });
- watch(function() {
- return props5.visible;
- }, function(visible) {
- if (parentDrawerOpts) {
- if (visible) {
- parentDrawerOpts.setPush();
- } else {
- parentDrawerOpts.setPull();
- }
- }
- }, {
- flush: "post"
- });
- var domFocus = function domFocus2() {
- var _vcDrawer$value, _vcDrawer$value$domFo;
- (_vcDrawer$value = vcDrawer.value) === null || _vcDrawer$value === void 0 ? void 0 : (_vcDrawer$value$domFo = _vcDrawer$value.domFocus) === null || _vcDrawer$value$domFo === void 0 ? void 0 : _vcDrawer$value$domFo.call(_vcDrawer$value);
- };
- var close3 = function close4(e3) {
- emit("update:visible", false);
- emit("close", e3);
- };
- var afterVisibleChange2 = function afterVisibleChange3(visible) {
- var _props$afterVisibleCh;
- (_props$afterVisibleCh = props5.afterVisibleChange) === null || _props$afterVisibleCh === void 0 ? void 0 : _props$afterVisibleCh.call(props5, visible);
- emit("afterVisibleChange", visible);
- };
- var destroyOnClose = computed(function() {
- return props5.destroyOnClose && !props5.visible;
- });
- var onDestroyTransitionEnd = function onDestroyTransitionEnd2() {
- var isDestroyOnClose = destroyOnClose.value;
- if (!isDestroyOnClose) {
- return;
- }
- if (!props5.visible) {
- destroyClose.value = true;
- }
- };
- var pushTransform = computed(function() {
- var push = props5.push, placement = props5.placement;
- var distance;
- if (typeof push === "boolean") {
- distance = push ? defaultPushState.distance : 0;
- } else {
- distance = push.distance;
- }
- distance = parseFloat(String(distance || 0));
- if (placement === "left" || placement === "right") {
- return "translateX(".concat(placement === "left" ? distance : -distance, "px)");
- }
- if (placement === "top" || placement === "bottom") {
- return "translateY(".concat(placement === "top" ? distance : -distance, "px)");
- }
- return null;
- });
- var offsetStyle = computed(function() {
- var visible = props5.visible, mask = props5.mask, placement = props5.placement, _props$size = props5.size, size = _props$size === void 0 ? "default" : _props$size, width = props5.width, height = props5.height;
- if (!visible && !mask) {
- return {};
- }
- var val = {};
- if (placement === "left" || placement === "right") {
- var defaultWidth = size === "large" ? 736 : 378;
- val.width = typeof width === "undefined" ? defaultWidth : width;
- val.width = typeof val.width === "string" ? val.width : "".concat(val.width, "px");
- } else {
- var defaultHeight = size === "large" ? 736 : 378;
- val.height = typeof height === "undefined" ? defaultHeight : height;
- val.height = typeof val.height === "string" ? val.height : "".concat(val.height, "px");
- }
- return val;
- });
- var drawerStyle = computed(function() {
- var zIndex = props5.zIndex, wrapStyle = props5.wrapStyle, mask = props5.mask, style = props5.style;
- var val = mask ? {} : offsetStyle.value;
- return _objectSpread2(_objectSpread2(_objectSpread2({
- zIndex,
- transform: sPush.value ? pushTransform.value : void 0
- }, val), wrapStyle), style);
- });
- var renderHeader = function renderHeader2(prefixCls2) {
- var closable = props5.closable, headerStyle = props5.headerStyle;
- var extra = getPropsSlot(slots, props5, "extra");
- var title = getPropsSlot(slots, props5, "title");
- if (!title && !closable) {
- return null;
- }
- return createVNode("div", {
- "class": classNames_default("".concat(prefixCls2, "-header"), _defineProperty({}, "".concat(prefixCls2, "-header-close-only"), closable && !title && !extra)),
- "style": headerStyle
- }, [createVNode("div", {
- "class": "".concat(prefixCls2, "-header-title")
- }, [renderCloseIcon(prefixCls2), title && createVNode("div", {
- "class": "".concat(prefixCls2, "-title")
- }, [title])]), extra && createVNode("div", {
- "class": "".concat(prefixCls2, "-extra")
- }, [extra])]);
- };
- var renderCloseIcon = function renderCloseIcon2(prefixCls2) {
- var _slots$closeIcon;
- var closable = props5.closable;
- var $closeIcon = slots.closeIcon ? (_slots$closeIcon = slots.closeIcon) === null || _slots$closeIcon === void 0 ? void 0 : _slots$closeIcon.call(slots) : props5.closeIcon;
- return closable && createVNode("button", {
- "key": "closer",
- "onClick": close3,
- "aria-label": "Close",
- "class": "".concat(prefixCls2, "-close")
- }, [$closeIcon === void 0 ? createVNode(CloseOutlined_default, null, null) : $closeIcon]);
- };
- var renderBody = function renderBody2(prefixCls2) {
- var _slots$default;
- if (destroyClose.value && !props5.visible) {
- return null;
- }
- destroyClose.value = false;
- var bodyStyle = props5.bodyStyle, drawerStyle2 = props5.drawerStyle;
- var containerStyle = {};
- var isDestroyOnClose = destroyOnClose.value;
- if (isDestroyOnClose) {
- containerStyle.opacity = 0;
- containerStyle.transition = "opacity .3s";
- }
- return createVNode("div", {
- "class": "".concat(prefixCls2, "-wrapper-body"),
- "style": _objectSpread2(_objectSpread2({}, containerStyle), drawerStyle2),
- "onTransitionend": onDestroyTransitionEnd
- }, [renderHeader(prefixCls2), createVNode("div", {
- "key": "body",
- "class": "".concat(prefixCls2, "-body"),
- "style": bodyStyle
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), renderFooter(prefixCls2)]);
- };
- var renderFooter = function renderFooter2(prefixCls2) {
- var footer = getPropsSlot(slots, props5, "footer");
- if (!footer) {
- return null;
- }
- var footerClassName = "".concat(prefixCls2, "-footer");
- return createVNode("div", {
- "class": footerClassName,
- "style": props5.footerStyle
- }, [footer]);
- };
- return function() {
- var _classnames2;
- var width = props5.width, height = props5.height, visible = props5.visible, placement = props5.placement, mask = props5.mask, wrapClassName = props5.wrapClassName, className = props5.class, rest = _objectWithoutProperties(props5, _excluded34);
- var val = mask ? offsetStyle.value : {};
- var haveMask = mask ? "" : "no-mask";
- var vcDrawerProps = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, attrs), omit_default(rest, ["size", "closeIcon", "closable", "destroyOnClose", "drawerStyle", "headerStyle", "bodyStyle", "title", "push", "wrapStyle", "onAfterVisibleChange", "onClose", "onUpdate:visible"])), val), {}, {
- onClose: close3,
- afterVisibleChange: afterVisibleChange2,
- handler: false,
- prefixCls: prefixCls.value,
- open: visible,
- showMask: mask,
- placement,
- class: classNames_default((_classnames2 = {}, _defineProperty(_classnames2, className, className), _defineProperty(_classnames2, wrapClassName, !!wrapClassName), _defineProperty(_classnames2, haveMask, !!haveMask), _classnames2)),
- style: drawerStyle.value,
- ref: vcDrawer
- });
- return createVNode(vc_drawer_default, vcDrawerProps, {
- handler: props5.handle ? function() {
- return props5.handle;
- } : slots.handle,
- default: function _default9() {
- return renderBody(prefixCls.value);
- }
- });
- };
- }
- });
- var drawer_default = withInstall(Drawer);
- // node_modules/ant-design-vue/es/input/inputProps.js
- var inputDefaultValue = Symbol();
- var inputProps2 = function inputProps3() {
- return {
- id: String,
- prefixCls: String,
- inputPrefixCls: String,
- defaultValue: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number]),
- value: {
- type: [String, Number, Symbol],
- default: void 0
- },
- placeholder: {
- type: [String, Number]
- },
- autocomplete: String,
- type: {
- type: String,
- default: "text"
- },
- name: String,
- size: {
- type: String
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- readonly: {
- type: Boolean,
- default: void 0
- },
- addonBefore: vue_types_default.any,
- addonAfter: vue_types_default.any,
- prefix: vue_types_default.any,
- suffix: vue_types_default.any,
- autofocus: {
- type: Boolean,
- default: void 0
- },
- allowClear: {
- type: Boolean,
- default: void 0
- },
- lazy: {
- type: Boolean,
- default: true
- },
- maxlength: Number,
- loading: {
- type: Boolean,
- default: void 0
- },
- bordered: {
- type: Boolean,
- default: void 0
- },
- showCount: {
- type: [Boolean, Object]
- },
- htmlSize: Number,
- onPressEnter: Function,
- onKeydown: Function,
- onKeyup: Function,
- onFocus: Function,
- onBlur: Function,
- onChange: Function,
- onInput: Function,
- "onUpdate:value": Function,
- valueModifiers: Object,
- hidden: Boolean
- };
- };
- var inputProps_default = inputProps2;
- var textAreaProps = function textAreaProps2() {
- return _objectSpread2(_objectSpread2({}, omit_default(inputProps2(), ["prefix", "addonBefore", "addonAfter", "suffix"])), {}, {
- rows: Number,
- autosize: {
- type: [Boolean, Object],
- default: void 0
- },
- autoSize: {
- type: [Boolean, Object],
- default: void 0
- },
- onResize: {
- type: Function
- },
- onCompositionstart: Function,
- onCompositionend: Function,
- valueModifiers: Object
- });
- };
- // node_modules/ant-design-vue/es/input/util.js
- function getInputClassName(prefixCls, bordered, size, disabled, direction) {
- var _classNames;
- return classNames_default(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-sm"), size === "small"), _defineProperty(_classNames, "".concat(prefixCls, "-lg"), size === "large"), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === "rtl"), _defineProperty(_classNames, "".concat(prefixCls, "-borderless"), !bordered), _classNames));
- }
- var isValid3 = function isValid4(value) {
- return value !== void 0 && value !== null && (Array.isArray(value) ? filterEmpty(value).length : true);
- };
- function hasPrefixSuffix(propsAndSlots) {
- return isValid3(propsAndSlots.prefix) || isValid3(propsAndSlots.suffix) || isValid3(propsAndSlots.allowClear);
- }
- function hasAddon(propsAndSlots) {
- return isValid3(propsAndSlots.addonBefore) || isValid3(propsAndSlots.addonAfter);
- }
- // node_modules/ant-design-vue/es/input/ClearableLabeledInput.js
- var ClearableInputType = ["text", "input"];
- var ClearableLabeledInput_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ClearableLabeledInput",
- inheritAttrs: false,
- props: {
- prefixCls: String,
- inputType: vue_types_default.oneOf(tuple("text", "input")),
- value: vue_types_default.any,
- defaultValue: vue_types_default.any,
- allowClear: {
- type: Boolean,
- default: void 0
- },
- element: vue_types_default.any,
- handleReset: Function,
- disabled: {
- type: Boolean,
- default: void 0
- },
- direction: {
- type: String
- },
- size: {
- type: String
- },
- suffix: vue_types_default.any,
- prefix: vue_types_default.any,
- addonBefore: vue_types_default.any,
- addonAfter: vue_types_default.any,
- readonly: {
- type: Boolean,
- default: void 0
- },
- focused: {
- type: Boolean,
- default: void 0
- },
- bordered: {
- type: Boolean,
- default: true
- },
- triggerFocus: {
- type: Function
- },
- hidden: Boolean
- },
- setup: function setup111(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var containerRef = ref();
- var onInputMouseUp = function onInputMouseUp2(e3) {
- var _containerRef$value;
- if ((_containerRef$value = containerRef.value) !== null && _containerRef$value !== void 0 && _containerRef$value.contains(e3.target)) {
- var triggerFocus2 = props5.triggerFocus;
- triggerFocus2 === null || triggerFocus2 === void 0 ? void 0 : triggerFocus2();
- }
- };
- var renderClearIcon = function renderClearIcon2(prefixCls) {
- var _classNames;
- var allowClear = props5.allowClear, value = props5.value, disabled = props5.disabled, readonly = props5.readonly, handleReset = props5.handleReset, _props$suffix = props5.suffix, suffix = _props$suffix === void 0 ? slots.suffix : _props$suffix;
- if (!allowClear) {
- return null;
- }
- var needClear = !disabled && !readonly && value;
- var className = "".concat(prefixCls, "-clear-icon");
- return createVNode(CloseCircleFilled_default, {
- "onClick": handleReset,
- "onMousedown": function onMousedown2(e3) {
- return e3.preventDefault();
- },
- "class": classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(className, "-hidden"), !needClear), _defineProperty(_classNames, "".concat(className, "-has-suffix"), !!suffix), _classNames), className),
- "role": "button"
- }, null);
- };
- var renderSuffix = function renderSuffix2(prefixCls) {
- var _slots$suffix;
- var _props$suffix2 = props5.suffix, suffix = _props$suffix2 === void 0 ? (_slots$suffix = slots.suffix) === null || _slots$suffix === void 0 ? void 0 : _slots$suffix.call(slots) : _props$suffix2, allowClear = props5.allowClear;
- if (suffix || allowClear) {
- return createVNode("span", {
- "class": "".concat(prefixCls, "-suffix")
- }, [renderClearIcon(prefixCls), suffix]);
- }
- return null;
- };
- var renderLabeledIcon = function renderLabeledIcon2(prefixCls, element) {
- var _slots$prefix, _slots$suffix2, _classNames2;
- var focused = props5.focused, value = props5.value, _props$prefix = props5.prefix, prefix = _props$prefix === void 0 ? (_slots$prefix = slots.prefix) === null || _slots$prefix === void 0 ? void 0 : _slots$prefix.call(slots) : _props$prefix, size = props5.size, _props$suffix3 = props5.suffix, suffix = _props$suffix3 === void 0 ? (_slots$suffix2 = slots.suffix) === null || _slots$suffix2 === void 0 ? void 0 : _slots$suffix2.call(slots) : _props$suffix3, disabled = props5.disabled, allowClear = props5.allowClear, direction = props5.direction, readonly = props5.readonly, bordered = props5.bordered, hidden = props5.hidden, _props$addonAfter = props5.addonAfter, addonAfter = _props$addonAfter === void 0 ? slots.addonAfter : _props$addonAfter, _props$addonBefore = props5.addonBefore, addonBefore = _props$addonBefore === void 0 ? slots.addonBefore : _props$addonBefore;
- var suffixNode = renderSuffix(prefixCls);
- if (!hasPrefixSuffix({
- prefix,
- suffix,
- allowClear
- })) {
- return cloneElement(element, {
- value
- });
- }
- var prefixNode = prefix ? createVNode("span", {
- "class": "".concat(prefixCls, "-prefix")
- }, [prefix]) : null;
- var affixWrapperCls = classNames_default("".concat(prefixCls, "-affix-wrapper"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-affix-wrapper-focused"), focused), _defineProperty(_classNames2, "".concat(prefixCls, "-affix-wrapper-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-affix-wrapper-sm"), size === "small"), _defineProperty(_classNames2, "".concat(prefixCls, "-affix-wrapper-lg"), size === "large"), _defineProperty(_classNames2, "".concat(prefixCls, "-affix-wrapper-input-with-clear-btn"), suffix && allowClear && value), _defineProperty(_classNames2, "".concat(prefixCls, "-affix-wrapper-rtl"), direction === "rtl"), _defineProperty(_classNames2, "".concat(prefixCls, "-affix-wrapper-readonly"), readonly), _defineProperty(_classNames2, "".concat(prefixCls, "-affix-wrapper-borderless"), !bordered), _defineProperty(_classNames2, "".concat(attrs.class), !hasAddon({
- addonAfter,
- addonBefore
- }) && attrs.class), _classNames2));
- return createVNode("span", {
- "ref": containerRef,
- "class": affixWrapperCls,
- "style": attrs.style,
- "onMouseup": onInputMouseUp,
- "hidden": hidden
- }, [prefixNode, cloneElement(element, {
- style: null,
- value,
- class: getInputClassName(prefixCls, bordered, size, disabled)
- }), suffixNode]);
- };
- var renderInputWithLabel = function renderInputWithLabel2(prefixCls, labeledElement) {
- var _slots$addonBefore, _slots$addonAfter, _classNames5;
- var _props$addonBefore2 = props5.addonBefore, addonBefore = _props$addonBefore2 === void 0 ? (_slots$addonBefore = slots.addonBefore) === null || _slots$addonBefore === void 0 ? void 0 : _slots$addonBefore.call(slots) : _props$addonBefore2, _props$addonAfter2 = props5.addonAfter, addonAfter = _props$addonAfter2 === void 0 ? (_slots$addonAfter = slots.addonAfter) === null || _slots$addonAfter === void 0 ? void 0 : _slots$addonAfter.call(slots) : _props$addonAfter2, size = props5.size, direction = props5.direction, hidden = props5.hidden, disabled = props5.disabled;
- if (!hasAddon({
- addonBefore,
- addonAfter
- })) {
- return labeledElement;
- }
- var wrapperClassName = "".concat(prefixCls, "-group");
- var addonClassName = "".concat(wrapperClassName, "-addon");
- var mergedAddonClassName = classNames_default(addonClassName, _defineProperty({}, "".concat(addonClassName, "-disabled"), disabled));
- var addonBeforeNode = addonBefore ? createVNode("span", {
- "class": mergedAddonClassName
- }, [addonBefore]) : null;
- var addonAfterNode = addonAfter ? createVNode("span", {
- "class": mergedAddonClassName
- }, [addonAfter]) : null;
- var mergedWrapperClassName = classNames_default("".concat(prefixCls, "-wrapper"), wrapperClassName, _defineProperty({}, "".concat(wrapperClassName, "-rtl"), direction === "rtl"));
- var mergedGroupClassName = classNames_default("".concat(prefixCls, "-group-wrapper"), (_classNames5 = {}, _defineProperty(_classNames5, "".concat(prefixCls, "-group-wrapper-sm"), size === "small"), _defineProperty(_classNames5, "".concat(prefixCls, "-group-wrapper-lg"), size === "large"), _defineProperty(_classNames5, "".concat(prefixCls, "-group-wrapper-rtl"), direction === "rtl"), _classNames5), attrs.class);
- return createVNode("span", {
- "class": mergedGroupClassName,
- "style": attrs.style,
- "hidden": hidden
- }, [createVNode("span", {
- "class": mergedWrapperClassName
- }, [addonBeforeNode, cloneElement(labeledElement, {
- style: null
- }), addonAfterNode])]);
- };
- var renderTextAreaWithClearIcon = function renderTextAreaWithClearIcon2(prefixCls, element) {
- var _classNames6;
- var value = props5.value, allowClear = props5.allowClear, direction = props5.direction, bordered = props5.bordered, hidden = props5.hidden, _props$addonAfter3 = props5.addonAfter, addonAfter = _props$addonAfter3 === void 0 ? slots.addonAfter : _props$addonAfter3, _props$addonBefore3 = props5.addonBefore, addonBefore = _props$addonBefore3 === void 0 ? slots.addonBefore : _props$addonBefore3;
- if (!allowClear) {
- return cloneElement(element, {
- value
- });
- }
- var affixWrapperCls = classNames_default("".concat(prefixCls, "-affix-wrapper"), "".concat(prefixCls, "-affix-wrapper-textarea-with-clear-btn"), (_classNames6 = {}, _defineProperty(_classNames6, "".concat(prefixCls, "-affix-wrapper-rtl"), direction === "rtl"), _defineProperty(_classNames6, "".concat(prefixCls, "-affix-wrapper-borderless"), !bordered), _defineProperty(_classNames6, "".concat(attrs.class), !hasAddon({
- addonAfter,
- addonBefore
- }) && attrs.class), _classNames6));
- return createVNode("span", {
- "class": affixWrapperCls,
- "style": attrs.style,
- "hidden": hidden
- }, [cloneElement(element, {
- style: null,
- value
- }), renderClearIcon(prefixCls)]);
- };
- return function() {
- var _slots$element;
- var prefixCls = props5.prefixCls, inputType = props5.inputType, _props$element = props5.element, element = _props$element === void 0 ? (_slots$element = slots.element) === null || _slots$element === void 0 ? void 0 : _slots$element.call(slots) : _props$element;
- if (inputType === ClearableInputType[0]) {
- return renderTextAreaWithClearIcon(prefixCls, element);
- }
- return renderInputWithLabel(prefixCls, renderLabeledIcon(prefixCls, element));
- };
- }
- });
- // node_modules/ant-design-vue/es/input/Input.js
- function fixControlledValue(value) {
- if (typeof value === "undefined" || value === null) {
- return "";
- }
- return String(value);
- }
- function resolveOnChange(target, e3, onChange3, targetValue) {
- if (!onChange3) {
- return;
- }
- var event = e3;
- if (e3.type === "click") {
- Object.defineProperty(event, "target", {
- writable: true
- });
- Object.defineProperty(event, "currentTarget", {
- writable: true
- });
- var currentTarget = target.cloneNode(true);
- event.target = currentTarget;
- event.currentTarget = currentTarget;
- currentTarget.value = "";
- onChange3(event);
- return;
- }
- if (targetValue !== void 0) {
- Object.defineProperty(event, "target", {
- writable: true
- });
- Object.defineProperty(event, "currentTarget", {
- writable: true
- });
- event.target = target;
- event.currentTarget = target;
- target.value = targetValue;
- onChange3(event);
- return;
- }
- onChange3(event);
- }
- function triggerFocus(element, option) {
- if (!element)
- return;
- element.focus(option);
- var _ref = option || {}, cursor = _ref.cursor;
- if (cursor) {
- var len = element.value.length;
- switch (cursor) {
- case "start":
- element.setSelectionRange(0, 0);
- break;
- case "end":
- element.setSelectionRange(len, len);
- break;
- default:
- element.setSelectionRange(0, len);
- }
- }
- }
- var Input_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AInput",
- inheritAttrs: false,
- props: inputProps_default(),
- setup: function setup112(props5, _ref2) {
- var slots = _ref2.slots, attrs = _ref2.attrs, expose = _ref2.expose, emit = _ref2.emit;
- var inputRef = ref();
- var clearableInputRef = ref();
- var removePasswordTimeout;
- var formItemContext = useInjectFormItemContext();
- var _useConfigInject = useConfigInject_default("input", props5), direction = _useConfigInject.direction, prefixCls = _useConfigInject.prefixCls, size = _useConfigInject.size, autocomplete = _useConfigInject.autocomplete;
- var stateValue = ref(props5.value === void 0 ? props5.defaultValue : props5.value);
- var focused = ref(false);
- watch(function() {
- return props5.value;
- }, function() {
- stateValue.value = props5.value;
- });
- watch(function() {
- return props5.disabled;
- }, function() {
- if (props5.value !== void 0) {
- stateValue.value = props5.value;
- }
- if (props5.disabled) {
- focused.value = false;
- }
- });
- var clearPasswordValueAttribute = function clearPasswordValueAttribute2() {
- removePasswordTimeout = setTimeout(function() {
- var _inputRef$value;
- if (((_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.getAttribute("type")) === "password" && inputRef.value.hasAttribute("value")) {
- inputRef.value.removeAttribute("value");
- }
- });
- };
- var focus = function focus2(option) {
- triggerFocus(inputRef.value, option);
- };
- var blur = function blur2() {
- var _inputRef$value2;
- (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
- };
- var setSelectionRange = function setSelectionRange2(start, end, direction2) {
- var _inputRef$value3;
- (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 ? void 0 : _inputRef$value3.setSelectionRange(start, end, direction2);
- };
- var select = function select2() {
- var _inputRef$value4;
- (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 ? void 0 : _inputRef$value4.select();
- };
- expose({
- focus,
- blur,
- input: inputRef,
- stateValue,
- setSelectionRange,
- select
- });
- var onFocus2 = function onFocus3(e3) {
- var onFocus4 = props5.onFocus;
- focused.value = true;
- onFocus4 === null || onFocus4 === void 0 ? void 0 : onFocus4(e3);
- nextTick(function() {
- clearPasswordValueAttribute();
- });
- };
- var onBlur2 = function onBlur3(e3) {
- var onBlur4 = props5.onBlur;
- focused.value = false;
- onBlur4 === null || onBlur4 === void 0 ? void 0 : onBlur4(e3);
- formItemContext.onFieldBlur();
- nextTick(function() {
- clearPasswordValueAttribute();
- });
- };
- var triggerChange = function triggerChange2(e3) {
- emit("update:value", e3.target.value);
- emit("change", e3);
- emit("input", e3);
- formItemContext.onFieldChange();
- };
- var instance = getCurrentInstance();
- var setValue2 = function setValue3(value, callback) {
- if (stateValue.value === value) {
- return;
- }
- if (props5.value === void 0) {
- stateValue.value = value;
- } else {
- nextTick(function() {
- if (inputRef.value.value !== stateValue.value) {
- instance.update();
- }
- });
- }
- nextTick(function() {
- callback && callback();
- });
- };
- var handleReset = function handleReset2(e3) {
- resolveOnChange(inputRef.value, e3, triggerChange);
- setValue2("", function() {
- focus();
- });
- };
- var handleChange2 = function handleChange3(e3) {
- var _e$target = e3.target, value = _e$target.value, composing = _e$target.composing;
- if ((e3.isComposing || composing) && props5.lazy || stateValue.value === value)
- return;
- var newVal = e3.target.value;
- resolveOnChange(inputRef.value, e3, triggerChange);
- setValue2(newVal, function() {
- clearPasswordValueAttribute();
- });
- };
- var handleKeyDown2 = function handleKeyDown3(e3) {
- if (e3.keyCode === 13) {
- emit("pressEnter", e3);
- }
- emit("keydown", e3);
- };
- onMounted(function() {
- clearPasswordValueAttribute();
- });
- onBeforeUnmount(function() {
- clearTimeout(removePasswordTimeout);
- });
- var renderInput = function renderInput2() {
- var _otherProps$id;
- var _props$addonBefore = props5.addonBefore, addonBefore = _props$addonBefore === void 0 ? slots.addonBefore : _props$addonBefore, _props$addonAfter = props5.addonAfter, addonAfter = _props$addonAfter === void 0 ? slots.addonAfter : _props$addonAfter, disabled = props5.disabled, _props$bordered = props5.bordered, bordered = _props$bordered === void 0 ? true : _props$bordered, _props$valueModifiers = props5.valueModifiers, valueModifiers = _props$valueModifiers === void 0 ? {} : _props$valueModifiers, htmlSize = props5.htmlSize;
- var otherProps = omit_default(props5, [
- "prefixCls",
- "onPressEnter",
- "addonBefore",
- "addonAfter",
- "prefix",
- "suffix",
- "allowClear",
- // Input elements must be either controlled or uncontrolled,
- // specify either the value prop, or the defaultValue prop, but not both.
- "defaultValue",
- "size",
- "bordered",
- "htmlSize",
- "lazy",
- "showCount",
- "valueModifiers"
- ]);
- var inputProps4 = _objectSpread2(_objectSpread2(_objectSpread2({}, otherProps), attrs), {}, {
- autocomplete: autocomplete.value,
- onChange: handleChange2,
- onInput: handleChange2,
- onFocus: onFocus2,
- onBlur: onBlur2,
- onKeydown: handleKeyDown2,
- class: classNames_default(getInputClassName(prefixCls.value, bordered, size.value, disabled, direction.value), _defineProperty({}, attrs.class, attrs.class && !addonBefore && !addonAfter)),
- ref: inputRef,
- key: "ant-input",
- size: htmlSize,
- id: (_otherProps$id = otherProps.id) !== null && _otherProps$id !== void 0 ? _otherProps$id : formItemContext.id.value
- });
- if (valueModifiers.lazy) {
- delete inputProps4.onInput;
- }
- if (!inputProps4.autofocus) {
- delete inputProps4.autofocus;
- }
- var inputNode = createVNode("input", omit_default(inputProps4, ["size"]), null);
- return withDirectives(inputNode, [[antInputDirective_default]]);
- };
- var renderShowCountSuffix = function renderShowCountSuffix2() {
- var _slots$suffix;
- var value = stateValue.value;
- var maxlength = props5.maxlength, _props$suffix = props5.suffix, suffix = _props$suffix === void 0 ? (_slots$suffix = slots.suffix) === null || _slots$suffix === void 0 ? void 0 : _slots$suffix.call(slots) : _props$suffix, showCount = props5.showCount;
- var hasMaxLength = Number(maxlength) > 0;
- if (suffix || showCount) {
- var valueLength = _toConsumableArray(fixControlledValue(value)).length;
- var dataCount = null;
- if (_typeof(showCount) === "object") {
- dataCount = showCount.formatter({
- count: valueLength,
- maxlength
- });
- } else {
- dataCount = "".concat(valueLength).concat(hasMaxLength ? " / ".concat(maxlength) : "");
- }
- return createVNode(Fragment, null, [!!showCount && createVNode("span", {
- "class": classNames_default("".concat(prefixCls.value, "-show-count-suffix"), _defineProperty({}, "".concat(prefixCls.value, "-show-count-has-suffix"), !!suffix))
- }, [dataCount]), suffix]);
- }
- return null;
- };
- return function() {
- var inputProps4 = _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), props5), {}, {
- prefixCls: prefixCls.value,
- inputType: "input",
- value: fixControlledValue(stateValue.value),
- handleReset,
- focused: focused.value && !props5.disabled
- });
- return createVNode(ClearableLabeledInput_default, _objectSpread2(_objectSpread2({}, omit_default(inputProps4, ["element", "valueModifiers", "suffix", "showCount"])), {}, {
- "ref": clearableInputRef
- }), _objectSpread2(_objectSpread2({}, slots), {}, {
- element: renderInput,
- suffix: renderShowCountSuffix
- }));
- };
- }
- });
- // node_modules/ant-design-vue/es/input/Group.js
- var Group_default4 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AInputGroup",
- props: {
- prefixCls: String,
- size: {
- type: String
- },
- compact: {
- type: Boolean,
- default: void 0
- },
- onMouseenter: {
- type: Function
- },
- onMouseleave: {
- type: Function
- },
- onFocus: {
- type: Function
- },
- onBlur: {
- type: Function
- }
- },
- setup: function setup113(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("input-group", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var cls = computed(function() {
- var _ref2;
- var pre = prefixCls.value;
- return _ref2 = {}, _defineProperty(_ref2, "".concat(pre), true), _defineProperty(_ref2, "".concat(pre, "-lg"), props5.size === "large"), _defineProperty(_ref2, "".concat(pre, "-sm"), props5.size === "small"), _defineProperty(_ref2, "".concat(pre, "-compact"), props5.compact), _defineProperty(_ref2, "".concat(pre, "-rtl"), direction.value === "rtl"), _ref2;
- });
- return function() {
- var _slots$default;
- return createVNode("span", {
- "class": cls.value,
- "onMouseenter": props5.onMouseenter,
- "onMouseleave": props5.onMouseleave,
- "onFocus": props5.onFocus,
- "onBlur": props5.onBlur
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/_util/isMobile.js
- var applePhone = /iPhone/i;
- var appleIpod = /iPod/i;
- var appleTablet = /iPad/i;
- var androidPhone = /\bAndroid(?:.+)Mobile\b/i;
- var androidTablet = /Android/i;
- var amazonPhone = /\bAndroid(?:.+)SD4930UR\b/i;
- var amazonTablet = /\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i;
- var windowsPhone = /Windows Phone/i;
- var windowsTablet = /\bWindows(?:.+)ARM\b/i;
- var otherBlackberry = /BlackBerry/i;
- var otherBlackberry10 = /BB10/i;
- var otherOpera = /Opera Mini/i;
- var otherChrome = /\b(CriOS|Chrome)(?:.+)Mobile/i;
- var otherFirefox = /Mobile(?:.+)Firefox\b/i;
- function match2(regex, userAgent) {
- return regex.test(userAgent);
- }
- function isMobile(userAgent) {
- var ua = userAgent || (typeof navigator !== "undefined" ? navigator.userAgent : "");
- var tmp = ua.split("[FBAN");
- if (typeof tmp[1] !== "undefined") {
- var _tmp = tmp;
- var _tmp2 = _slicedToArray(_tmp, 1);
- ua = _tmp2[0];
- }
- tmp = ua.split("Twitter");
- if (typeof tmp[1] !== "undefined") {
- var _tmp3 = tmp;
- var _tmp4 = _slicedToArray(_tmp3, 1);
- ua = _tmp4[0];
- }
- var result = {
- apple: {
- phone: match2(applePhone, ua) && !match2(windowsPhone, ua),
- ipod: match2(appleIpod, ua),
- tablet: !match2(applePhone, ua) && match2(appleTablet, ua) && !match2(windowsPhone, ua),
- device: (match2(applePhone, ua) || match2(appleIpod, ua) || match2(appleTablet, ua)) && !match2(windowsPhone, ua)
- },
- amazon: {
- phone: match2(amazonPhone, ua),
- tablet: !match2(amazonPhone, ua) && match2(amazonTablet, ua),
- device: match2(amazonPhone, ua) || match2(amazonTablet, ua)
- },
- android: {
- phone: !match2(windowsPhone, ua) && match2(amazonPhone, ua) || !match2(windowsPhone, ua) && match2(androidPhone, ua),
- tablet: !match2(windowsPhone, ua) && !match2(amazonPhone, ua) && !match2(androidPhone, ua) && (match2(amazonTablet, ua) || match2(androidTablet, ua)),
- device: !match2(windowsPhone, ua) && (match2(amazonPhone, ua) || match2(amazonTablet, ua) || match2(androidPhone, ua) || match2(androidTablet, ua)) || match2(/\bokhttp\b/i, ua)
- },
- windows: {
- phone: match2(windowsPhone, ua),
- tablet: match2(windowsTablet, ua),
- device: match2(windowsPhone, ua) || match2(windowsTablet, ua)
- },
- other: {
- blackberry: match2(otherBlackberry, ua),
- blackberry10: match2(otherBlackberry10, ua),
- opera: match2(otherOpera, ua),
- firefox: match2(otherFirefox, ua),
- chrome: match2(otherChrome, ua),
- device: match2(otherBlackberry, ua) || match2(otherBlackberry10, ua) || match2(otherOpera, ua) || match2(otherFirefox, ua) || match2(otherChrome, ua)
- },
- // Additional
- any: null,
- phone: null,
- tablet: null
- };
- result.any = result.apple.device || result.android.device || result.windows.device || result.other.device;
- result.phone = result.apple.phone || result.android.phone || result.windows.phone;
- result.tablet = result.apple.tablet || result.android.tablet || result.windows.tablet;
- return result;
- }
- var defaultResult = _objectSpread2(_objectSpread2({}, isMobile()), {}, {
- isMobile
- });
- var isMobile_default2 = defaultResult;
- // node_modules/ant-design-vue/es/input/Search.js
- var _excluded35 = ["disabled", "loading", "addonAfter", "suffix"];
- var Search_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AInputSearch",
- inheritAttrs: false,
- props: _objectSpread2(_objectSpread2({}, inputProps_default()), {}, {
- inputPrefixCls: String,
- // 不能设置默认值 https://github.com/vueComponent/ant-design-vue/issues/1916
- enterButton: vue_types_default.any,
- onSearch: {
- type: Function
- }
- }),
- setup: function setup114(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose, emit = _ref.emit;
- var inputRef = ref();
- var focus = function focus2() {
- var _inputRef$value;
- (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
- };
- var blur = function blur2() {
- var _inputRef$value2;
- (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
- };
- expose({
- focus,
- blur
- });
- var onChange3 = function onChange4(e3) {
- emit("update:value", e3.target.value);
- if (e3 && e3.target && e3.type === "click") {
- emit("search", e3.target.value, e3);
- }
- emit("change", e3);
- };
- var onMousedown2 = function onMousedown3(e3) {
- var _inputRef$value3;
- if (document.activeElement === ((_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 ? void 0 : _inputRef$value3.input)) {
- e3.preventDefault();
- }
- };
- var onSearch = function onSearch2(e3) {
- var _inputRef$value4;
- emit("search", (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 ? void 0 : _inputRef$value4.stateValue, e3);
- if (!isMobile_default2.tablet) {
- inputRef.value.focus();
- }
- };
- var _useConfigInject = useConfigInject_default("input-search", props5), prefixCls = _useConfigInject.prefixCls, getPrefixCls2 = _useConfigInject.getPrefixCls, direction = _useConfigInject.direction, size = _useConfigInject.size;
- var inputPrefixCls = computed(function() {
- return getPrefixCls2("input", props5.inputPrefixCls);
- });
- return function() {
- var _slots$addonAfter, _slots$suffix, _slots$enterButton, _slots$enterButton2, _classNames;
- var disabled = props5.disabled, loading = props5.loading, _props$addonAfter = props5.addonAfter, addonAfter = _props$addonAfter === void 0 ? (_slots$addonAfter = slots.addonAfter) === null || _slots$addonAfter === void 0 ? void 0 : _slots$addonAfter.call(slots) : _props$addonAfter, _props$suffix = props5.suffix, suffix = _props$suffix === void 0 ? (_slots$suffix = slots.suffix) === null || _slots$suffix === void 0 ? void 0 : _slots$suffix.call(slots) : _props$suffix, restProps = _objectWithoutProperties(props5, _excluded35);
- var _props$enterButton = props5.enterButton, enterButton = _props$enterButton === void 0 ? (_slots$enterButton = (_slots$enterButton2 = slots.enterButton) === null || _slots$enterButton2 === void 0 ? void 0 : _slots$enterButton2.call(slots)) !== null && _slots$enterButton !== void 0 ? _slots$enterButton : false : _props$enterButton;
- enterButton = enterButton || enterButton === "";
- var searchIcon = typeof enterButton === "boolean" ? createVNode(SearchOutlined_default, null, null) : null;
- var btnClassName = "".concat(prefixCls.value, "-button");
- var enterButtonAsElement = Array.isArray(enterButton) ? enterButton[0] : enterButton;
- var button;
- var isAntdButton = enterButtonAsElement.type && isPlainObject_default(enterButtonAsElement.type) && enterButtonAsElement.type.__ANT_BUTTON;
- if (isAntdButton || enterButtonAsElement.tagName === "button") {
- button = cloneElement(enterButtonAsElement, _objectSpread2({
- onMousedown: onMousedown2,
- onClick: onSearch,
- key: "enterButton"
- }, isAntdButton ? {
- class: btnClassName,
- size: size.value
- } : {}), false);
- } else {
- var iconOnly = searchIcon && !enterButton;
- button = createVNode(button_default2, {
- "class": btnClassName,
- "type": enterButton ? "primary" : void 0,
- "size": size.value,
- "disabled": disabled,
- "key": "enterButton",
- "onMousedown": onMousedown2,
- "onClick": onSearch,
- "loading": loading,
- "icon": iconOnly ? searchIcon : null
- }, {
- default: function _default9() {
- return [iconOnly ? null : searchIcon || enterButton];
- }
- });
- }
- if (addonAfter) {
- button = [button, addonAfter];
- }
- var cls = classNames_default(prefixCls.value, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames, "".concat(prefixCls.value, "-").concat(size.value), !!size.value), _defineProperty(_classNames, "".concat(prefixCls.value, "-with-button"), !!enterButton), _classNames), attrs.class);
- return createVNode(Input_default2, _objectSpread2(_objectSpread2(_objectSpread2({
- "ref": inputRef
- }, omit_default(restProps, ["onUpdate:value", "onSearch", "enterButton"])), attrs), {}, {
- "onPressEnter": onSearch,
- "size": size.value,
- "prefixCls": inputPrefixCls.value,
- "addonAfter": button,
- "suffix": suffix,
- "onChange": onChange3,
- "class": cls,
- "disabled": disabled
- }), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/input/calculateNodeHeight.js
- 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";
- 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", "word-break"];
- var computedStyleCache = {};
- var hiddenTextarea;
- function calculateNodeStyling(node) {
- var useCache = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var nodeRef = node.getAttribute("id") || node.getAttribute("data-reactid") || node.getAttribute("name");
- if (useCache && computedStyleCache[nodeRef]) {
- return computedStyleCache[nodeRef];
- }
- var style = window.getComputedStyle(node);
- var boxSizing = style.getPropertyValue("box-sizing") || style.getPropertyValue("-moz-box-sizing") || style.getPropertyValue("-webkit-box-sizing");
- var paddingSize = parseFloat(style.getPropertyValue("padding-bottom")) + parseFloat(style.getPropertyValue("padding-top"));
- var borderSize = parseFloat(style.getPropertyValue("border-bottom-width")) + parseFloat(style.getPropertyValue("border-top-width"));
- var sizingStyle = SIZING_STYLE.map(function(name) {
- return "".concat(name, ":").concat(style.getPropertyValue(name));
- }).join(";");
- var nodeInfo = {
- sizingStyle,
- paddingSize,
- borderSize,
- boxSizing
- };
- if (useCache && nodeRef) {
- computedStyleCache[nodeRef] = nodeInfo;
- }
- return nodeInfo;
- }
- function calculateNodeHeight(uiTextNode) {
- var useCache = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var minRows = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
- var maxRows = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
- if (!hiddenTextarea) {
- hiddenTextarea = document.createElement("textarea");
- hiddenTextarea.setAttribute("tab-index", "-1");
- hiddenTextarea.setAttribute("aria-hidden", "true");
- document.body.appendChild(hiddenTextarea);
- }
- if (uiTextNode.getAttribute("wrap")) {
- hiddenTextarea.setAttribute("wrap", uiTextNode.getAttribute("wrap"));
- } else {
- hiddenTextarea.removeAttribute("wrap");
- }
- var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache), paddingSize = _calculateNodeStyling.paddingSize, borderSize = _calculateNodeStyling.borderSize, boxSizing = _calculateNodeStyling.boxSizing, sizingStyle = _calculateNodeStyling.sizingStyle;
- hiddenTextarea.setAttribute("style", "".concat(sizingStyle, ";").concat(HIDDEN_TEXTAREA_STYLE));
- hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || "";
- var minHeight = Number.MIN_SAFE_INTEGER;
- var maxHeight = Number.MAX_SAFE_INTEGER;
- var height = hiddenTextarea.scrollHeight;
- var overflowY;
- if (boxSizing === "border-box") {
- height += borderSize;
- } else if (boxSizing === "content-box") {
- height -= paddingSize;
- }
- if (minRows !== null || maxRows !== null) {
- hiddenTextarea.value = " ";
- var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
- if (minRows !== null) {
- minHeight = singleRowHeight * minRows;
- if (boxSizing === "border-box") {
- minHeight = minHeight + paddingSize + borderSize;
- }
- height = Math.max(minHeight, height);
- }
- if (maxRows !== null) {
- maxHeight = singleRowHeight * maxRows;
- if (boxSizing === "border-box") {
- maxHeight = maxHeight + paddingSize + borderSize;
- }
- overflowY = height > maxHeight ? "" : "hidden";
- height = Math.min(maxHeight, height);
- }
- }
- return {
- height: "".concat(height, "px"),
- minHeight: "".concat(minHeight, "px"),
- maxHeight: "".concat(maxHeight, "px"),
- overflowY,
- resize: "none"
- };
- }
- // node_modules/ant-design-vue/es/input/ResizableTextArea.js
- var RESIZE_STATUS_NONE = 0;
- var RESIZE_STATUS_RESIZING = 1;
- var RESIZE_STATUS_RESIZED = 2;
- var ResizableTextArea = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ResizableTextArea",
- inheritAttrs: false,
- props: textAreaProps(),
- setup: function setup115(props5, _ref) {
- var attrs = _ref.attrs, emit = _ref.emit, expose = _ref.expose;
- var nextFrameActionId;
- var resizeFrameId;
- var textAreaRef = ref();
- var textareaStyles = ref({});
- var resizeStatus = ref(RESIZE_STATUS_NONE);
- onBeforeUnmount(function() {
- wrapperRaf.cancel(nextFrameActionId);
- wrapperRaf.cancel(resizeFrameId);
- });
- var fixFirefoxAutoScroll = function fixFirefoxAutoScroll2() {
- try {
- if (document.activeElement === textAreaRef.value) {
- var currentStart = textAreaRef.value.selectionStart;
- var currentEnd = textAreaRef.value.selectionEnd;
- textAreaRef.value.setSelectionRange(currentStart, currentEnd);
- }
- } catch (e3) {
- }
- };
- var resizeTextarea = function resizeTextarea2() {
- var autoSize = props5.autoSize || props5.autosize;
- if (!autoSize || !textAreaRef.value) {
- return;
- }
- var minRows = autoSize.minRows, maxRows = autoSize.maxRows;
- textareaStyles.value = calculateNodeHeight(textAreaRef.value, false, minRows, maxRows);
- resizeStatus.value = RESIZE_STATUS_RESIZING;
- wrapperRaf.cancel(resizeFrameId);
- resizeFrameId = wrapperRaf(function() {
- resizeStatus.value = RESIZE_STATUS_RESIZED;
- resizeFrameId = wrapperRaf(function() {
- resizeStatus.value = RESIZE_STATUS_NONE;
- fixFirefoxAutoScroll();
- });
- });
- };
- var resizeOnNextFrame = function resizeOnNextFrame2() {
- wrapperRaf.cancel(nextFrameActionId);
- nextFrameActionId = wrapperRaf(resizeTextarea);
- };
- var handleResize = function handleResize2(size) {
- if (resizeStatus.value !== RESIZE_STATUS_NONE) {
- return;
- }
- emit("resize", size);
- var autoSize = props5.autoSize || props5.autosize;
- if (autoSize) {
- resizeOnNextFrame();
- }
- };
- warning_default2(props5.autosize === void 0, "Input.TextArea", "autosize is deprecated, please use autoSize instead.");
- var renderTextArea = function renderTextArea2() {
- var prefixCls = props5.prefixCls, autoSize = props5.autoSize, autosize = props5.autosize, disabled = props5.disabled;
- var otherProps = omit_default(props5, ["prefixCls", "onPressEnter", "autoSize", "autosize", "defaultValue", "allowClear", "type", "lazy", "maxlength", "valueModifiers"]);
- var cls = classNames_default(prefixCls, attrs.class, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled));
- var style = [attrs.style, textareaStyles.value, resizeStatus.value === RESIZE_STATUS_RESIZING ? {
- overflowX: "hidden",
- overflowY: "hidden"
- } : null];
- var textareaProps = _objectSpread2(_objectSpread2(_objectSpread2({}, otherProps), attrs), {}, {
- style,
- class: cls
- });
- if (!textareaProps.autofocus) {
- delete textareaProps.autofocus;
- }
- if (textareaProps.rows === 0) {
- delete textareaProps.rows;
- }
- return createVNode(vc_resize_observer_default, {
- "onResize": handleResize,
- "disabled": !(autoSize || autosize)
- }, {
- default: function _default9() {
- return [withDirectives(createVNode("textarea", _objectSpread2(_objectSpread2({}, textareaProps), {}, {
- "ref": textAreaRef
- }), null), [[antInputDirective_default]])];
- }
- });
- };
- watch(function() {
- return props5.value;
- }, function() {
- nextTick(function() {
- resizeTextarea();
- });
- });
- onMounted(function() {
- nextTick(function() {
- resizeTextarea();
- });
- });
- var instance = getCurrentInstance();
- expose({
- resizeTextarea,
- textArea: textAreaRef,
- instance
- });
- return function() {
- return renderTextArea();
- };
- }
- });
- var ResizableTextArea_default = ResizableTextArea;
- // node_modules/ant-design-vue/es/input/TextArea.js
- function fixEmojiLength(value, maxLength) {
- return _toConsumableArray(value || "").slice(0, maxLength).join("");
- }
- function setTriggerValue(isCursorInEnd, preValue, triggerValue, maxLength) {
- var newTriggerValue = triggerValue;
- if (isCursorInEnd) {
- newTriggerValue = fixEmojiLength(triggerValue, maxLength);
- } else if (_toConsumableArray(preValue || "").length < triggerValue.length && _toConsumableArray(triggerValue || "").length > maxLength) {
- newTriggerValue = preValue;
- }
- return newTriggerValue;
- }
- var TextArea_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATextarea",
- inheritAttrs: false,
- props: textAreaProps(),
- setup: function setup116(props5, _ref) {
- var attrs = _ref.attrs, expose = _ref.expose, emit = _ref.emit;
- var formItemContext = useInjectFormItemContext();
- var stateValue = ref(props5.value === void 0 ? props5.defaultValue : props5.value);
- var resizableTextArea = ref();
- var mergedValue = ref("");
- var _useConfigInject = useConfigInject_default("input", props5), prefixCls = _useConfigInject.prefixCls, size = _useConfigInject.size, direction = _useConfigInject.direction;
- var showCount = computed(function() {
- return props5.showCount === "" || props5.showCount || false;
- });
- var hasMaxLength = computed(function() {
- return Number(props5.maxlength) > 0;
- });
- var compositing = ref(false);
- var oldCompositionValueRef = ref();
- var oldSelectionStartRef = ref(0);
- var onInternalCompositionStart = function onInternalCompositionStart2(e3) {
- compositing.value = true;
- oldCompositionValueRef.value = mergedValue.value;
- oldSelectionStartRef.value = e3.currentTarget.selectionStart;
- emit("compositionstart", e3);
- };
- var onInternalCompositionEnd = function onInternalCompositionEnd2(e3) {
- compositing.value = false;
- var triggerValue = e3.currentTarget.value;
- if (hasMaxLength.value) {
- var _oldCompositionValueR;
- var isCursorInEnd = oldSelectionStartRef.value >= props5.maxlength + 1 || oldSelectionStartRef.value === ((_oldCompositionValueR = oldCompositionValueRef.value) === null || _oldCompositionValueR === void 0 ? void 0 : _oldCompositionValueR.length);
- triggerValue = setTriggerValue(isCursorInEnd, oldCompositionValueRef.value, triggerValue, props5.maxlength);
- }
- if (triggerValue !== mergedValue.value) {
- setValue2(triggerValue);
- resolveOnChange(e3.currentTarget, e3, triggerChange, triggerValue);
- }
- emit("compositionend", e3);
- };
- var instance = getCurrentInstance();
- watch(function() {
- return props5.value;
- }, function() {
- if ("value" in instance.vnode.props || {}) {
- var _props$value;
- stateValue.value = (_props$value = props5.value) !== null && _props$value !== void 0 ? _props$value : "";
- }
- });
- var focus = function focus2(option) {
- var _resizableTextArea$va;
- triggerFocus((_resizableTextArea$va = resizableTextArea.value) === null || _resizableTextArea$va === void 0 ? void 0 : _resizableTextArea$va.textArea, option);
- };
- var blur = function blur2() {
- var _resizableTextArea$va2, _resizableTextArea$va3;
- (_resizableTextArea$va2 = resizableTextArea.value) === null || _resizableTextArea$va2 === void 0 ? void 0 : (_resizableTextArea$va3 = _resizableTextArea$va2.textArea) === null || _resizableTextArea$va3 === void 0 ? void 0 : _resizableTextArea$va3.blur();
- };
- var setValue2 = function setValue3(value, callback) {
- if (stateValue.value === value) {
- return;
- }
- if (props5.value === void 0) {
- stateValue.value = value;
- } else {
- nextTick(function() {
- if (resizableTextArea.value.textArea.value !== mergedValue.value) {
- var _resizableTextArea$va4, _resizableTextArea$va5, _resizableTextArea$va6;
- (_resizableTextArea$va4 = resizableTextArea.value) === null || _resizableTextArea$va4 === void 0 ? void 0 : (_resizableTextArea$va5 = (_resizableTextArea$va6 = _resizableTextArea$va4.instance).update) === null || _resizableTextArea$va5 === void 0 ? void 0 : _resizableTextArea$va5.call(_resizableTextArea$va6);
- }
- });
- }
- nextTick(function() {
- callback && callback();
- });
- };
- var handleKeyDown2 = function handleKeyDown3(e3) {
- if (e3.keyCode === 13) {
- emit("pressEnter", e3);
- }
- emit("keydown", e3);
- };
- var onBlur2 = function onBlur3(e3) {
- var onBlur4 = props5.onBlur;
- onBlur4 === null || onBlur4 === void 0 ? void 0 : onBlur4(e3);
- formItemContext.onFieldBlur();
- };
- var triggerChange = function triggerChange2(e3) {
- emit("update:value", e3.target.value);
- emit("change", e3);
- emit("input", e3);
- formItemContext.onFieldChange();
- };
- var handleReset = function handleReset2(e3) {
- resolveOnChange(resizableTextArea.value.textArea, e3, triggerChange);
- setValue2("", function() {
- focus();
- });
- };
- var handleChange2 = function handleChange3(e3) {
- var composing = e3.target.composing;
- var triggerValue = e3.target.value;
- compositing.value = !!(e3.isComposing || composing);
- if (compositing.value && props5.lazy || stateValue.value === triggerValue)
- return;
- if (hasMaxLength.value) {
- var target = e3.target;
- var isCursorInEnd = target.selectionStart >= props5.maxlength + 1 || target.selectionStart === triggerValue.length || !target.selectionStart;
- triggerValue = setTriggerValue(isCursorInEnd, mergedValue.value, triggerValue, props5.maxlength);
- }
- resolveOnChange(e3.currentTarget, e3, triggerChange, triggerValue);
- setValue2(triggerValue);
- };
- var renderTextArea = function renderTextArea2() {
- var _class, _props$valueModifiers, _resizeProps$id;
- var style = attrs.style, customClass = attrs.class;
- var _props$bordered = props5.bordered, bordered = _props$bordered === void 0 ? true : _props$bordered;
- var resizeProps = _objectSpread2(_objectSpread2(_objectSpread2({}, omit_default(props5, ["allowClear"])), attrs), {}, {
- style: showCount.value ? {} : style,
- class: (_class = {}, _defineProperty(_class, "".concat(prefixCls.value, "-borderless"), !bordered), _defineProperty(_class, "".concat(customClass), customClass && !showCount.value), _defineProperty(_class, "".concat(prefixCls.value, "-sm"), size.value === "small"), _defineProperty(_class, "".concat(prefixCls.value, "-lg"), size.value === "large"), _class),
- showCount: null,
- prefixCls: prefixCls.value,
- onInput: handleChange2,
- onChange: handleChange2,
- onBlur: onBlur2,
- onKeydown: handleKeyDown2,
- onCompositionstart: onInternalCompositionStart,
- onCompositionend: onInternalCompositionEnd
- });
- if ((_props$valueModifiers = props5.valueModifiers) !== null && _props$valueModifiers !== void 0 && _props$valueModifiers.lazy) {
- delete resizeProps.onInput;
- }
- return createVNode(ResizableTextArea_default, _objectSpread2(_objectSpread2({}, resizeProps), {}, {
- "id": (_resizeProps$id = resizeProps.id) !== null && _resizeProps$id !== void 0 ? _resizeProps$id : formItemContext.id.value,
- "ref": resizableTextArea,
- "maxlength": props5.maxlength
- }), null);
- };
- expose({
- focus,
- blur,
- resizableTextArea
- });
- watchEffect(function() {
- var val = fixControlledValue(stateValue.value);
- if (!compositing.value && hasMaxLength.value && (props5.value === null || props5.value === void 0)) {
- val = fixEmojiLength(val, props5.maxlength);
- }
- mergedValue.value = val;
- });
- return function() {
- var maxlength = props5.maxlength, _props$bordered2 = props5.bordered, bordered = _props$bordered2 === void 0 ? true : _props$bordered2, hidden = props5.hidden;
- var style = attrs.style, customClass = attrs.class;
- var inputProps4 = _objectSpread2(_objectSpread2(_objectSpread2({}, props5), attrs), {}, {
- prefixCls: prefixCls.value,
- inputType: "text",
- handleReset,
- direction: direction.value,
- bordered,
- style: showCount.value ? void 0 : style
- });
- var textareaNode = createVNode(ClearableLabeledInput_default, _objectSpread2(_objectSpread2({}, inputProps4), {}, {
- "value": mergedValue.value
- }), {
- element: renderTextArea
- });
- if (showCount.value) {
- var valueLength = _toConsumableArray(mergedValue.value).length;
- var dataCount = "";
- if (_typeof(showCount.value) === "object") {
- dataCount = showCount.value.formatter({
- count: valueLength,
- maxlength
- });
- } else {
- dataCount = "".concat(valueLength).concat(hasMaxLength.value ? " / ".concat(maxlength) : "");
- }
- var _textareaNode = function() {
- return textareaNode;
- }();
- textareaNode = createVNode("div", {
- "hidden": hidden,
- "class": classNames_default("".concat(prefixCls.value, "-textarea"), _defineProperty({}, "".concat(prefixCls.value, "-textarea-rtl"), direction.value === "rtl"), "".concat(prefixCls.value, "-textarea-show-count"), customClass),
- "style": style,
- "data-count": _typeof(dataCount) !== "object" ? dataCount : void 0
- }, [textareaNode]);
- }
- return textareaNode;
- };
- }
- });
- // node_modules/ant-design-vue/es/input/Password.js
- var _excluded36 = ["size", "visibilityToggle"];
- var ActionMap = {
- click: "onClick",
- hover: "onMouseover"
- };
- var defaultIconRender = function defaultIconRender2(visible) {
- return visible ? createVNode(EyeOutlined_default, null, null) : createVNode(EyeInvisibleOutlined_default, null, null);
- };
- var Password_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AInputPassword",
- inheritAttrs: false,
- props: _objectSpread2(_objectSpread2({}, inputProps_default()), {}, {
- prefixCls: String,
- inputPrefixCls: String,
- action: {
- type: String,
- default: "click"
- },
- visibilityToggle: {
- type: Boolean,
- default: true
- },
- iconRender: Function
- }),
- setup: function setup117(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose;
- var visible = ref(false);
- var onVisibleChange = function onVisibleChange2() {
- var disabled = props5.disabled;
- if (disabled) {
- return;
- }
- visible.value = !visible.value;
- };
- var inputRef = ref();
- var focus = function focus2() {
- var _inputRef$value;
- (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
- };
- var blur = function blur2() {
- var _inputRef$value2;
- (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.blur();
- };
- expose({
- focus,
- blur
- });
- var getIcon2 = function getIcon3(prefixCls2) {
- var _iconProps;
- var action = props5.action, _props$iconRender = props5.iconRender, iconRender = _props$iconRender === void 0 ? slots.iconRender || defaultIconRender : _props$iconRender;
- var iconTrigger = ActionMap[action] || "";
- var icon = iconRender(visible.value);
- var iconProps = (_iconProps = {}, _defineProperty(_iconProps, iconTrigger, onVisibleChange), _defineProperty(_iconProps, "class", "".concat(prefixCls2, "-icon")), _defineProperty(_iconProps, "key", "passwordIcon"), _defineProperty(_iconProps, "onMousedown", function onMousedown2(e3) {
- e3.preventDefault();
- }), _defineProperty(_iconProps, "onMouseup", function onMouseup(e3) {
- e3.preventDefault();
- }), _iconProps);
- return cloneElement(isValidElement(icon) ? icon : createVNode("span", null, [icon]), iconProps);
- };
- var _useConfigInject = useConfigInject_default("input-password", props5), prefixCls = _useConfigInject.prefixCls, getPrefixCls2 = _useConfigInject.getPrefixCls;
- var inputPrefixCls = computed(function() {
- return getPrefixCls2("input", props5.inputPrefixCls);
- });
- var renderPassword = function renderPassword2() {
- var size = props5.size, visibilityToggle = props5.visibilityToggle, restProps = _objectWithoutProperties(props5, _excluded36);
- var suffixIcon = visibilityToggle && getIcon2(prefixCls.value);
- var inputClassName = classNames_default(prefixCls.value, attrs.class, _defineProperty({}, "".concat(prefixCls.value, "-").concat(size), !!size));
- var omittedProps = _objectSpread2(_objectSpread2(_objectSpread2({}, omit_default(restProps, ["suffix", "iconRender", "action"])), attrs), {}, {
- type: visible.value ? "text" : "password",
- class: inputClassName,
- prefixCls: inputPrefixCls.value,
- suffix: suffixIcon
- });
- if (size) {
- omittedProps.size = size;
- }
- return createVNode(Input_default2, _objectSpread2({
- "ref": inputRef
- }, omittedProps), slots);
- };
- return function() {
- return renderPassword();
- };
- }
- });
- // node_modules/ant-design-vue/es/input/index.js
- Input_default2.Group = Group_default4;
- Input_default2.Search = Search_default;
- Input_default2.TextArea = TextArea_default;
- Input_default2.Password = Password_default;
- Input_default2.install = function(app) {
- app.component(Input_default2.name, Input_default2);
- app.component(Input_default2.Group.name, Input_default2.Group);
- app.component(Input_default2.Search.name, Input_default2.Search);
- app.component(Input_default2.TextArea.name, Input_default2.TextArea);
- app.component(Input_default2.Password.name, Input_default2.Password);
- return app;
- };
- var input_default = Input_default2;
- // node_modules/lodash-es/isNumber.js
- var numberTag5 = "[object Number]";
- function isNumber(value) {
- return typeof value == "number" || isObjectLike_default(value) && baseGetTag_default(value) == numberTag5;
- }
- var isNumber_default = isNumber;
- // node_modules/ant-design-vue/es/vc-util/Dom/css.js
- function getClientSize() {
- var width = document.documentElement.clientWidth;
- var height = window.innerHeight || document.documentElement.clientHeight;
- return {
- width,
- height
- };
- }
- function getOffset3(node) {
- var box = node.getBoundingClientRect();
- var docElem = document.documentElement;
- return {
- left: box.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),
- top: box.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)
- };
- }
- // node_modules/ant-design-vue/es/vc-dialog/IDialogPropTypes.js
- function dialogPropTypes() {
- return {
- keyboard: {
- type: Boolean,
- default: void 0
- },
- mask: {
- type: Boolean,
- default: void 0
- },
- afterClose: Function,
- closable: {
- type: Boolean,
- default: void 0
- },
- maskClosable: {
- type: Boolean,
- default: void 0
- },
- visible: {
- type: Boolean,
- default: void 0
- },
- destroyOnClose: {
- type: Boolean,
- default: void 0
- },
- mousePosition: vue_types_default.shape({
- x: Number,
- y: Number
- }).loose,
- title: vue_types_default.any,
- footer: vue_types_default.any,
- transitionName: String,
- maskTransitionName: String,
- animation: vue_types_default.any,
- maskAnimation: vue_types_default.any,
- wrapStyle: {
- type: Object,
- default: void 0
- },
- bodyStyle: {
- type: Object,
- default: void 0
- },
- maskStyle: {
- type: Object,
- default: void 0
- },
- prefixCls: String,
- wrapClassName: String,
- rootClassName: String,
- width: [String, Number],
- height: [String, Number],
- zIndex: Number,
- bodyProps: vue_types_default.any,
- maskProps: vue_types_default.any,
- wrapProps: vue_types_default.any,
- getContainer: vue_types_default.any,
- dialogStyle: {
- type: Object,
- default: void 0
- },
- dialogClass: String,
- closeIcon: vue_types_default.any,
- forceRender: {
- type: Boolean,
- default: void 0
- },
- getOpenCount: Function,
- // https://github.com/ant-design/ant-design/issues/19771
- // https://github.com/react-component/dialog/issues/95
- focusTriggerAfterClose: {
- type: Boolean,
- default: void 0
- },
- onClose: Function,
- modalRender: Function
- };
- }
- var IDialogPropTypes_default = dialogPropTypes;
- // node_modules/ant-design-vue/es/vc-dialog/util.js
- function getMotionName(prefixCls, transitionName2, animationName) {
- var motionName = transitionName2;
- if (!motionName && animationName) {
- motionName = "".concat(prefixCls, "-").concat(animationName);
- }
- return motionName;
- }
- var uuid4 = -1;
- function getUUID2() {
- uuid4 += 1;
- return uuid4;
- }
- function getScroll3(w2, top) {
- var ret = w2["page".concat(top ? "Y" : "X", "Offset")];
- var method4 = "scroll".concat(top ? "Top" : "Left");
- if (typeof ret !== "number") {
- var d2 = w2.document;
- ret = d2.documentElement[method4];
- if (typeof ret !== "number") {
- ret = d2.body[method4];
- }
- }
- return ret;
- }
- function offset2(el) {
- var rect = el.getBoundingClientRect();
- var pos = {
- left: rect.left,
- top: rect.top
- };
- var doc = el.ownerDocument;
- var w2 = doc.defaultView || doc.parentWindow;
- pos.left += getScroll3(w2);
- pos.top += getScroll3(w2, true);
- return pos;
- }
- // node_modules/ant-design-vue/es/vc-dialog/Content.js
- var sentinelStyle = {
- width: 0,
- height: 0,
- overflow: "hidden",
- outline: "none"
- };
- var Content_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Content",
- inheritAttrs: false,
- props: _objectSpread2(_objectSpread2({}, IDialogPropTypes_default()), {}, {
- motionName: String,
- ariaId: String,
- onVisibleChanged: Function,
- onMousedown: Function,
- onMouseup: Function
- }),
- setup: function setup118(props5, _ref) {
- var expose = _ref.expose, slots = _ref.slots, attrs = _ref.attrs;
- var sentinelStartRef = ref();
- var sentinelEndRef = ref();
- var dialogRef = ref();
- expose({
- focus: function focus() {
- var _sentinelStartRef$val;
- (_sentinelStartRef$val = sentinelStartRef.value) === null || _sentinelStartRef$val === void 0 ? void 0 : _sentinelStartRef$val.focus();
- },
- changeActive: function changeActive(next2) {
- var _document = document, activeElement = _document.activeElement;
- if (next2 && activeElement === sentinelEndRef.value) {
- sentinelStartRef.value.focus();
- } else if (!next2 && activeElement === sentinelStartRef.value) {
- sentinelEndRef.value.focus();
- }
- }
- });
- var transformOrigin = ref();
- var contentStyleRef = computed(function() {
- var width = props5.width, height = props5.height;
- var contentStyle = {};
- if (width !== void 0) {
- contentStyle.width = typeof width === "number" ? "".concat(width, "px") : width;
- }
- if (height !== void 0) {
- contentStyle.height = typeof height === "number" ? "".concat(height, "px") : height;
- }
- if (transformOrigin.value) {
- contentStyle.transformOrigin = transformOrigin.value;
- }
- return contentStyle;
- });
- var onPrepare = function onPrepare2() {
- nextTick(function() {
- if (dialogRef.value) {
- var elementOffset = offset2(dialogRef.value);
- transformOrigin.value = props5.mousePosition ? "".concat(props5.mousePosition.x - elementOffset.left, "px ").concat(props5.mousePosition.y - elementOffset.top, "px") : "";
- }
- });
- };
- var onVisibleChanged = function onVisibleChanged2(visible) {
- props5.onVisibleChanged(visible);
- };
- return function() {
- var _slots$footer, _slots$title, _slots$closeIcon, _slots$default;
- var prefixCls = props5.prefixCls, _props$footer = props5.footer, footer = _props$footer === void 0 ? (_slots$footer = slots.footer) === null || _slots$footer === void 0 ? void 0 : _slots$footer.call(slots) : _props$footer, _props$title = props5.title, title = _props$title === void 0 ? (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots) : _props$title, ariaId = props5.ariaId, closable = props5.closable, _props$closeIcon = props5.closeIcon, closeIcon = _props$closeIcon === void 0 ? (_slots$closeIcon = slots.closeIcon) === null || _slots$closeIcon === void 0 ? void 0 : _slots$closeIcon.call(slots) : _props$closeIcon, onClose = props5.onClose, bodyStyle = props5.bodyStyle, bodyProps = props5.bodyProps, onMousedown2 = props5.onMousedown, onMouseup = props5.onMouseup, visible = props5.visible, _props$modalRender = props5.modalRender, modalRender = _props$modalRender === void 0 ? slots.modalRender : _props$modalRender, destroyOnClose = props5.destroyOnClose, motionName = props5.motionName;
- var footerNode;
- if (footer) {
- footerNode = createVNode("div", {
- "class": "".concat(prefixCls, "-footer")
- }, [footer]);
- }
- var headerNode;
- if (title) {
- headerNode = createVNode("div", {
- "class": "".concat(prefixCls, "-header")
- }, [createVNode("div", {
- "class": "".concat(prefixCls, "-title"),
- "id": ariaId
- }, [title])]);
- }
- var closer;
- if (closable) {
- closer = createVNode("button", {
- "type": "button",
- "onClick": onClose,
- "aria-label": "Close",
- "class": "".concat(prefixCls, "-close")
- }, [closeIcon || createVNode("span", {
- "class": "".concat(prefixCls, "-close-x")
- }, null)]);
- }
- var content = createVNode("div", {
- "class": "".concat(prefixCls, "-content")
- }, [closer, headerNode, createVNode("div", _objectSpread2({
- "class": "".concat(prefixCls, "-body"),
- "style": bodyStyle
- }, bodyProps), [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), footerNode]);
- var transitionProps = getTransitionProps(motionName);
- return createVNode(transition_default, _objectSpread2(_objectSpread2({}, transitionProps), {}, {
- "onBeforeEnter": onPrepare,
- "onAfterEnter": function onAfterEnter() {
- return onVisibleChanged(true);
- },
- "onAfterLeave": function onAfterLeave() {
- return onVisibleChanged(false);
- }
- }), {
- default: function _default9() {
- return [visible || !destroyOnClose ? withDirectives(createVNode("div", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "ref": dialogRef,
- "key": "dialog-element",
- "role": "document",
- "style": [contentStyleRef.value, attrs.style],
- "class": [prefixCls, attrs.class],
- "onMousedown": onMousedown2,
- "onMouseup": onMouseup
- }), [createVNode("div", {
- "tabindex": 0,
- "ref": sentinelStartRef,
- "style": sentinelStyle,
- "aria-hidden": "true"
- }, null), modalRender ? modalRender({
- originVNode: content
- }) : content, createVNode("div", {
- "tabindex": 0,
- "ref": sentinelEndRef,
- "style": sentinelStyle,
- "aria-hidden": "true"
- }, null)]), [[vShow, visible]]) : null];
- }
- });
- };
- }
- });
- // node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
- function _objectDestructuringEmpty(obj) {
- if (obj == null)
- throw new TypeError("Cannot destructure " + obj);
- }
- // node_modules/ant-design-vue/es/vc-dialog/Mask.js
- var Mask_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Mask",
- props: {
- prefixCls: String,
- visible: Boolean,
- motionName: String,
- maskProps: Object
- },
- setup: function setup119(props5, _ref) {
- _objectDestructuringEmpty(_ref);
- return function() {
- var prefixCls = props5.prefixCls, visible = props5.visible, maskProps = props5.maskProps, motionName = props5.motionName;
- var transitionProps = getTransitionProps(motionName);
- return createVNode(transition_default, transitionProps, {
- default: function _default9() {
- return [withDirectives(createVNode("div", _objectSpread2({
- "class": "".concat(prefixCls, "-mask")
- }, maskProps), null), [[vShow, visible]])];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-dialog/Dialog.js
- var Dialog_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Dialog",
- inheritAttrs: false,
- props: initDefaultProps_default(_objectSpread2(_objectSpread2({}, IDialogPropTypes_default()), {}, {
- getOpenCount: Function,
- scrollLocker: Object
- }), {
- mask: true,
- visible: false,
- keyboard: true,
- closable: true,
- maskClosable: true,
- destroyOnClose: false,
- prefixCls: "rc-dialog",
- getOpenCount: function getOpenCount() {
- return null;
- },
- focusTriggerAfterClose: true
- }),
- setup: function setup120(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var lastOutSideActiveElementRef = ref();
- var wrapperRef = ref();
- var contentRef = ref();
- var animatedVisible = ref(props5.visible);
- var ariaIdRef = ref("vcDialogTitle".concat(getUUID2()));
- var onDialogVisibleChanged = function onDialogVisibleChanged2(newVisible) {
- if (newVisible) {
- if (!contains(wrapperRef.value, document.activeElement)) {
- var _contentRef$value;
- lastOutSideActiveElementRef.value = document.activeElement;
- (_contentRef$value = contentRef.value) === null || _contentRef$value === void 0 ? void 0 : _contentRef$value.focus();
- }
- } else {
- var preAnimatedVisible = animatedVisible.value;
- animatedVisible.value = false;
- if (props5.mask && lastOutSideActiveElementRef.value && props5.focusTriggerAfterClose) {
- try {
- lastOutSideActiveElementRef.value.focus({
- preventScroll: true
- });
- } catch (e3) {
- }
- lastOutSideActiveElementRef.value = null;
- }
- if (preAnimatedVisible) {
- var _props$afterClose;
- (_props$afterClose = props5.afterClose) === null || _props$afterClose === void 0 ? void 0 : _props$afterClose.call(props5);
- }
- }
- };
- var onInternalClose = function onInternalClose2(e3) {
- var _props$onClose;
- (_props$onClose = props5.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props5, e3);
- };
- var contentClickRef = ref(false);
- var contentTimeoutRef = ref();
- var onContentMouseDown = function onContentMouseDown2() {
- clearTimeout(contentTimeoutRef.value);
- contentClickRef.value = true;
- };
- var onContentMouseUp = function onContentMouseUp2() {
- contentTimeoutRef.value = setTimeout(function() {
- contentClickRef.value = false;
- });
- };
- var onWrapperClick = function onWrapperClick2(e3) {
- if (!props5.maskClosable)
- return null;
- if (contentClickRef.value) {
- contentClickRef.value = false;
- } else if (wrapperRef.value === e3.target) {
- onInternalClose(e3);
- }
- };
- var onWrapperKeyDown = function onWrapperKeyDown2(e3) {
- if (props5.keyboard && e3.keyCode === KeyCode_default.ESC) {
- e3.stopPropagation();
- onInternalClose(e3);
- return;
- }
- if (props5.visible) {
- if (e3.keyCode === KeyCode_default.TAB) {
- contentRef.value.changeActive(!e3.shiftKey);
- }
- }
- };
- watch(function() {
- return props5.visible;
- }, function() {
- if (props5.visible) {
- animatedVisible.value = true;
- }
- }, {
- flush: "post"
- });
- onBeforeUnmount(function() {
- var _props$scrollLocker;
- clearTimeout(contentTimeoutRef.value);
- (_props$scrollLocker = props5.scrollLocker) === null || _props$scrollLocker === void 0 ? void 0 : _props$scrollLocker.unLock();
- });
- watchEffect(function() {
- var _props$scrollLocker2;
- (_props$scrollLocker2 = props5.scrollLocker) === null || _props$scrollLocker2 === void 0 ? void 0 : _props$scrollLocker2.unLock();
- if (animatedVisible.value) {
- var _props$scrollLocker3;
- (_props$scrollLocker3 = props5.scrollLocker) === null || _props$scrollLocker3 === void 0 ? void 0 : _props$scrollLocker3.lock();
- }
- });
- return function() {
- var prefixCls = props5.prefixCls, mask = props5.mask, visible = props5.visible, maskTransitionName = props5.maskTransitionName, maskAnimation = props5.maskAnimation, zIndex = props5.zIndex, wrapClassName = props5.wrapClassName, rootClassName = props5.rootClassName, wrapStyle = props5.wrapStyle, closable = props5.closable, maskProps = props5.maskProps, maskStyle = props5.maskStyle, transitionName2 = props5.transitionName, animation = props5.animation, wrapProps = props5.wrapProps, _props$title = props5.title, title = _props$title === void 0 ? slots.title : _props$title;
- var style = attrs.style, className = attrs.class;
- return createVNode("div", _objectSpread2({
- "class": ["".concat(prefixCls, "-root"), rootClassName]
- }, pickAttrs(props5, {
- data: true
- })), [createVNode(Mask_default, {
- "prefixCls": prefixCls,
- "visible": mask && visible,
- "motionName": getMotionName(prefixCls, maskTransitionName, maskAnimation),
- "style": _objectSpread2({
- zIndex
- }, maskStyle),
- "maskProps": maskProps
- }, null), createVNode("div", _objectSpread2({
- "tabIndex": -1,
- "onKeydown": onWrapperKeyDown,
- "class": classNames_default("".concat(prefixCls, "-wrap"), wrapClassName),
- "ref": wrapperRef,
- "onClick": onWrapperClick,
- "role": "dialog",
- "aria-labelledby": title ? ariaIdRef.value : null,
- "style": _objectSpread2(_objectSpread2({
- zIndex
- }, wrapStyle), {}, {
- display: !animatedVisible.value ? "none" : null
- })
- }, wrapProps), [createVNode(Content_default2, _objectSpread2(_objectSpread2({}, omit_default(props5, ["scrollLocker"])), {}, {
- "style": style,
- "class": className,
- "onMousedown": onContentMouseDown,
- "onMouseup": onContentMouseUp,
- "ref": contentRef,
- "closable": closable,
- "ariaId": ariaIdRef.value,
- "prefixCls": prefixCls,
- "visible": visible,
- "onClose": onInternalClose,
- "onVisibleChanged": onDialogVisibleChanged,
- "motionName": getMotionName(prefixCls, transitionName2, animation)
- }), slots)])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-dialog/DialogWrap.js
- var IDialogPropTypes = IDialogPropTypes_default();
- var DialogWrap = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "DialogWrap",
- inheritAttrs: false,
- props: initDefaultProps_default(IDialogPropTypes, {
- visible: false
- }),
- setup: function setup121(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var animatedVisible = ref(props5.visible);
- useProvidePortal({}, {
- inTriggerContext: false
- });
- watch(function() {
- return props5.visible;
- }, function() {
- if (props5.visible) {
- animatedVisible.value = true;
- }
- }, {
- flush: "post"
- });
- return function() {
- var visible = props5.visible, getContainer5 = props5.getContainer, forceRender = props5.forceRender, _props$destroyOnClose = props5.destroyOnClose, destroyOnClose = _props$destroyOnClose === void 0 ? false : _props$destroyOnClose, _afterClose = props5.afterClose;
- var dialogProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props5), attrs), {}, {
- ref: "_component",
- key: "dialog"
- });
- if (getContainer5 === false) {
- return createVNode(Dialog_default, _objectSpread2(_objectSpread2({}, dialogProps), {}, {
- "getOpenCount": function getOpenCount2() {
- return 2;
- }
- }), slots);
- }
- if (!forceRender && destroyOnClose && !animatedVisible.value) {
- return null;
- }
- return createVNode(PortalWrapper_default, {
- "visible": visible,
- "forceRender": forceRender,
- "getContainer": getContainer5
- }, {
- default: function _default9(childProps) {
- dialogProps = _objectSpread2(_objectSpread2(_objectSpread2({}, dialogProps), childProps), {}, {
- afterClose: function afterClose() {
- _afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
- animatedVisible.value = false;
- }
- });
- return createVNode(Dialog_default, dialogProps, slots);
- }
- });
- };
- }
- });
- var DialogWrap_default = DialogWrap;
- // node_modules/ant-design-vue/es/vc-dialog/index.js
- var vc_dialog_default = DialogWrap_default;
- // node_modules/ant-design-vue/es/vc-image/src/hooks/useFrameSetState.js
- function useFrameSetState(initial) {
- var frame = ref(null);
- var state = reactive(_objectSpread2({}, initial));
- var queue = ref([]);
- var setFrameState = function setFrameState2(newState) {
- if (frame.value === null) {
- queue.value = [];
- frame.value = wrapperRaf(function() {
- var memoState;
- queue.value.forEach(function(queueState) {
- memoState = _objectSpread2(_objectSpread2({}, memoState), queueState);
- });
- _extends(state, memoState);
- frame.value = null;
- });
- }
- queue.value.push(newState);
- };
- onMounted(function() {
- frame.value && wrapperRaf.cancel(frame.value);
- });
- return [state, setFrameState];
- }
- // node_modules/ant-design-vue/es/vc-image/src/getFixScaleEleTransPosition.js
- function fixPoint(key2, start, width, clientWidth) {
- var startAddWidth = start + width;
- var offsetStart = (width - clientWidth) / 2;
- if (width > clientWidth) {
- if (start > 0) {
- return _defineProperty({}, key2, offsetStart);
- }
- if (start < 0 && startAddWidth < clientWidth) {
- return _defineProperty({}, key2, -offsetStart);
- }
- } else if (start < 0 || startAddWidth > clientWidth) {
- return _defineProperty({}, key2, start < 0 ? offsetStart : -offsetStart);
- }
- return {};
- }
- function getFixScaleEleTransPosition(width, height, left, top) {
- var _getClientSize = getClientSize(), clientWidth = _getClientSize.width, clientHeight = _getClientSize.height;
- var fixPos = null;
- if (width <= clientWidth && height <= clientHeight) {
- fixPos = {
- x: 0,
- y: 0
- };
- } else if (width > clientWidth || height > clientHeight) {
- fixPos = _objectSpread2(_objectSpread2({}, fixPoint("x", left, width, clientWidth)), fixPoint("y", top, height, clientHeight));
- }
- return fixPos;
- }
- // node_modules/ant-design-vue/es/vc-image/src/PreviewGroup.js
- var previewGroupContext = Symbol("previewGroupContext");
- var context = {
- provide: function provide2(val) {
- provide(previewGroupContext, val);
- },
- inject: function inject2() {
- return inject(previewGroupContext, {
- isPreviewGroup: ref(false),
- previewUrls: computed(function() {
- return /* @__PURE__ */ new Map();
- }),
- setPreviewUrls: function setPreviewUrls() {
- },
- current: ref(null),
- setCurrent: function setCurrent() {
- },
- setShowPreview: function setShowPreview() {
- },
- setMousePosition: function setMousePosition() {
- },
- registerImage: null,
- rootClassName: ""
- });
- }
- };
- var Group2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "PreviewGroup",
- inheritAttrs: false,
- props: {
- previewPrefixCls: String,
- preview: {
- type: [Boolean, Object],
- default: true
- },
- icons: {
- type: Object,
- default: function _default3() {
- return {};
- }
- }
- },
- setup: function setup122(props5, _ref) {
- var slots = _ref.slots;
- var preview = computed(function() {
- var defaultValues = {
- visible: void 0,
- onVisibleChange: function onVisibleChange() {
- },
- getContainer: void 0,
- current: 0
- };
- return _typeof(props5.preview) === "object" ? mergeDefaultValue(props5.preview, defaultValues) : defaultValues;
- });
- var previewUrls = reactive(/* @__PURE__ */ new Map());
- var current2 = ref();
- var previewVisible = computed(function() {
- return preview.value.visible;
- });
- var getPreviewContainer = computed(function() {
- return preview.value.getContainer;
- });
- var onPreviewVisibleChange = function onPreviewVisibleChange2(val, preval) {
- var _preview$value$onVisi, _preview$value;
- (_preview$value$onVisi = (_preview$value = preview.value).onVisibleChange) === null || _preview$value$onVisi === void 0 ? void 0 : _preview$value$onVisi.call(_preview$value, val, preval);
- };
- var _useMergedState = useMergedState(!!previewVisible.value, {
- value: previewVisible,
- onChange: onPreviewVisibleChange
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), isShowPreview = _useMergedState2[0], setShowPreview = _useMergedState2[1];
- var mousePosition2 = ref(null);
- var isControlled = computed(function() {
- return previewVisible.value !== void 0;
- });
- var previewUrlsKeys = computed(function() {
- return Array.from(previewUrls.keys());
- });
- var currentControlledKey = computed(function() {
- return previewUrlsKeys.value[preview.value.current];
- });
- var canPreviewUrls = computed(function() {
- return new Map(Array.from(previewUrls).filter(function(_ref2) {
- var _ref3 = _slicedToArray(_ref2, 2), canPreview = _ref3[1].canPreview;
- return !!canPreview;
- }).map(function(_ref4) {
- var _ref5 = _slicedToArray(_ref4, 2), id = _ref5[0], url2 = _ref5[1].url;
- return [id, url2];
- }));
- });
- var setPreviewUrls = function setPreviewUrls2(id, url2) {
- var canPreview = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
- previewUrls.set(id, {
- url: url2,
- canPreview
- });
- };
- var setCurrent = function setCurrent2(val) {
- current2.value = val;
- };
- var setMousePosition = function setMousePosition2(val) {
- mousePosition2.value = val;
- };
- var registerImage = function registerImage2(id, url2) {
- var canPreview = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
- var unRegister = function unRegister2() {
- previewUrls.delete(id);
- };
- previewUrls.set(id, {
- url: url2,
- canPreview
- });
- return unRegister;
- };
- var onPreviewClose = function onPreviewClose2(e3) {
- e3 === null || e3 === void 0 ? void 0 : e3.stopPropagation();
- setShowPreview(false);
- setMousePosition(null);
- };
- watch(currentControlledKey, function(val) {
- setCurrent(val);
- }, {
- immediate: true,
- flush: "post"
- });
- watchEffect(function() {
- if (isShowPreview.value && isControlled.value) {
- setCurrent(currentControlledKey.value);
- }
- }, {
- flush: "post"
- });
- context.provide({
- isPreviewGroup: ref(true),
- previewUrls: canPreviewUrls,
- setPreviewUrls,
- current: current2,
- setCurrent,
- setShowPreview,
- setMousePosition,
- registerImage
- });
- return function() {
- var dialogProps = _extends({}, (_objectDestructuringEmpty(preview.value), preview.value));
- return createVNode(Fragment, null, [slots.default && slots.default(), createVNode(Preview_default, _objectSpread2(_objectSpread2({}, dialogProps), {}, {
- "ria-hidden": !isShowPreview.value,
- "visible": isShowPreview.value,
- "prefixCls": props5.previewPrefixCls,
- "onClose": onPreviewClose,
- "mousePosition": mousePosition2.value,
- "src": canPreviewUrls.value.get(current2.value),
- "icons": props5.icons,
- "getContainer": getPreviewContainer.value
- }), null)]);
- };
- }
- });
- var PreviewGroup_default = Group2;
- // node_modules/ant-design-vue/es/vc-image/src/Preview.js
- var initialPosition = {
- x: 0,
- y: 0
- };
- var previewProps = _objectSpread2(_objectSpread2({}, dialogPropTypes()), {}, {
- src: String,
- alt: String,
- rootClassName: String,
- icons: {
- type: Object,
- default: function _default4() {
- return {};
- }
- }
- });
- var Preview = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Preview",
- inheritAttrs: false,
- props: previewProps,
- emits: ["close", "afterClose"],
- setup: function setup123(props5, _ref) {
- var emit = _ref.emit, attrs = _ref.attrs;
- var _reactive = reactive(props5.icons), rotateLeft = _reactive.rotateLeft, rotateRight = _reactive.rotateRight, zoomIn = _reactive.zoomIn, zoomOut = _reactive.zoomOut, close3 = _reactive.close, left = _reactive.left, right = _reactive.right;
- var scale = ref(1);
- var rotate = ref(0);
- var _useFrameSetState = useFrameSetState(initialPosition), _useFrameSetState2 = _slicedToArray(_useFrameSetState, 2), position = _useFrameSetState2[0], setPosition = _useFrameSetState2[1];
- var onClose = function onClose2() {
- return emit("close");
- };
- var imgRef = ref();
- var originPositionRef = reactive({
- originX: 0,
- originY: 0,
- deltaX: 0,
- deltaY: 0
- });
- var isMoving = ref(false);
- var groupContext = context.inject();
- var previewUrls = groupContext.previewUrls, current2 = groupContext.current, isPreviewGroup = groupContext.isPreviewGroup, setCurrent = groupContext.setCurrent;
- var previewGroupCount = computed(function() {
- return previewUrls.value.size;
- });
- var previewUrlsKeys = computed(function() {
- return Array.from(previewUrls.value.keys());
- });
- var currentPreviewIndex = computed(function() {
- return previewUrlsKeys.value.indexOf(current2.value);
- });
- var combinationSrc = computed(function() {
- return isPreviewGroup.value ? previewUrls.value.get(current2.value) : props5.src;
- });
- var showLeftOrRightSwitches = computed(function() {
- return isPreviewGroup.value && previewGroupCount.value > 1;
- });
- var lastWheelZoomDirection = ref({
- wheelDirection: 0
- });
- var onAfterClose = function onAfterClose2() {
- scale.value = 1;
- rotate.value = 0;
- setPosition(initialPosition);
- emit("afterClose");
- };
- var onZoomIn = function onZoomIn2() {
- scale.value++;
- setPosition(initialPosition);
- };
- var onZoomOut = function onZoomOut2() {
- if (scale.value > 1) {
- scale.value--;
- }
- setPosition(initialPosition);
- };
- var onRotateRight = function onRotateRight2() {
- rotate.value += 90;
- };
- var onRotateLeft = function onRotateLeft2() {
- rotate.value -= 90;
- };
- var onSwitchLeft = function onSwitchLeft2(event) {
- event.preventDefault();
- event.stopPropagation();
- if (currentPreviewIndex.value > 0) {
- setCurrent(previewUrlsKeys.value[currentPreviewIndex.value - 1]);
- }
- };
- var onSwitchRight = function onSwitchRight2(event) {
- event.preventDefault();
- event.stopPropagation();
- if (currentPreviewIndex.value < previewGroupCount.value - 1) {
- setCurrent(previewUrlsKeys.value[currentPreviewIndex.value + 1]);
- }
- };
- var wrapClassName = classNames_default(_defineProperty({}, "".concat(props5.prefixCls, "-moving"), isMoving.value));
- var toolClassName = "".concat(props5.prefixCls, "-operations-operation");
- var iconClassName = "".concat(props5.prefixCls, "-operations-icon");
- var tools = [{
- icon: close3,
- onClick: onClose,
- type: "close"
- }, {
- icon: zoomIn,
- onClick: onZoomIn,
- type: "zoomIn"
- }, {
- icon: zoomOut,
- onClick: onZoomOut,
- type: "zoomOut",
- disabled: computed(function() {
- return scale.value === 1;
- })
- }, {
- icon: rotateRight,
- onClick: onRotateRight,
- type: "rotateRight"
- }, {
- icon: rotateLeft,
- onClick: onRotateLeft,
- type: "rotateLeft"
- }];
- var onMouseUp2 = function onMouseUp3() {
- if (props5.visible && isMoving.value) {
- var width = imgRef.value.offsetWidth * scale.value;
- var height = imgRef.value.offsetHeight * scale.value;
- var _getOffset = getOffset3(imgRef.value), _left = _getOffset.left, top = _getOffset.top;
- var isRotate = rotate.value % 180 !== 0;
- isMoving.value = false;
- var fixState = getFixScaleEleTransPosition(isRotate ? height : width, isRotate ? width : height, _left, top);
- if (fixState) {
- setPosition(_objectSpread2({}, fixState));
- }
- }
- };
- var onMouseDown2 = function onMouseDown3(event) {
- if (event.button !== 0)
- return;
- event.preventDefault();
- event.stopPropagation();
- originPositionRef.deltaX = event.pageX - position.x;
- originPositionRef.deltaY = event.pageY - position.y;
- originPositionRef.originX = position.x;
- originPositionRef.originY = position.y;
- isMoving.value = true;
- };
- var onMouseMove3 = function onMouseMove4(event) {
- if (props5.visible && isMoving.value) {
- setPosition({
- x: event.pageX - originPositionRef.deltaX,
- y: event.pageY - originPositionRef.deltaY
- });
- }
- };
- var onWheelMove = function onWheelMove2(event) {
- if (!props5.visible)
- return;
- event.preventDefault();
- var wheelDirection = event.deltaY;
- lastWheelZoomDirection.value = {
- wheelDirection
- };
- };
- var onKeyDown = function onKeyDown2(event) {
- if (!props5.visible || !showLeftOrRightSwitches.value)
- return;
- event.preventDefault();
- if (event.keyCode === KeyCode_default.LEFT) {
- if (currentPreviewIndex.value > 0) {
- setCurrent(previewUrlsKeys.value[currentPreviewIndex.value - 1]);
- }
- } else if (event.keyCode === KeyCode_default.RIGHT) {
- if (currentPreviewIndex.value < previewGroupCount.value - 1) {
- setCurrent(previewUrlsKeys.value[currentPreviewIndex.value + 1]);
- }
- }
- };
- var onDoubleClick = function onDoubleClick2() {
- if (props5.visible) {
- if (scale.value !== 1) {
- scale.value = 1;
- }
- if (position.x !== initialPosition.x || position.y !== initialPosition.y) {
- setPosition(initialPosition);
- }
- }
- };
- var removeListeners = function removeListeners2() {
- };
- onMounted(function() {
- watch([function() {
- return props5.visible;
- }, isMoving], function() {
- removeListeners();
- var onTopMouseUpListener;
- var onTopMouseMoveListener;
- var onMouseUpListener = addEventListenerWrap(window, "mouseup", onMouseUp2, false);
- var onMouseMoveListener = addEventListenerWrap(window, "mousemove", onMouseMove3, false);
- var onScrollWheelListener = addEventListenerWrap(window, "wheel", onWheelMove, {
- passive: false
- });
- var onKeyDownListener = addEventListenerWrap(window, "keydown", onKeyDown, false);
- try {
- if (window.top !== window.self) {
- onTopMouseUpListener = addEventListenerWrap(window.top, "mouseup", onMouseUp2, false);
- onTopMouseMoveListener = addEventListenerWrap(window.top, "mousemove", onMouseMove3, false);
- }
- } catch (error) {
- warning(false, "[vc-image] ".concat(error));
- }
- removeListeners = function removeListeners2() {
- onMouseUpListener.remove();
- onMouseMoveListener.remove();
- onScrollWheelListener.remove();
- onKeyDownListener.remove();
- if (onTopMouseUpListener)
- onTopMouseUpListener.remove();
- if (onTopMouseMoveListener)
- onTopMouseMoveListener.remove();
- };
- }, {
- flush: "post",
- immediate: true
- });
- watch([lastWheelZoomDirection], function() {
- var wheelDirection = lastWheelZoomDirection.value.wheelDirection;
- if (wheelDirection > 0) {
- onZoomOut();
- } else if (wheelDirection < 0) {
- onZoomIn();
- }
- });
- });
- onUnmounted(function() {
- removeListeners();
- });
- return function() {
- var visible = props5.visible, prefixCls = props5.prefixCls, rootClassName = props5.rootClassName;
- return createVNode(vc_dialog_default, _objectSpread2(_objectSpread2({}, attrs), {}, {
- "transitionName": "zoom",
- "maskTransitionName": "fade",
- "closable": false,
- "keyboard": true,
- "prefixCls": prefixCls,
- "onClose": onClose,
- "afterClose": onAfterClose,
- "visible": visible,
- "wrapClassName": wrapClassName,
- "rootClassName": rootClassName,
- "getContainer": props5.getContainer
- }), {
- default: function _default9() {
- return [createVNode("ul", {
- "class": "".concat(props5.prefixCls, "-operations")
- }, [tools.map(function(_ref2) {
- var IconType = _ref2.icon, onClick2 = _ref2.onClick, type4 = _ref2.type, disabled = _ref2.disabled;
- return createVNode("li", {
- "class": classNames_default(toolClassName, _defineProperty({}, "".concat(props5.prefixCls, "-operations-operation-disabled"), disabled && (disabled === null || disabled === void 0 ? void 0 : disabled.value))),
- "onClick": onClick2,
- "key": type4
- }, [cloneVNode(IconType, {
- class: iconClassName
- })]);
- })]), createVNode("div", {
- "class": "".concat(props5.prefixCls, "-img-wrapper"),
- "style": {
- transform: "translate3d(".concat(position.x, "px, ").concat(position.y, "px, 0)")
- }
- }, [createVNode("img", {
- "onMousedown": onMouseDown2,
- "onDblclick": onDoubleClick,
- "ref": imgRef,
- "class": "".concat(props5.prefixCls, "-img"),
- "src": combinationSrc.value,
- "alt": props5.alt,
- "style": {
- transform: "scale3d(".concat(scale.value, ", ").concat(scale.value, ", 1) rotate(").concat(rotate.value, "deg)")
- }
- }, null)]), showLeftOrRightSwitches.value && createVNode("div", {
- "class": classNames_default("".concat(props5.prefixCls, "-switch-left"), _defineProperty({}, "".concat(props5.prefixCls, "-switch-left-disabled"), currentPreviewIndex.value <= 0)),
- "onClick": onSwitchLeft
- }, [left]), showLeftOrRightSwitches.value && createVNode("div", {
- "class": classNames_default("".concat(props5.prefixCls, "-switch-right"), _defineProperty({}, "".concat(props5.prefixCls, "-switch-right-disabled"), currentPreviewIndex.value >= previewGroupCount.value - 1)),
- "onClick": onSwitchRight
- }, [right])];
- }
- });
- };
- }
- });
- var Preview_default = Preview;
- // node_modules/ant-design-vue/es/vc-image/src/Image.js
- var _excluded37 = ["icons", "maskClassName"];
- var imageProps = function imageProps2() {
- return {
- src: String,
- wrapperClassName: String,
- wrapperStyle: {
- type: Object,
- default: void 0
- },
- rootClassName: String,
- prefixCls: String,
- previewPrefixCls: String,
- previewMask: {
- type: [Boolean, Function],
- default: void 0
- },
- placeholder: vue_types_default.any,
- fallback: String,
- preview: {
- type: [Boolean, Object],
- default: true
- },
- onClick: {
- type: Function
- },
- onError: {
- type: Function
- }
- };
- };
- var mergeDefaultValue = function mergeDefaultValue2(obj, defaultValues) {
- var res = _objectSpread2({}, obj);
- Object.keys(defaultValues).forEach(function(key2) {
- if (obj[key2] === void 0) {
- res[key2] = defaultValues[key2];
- }
- });
- return res;
- };
- var uuid5 = 0;
- var ImageInternal = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Image",
- inheritAttrs: false,
- props: imageProps(),
- emits: ["click", "error"],
- setup: function setup124(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, emit = _ref.emit;
- var prefixCls = computed(function() {
- return props5.prefixCls;
- });
- var previewPrefixCls = computed(function() {
- return "".concat(prefixCls.value, "-preview");
- });
- var preview = computed(function() {
- var defaultValues = {
- visible: void 0,
- onVisibleChange: function onVisibleChange() {
- },
- getContainer: void 0
- };
- return _typeof(props5.preview) === "object" ? mergeDefaultValue(props5.preview, defaultValues) : defaultValues;
- });
- var src = computed(function() {
- var _preview$value$src;
- return (_preview$value$src = preview.value.src) !== null && _preview$value$src !== void 0 ? _preview$value$src : props5.src;
- });
- var isCustomPlaceholder = computed(function() {
- return props5.placeholder && props5.placeholder !== true || slots.placeholder;
- });
- var previewVisible = computed(function() {
- return preview.value.visible;
- });
- var getPreviewContainer = computed(function() {
- return preview.value.getContainer;
- });
- var isControlled = computed(function() {
- return previewVisible.value !== void 0;
- });
- var onPreviewVisibleChange = function onPreviewVisibleChange2(val, preval) {
- var _preview$value$onVisi, _preview$value;
- (_preview$value$onVisi = (_preview$value = preview.value).onVisibleChange) === null || _preview$value$onVisi === void 0 ? void 0 : _preview$value$onVisi.call(_preview$value, val, preval);
- };
- var _useMergedState = useMergedState(!!previewVisible.value, {
- value: previewVisible,
- onChange: onPreviewVisibleChange
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), isShowPreview = _useMergedState2[0], setShowPreview = _useMergedState2[1];
- watch(isShowPreview, function(val, preVal) {
- onPreviewVisibleChange(val, preVal);
- });
- var status = ref(isCustomPlaceholder.value ? "loading" : "normal");
- watch(function() {
- return props5.src;
- }, function() {
- status.value = isCustomPlaceholder.value ? "loading" : "normal";
- });
- var mousePosition2 = ref(null);
- var isError = computed(function() {
- return status.value === "error";
- });
- var groupContext = context.inject();
- var isPreviewGroup = groupContext.isPreviewGroup, setCurrent = groupContext.setCurrent, setGroupShowPreview = groupContext.setShowPreview, setGroupMousePosition = groupContext.setMousePosition, registerImage = groupContext.registerImage;
- var currentId = ref(uuid5++);
- var canPreview = computed(function() {
- return props5.preview && !isError.value;
- });
- var onLoad = function onLoad2() {
- status.value = "normal";
- };
- var onError = function onError2(e3) {
- status.value = "error";
- emit("error", e3);
- };
- var onPreview = function onPreview2(e3) {
- if (!isControlled.value) {
- var _getOffset = getOffset3(e3.target), left = _getOffset.left, top = _getOffset.top;
- if (isPreviewGroup.value) {
- setCurrent(currentId.value);
- setGroupMousePosition({
- x: left,
- y: top
- });
- } else {
- mousePosition2.value = {
- x: left,
- y: top
- };
- }
- }
- if (isPreviewGroup.value) {
- setGroupShowPreview(true);
- } else {
- setShowPreview(true);
- }
- emit("click", e3);
- };
- var onPreviewClose = function onPreviewClose2() {
- setShowPreview(false);
- if (!isControlled.value) {
- mousePosition2.value = null;
- }
- };
- var img = ref(null);
- watch(function() {
- return img;
- }, function() {
- if (status.value !== "loading")
- return;
- if (img.value.complete && (img.value.naturalWidth || img.value.naturalHeight)) {
- onLoad();
- }
- });
- var unRegister = function unRegister2() {
- };
- onMounted(function() {
- watch([src, canPreview], function() {
- unRegister();
- if (!isPreviewGroup.value) {
- return function() {
- };
- }
- unRegister = registerImage(currentId.value, src.value, canPreview.value);
- if (!canPreview.value) {
- unRegister();
- }
- }, {
- flush: "post",
- immediate: true
- });
- });
- onUnmounted(function() {
- unRegister();
- });
- var toSizePx = function toSizePx2(l2) {
- if (isNumber_default(l2))
- return l2 + "px";
- return l2;
- };
- return function() {
- var prefixCls2 = props5.prefixCls, wrapperClassName = props5.wrapperClassName, fallback = props5.fallback, imgSrc = props5.src, placeholder = props5.placeholder, wrapperStyle2 = props5.wrapperStyle, rootClassName = props5.rootClassName;
- var width = attrs.width, height = attrs.height, crossorigin = attrs.crossorigin, decoding = attrs.decoding, alt = attrs.alt, sizes = attrs.sizes, srcset = attrs.srcset, usemap = attrs.usemap, cls = attrs.class, style = attrs.style;
- var _preview$value2 = preview.value, icons2 = _preview$value2.icons, maskClassName = _preview$value2.maskClassName, dialogProps = _objectWithoutProperties(_preview$value2, _excluded37);
- var wrappperClass = classNames_default(prefixCls2, wrapperClassName, rootClassName, _defineProperty({}, "".concat(prefixCls2, "-error"), isError.value));
- var mergedSrc = isError.value && fallback ? fallback : src.value;
- var imgCommonProps = {
- crossorigin,
- decoding,
- alt,
- sizes,
- srcset,
- usemap,
- class: classNames_default("".concat(prefixCls2, "-img"), _defineProperty({}, "".concat(prefixCls2, "-img-placeholder"), placeholder === true), cls),
- style: _objectSpread2({
- height
- }, style)
- };
- return createVNode(Fragment, null, [createVNode("div", {
- "class": wrappperClass,
- "onClick": canPreview.value ? onPreview : function(e3) {
- emit("click", e3);
- },
- "style": _objectSpread2({
- width: toSizePx(width),
- height: toSizePx(height)
- }, wrapperStyle2)
- }, [createVNode("img", _objectSpread2(_objectSpread2(_objectSpread2({}, imgCommonProps), isError.value && fallback ? {
- src: fallback
- } : {
- onLoad,
- onError,
- src: imgSrc
- }), {}, {
- "ref": img
- }), null), status.value === "loading" && createVNode("div", {
- "aria-hidden": "true",
- "class": "".concat(prefixCls2, "-placeholder")
- }, [placeholder || slots.placeholder && slots.placeholder()]), slots.previewMask && canPreview.value && createVNode("div", {
- "class": ["".concat(prefixCls2, "-mask"), maskClassName]
- }, [slots.previewMask()])]), !isPreviewGroup.value && canPreview.value && createVNode(Preview_default, _objectSpread2(_objectSpread2({}, dialogProps), {}, {
- "aria-hidden": !isShowPreview.value,
- "visible": isShowPreview.value,
- "prefixCls": previewPrefixCls.value,
- "onClose": onPreviewClose,
- "mousePosition": mousePosition2.value,
- "src": mergedSrc,
- "alt": alt,
- "getContainer": getPreviewContainer.value,
- "icons": icons2,
- "rootClassName": rootClassName
- }), null)]);
- };
- }
- });
- ImageInternal.PreviewGroup = PreviewGroup_default;
- var Image_default = ImageInternal;
- // node_modules/ant-design-vue/es/vc-image/index.js
- var vc_image_default = Image_default;
- // node_modules/ant-design-vue/es/locale/en_US.js
- var en_US_default6 = default_default;
- // node_modules/ant-design-vue/es/image/PreviewGroup.js
- var icons = {
- rotateLeft: createVNode(RotateLeftOutlined_default, null, null),
- rotateRight: createVNode(RotateRightOutlined_default, null, null),
- zoomIn: createVNode(ZoomInOutlined_default, null, null),
- zoomOut: createVNode(ZoomOutOutlined_default, null, null),
- close: createVNode(CloseOutlined_default, null, null),
- left: createVNode(LeftOutlined_default, null, null),
- right: createVNode(RightOutlined_default, null, null)
- };
- var InternalPreviewGroup = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AImagePreviewGroup",
- inheritAttrs: false,
- props: {
- previewPrefixCls: String
- },
- setup: function setup125(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("image", props5), getPrefixCls2 = _useConfigInject.getPrefixCls;
- var prefixCls = computed(function() {
- return getPrefixCls2("image-preview", props5.previewPrefixCls);
- });
- return function() {
- return createVNode(PreviewGroup_default, _objectSpread2(_objectSpread2({}, _objectSpread2(_objectSpread2({}, attrs), props5)), {}, {
- "icons": icons,
- "previewPrefixCls": prefixCls.value
- }), slots);
- };
- }
- });
- var PreviewGroup_default2 = InternalPreviewGroup;
- // node_modules/ant-design-vue/es/image/index.js
- var Image2 = defineComponent({
- name: "AImage",
- inheritAttrs: false,
- props: imageProps(),
- setup: function setup126(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("image", props5), prefixCls = _useConfigInject.prefixCls, rootPrefixCls = _useConfigInject.rootPrefixCls, configProvider = _useConfigInject.configProvider;
- var mergedPreview = computed(function() {
- var preview = props5.preview;
- if (preview === false) {
- return preview;
- }
- var _preview = _typeof(preview) === "object" ? preview : {};
- return _objectSpread2(_objectSpread2({
- icons
- }, _preview), {}, {
- transitionName: getTransitionName(rootPrefixCls.value, "zoom", _preview.transitionName),
- maskTransitionName: getTransitionName(rootPrefixCls.value, "fade", _preview.maskTransitionName)
- });
- });
- return function() {
- var _configProvider$local;
- var imageLocale = ((_configProvider$local = configProvider.locale) === null || _configProvider$local === void 0 ? void 0 : _configProvider$local.Image) || en_US_default6.Image;
- var defaultPreviewMask = function defaultPreviewMask2() {
- return createVNode("div", {
- "class": "".concat(prefixCls.value, "-mask-info")
- }, [createVNode(EyeOutlined_default, null, null), imageLocale === null || imageLocale === void 0 ? void 0 : imageLocale.preview]);
- };
- var _props$previewMask = props5.previewMask, previewMask = _props$previewMask === void 0 ? slots.previewMask || defaultPreviewMask : _props$previewMask;
- return createVNode(vc_image_default, _objectSpread2(_objectSpread2({}, _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), props5), {}, {
- prefixCls: prefixCls.value
- })), {}, {
- "preview": mergedPreview.value
- }), _objectSpread2(_objectSpread2({}, slots), {}, {
- previewMask: typeof previewMask === "function" ? previewMask : null
- }));
- };
- }
- });
- Image2.PreviewGroup = PreviewGroup_default2;
- Image2.install = function(app) {
- app.component(Image2.name, Image2);
- app.component(Image2.PreviewGroup.name, Image2.PreviewGroup);
- return app;
- };
- var image_default = Image2;
- // node_modules/ant-design-vue/es/input-number/src/utils/supportUtil.js
- function supportBigInt() {
- return typeof BigInt === "function";
- }
- // node_modules/ant-design-vue/es/input-number/src/utils/numberUtil.js
- function trimNumber(numStr) {
- var str = numStr.trim();
- var negative = str.startsWith("-");
- if (negative) {
- str = str.slice(1);
- }
- str = str.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, "");
- if (str.startsWith(".")) {
- str = "0".concat(str);
- }
- var trimStr = str || "0";
- var splitNumber = trimStr.split(".");
- var integerStr = splitNumber[0] || "0";
- var decimalStr = splitNumber[1] || "0";
- if (integerStr === "0" && decimalStr === "0") {
- negative = false;
- }
- var negativeStr = negative ? "-" : "";
- return {
- negative,
- negativeStr,
- trimStr,
- integerStr,
- decimalStr,
- fullStr: "".concat(negativeStr).concat(trimStr)
- };
- }
- function isE(number4) {
- var str = String(number4);
- return !Number.isNaN(Number(str)) && str.includes("e");
- }
- function getNumberPrecision(number4) {
- var numStr = String(number4);
- if (isE(number4)) {
- var precision = Number(numStr.slice(numStr.indexOf("e-") + 2));
- var decimalMatch = numStr.match(/\.(\d+)/);
- if (decimalMatch !== null && decimalMatch !== void 0 && decimalMatch[1]) {
- precision += decimalMatch[1].length;
- }
- return precision;
- }
- return numStr.includes(".") && validateNumber(numStr) ? numStr.length - numStr.indexOf(".") - 1 : 0;
- }
- function num2str(number4) {
- var numStr = String(number4);
- if (isE(number4)) {
- if (number4 > Number.MAX_SAFE_INTEGER) {
- return String(supportBigInt() ? BigInt(number4).toString() : Number.MAX_SAFE_INTEGER);
- }
- if (number4 < Number.MIN_SAFE_INTEGER) {
- return String(supportBigInt() ? BigInt(number4).toString() : Number.MIN_SAFE_INTEGER);
- }
- numStr = number4.toFixed(getNumberPrecision(numStr));
- }
- return trimNumber(numStr).fullStr;
- }
- function validateNumber(num) {
- if (typeof num === "number") {
- return !Number.isNaN(num);
- }
- if (!num) {
- return false;
- }
- return (
- // Normal type: 11.28
- /^\s*-?\d+(\.\d+)?\s*$/.test(num) || // Pre-number: 1.
- /^\s*-?\d+\.\s*$/.test(num) || // Post-number: .1
- /^\s*-?\.\d+\s*$/.test(num)
- );
- }
- // node_modules/ant-design-vue/es/input-number/src/utils/MiniDecimal.js
- function isEmpty(value) {
- return !value && value !== 0 && !Number.isNaN(value) || !String(value).trim();
- }
- var NumberDecimal = function() {
- function NumberDecimal2(value) {
- _classCallCheck(this, NumberDecimal2);
- _defineProperty(this, "origin", "");
- if (isEmpty(value)) {
- this.empty = true;
- return;
- }
- this.origin = String(value);
- this.number = Number(value);
- }
- _createClass(NumberDecimal2, [{
- key: "negate",
- value: function negate() {
- return new NumberDecimal2(-this.toNumber());
- }
- }, {
- key: "add",
- value: function add(value) {
- if (this.isInvalidate()) {
- return new NumberDecimal2(value);
- }
- var target = Number(value);
- if (Number.isNaN(target)) {
- return this;
- }
- var number4 = this.number + target;
- if (number4 > Number.MAX_SAFE_INTEGER) {
- return new NumberDecimal2(Number.MAX_SAFE_INTEGER);
- }
- if (number4 < Number.MIN_SAFE_INTEGER) {
- return new NumberDecimal2(Number.MIN_SAFE_INTEGER);
- }
- var maxPrecision = Math.max(getNumberPrecision(this.number), getNumberPrecision(target));
- return new NumberDecimal2(number4.toFixed(maxPrecision));
- }
- }, {
- key: "isEmpty",
- value: function isEmpty2() {
- return this.empty;
- }
- }, {
- key: "isNaN",
- value: function isNaN2() {
- return Number.isNaN(this.number);
- }
- }, {
- key: "isInvalidate",
- value: function isInvalidate() {
- return this.isEmpty() || this.isNaN();
- }
- }, {
- key: "equals",
- value: function equals(target) {
- return this.toNumber() === (target === null || target === void 0 ? void 0 : target.toNumber());
- }
- }, {
- key: "lessEquals",
- value: function lessEquals(target) {
- return this.add(target.negate().toString()).toNumber() <= 0;
- }
- }, {
- key: "toNumber",
- value: function toNumber2() {
- return this.number;
- }
- }, {
- key: "toString",
- value: function toString3() {
- var safe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
- if (!safe) {
- return this.origin;
- }
- if (this.isInvalidate()) {
- return "";
- }
- return num2str(this.number);
- }
- }]);
- return NumberDecimal2;
- }();
- var BigIntDecimal = function() {
- function BigIntDecimal2(value) {
- _classCallCheck(this, BigIntDecimal2);
- _defineProperty(this, "origin", "");
- if (isEmpty(value)) {
- this.empty = true;
- return;
- }
- this.origin = String(value);
- if (value === "-" || Number.isNaN(value)) {
- this.nan = true;
- return;
- }
- var mergedValue = value;
- if (isE(mergedValue)) {
- mergedValue = Number(mergedValue);
- }
- mergedValue = typeof mergedValue === "string" ? mergedValue : num2str(mergedValue);
- if (validateNumber(mergedValue)) {
- var trimRet = trimNumber(mergedValue);
- this.negative = trimRet.negative;
- var numbers = trimRet.trimStr.split(".");
- this.integer = BigInt(numbers[0]);
- var decimalStr = numbers[1] || "0";
- this.decimal = BigInt(decimalStr);
- this.decimalLen = decimalStr.length;
- } else {
- this.nan = true;
- }
- }
- _createClass(BigIntDecimal2, [{
- key: "getMark",
- value: function getMark2() {
- return this.negative ? "-" : "";
- }
- }, {
- key: "getIntegerStr",
- value: function getIntegerStr() {
- return this.integer.toString();
- }
- }, {
- key: "getDecimalStr",
- value: function getDecimalStr() {
- return this.decimal.toString().padStart(this.decimalLen, "0");
- }
- /**
- * Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
- * This is used for add function only.
- */
- }, {
- key: "alignDecimal",
- value: function alignDecimal(decimalLength) {
- var str = "".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(decimalLength, "0"));
- return BigInt(str);
- }
- }, {
- key: "negate",
- value: function negate() {
- var clone2 = new BigIntDecimal2(this.toString());
- clone2.negative = !clone2.negative;
- return clone2;
- }
- }, {
- key: "add",
- value: function add(value) {
- if (this.isInvalidate()) {
- return new BigIntDecimal2(value);
- }
- var offset4 = new BigIntDecimal2(value);
- if (offset4.isInvalidate()) {
- return this;
- }
- var maxDecimalLength = Math.max(this.getDecimalStr().length, offset4.getDecimalStr().length);
- var myAlignedDecimal = this.alignDecimal(maxDecimalLength);
- var offsetAlignedDecimal = offset4.alignDecimal(maxDecimalLength);
- var valueStr = (myAlignedDecimal + offsetAlignedDecimal).toString();
- var _trimNumber = trimNumber(valueStr), negativeStr = _trimNumber.negativeStr, trimStr = _trimNumber.trimStr;
- var hydrateValueStr = "".concat(negativeStr).concat(trimStr.padStart(maxDecimalLength + 1, "0"));
- return new BigIntDecimal2("".concat(hydrateValueStr.slice(0, -maxDecimalLength), ".").concat(hydrateValueStr.slice(-maxDecimalLength)));
- }
- }, {
- key: "isEmpty",
- value: function isEmpty2() {
- return this.empty;
- }
- }, {
- key: "isNaN",
- value: function isNaN2() {
- return this.nan;
- }
- }, {
- key: "isInvalidate",
- value: function isInvalidate() {
- return this.isEmpty() || this.isNaN();
- }
- }, {
- key: "equals",
- value: function equals(target) {
- return this.toString() === (target === null || target === void 0 ? void 0 : target.toString());
- }
- }, {
- key: "lessEquals",
- value: function lessEquals(target) {
- return this.add(target.negate().toString()).toNumber() <= 0;
- }
- }, {
- key: "toNumber",
- value: function toNumber2() {
- if (this.isNaN()) {
- return NaN;
- }
- return Number(this.toString());
- }
- }, {
- key: "toString",
- value: function toString3() {
- var safe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
- if (!safe) {
- return this.origin;
- }
- if (this.isInvalidate()) {
- return "";
- }
- return trimNumber("".concat(this.getMark()).concat(this.getIntegerStr(), ".").concat(this.getDecimalStr())).fullStr;
- }
- }]);
- return BigIntDecimal2;
- }();
- function getMiniDecimal(value) {
- if (supportBigInt()) {
- return new BigIntDecimal(value);
- }
- return new NumberDecimal(value);
- }
- function toFixed(numStr, separatorStr, precision) {
- var cutOnly = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
- if (numStr === "") {
- return "";
- }
- var _trimNumber2 = trimNumber(numStr), negativeStr = _trimNumber2.negativeStr, integerStr = _trimNumber2.integerStr, decimalStr = _trimNumber2.decimalStr;
- var precisionDecimalStr = "".concat(separatorStr).concat(decimalStr);
- var numberWithoutDecimal = "".concat(negativeStr).concat(integerStr);
- if (precision >= 0) {
- var advancedNum = Number(decimalStr[precision]);
- if (advancedNum >= 5 && !cutOnly) {
- var advancedDecimal = getMiniDecimal(numStr).add("".concat(negativeStr, "0.").concat("0".repeat(precision)).concat(10 - advancedNum));
- return toFixed(advancedDecimal.toString(), separatorStr, precision, cutOnly);
- }
- if (precision === 0) {
- return numberWithoutDecimal;
- }
- return "".concat(numberWithoutDecimal).concat(separatorStr).concat(decimalStr.padEnd(precision, "0").slice(0, precision));
- }
- if (precisionDecimalStr === ".0") {
- return numberWithoutDecimal;
- }
- return "".concat(numberWithoutDecimal).concat(precisionDecimalStr);
- }
- // node_modules/ant-design-vue/es/input-number/src/StepHandler.js
- var STEP_INTERVAL = 200;
- var STEP_DELAY = 600;
- var StepHandler_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "StepHandler",
- inheritAttrs: false,
- props: {
- prefixCls: String,
- upDisabled: Boolean,
- downDisabled: Boolean,
- onStep: {
- type: Function
- }
- },
- slots: ["upNode", "downNode"],
- setup: function setup127(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit;
- var stepTimeoutRef = ref();
- var onStepMouseDown = function onStepMouseDown2(e3, up) {
- e3.preventDefault();
- emit("step", up);
- function loopStep() {
- emit("step", up);
- stepTimeoutRef.value = setTimeout(loopStep, STEP_INTERVAL);
- }
- stepTimeoutRef.value = setTimeout(loopStep, STEP_DELAY);
- };
- var onStopStep = function onStopStep2() {
- clearTimeout(stepTimeoutRef.value);
- };
- onBeforeUnmount(function() {
- onStopStep();
- });
- return function() {
- if (isMobile_default()) {
- return null;
- }
- var prefixCls = props5.prefixCls, upDisabled = props5.upDisabled, downDisabled = props5.downDisabled;
- var handlerClassName = "".concat(prefixCls, "-handler");
- var upClassName = classNames_default(handlerClassName, "".concat(handlerClassName, "-up"), _defineProperty({}, "".concat(handlerClassName, "-up-disabled"), upDisabled));
- var downClassName = classNames_default(handlerClassName, "".concat(handlerClassName, "-down"), _defineProperty({}, "".concat(handlerClassName, "-down-disabled"), downDisabled));
- var sharedHandlerProps = {
- unselectable: "on",
- role: "button",
- onMouseup: onStopStep,
- onMouseleave: onStopStep
- };
- var upNode = slots.upNode, downNode = slots.downNode;
- return createVNode("div", {
- "class": "".concat(handlerClassName, "-wrap")
- }, [createVNode("span", _objectSpread2(_objectSpread2({}, sharedHandlerProps), {}, {
- "onMousedown": function onMousedown2(e3) {
- onStepMouseDown(e3, true);
- },
- "aria-label": "Increase Value",
- "aria-disabled": upDisabled,
- "class": upClassName
- }), [(upNode === null || upNode === void 0 ? void 0 : upNode()) || createVNode("span", {
- "unselectable": "on",
- "class": "".concat(prefixCls, "-handler-up-inner")
- }, null)]), createVNode("span", _objectSpread2(_objectSpread2({}, sharedHandlerProps), {}, {
- "onMousedown": function onMousedown2(e3) {
- onStepMouseDown(e3, false);
- },
- "aria-label": "Decrease Value",
- "aria-disabled": downDisabled,
- "class": downClassName
- }), [(downNode === null || downNode === void 0 ? void 0 : downNode()) || createVNode("span", {
- "unselectable": "on",
- "class": "".concat(prefixCls, "-handler-down-inner")
- }, null)])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/input-number/src/hooks/useCursor.js
- function useCursor(inputRef, focused) {
- var selectionRef = ref(null);
- function recordCursor() {
- try {
- var _inputRef$value = inputRef.value, start = _inputRef$value.selectionStart, end = _inputRef$value.selectionEnd, value = _inputRef$value.value;
- var beforeTxt = value.substring(0, start);
- var afterTxt = value.substring(end);
- selectionRef.value = {
- start,
- end,
- value,
- beforeTxt,
- afterTxt
- };
- } catch (e3) {
- }
- }
- function restoreCursor() {
- if (inputRef.value && selectionRef.value && focused.value) {
- try {
- var value = inputRef.value.value;
- var _selectionRef$value = selectionRef.value, beforeTxt = _selectionRef$value.beforeTxt, afterTxt = _selectionRef$value.afterTxt, start = _selectionRef$value.start;
- var startPos = value.length;
- if (value.endsWith(afterTxt)) {
- startPos = value.length - selectionRef.value.afterTxt.length;
- } else if (value.startsWith(beforeTxt)) {
- startPos = beforeTxt.length;
- } else {
- var beforeLastChar = beforeTxt[start - 1];
- var newIndex = value.indexOf(beforeLastChar, start - 1);
- if (newIndex !== -1) {
- startPos = newIndex + 1;
- }
- }
- inputRef.value.setSelectionRange(startPos, startPos);
- } catch (e3) {
- warning(false, "Something warning of cursor restore. Please fire issue about this: ".concat(e3.message));
- }
- }
- }
- return [recordCursor, restoreCursor];
- }
- // node_modules/ant-design-vue/es/input-number/src/hooks/useFrame.js
- var useFrame_default = function() {
- var idRef = ref(0);
- var cleanUp = function cleanUp2() {
- wrapperRaf.cancel(idRef.value);
- };
- onBeforeUnmount(function() {
- cleanUp();
- });
- return function(callback) {
- cleanUp();
- idRef.value = wrapperRaf(function() {
- callback();
- });
- };
- };
- // node_modules/ant-design-vue/es/input-number/src/InputNumber.js
- var _excluded38 = ["prefixCls", "min", "max", "step", "defaultValue", "value", "disabled", "readonly", "keyboard", "controls", "autofocus", "stringMode", "parser", "formatter", "precision", "decimalSeparator", "onChange", "onInput", "onPressEnter", "onStep", "lazy", "class", "style"];
- var getDecimalValue = function getDecimalValue2(stringMode, decimalValue) {
- if (stringMode || decimalValue.isEmpty()) {
- return decimalValue.toString();
- }
- return decimalValue.toNumber();
- };
- var getDecimalIfValidate = function getDecimalIfValidate2(value) {
- var decimal = getMiniDecimal(value);
- return decimal.isInvalidate() ? null : decimal;
- };
- var inputNumberProps = function inputNumberProps2() {
- return {
- /** value will show as string */
- stringMode: {
- type: Boolean
- },
- defaultValue: {
- type: [String, Number]
- },
- value: {
- type: [String, Number]
- },
- prefixCls: {
- type: String
- },
- min: {
- type: [String, Number]
- },
- max: {
- type: [String, Number]
- },
- step: {
- type: [String, Number],
- default: 1
- },
- tabindex: {
- type: Number
- },
- controls: {
- type: Boolean,
- default: true
- },
- readonly: {
- type: Boolean
- },
- disabled: {
- type: Boolean
- },
- autofocus: {
- type: Boolean
- },
- keyboard: {
- type: Boolean,
- default: true
- },
- /** Parse display value to validate number */
- parser: {
- type: Function
- },
- /** Transform `value` to display value show in input */
- formatter: {
- type: Function
- },
- /** Syntactic sugar of `formatter`. Config precision of display. */
- precision: {
- type: Number
- },
- /** Syntactic sugar of `formatter`. Config decimal separator of display. */
- decimalSeparator: {
- type: String
- },
- onInput: {
- type: Function
- },
- onChange: {
- type: Function
- },
- onPressEnter: {
- type: Function
- },
- onStep: {
- type: Function
- },
- onBlur: {
- type: Function
- },
- onFocus: {
- type: Function
- }
- };
- };
- var InputNumber_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "InnerInputNumber",
- inheritAttrs: false,
- props: _objectSpread2(_objectSpread2({}, inputNumberProps()), {}, {
- lazy: Boolean
- }),
- slots: ["upHandler", "downHandler"],
- setup: function setup128(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, emit = _ref.emit, expose = _ref.expose;
- var inputRef = ref();
- var focus = ref(false);
- var userTypingRef = ref(false);
- var compositionRef = ref(false);
- var decimalValue = ref(getMiniDecimal(props5.value));
- function setUncontrolledDecimalValue(newDecimal) {
- if (props5.value === void 0) {
- decimalValue.value = newDecimal;
- }
- }
- var getPrecision2 = function getPrecision3(numStr, userTyping) {
- if (userTyping) {
- return void 0;
- }
- if (props5.precision >= 0) {
- return props5.precision;
- }
- return Math.max(getNumberPrecision(numStr), getNumberPrecision(props5.step));
- };
- var mergedParser = function mergedParser2(num) {
- var numStr = String(num);
- if (props5.parser) {
- return props5.parser(numStr);
- }
- var parsedStr = numStr;
- if (props5.decimalSeparator) {
- parsedStr = parsedStr.replace(props5.decimalSeparator, ".");
- }
- return parsedStr.replace(/[^\w.-]+/g, "");
- };
- var inputValue = ref("");
- var mergedFormatter = function mergedFormatter2(number4, userTyping) {
- if (props5.formatter) {
- return props5.formatter(number4, {
- userTyping,
- input: String(inputValue.value)
- });
- }
- var str = typeof number4 === "number" ? num2str(number4) : number4;
- if (!userTyping) {
- var mergedPrecision = getPrecision2(str, userTyping);
- if (validateNumber(str) && (props5.decimalSeparator || mergedPrecision >= 0)) {
- var separatorStr = props5.decimalSeparator || ".";
- str = toFixed(str, separatorStr, mergedPrecision);
- }
- }
- return str;
- };
- var initValue = function() {
- var initValue2 = props5.value;
- if (decimalValue.value.isInvalidate() && ["string", "number"].includes(_typeof(initValue2))) {
- return Number.isNaN(initValue2) ? "" : initValue2;
- }
- return mergedFormatter(decimalValue.value.toString(), false);
- }();
- inputValue.value = initValue;
- function setInputValue(newValue, userTyping) {
- inputValue.value = mergedFormatter(
- // Invalidate number is sometime passed by external control, we should let it go
- // Otherwise is controlled by internal interactive logic which check by userTyping
- // You can ref 'show limited value when input is not focused' test for more info.
- newValue.isInvalidate() ? newValue.toString(false) : newValue.toString(!userTyping),
- userTyping
- );
- }
- var maxDecimal = computed(function() {
- return getDecimalIfValidate(props5.max);
- });
- var minDecimal = computed(function() {
- return getDecimalIfValidate(props5.min);
- });
- var upDisabled = computed(function() {
- if (!maxDecimal.value || !decimalValue.value || decimalValue.value.isInvalidate()) {
- return false;
- }
- return maxDecimal.value.lessEquals(decimalValue.value);
- });
- var downDisabled = computed(function() {
- if (!minDecimal.value || !decimalValue.value || decimalValue.value.isInvalidate()) {
- return false;
- }
- return decimalValue.value.lessEquals(minDecimal.value);
- });
- var _useCursor = useCursor(inputRef, focus), _useCursor2 = _slicedToArray(_useCursor, 2), recordCursor = _useCursor2[0], restoreCursor = _useCursor2[1];
- var getRangeValue = function getRangeValue2(target) {
- if (maxDecimal.value && !target.lessEquals(maxDecimal.value)) {
- return maxDecimal.value;
- }
- if (minDecimal.value && !minDecimal.value.lessEquals(target)) {
- return minDecimal.value;
- }
- return null;
- };
- var isInRange2 = function isInRange3(target) {
- return !getRangeValue(target);
- };
- var triggerValueUpdate = function triggerValueUpdate2(newValue, userTyping) {
- var updateValue = newValue;
- var isRangeValidate = isInRange2(updateValue) || updateValue.isEmpty();
- if (!updateValue.isEmpty() && !userTyping) {
- updateValue = getRangeValue(updateValue) || updateValue;
- isRangeValidate = true;
- }
- if (!props5.readonly && !props5.disabled && isRangeValidate) {
- var numStr = updateValue.toString();
- var mergedPrecision = getPrecision2(numStr, userTyping);
- if (mergedPrecision >= 0) {
- updateValue = getMiniDecimal(toFixed(numStr, ".", mergedPrecision));
- }
- if (!updateValue.equals(decimalValue.value)) {
- var _props$onChange;
- setUncontrolledDecimalValue(updateValue);
- (_props$onChange = props5.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props5, updateValue.isEmpty() ? null : getDecimalValue(props5.stringMode, updateValue));
- if (props5.value === void 0) {
- setInputValue(updateValue, userTyping);
- }
- }
- return updateValue;
- }
- return decimalValue.value;
- };
- var onNextPromise = useFrame_default();
- var collectInputValue = function collectInputValue2(inputStr) {
- var _props$onInput;
- recordCursor();
- inputValue.value = inputStr;
- if (!compositionRef.value) {
- var finalValue = mergedParser(inputStr);
- var finalDecimal = getMiniDecimal(finalValue);
- if (!finalDecimal.isNaN()) {
- triggerValueUpdate(finalDecimal, true);
- }
- }
- (_props$onInput = props5.onInput) === null || _props$onInput === void 0 ? void 0 : _props$onInput.call(props5, inputStr);
- onNextPromise(function() {
- var nextInputStr = inputStr;
- if (!props5.parser) {
- nextInputStr = inputStr.replace(/。/g, ".");
- }
- if (nextInputStr !== inputStr) {
- collectInputValue2(nextInputStr);
- }
- });
- };
- var onCompositionStart2 = function onCompositionStart3() {
- compositionRef.value = true;
- };
- var onCompositionEnd2 = function onCompositionEnd3() {
- compositionRef.value = false;
- collectInputValue(inputRef.value.value);
- };
- var onInternalInput = function onInternalInput2(e3) {
- collectInputValue(e3.target.value);
- };
- var onInternalStep = function onInternalStep2(up) {
- var _props$onStep, _inputRef$value;
- if (up && upDisabled.value || !up && downDisabled.value) {
- return;
- }
- userTypingRef.value = false;
- var stepDecimal = getMiniDecimal(props5.step);
- if (!up) {
- stepDecimal = stepDecimal.negate();
- }
- var target = (decimalValue.value || getMiniDecimal(0)).add(stepDecimal.toString());
- var updatedValue = triggerValueUpdate(target, false);
- (_props$onStep = props5.onStep) === null || _props$onStep === void 0 ? void 0 : _props$onStep.call(props5, getDecimalValue(props5.stringMode, updatedValue), {
- offset: props5.step,
- type: up ? "up" : "down"
- });
- (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
- };
- var flushInputValue = function flushInputValue2(userTyping) {
- var parsedValue = getMiniDecimal(mergedParser(inputValue.value));
- var formatValue2 = parsedValue;
- if (!parsedValue.isNaN()) {
- formatValue2 = triggerValueUpdate(parsedValue, userTyping);
- } else {
- formatValue2 = decimalValue.value;
- }
- if (props5.value !== void 0) {
- setInputValue(decimalValue.value, false);
- } else if (!formatValue2.isNaN()) {
- setInputValue(formatValue2, false);
- }
- };
- var onKeyDown = function onKeyDown2(event) {
- var which = event.which;
- userTypingRef.value = true;
- if (which === KeyCode_default.ENTER) {
- var _props$onPressEnter;
- if (!compositionRef.value) {
- userTypingRef.value = false;
- }
- flushInputValue(false);
- (_props$onPressEnter = props5.onPressEnter) === null || _props$onPressEnter === void 0 ? void 0 : _props$onPressEnter.call(props5, event);
- }
- if (props5.keyboard === false) {
- return;
- }
- if (!compositionRef.value && [KeyCode_default.UP, KeyCode_default.DOWN].includes(which)) {
- onInternalStep(KeyCode_default.UP === which);
- event.preventDefault();
- }
- };
- var onKeyUp = function onKeyUp2() {
- userTypingRef.value = false;
- };
- var onBlur2 = function onBlur3(e3) {
- flushInputValue(false);
- focus.value = false;
- userTypingRef.value = false;
- emit("blur", e3);
- };
- watch(function() {
- return props5.precision;
- }, function() {
- if (!decimalValue.value.isInvalidate()) {
- setInputValue(decimalValue.value, false);
- }
- }, {
- flush: "post"
- });
- watch(function() {
- return props5.value;
- }, function() {
- var newValue = getMiniDecimal(props5.value);
- decimalValue.value = newValue;
- var currentParsedValue = getMiniDecimal(mergedParser(inputValue.value));
- if (!newValue.equals(currentParsedValue) || !userTypingRef.value || props5.formatter) {
- setInputValue(newValue, userTypingRef.value);
- }
- }, {
- flush: "post"
- });
- watch(inputValue, function() {
- if (props5.formatter) {
- restoreCursor();
- }
- }, {
- flush: "post"
- });
- watch(function() {
- return props5.disabled;
- }, function(val) {
- if (val) {
- focus.value = false;
- }
- });
- expose({
- focus: function focus2() {
- var _inputRef$value2;
- (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus();
- },
- blur: function blur() {
- var _inputRef$value3;
- (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 ? void 0 : _inputRef$value3.blur();
- }
- });
- return function() {
- var _classNames;
- var _attrs$props = _objectSpread2(_objectSpread2({}, attrs), props5), _attrs$props$prefixCl = _attrs$props.prefixCls, prefixCls = _attrs$props$prefixCl === void 0 ? "rc-input-number" : _attrs$props$prefixCl, min3 = _attrs$props.min, max3 = _attrs$props.max, _attrs$props$step = _attrs$props.step, step = _attrs$props$step === void 0 ? 1 : _attrs$props$step, defaultValue = _attrs$props.defaultValue, value = _attrs$props.value, disabled = _attrs$props.disabled, readonly = _attrs$props.readonly, keyboard = _attrs$props.keyboard, _attrs$props$controls = _attrs$props.controls, controls = _attrs$props$controls === void 0 ? true : _attrs$props$controls, autofocus = _attrs$props.autofocus, stringMode = _attrs$props.stringMode, parser = _attrs$props.parser, formatter = _attrs$props.formatter, precision = _attrs$props.precision, decimalSeparator = _attrs$props.decimalSeparator, onChange3 = _attrs$props.onChange, onInput = _attrs$props.onInput, onPressEnter = _attrs$props.onPressEnter, onStep = _attrs$props.onStep, lazy = _attrs$props.lazy, className = _attrs$props.class, style = _attrs$props.style, inputProps4 = _objectWithoutProperties(_attrs$props, _excluded38);
- var upHandler = slots.upHandler, downHandler = slots.downHandler;
- var inputClassName = "".concat(prefixCls, "-input");
- var eventProps = {};
- if (lazy) {
- eventProps.onChange = onInternalInput;
- } else {
- eventProps.onInput = onInternalInput;
- }
- return createVNode("div", {
- "class": classNames_default(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-focused"), focus.value), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-readonly"), readonly), _defineProperty(_classNames, "".concat(prefixCls, "-not-a-number"), decimalValue.value.isNaN()), _defineProperty(_classNames, "".concat(prefixCls, "-out-of-range"), !decimalValue.value.isInvalidate() && !isInRange2(decimalValue.value)), _classNames)),
- "style": style,
- "onKeydown": onKeyDown,
- "onKeyup": onKeyUp
- }, [controls && createVNode(StepHandler_default, {
- "prefixCls": prefixCls,
- "upDisabled": upDisabled.value,
- "downDisabled": downDisabled.value,
- "onStep": onInternalStep
- }, {
- upNode: upHandler,
- downNode: downHandler
- }), createVNode("div", {
- "class": "".concat(inputClassName, "-wrap")
- }, [createVNode("input", _objectSpread2(_objectSpread2(_objectSpread2({
- "autofocus": autofocus,
- "autocomplete": "off",
- "role": "spinbutton",
- "aria-valuemin": min3,
- "aria-valuemax": max3,
- "aria-valuenow": decimalValue.value.isInvalidate() ? null : decimalValue.value.toString(),
- "step": step
- }, inputProps4), {}, {
- "ref": inputRef,
- "class": inputClassName,
- "value": inputValue.value,
- "disabled": disabled,
- "readonly": readonly,
- "onFocus": function onFocus2(e3) {
- focus.value = true;
- emit("focus", e3);
- }
- }, eventProps), {}, {
- "onBlur": onBlur2,
- "onCompositionstart": onCompositionStart2,
- "onCompositionend": onCompositionEnd2
- }), null)])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/_util/isValidValue.js
- function isValidValue_default(val) {
- return val !== void 0 && val !== null;
- }
- // node_modules/ant-design-vue/es/input-number/index.js
- var _excluded39 = ["class", "bordered", "readonly", "style", "addonBefore", "addonAfter", "prefix", "valueModifiers"];
- var baseProps = inputNumberProps();
- var inputNumberProps3 = function inputNumberProps4() {
- return _objectSpread2(_objectSpread2({}, baseProps), {}, {
- size: {
- type: String
- },
- bordered: {
- type: Boolean,
- default: true
- },
- placeholder: String,
- name: String,
- id: String,
- type: String,
- addonBefore: vue_types_default.any,
- addonAfter: vue_types_default.any,
- prefix: vue_types_default.any,
- "onUpdate:value": baseProps.onChange,
- valueModifiers: Object
- });
- };
- var InputNumber = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AInputNumber",
- inheritAttrs: false,
- props: inputNumberProps3(),
- // emits: ['focus', 'blur', 'change', 'input', 'update:value'],
- slots: ["addonBefore", "addonAfter", "prefix"],
- setup: function setup129(props5, _ref) {
- var emit = _ref.emit, expose = _ref.expose, attrs = _ref.attrs, slots = _ref.slots;
- var formItemContext = useInjectFormItemContext();
- var _useConfigInject = useConfigInject_default("input-number", props5), prefixCls = _useConfigInject.prefixCls, size = _useConfigInject.size, direction = _useConfigInject.direction;
- var mergedValue = ref(props5.value === void 0 ? props5.defaultValue : props5.value);
- var focused = ref(false);
- watch(function() {
- return props5.value;
- }, function() {
- mergedValue.value = props5.value;
- });
- var inputNumberRef = ref(null);
- var focus = function focus2() {
- var _inputNumberRef$value;
- (_inputNumberRef$value = inputNumberRef.value) === null || _inputNumberRef$value === void 0 ? void 0 : _inputNumberRef$value.focus();
- };
- var blur = function blur2() {
- var _inputNumberRef$value2;
- (_inputNumberRef$value2 = inputNumberRef.value) === null || _inputNumberRef$value2 === void 0 ? void 0 : _inputNumberRef$value2.blur();
- };
- expose({
- focus,
- blur
- });
- var handleChange2 = function handleChange3(val) {
- if (props5.value === void 0) {
- mergedValue.value = val;
- }
- emit("update:value", val);
- emit("change", val);
- formItemContext.onFieldChange();
- };
- var handleBlur = function handleBlur2(e3) {
- focused.value = false;
- emit("blur", e3);
- formItemContext.onFieldBlur();
- };
- var handleFocus = function handleFocus2(e3) {
- focused.value = true;
- emit("focus", e3);
- };
- return function() {
- var _slots$addonBefore, _slots$addonAfter, _slots$prefix, _classNames;
- var _attrs$props = _objectSpread2(_objectSpread2({}, attrs), props5), className = _attrs$props.class, bordered = _attrs$props.bordered, readonly = _attrs$props.readonly, style = _attrs$props.style, _attrs$props$addonBef = _attrs$props.addonBefore, addonBefore = _attrs$props$addonBef === void 0 ? (_slots$addonBefore = slots.addonBefore) === null || _slots$addonBefore === void 0 ? void 0 : _slots$addonBefore.call(slots) : _attrs$props$addonBef, _attrs$props$addonAft = _attrs$props.addonAfter, addonAfter = _attrs$props$addonAft === void 0 ? (_slots$addonAfter = slots.addonAfter) === null || _slots$addonAfter === void 0 ? void 0 : _slots$addonAfter.call(slots) : _attrs$props$addonAft, _attrs$props$prefix = _attrs$props.prefix, prefix = _attrs$props$prefix === void 0 ? (_slots$prefix = slots.prefix) === null || _slots$prefix === void 0 ? void 0 : _slots$prefix.call(slots) : _attrs$props$prefix, _attrs$props$valueMod = _attrs$props.valueModifiers, valueModifiers = _attrs$props$valueMod === void 0 ? {} : _attrs$props$valueMod, others = _objectWithoutProperties(_attrs$props, _excluded39);
- var preCls = prefixCls.value;
- var mergeSize = size.value;
- var inputNumberClass = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(preCls, "-lg"), mergeSize === "large"), _defineProperty(_classNames, "".concat(preCls, "-sm"), mergeSize === "small"), _defineProperty(_classNames, "".concat(preCls, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames, "".concat(preCls, "-readonly"), readonly), _defineProperty(_classNames, "".concat(preCls, "-borderless"), !bordered), _classNames), className);
- var element = createVNode(InputNumber_default, _objectSpread2(_objectSpread2({}, omit_default(others, ["size", "defaultValue"])), {}, {
- "ref": inputNumberRef,
- "lazy": !!valueModifiers.lazy,
- "value": mergedValue.value,
- "class": inputNumberClass,
- "prefixCls": preCls,
- "readonly": readonly,
- "onChange": handleChange2,
- "onBlur": handleBlur,
- "onFocus": handleFocus
- }), {
- upHandler: function upHandler() {
- return createVNode(UpOutlined_default, {
- "class": "".concat(preCls, "-handler-up-inner")
- }, null);
- },
- downHandler: function downHandler() {
- return createVNode(DownOutlined_default, {
- "class": "".concat(preCls, "-handler-down-inner")
- }, null);
- }
- });
- var hasAddon2 = isValidValue_default(addonBefore) || isValidValue_default(addonAfter);
- if (isValidValue_default(prefix)) {
- var _classNames2;
- var affixWrapperCls = classNames_default("".concat(preCls, "-affix-wrapper"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(preCls, "-affix-wrapper-focused"), focused.value), _defineProperty(_classNames2, "".concat(preCls, "-affix-wrapper-disabled"), props5.disabled), _defineProperty(_classNames2, "".concat(preCls, "-affix-wrapper-rtl"), direction.value === "rtl"), _defineProperty(_classNames2, "".concat(preCls, "-affix-wrapper-readonly"), readonly), _defineProperty(_classNames2, "".concat(preCls, "-affix-wrapper-borderless"), !bordered), _defineProperty(_classNames2, "".concat(className), !hasAddon2 && className), _classNames2));
- element = createVNode("div", {
- "class": affixWrapperCls,
- "style": style,
- "onMouseup": function onMouseup() {
- return inputNumberRef.value.focus();
- }
- }, [createVNode("span", {
- "class": "".concat(preCls, "-prefix")
- }, [prefix]), element]);
- }
- if (hasAddon2) {
- var _classNames4;
- var wrapperClassName = "".concat(preCls, "-group");
- var addonClassName = "".concat(wrapperClassName, "-addon");
- var addonBeforeNode = addonBefore ? createVNode("div", {
- "class": addonClassName
- }, [addonBefore]) : null;
- var addonAfterNode = addonAfter ? createVNode("div", {
- "class": addonClassName
- }, [addonAfter]) : null;
- var mergedWrapperClassName = classNames_default("".concat(preCls, "-wrapper"), wrapperClassName, _defineProperty({}, "".concat(wrapperClassName, "-rtl"), direction.value === "rtl"));
- var mergedGroupClassName = classNames_default("".concat(preCls, "-group-wrapper"), (_classNames4 = {}, _defineProperty(_classNames4, "".concat(preCls, "-group-wrapper-sm"), mergeSize === "small"), _defineProperty(_classNames4, "".concat(preCls, "-group-wrapper-lg"), mergeSize === "large"), _defineProperty(_classNames4, "".concat(preCls, "-group-wrapper-rtl"), direction.value === "rtl"), _classNames4), className);
- element = createVNode("div", {
- "class": mergedGroupClassName,
- "style": style
- }, [createVNode("div", {
- "class": mergedWrapperClassName
- }, [addonBeforeNode, element, addonAfterNode])]);
- }
- return cloneElement(element, {
- style
- });
- };
- }
- });
- var input_number_default = _extends(InputNumber, {
- install: function install3(app) {
- app.component(InputNumber.name, InputNumber);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/layout/layout.js
- var basicProps = function basicProps2() {
- return {
- prefixCls: String,
- hasSider: {
- type: Boolean,
- default: void 0
- },
- tagName: String
- };
- };
- function generator(_ref) {
- var suffixCls = _ref.suffixCls, tagName = _ref.tagName, name = _ref.name;
- return function(BasicComponent) {
- var Adapter = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name,
- props: basicProps(),
- setup: function setup220(props5, _ref2) {
- var slots = _ref2.slots;
- var _useConfigInject = useConfigInject_default(suffixCls, props5), prefixCls = _useConfigInject.prefixCls;
- return function() {
- var basicComponentProps = _objectSpread2(_objectSpread2({}, props5), {}, {
- prefixCls: prefixCls.value,
- tagName
- });
- return createVNode(BasicComponent, basicComponentProps, slots);
- };
- }
- });
- return Adapter;
- };
- }
- var Basic = defineComponent({
- compatConfig: {
- MODE: 3
- },
- props: basicProps(),
- setup: function setup130(props5, _ref3) {
- var slots = _ref3.slots;
- return function() {
- return createVNode(props5.tagName, {
- class: props5.prefixCls
- }, slots);
- };
- }
- });
- var BasicLayout = defineComponent({
- compatConfig: {
- MODE: 3
- },
- props: basicProps(),
- setup: function setup131(props5, _ref4) {
- var slots = _ref4.slots;
- var _useConfigInject2 = useConfigInject_default("", props5), direction = _useConfigInject2.direction;
- var siders = ref([]);
- var siderHookProvider = {
- addSider: function addSider(id) {
- siders.value = [].concat(_toConsumableArray(siders.value), [id]);
- },
- removeSider: function removeSider(id) {
- siders.value = siders.value.filter(function(currentId) {
- return currentId !== id;
- });
- }
- };
- provide(SiderHookProviderKey, siderHookProvider);
- var divCls = computed(function() {
- var _ref5;
- var prefixCls = props5.prefixCls, hasSider = props5.hasSider;
- return _ref5 = {}, _defineProperty(_ref5, "".concat(prefixCls), true), _defineProperty(_ref5, "".concat(prefixCls, "-has-sider"), typeof hasSider === "boolean" ? hasSider : siders.value.length > 0), _defineProperty(_ref5, "".concat(prefixCls, "-rtl"), direction.value === "rtl"), _ref5;
- });
- return function() {
- var tagName = props5.tagName;
- return createVNode(tagName, {
- class: divCls.value
- }, slots);
- };
- }
- });
- var Layout = generator({
- suffixCls: "layout",
- tagName: "section",
- name: "ALayout"
- })(BasicLayout);
- var Header2 = generator({
- suffixCls: "layout-header",
- tagName: "header",
- name: "ALayoutHeader"
- })(Basic);
- var Footer = generator({
- suffixCls: "layout-footer",
- tagName: "footer",
- name: "ALayoutFooter"
- })(Basic);
- var Content = generator({
- suffixCls: "layout-content",
- tagName: "main",
- name: "ALayoutContent"
- })(Basic);
- var layout_default = Layout;
- // node_modules/ant-design-vue/es/layout/Sider.js
- var dimensionMaxMap = {
- xs: "479.98px",
- sm: "575.98px",
- md: "767.98px",
- lg: "991.98px",
- xl: "1199.98px",
- xxl: "1599.98px",
- xxxl: "1999.98px"
- };
- var siderProps = function siderProps2() {
- return {
- prefixCls: String,
- collapsible: {
- type: Boolean,
- default: void 0
- },
- collapsed: {
- type: Boolean,
- default: void 0
- },
- defaultCollapsed: {
- type: Boolean,
- default: void 0
- },
- reverseArrow: {
- type: Boolean,
- default: void 0
- },
- zeroWidthTriggerStyle: {
- type: Object,
- default: void 0
- },
- trigger: vue_types_default.any,
- width: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- collapsedWidth: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- breakpoint: vue_types_default.oneOf(tuple("xs", "sm", "md", "lg", "xl", "xxl", "xxxl")),
- theme: vue_types_default.oneOf(tuple("light", "dark")).def("dark"),
- onBreakpoint: Function,
- onCollapse: Function
- };
- };
- var generateId = function() {
- var i3 = 0;
- return function() {
- var prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
- i3 += 1;
- return "".concat(prefix).concat(i3);
- };
- }();
- var Sider_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ALayoutSider",
- inheritAttrs: false,
- props: initDefaultProps_default(siderProps(), {
- collapsible: false,
- defaultCollapsed: false,
- reverseArrow: false,
- width: 200,
- collapsedWidth: 80
- }),
- emits: ["breakpoint", "update:collapsed", "collapse"],
- setup: function setup132(props5, _ref) {
- var emit = _ref.emit, attrs = _ref.attrs, slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("layout-sider", props5), prefixCls = _useConfigInject.prefixCls;
- var siderHook = inject(SiderHookProviderKey, void 0);
- var collapsed = ref(!!(props5.collapsed !== void 0 ? props5.collapsed : props5.defaultCollapsed));
- var below = ref(false);
- watch(function() {
- return props5.collapsed;
- }, function() {
- collapsed.value = !!props5.collapsed;
- });
- provide(SiderCollapsedKey, collapsed);
- var handleSetCollapsed = function handleSetCollapsed2(value, type4) {
- if (props5.collapsed === void 0) {
- collapsed.value = value;
- }
- emit("update:collapsed", value);
- emit("collapse", value, type4);
- };
- var responsiveHandlerRef = ref(function(mql2) {
- below.value = mql2.matches;
- emit("breakpoint", mql2.matches);
- if (collapsed.value !== mql2.matches) {
- handleSetCollapsed(mql2.matches, "responsive");
- }
- });
- var mql;
- function responsiveHandler(mql2) {
- return responsiveHandlerRef.value(mql2);
- }
- var uniqueId = generateId("ant-sider-");
- siderHook && siderHook.addSider(uniqueId);
- onMounted(function() {
- watch(function() {
- return props5.breakpoint;
- }, function() {
- try {
- var _mql;
- (_mql = mql) === null || _mql === void 0 ? void 0 : _mql.removeEventListener("change", responsiveHandler);
- } catch (error) {
- var _mql2;
- (_mql2 = mql) === null || _mql2 === void 0 ? void 0 : _mql2.removeListener(responsiveHandler);
- }
- if (typeof window !== "undefined") {
- var _window2 = window, matchMedia = _window2.matchMedia;
- if (matchMedia && props5.breakpoint && props5.breakpoint in dimensionMaxMap) {
- mql = matchMedia("(max-width: ".concat(dimensionMaxMap[props5.breakpoint], ")"));
- try {
- mql.addEventListener("change", responsiveHandler);
- } catch (error) {
- mql.addListener(responsiveHandler);
- }
- responsiveHandler(mql);
- }
- }
- }, {
- immediate: true
- });
- });
- onBeforeUnmount(function() {
- try {
- var _mql3;
- (_mql3 = mql) === null || _mql3 === void 0 ? void 0 : _mql3.removeEventListener("change", responsiveHandler);
- } catch (error) {
- var _mql4;
- (_mql4 = mql) === null || _mql4 === void 0 ? void 0 : _mql4.removeListener(responsiveHandler);
- }
- siderHook && siderHook.removeSider(uniqueId);
- });
- var toggle = function toggle2() {
- handleSetCollapsed(!collapsed.value, "clickTrigger");
- };
- return function() {
- var _slots$trigger, _classNames, _slots$default;
- var pre = prefixCls.value;
- var collapsedWidth = props5.collapsedWidth, width = props5.width, reverseArrow = props5.reverseArrow, zeroWidthTriggerStyle = props5.zeroWidthTriggerStyle, _props$trigger = props5.trigger, trigger2 = _props$trigger === void 0 ? (_slots$trigger = slots.trigger) === null || _slots$trigger === void 0 ? void 0 : _slots$trigger.call(slots) : _props$trigger, collapsible = props5.collapsible, theme = props5.theme;
- var rawWidth = collapsed.value ? collapsedWidth : width;
- var siderWidth = isNumeric_default(rawWidth) ? "".concat(rawWidth, "px") : String(rawWidth);
- var zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? createVNode("span", {
- "onClick": toggle,
- "class": classNames_default("".concat(pre, "-zero-width-trigger"), "".concat(pre, "-zero-width-trigger-").concat(reverseArrow ? "right" : "left")),
- "style": zeroWidthTriggerStyle
- }, [trigger2 || createVNode(BarsOutlined_default, null, null)]) : null;
- var iconObj = {
- expanded: reverseArrow ? createVNode(RightOutlined_default, null, null) : createVNode(LeftOutlined_default, null, null),
- collapsed: reverseArrow ? createVNode(LeftOutlined_default, null, null) : createVNode(RightOutlined_default, null, null)
- };
- var status = collapsed.value ? "collapsed" : "expanded";
- var defaultTrigger = iconObj[status];
- var triggerDom = trigger2 !== null ? zeroWidthTrigger || createVNode("div", {
- "class": "".concat(pre, "-trigger"),
- "onClick": toggle,
- "style": {
- width: siderWidth
- }
- }, [trigger2 || defaultTrigger]) : null;
- var divStyle = [attrs.style, {
- flex: "0 0 ".concat(siderWidth),
- maxWidth: siderWidth,
- minWidth: siderWidth,
- width: siderWidth
- }];
- var siderCls = classNames_default(pre, "".concat(pre, "-").concat(theme), (_classNames = {}, _defineProperty(_classNames, "".concat(pre, "-collapsed"), !!collapsed.value), _defineProperty(_classNames, "".concat(pre, "-has-trigger"), collapsible && trigger2 !== null && !zeroWidthTrigger), _defineProperty(_classNames, "".concat(pre, "-below"), !!below.value), _defineProperty(_classNames, "".concat(pre, "-zero-width"), parseFloat(siderWidth) === 0), _classNames), attrs.class);
- return createVNode("aside", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "class": siderCls,
- "style": divStyle
- }), [createVNode("div", {
- "class": "".concat(pre, "-children")
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), collapsible || below.value && zeroWidthTrigger ? triggerDom : null]);
- };
- }
- });
- // node_modules/ant-design-vue/es/layout/index.js
- var LayoutHeader = Header2;
- var LayoutFooter = Footer;
- var LayoutSider = Sider_default;
- var LayoutContent = Content;
- var layout_default2 = _extends(layout_default, {
- Header: Header2,
- Footer,
- Content,
- Sider: Sider_default,
- install: function install4(app) {
- app.component(layout_default.name, layout_default);
- app.component(Header2.name, Header2);
- app.component(Footer.name, Footer);
- app.component(Sider_default.name, Sider_default);
- app.component(Content.name, Content);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/spin/Spin.js
- var _excluded40 = ["class", "style"];
- var spinProps = function spinProps2() {
- return {
- prefixCls: String,
- spinning: {
- type: Boolean,
- default: void 0
- },
- size: String,
- wrapperClassName: String,
- tip: vue_types_default.any,
- delay: Number,
- indicator: vue_types_default.any
- };
- };
- var defaultIndicator = null;
- function shouldDelay(spinning, delay) {
- return !!spinning && !!delay && !isNaN(Number(delay));
- }
- function setDefaultIndicator(Content2) {
- var Indicator = Content2.indicator;
- defaultIndicator = typeof Indicator === "function" ? Indicator : function() {
- return createVNode(Indicator, null, null);
- };
- }
- var Spin_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASpin",
- inheritAttrs: false,
- props: initDefaultProps_default(spinProps(), {
- size: "default",
- spinning: true,
- wrapperClassName: ""
- }),
- setup: function setup133() {
- return {
- originalUpdateSpinning: null,
- configProvider: inject("configProvider", defaultConfigProvider)
- };
- },
- data: function data4() {
- var spinning = this.spinning, delay = this.delay;
- var shouldBeDelayed = shouldDelay(spinning, delay);
- return {
- sSpinning: spinning && !shouldBeDelayed
- };
- },
- created: function created3() {
- this.originalUpdateSpinning = this.updateSpinning;
- this.debouncifyUpdateSpinning(this.$props);
- },
- mounted: function mounted5() {
- this.updateSpinning();
- },
- updated: function updated3() {
- var _this = this;
- nextTick(function() {
- _this.debouncifyUpdateSpinning();
- _this.updateSpinning();
- });
- },
- beforeUnmount: function beforeUnmount5() {
- this.cancelExistingSpin();
- },
- methods: {
- debouncifyUpdateSpinning: function debouncifyUpdateSpinning(props5) {
- var _ref = props5 || this.$props, delay = _ref.delay;
- if (delay) {
- this.cancelExistingSpin();
- this.updateSpinning = debounce_default(this.originalUpdateSpinning, delay);
- }
- },
- updateSpinning: function updateSpinning() {
- var spinning = this.spinning, sSpinning = this.sSpinning;
- if (sSpinning !== spinning) {
- this.sSpinning = spinning;
- }
- },
- cancelExistingSpin: function cancelExistingSpin() {
- var updateSpinning2 = this.updateSpinning;
- if (updateSpinning2 && updateSpinning2.cancel) {
- updateSpinning2.cancel();
- }
- },
- renderIndicator: function renderIndicator(prefixCls) {
- var dotClassName = "".concat(prefixCls, "-dot");
- var indicator = getComponent(this, "indicator");
- if (indicator === null) {
- return null;
- }
- if (Array.isArray(indicator)) {
- indicator = indicator.length === 1 ? indicator[0] : indicator;
- }
- if (isVNode(indicator)) {
- return cloneVNode(indicator, {
- class: dotClassName
- });
- }
- if (defaultIndicator && isVNode(defaultIndicator())) {
- return cloneVNode(defaultIndicator(), {
- class: dotClassName
- });
- }
- return createVNode("span", {
- "class": "".concat(dotClassName, " ").concat(prefixCls, "-dot-spin")
- }, [createVNode("i", {
- "class": "".concat(prefixCls, "-dot-item")
- }, null), createVNode("i", {
- "class": "".concat(prefixCls, "-dot-item")
- }, null), createVNode("i", {
- "class": "".concat(prefixCls, "-dot-item")
- }, null), createVNode("i", {
- "class": "".concat(prefixCls, "-dot-item")
- }, null)]);
- }
- },
- render: function render7() {
- var _this$$slots$tip, _this$$slots, _spinClassName;
- var _this$$props = this.$props, size = _this$$props.size, customizePrefixCls = _this$$props.prefixCls, _this$$props$tip = _this$$props.tip, tip = _this$$props$tip === void 0 ? (_this$$slots$tip = (_this$$slots = this.$slots).tip) === null || _this$$slots$tip === void 0 ? void 0 : _this$$slots$tip.call(_this$$slots) : _this$$props$tip, wrapperClassName = _this$$props.wrapperClassName;
- var _this$$attrs = this.$attrs, cls = _this$$attrs.class, style = _this$$attrs.style, divProps = _objectWithoutProperties(_this$$attrs, _excluded40);
- var _this$configProvider = this.configProvider, getPrefixCls2 = _this$configProvider.getPrefixCls, direction = _this$configProvider.direction;
- var prefixCls = getPrefixCls2("spin", customizePrefixCls);
- var sSpinning = this.sSpinning;
- var spinClassName = (_spinClassName = {}, _defineProperty(_spinClassName, prefixCls, true), _defineProperty(_spinClassName, "".concat(prefixCls, "-sm"), size === "small"), _defineProperty(_spinClassName, "".concat(prefixCls, "-lg"), size === "large"), _defineProperty(_spinClassName, "".concat(prefixCls, "-spinning"), sSpinning), _defineProperty(_spinClassName, "".concat(prefixCls, "-show-text"), !!tip), _defineProperty(_spinClassName, "".concat(prefixCls, "-rtl"), direction === "rtl"), _defineProperty(_spinClassName, cls, !!cls), _spinClassName);
- var spinElement = createVNode("div", _objectSpread2(_objectSpread2({}, divProps), {}, {
- "style": style,
- "class": spinClassName
- }), [this.renderIndicator(prefixCls), tip ? createVNode("div", {
- "class": "".concat(prefixCls, "-text")
- }, [tip]) : null]);
- var children = getSlot(this);
- if (children && children.length) {
- var _containerClassName;
- var containerClassName = (_containerClassName = {}, _defineProperty(_containerClassName, "".concat(prefixCls, "-container"), true), _defineProperty(_containerClassName, "".concat(prefixCls, "-blur"), sSpinning), _containerClassName);
- return createVNode("div", {
- "class": ["".concat(prefixCls, "-nested-loading"), wrapperClassName]
- }, [sSpinning && createVNode("div", {
- "key": "loading"
- }, [spinElement]), createVNode("div", {
- "class": containerClassName,
- "key": "container"
- }, [children])]);
- }
- return spinElement;
- }
- });
- // node_modules/ant-design-vue/es/spin/index.js
- Spin_default.setDefaultIndicator = setDefaultIndicator;
- Spin_default.install = function(app) {
- app.component(Spin_default.name, Spin_default);
- return app;
- };
- var spin_default = Spin_default;
- // node_modules/ant-design-vue/es/pagination/MiniSelect.js
- var MiniSelect_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- inheritAttrs: false,
- props: selectProps2(),
- Option: select_default.Option,
- setup: function setup134(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- return function() {
- var selelctProps = _objectSpread2(_objectSpread2({}, props5), {}, {
- size: "small"
- }, attrs);
- return createVNode(select_default, selelctProps, slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-pagination/Pager.js
- var Pager_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Pager",
- inheritAttrs: false,
- props: {
- rootPrefixCls: String,
- page: Number,
- active: {
- type: Boolean,
- default: void 0
- },
- last: {
- type: Boolean,
- default: void 0
- },
- locale: vue_types_default.object,
- showTitle: {
- type: Boolean,
- default: void 0
- },
- itemRender: {
- type: Function,
- default: function _default5() {
- }
- },
- onClick: {
- type: Function
- },
- onKeypress: {
- type: Function
- }
- },
- eimt: ["click", "keypress"],
- setup: function setup135(props5, _ref) {
- var emit = _ref.emit, attrs = _ref.attrs;
- var handleClick = function handleClick2() {
- emit("click", props5.page);
- };
- var handleKeyPress = function handleKeyPress2(event) {
- emit("keypress", event, handleClick, props5.page);
- };
- return function() {
- var _classNames;
- var showTitle = props5.showTitle, page = props5.page, itemRender = props5.itemRender;
- var _cls = attrs.class, style = attrs.style;
- var prefixCls = "".concat(props5.rootPrefixCls, "-item");
- var cls = classNames_default(prefixCls, "".concat(prefixCls, "-").concat(props5.page), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-active"), props5.active), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !props5.page), _classNames), _cls);
- return createVNode("li", {
- "onClick": handleClick,
- "onKeypress": handleKeyPress,
- "title": showTitle ? String(page) : null,
- "tabindex": "0",
- "class": cls,
- "style": style
- }, [itemRender({
- page,
- type: "page",
- originalElement: createVNode("a", {
- "rel": "nofollow"
- }, [page])
- })]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-pagination/KeyCode.js
- var KeyCode_default2 = {
- ZERO: 48,
- NINE: 57,
- NUMPAD_ZERO: 96,
- NUMPAD_NINE: 105,
- BACKSPACE: 8,
- DELETE: 46,
- ENTER: 13,
- ARROW_UP: 38,
- ARROW_DOWN: 40
- };
- // node_modules/ant-design-vue/es/vc-pagination/Options.js
- var Options_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- props: {
- disabled: {
- type: Boolean,
- default: void 0
- },
- changeSize: Function,
- quickGo: Function,
- selectComponentClass: vue_types_default.any,
- current: Number,
- pageSizeOptions: vue_types_default.array.def(["10", "20", "50", "100"]),
- pageSize: Number,
- buildOptionText: Function,
- locale: vue_types_default.object,
- rootPrefixCls: String,
- selectPrefixCls: String,
- goButton: vue_types_default.any
- },
- setup: function setup136(props5) {
- var goInputText = ref("");
- var validValue = computed(function() {
- return !goInputText.value || isNaN(goInputText.value) ? void 0 : Number(goInputText.value);
- });
- var defaultBuildOptionText = function defaultBuildOptionText2(opt) {
- return "".concat(opt.value, " ").concat(props5.locale.items_per_page);
- };
- var handleChange2 = function handleChange3(e3) {
- var _e$target = e3.target, value = _e$target.value, composing = _e$target.composing;
- if (e3.isComposing || composing || goInputText.value === value)
- return;
- goInputText.value = value;
- };
- var handleBlur = function handleBlur2(e3) {
- var goButton = props5.goButton, quickGo = props5.quickGo, rootPrefixCls = props5.rootPrefixCls;
- if (goButton || goInputText.value === "") {
- return;
- }
- if (e3.relatedTarget && (e3.relatedTarget.className.indexOf("".concat(rootPrefixCls, "-item-link")) >= 0 || e3.relatedTarget.className.indexOf("".concat(rootPrefixCls, "-item")) >= 0)) {
- goInputText.value = "";
- return;
- } else {
- quickGo(validValue.value);
- goInputText.value = "";
- }
- };
- var go = function go2(e3) {
- if (goInputText.value === "") {
- return;
- }
- if (e3.keyCode === KeyCode_default2.ENTER || e3.type === "click") {
- props5.quickGo(validValue.value);
- goInputText.value = "";
- }
- };
- var pageSizeOptions = computed(function() {
- var pageSize2 = props5.pageSize, pageSizeOptions2 = props5.pageSizeOptions;
- if (pageSizeOptions2.some(function(option) {
- return option.toString() === pageSize2.toString();
- })) {
- return pageSizeOptions2;
- }
- return pageSizeOptions2.concat([pageSize2.toString()]).sort(function(a2, b2) {
- var numberA = isNaN(Number(a2)) ? 0 : Number(a2);
- var numberB = isNaN(Number(b2)) ? 0 : Number(b2);
- return numberA - numberB;
- });
- });
- return function() {
- var rootPrefixCls = props5.rootPrefixCls, locale4 = props5.locale, changeSize = props5.changeSize, quickGo = props5.quickGo, goButton = props5.goButton, Select2 = props5.selectComponentClass, selectPrefixCls = props5.selectPrefixCls, pageSize2 = props5.pageSize, disabled = props5.disabled;
- var prefixCls = "".concat(rootPrefixCls, "-options");
- var changeSelect = null;
- var goInput = null;
- var gotoButton = null;
- if (!changeSize && !quickGo) {
- return null;
- }
- if (changeSize && Select2) {
- var buildOptionText = props5.buildOptionText || defaultBuildOptionText;
- var options = pageSizeOptions.value.map(function(opt, i3) {
- return createVNode(Select2.Option, {
- "key": i3,
- "value": opt
- }, {
- default: function _default9() {
- return [buildOptionText({
- value: opt
- })];
- }
- });
- });
- changeSelect = createVNode(Select2, {
- "disabled": disabled,
- "prefixCls": selectPrefixCls,
- "showSearch": false,
- "class": "".concat(prefixCls, "-size-changer"),
- "optionLabelProp": "children",
- "value": (pageSize2 || pageSizeOptions.value[0]).toString(),
- "onChange": function onChange3(value) {
- return changeSize(Number(value));
- },
- "getPopupContainer": function getPopupContainer(triggerNode) {
- return triggerNode.parentNode;
- }
- }, {
- default: function _default9() {
- return [options];
- }
- });
- }
- if (quickGo) {
- if (goButton) {
- gotoButton = typeof goButton === "boolean" ? createVNode("button", {
- "type": "button",
- "onClick": go,
- "onKeyup": go,
- "disabled": disabled,
- "class": "".concat(prefixCls, "-quick-jumper-button")
- }, [locale4.jump_to_confirm]) : createVNode("span", {
- "onClick": go,
- "onKeyup": go
- }, [goButton]);
- }
- goInput = createVNode("div", {
- "class": "".concat(prefixCls, "-quick-jumper")
- }, [locale4.jump_to, withDirectives(createVNode("input", {
- "disabled": disabled,
- "type": "text",
- "value": goInputText.value,
- "onInput": handleChange2,
- "onChange": handleChange2,
- "onKeyup": go,
- "onBlur": handleBlur
- }, null), [[antInputDirective_default]]), locale4.page, gotoButton]);
- }
- return createVNode("li", {
- "class": "".concat(prefixCls)
- }, [changeSelect, goInput]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-pagination/Pagination.js
- var _excluded41 = ["class"];
- function isInteger(value) {
- return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
- }
- function defaultItemRender2(_ref) {
- var originalElement = _ref.originalElement;
- return originalElement;
- }
- function calculatePage(p, state, props5) {
- var pageSize2 = typeof p === "undefined" ? state.statePageSize : p;
- return Math.floor((props5.total - 1) / pageSize2) + 1;
- }
- var Pagination_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Pagination",
- mixins: [BaseMixin_default],
- inheritAttrs: false,
- props: {
- disabled: {
- type: Boolean,
- default: void 0
- },
- prefixCls: vue_types_default.string.def("rc-pagination"),
- selectPrefixCls: vue_types_default.string.def("rc-select"),
- current: Number,
- defaultCurrent: vue_types_default.number.def(1),
- total: vue_types_default.number.def(0),
- pageSize: Number,
- defaultPageSize: vue_types_default.number.def(10),
- hideOnSinglePage: {
- type: Boolean,
- default: false
- },
- showSizeChanger: {
- type: Boolean,
- default: void 0
- },
- showLessItems: {
- type: Boolean,
- default: false
- },
- // showSizeChange: PropTypes.func.def(noop),
- selectComponentClass: vue_types_default.any,
- showPrevNextJumpers: {
- type: Boolean,
- default: true
- },
- showQuickJumper: vue_types_default.oneOfType([vue_types_default.looseBool, vue_types_default.object]).def(false),
- showTitle: {
- type: Boolean,
- default: true
- },
- pageSizeOptions: vue_types_default.arrayOf(vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string])),
- buildOptionText: Function,
- showTotal: Function,
- simple: {
- type: Boolean,
- default: void 0
- },
- locale: vue_types_default.object.def(zh_CN_default),
- itemRender: vue_types_default.func.def(defaultItemRender2),
- prevIcon: vue_types_default.any,
- nextIcon: vue_types_default.any,
- jumpPrevIcon: vue_types_default.any,
- jumpNextIcon: vue_types_default.any,
- totalBoundaryShowSizeChanger: vue_types_default.number.def(50)
- },
- data: function data5() {
- var props5 = this.$props;
- var current2 = firstNotUndefined_default([this.current, this.defaultCurrent]);
- var pageSize2 = firstNotUndefined_default([this.pageSize, this.defaultPageSize]);
- current2 = Math.min(current2, calculatePage(pageSize2, void 0, props5));
- return {
- stateCurrent: current2,
- stateCurrentInputValue: current2,
- statePageSize: pageSize2
- };
- },
- watch: {
- current: function current(val) {
- this.setState({
- stateCurrent: val,
- stateCurrentInputValue: val
- });
- },
- pageSize: function pageSize(val) {
- var newState = {};
- var current2 = this.stateCurrent;
- var newCurrent = calculatePage(val, this.$data, this.$props);
- current2 = current2 > newCurrent ? newCurrent : current2;
- if (!hasProp(this, "current")) {
- newState.stateCurrent = current2;
- newState.stateCurrentInputValue = current2;
- }
- newState.statePageSize = val;
- this.setState(newState);
- },
- stateCurrent: function stateCurrent(_val, oldValue) {
- var _this = this;
- this.$nextTick(function() {
- if (_this.$refs.paginationNode) {
- var lastCurrentNode = _this.$refs.paginationNode.querySelector(".".concat(_this.prefixCls, "-item-").concat(oldValue));
- if (lastCurrentNode && document.activeElement === lastCurrentNode) {
- lastCurrentNode.blur();
- }
- }
- });
- },
- total: function total() {
- var newState = {};
- var newCurrent = calculatePage(this.pageSize, this.$data, this.$props);
- if (hasProp(this, "current")) {
- var current2 = Math.min(this.current, newCurrent);
- newState.stateCurrent = current2;
- newState.stateCurrentInputValue = current2;
- } else {
- var _current = this.stateCurrent;
- if (_current === 0 && newCurrent > 0) {
- _current = 1;
- } else {
- _current = Math.min(this.stateCurrent, newCurrent);
- }
- newState.stateCurrent = _current;
- }
- this.setState(newState);
- }
- },
- methods: {
- getJumpPrevPage: function getJumpPrevPage() {
- return Math.max(1, this.stateCurrent - (this.showLessItems ? 3 : 5));
- },
- getJumpNextPage: function getJumpNextPage() {
- return Math.min(calculatePage(void 0, this.$data, this.$props), this.stateCurrent + (this.showLessItems ? 3 : 5));
- },
- getItemIcon: function getItemIcon(icon, label) {
- var prefixCls = this.$props.prefixCls;
- var iconNode = getComponent(this, icon, this.$props) || createVNode("button", {
- "type": "button",
- "aria-label": label,
- "class": "".concat(prefixCls, "-item-link")
- }, null);
- return iconNode;
- },
- getValidValue: function getValidValue(e3) {
- var inputValue = e3.target.value;
- var allPages = calculatePage(void 0, this.$data, this.$props);
- var stateCurrentInputValue = this.$data.stateCurrentInputValue;
- var value;
- if (inputValue === "") {
- value = inputValue;
- } else if (isNaN(Number(inputValue))) {
- value = stateCurrentInputValue;
- } else if (inputValue >= allPages) {
- value = allPages;
- } else {
- value = Number(inputValue);
- }
- return value;
- },
- isValid: function isValid5(page) {
- return isInteger(page) && page !== this.stateCurrent;
- },
- shouldDisplayQuickJumper: function shouldDisplayQuickJumper() {
- var _this$$props = this.$props, showQuickJumper = _this$$props.showQuickJumper, pageSize2 = _this$$props.pageSize, total2 = _this$$props.total;
- if (total2 <= pageSize2) {
- return false;
- }
- return showQuickJumper;
- },
- // calculatePage (p) {
- // let pageSize = p
- // if (typeof pageSize === 'undefined') {
- // pageSize = this.statePageSize
- // }
- // return Math.floor((this.total - 1) / pageSize) + 1
- // },
- handleKeyDown: function handleKeyDown(event) {
- if (event.keyCode === KeyCode_default2.ARROW_UP || event.keyCode === KeyCode_default2.ARROW_DOWN) {
- event.preventDefault();
- }
- },
- handleKeyUp: function handleKeyUp(e3) {
- if (e3.isComposing || e3.target.composing)
- return;
- var value = this.getValidValue(e3);
- var stateCurrentInputValue = this.stateCurrentInputValue;
- if (value !== stateCurrentInputValue) {
- this.setState({
- stateCurrentInputValue: value
- });
- }
- if (e3.keyCode === KeyCode_default2.ENTER) {
- this.handleChange(value);
- } else if (e3.keyCode === KeyCode_default2.ARROW_UP) {
- this.handleChange(value - 1);
- } else if (e3.keyCode === KeyCode_default2.ARROW_DOWN) {
- this.handleChange(value + 1);
- }
- },
- changePageSize: function changePageSize(size) {
- var current2 = this.stateCurrent;
- var preCurrent = current2;
- var newCurrent = calculatePage(size, this.$data, this.$props);
- current2 = current2 > newCurrent ? newCurrent : current2;
- if (newCurrent === 0) {
- current2 = this.stateCurrent;
- }
- if (typeof size === "number") {
- if (!hasProp(this, "pageSize")) {
- this.setState({
- statePageSize: size
- });
- }
- if (!hasProp(this, "current")) {
- this.setState({
- stateCurrent: current2,
- stateCurrentInputValue: current2
- });
- }
- }
- this.__emit("update:pageSize", size);
- if (current2 !== preCurrent) {
- this.__emit("update:current", current2);
- }
- this.__emit("showSizeChange", current2, size);
- this.__emit("change", current2, size);
- },
- handleChange: function handleChange(p) {
- var disabled = this.$props.disabled;
- var page = p;
- if (this.isValid(page) && !disabled) {
- var currentPage = calculatePage(void 0, this.$data, this.$props);
- if (page > currentPage) {
- page = currentPage;
- } else if (page < 1) {
- page = 1;
- }
- if (!hasProp(this, "current")) {
- this.setState({
- stateCurrent: page,
- stateCurrentInputValue: page
- });
- }
- this.__emit("update:current", page);
- this.__emit("change", page, this.statePageSize);
- return page;
- }
- return this.stateCurrent;
- },
- prev: function prev() {
- if (this.hasPrev()) {
- this.handleChange(this.stateCurrent - 1);
- }
- },
- next: function next() {
- if (this.hasNext()) {
- this.handleChange(this.stateCurrent + 1);
- }
- },
- jumpPrev: function jumpPrev() {
- this.handleChange(this.getJumpPrevPage());
- },
- jumpNext: function jumpNext() {
- this.handleChange(this.getJumpNextPage());
- },
- hasPrev: function hasPrev() {
- return this.stateCurrent > 1;
- },
- hasNext: function hasNext() {
- return this.stateCurrent < calculatePage(void 0, this.$data, this.$props);
- },
- getShowSizeChanger: function getShowSizeChanger() {
- var _this$$props2 = this.$props, showSizeChanger = _this$$props2.showSizeChanger, total2 = _this$$props2.total, totalBoundaryShowSizeChanger = _this$$props2.totalBoundaryShowSizeChanger;
- if (typeof showSizeChanger !== "undefined") {
- return showSizeChanger;
- }
- return total2 > totalBoundaryShowSizeChanger;
- },
- runIfEnter: function runIfEnter(event, callback) {
- if (event.key === "Enter" || event.charCode === 13) {
- for (var _len = arguments.length, restParams = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
- restParams[_key - 2] = arguments[_key];
- }
- callback.apply(void 0, restParams);
- }
- },
- runIfEnterPrev: function runIfEnterPrev(event) {
- this.runIfEnter(event, this.prev);
- },
- runIfEnterNext: function runIfEnterNext(event) {
- this.runIfEnter(event, this.next);
- },
- runIfEnterJumpPrev: function runIfEnterJumpPrev(event) {
- this.runIfEnter(event, this.jumpPrev);
- },
- runIfEnterJumpNext: function runIfEnterJumpNext(event) {
- this.runIfEnter(event, this.jumpNext);
- },
- handleGoTO: function handleGoTO(event) {
- if (event.keyCode === KeyCode_default2.ENTER || event.type === "click") {
- this.handleChange(this.stateCurrentInputValue);
- }
- },
- renderPrev: function renderPrev(prevPage) {
- var itemRender = this.$props.itemRender;
- var prevButton = itemRender({
- page: prevPage,
- type: "prev",
- originalElement: this.getItemIcon("prevIcon", "prev page")
- });
- var disabled = !this.hasPrev();
- return isValidElement(prevButton) ? cloneElement(prevButton, disabled ? {
- disabled
- } : {}) : prevButton;
- },
- renderNext: function renderNext(nextPage) {
- var itemRender = this.$props.itemRender;
- var nextButton = itemRender({
- page: nextPage,
- type: "next",
- originalElement: this.getItemIcon("nextIcon", "next page")
- });
- var disabled = !this.hasNext();
- return isValidElement(nextButton) ? cloneElement(nextButton, disabled ? {
- disabled
- } : {}) : nextButton;
- }
- },
- render: function render8() {
- var _classNames6;
- var _this$$props3 = this.$props, prefixCls = _this$$props3.prefixCls, disabled = _this$$props3.disabled, hideOnSinglePage = _this$$props3.hideOnSinglePage, total2 = _this$$props3.total, locale4 = _this$$props3.locale, showQuickJumper = _this$$props3.showQuickJumper, showLessItems = _this$$props3.showLessItems, showTitle = _this$$props3.showTitle, showTotal = _this$$props3.showTotal, simple = _this$$props3.simple, itemRender = _this$$props3.itemRender, showPrevNextJumpers = _this$$props3.showPrevNextJumpers, jumpPrevIcon = _this$$props3.jumpPrevIcon, jumpNextIcon = _this$$props3.jumpNextIcon, selectComponentClass = _this$$props3.selectComponentClass, selectPrefixCls = _this$$props3.selectPrefixCls, pageSizeOptions = _this$$props3.pageSizeOptions;
- var stateCurrent2 = this.stateCurrent, statePageSize = this.statePageSize;
- var _splitAttrs$extraAttr = splitAttrs(this.$attrs).extraAttrs, className = _splitAttrs$extraAttr.class, restAttrs = _objectWithoutProperties(_splitAttrs$extraAttr, _excluded41);
- if (hideOnSinglePage === true && this.total <= statePageSize) {
- return null;
- }
- var allPages = calculatePage(void 0, this.$data, this.$props);
- var pagerList = [];
- var jumpPrev2 = null;
- var jumpNext2 = null;
- var firstPager = null;
- var lastPager = null;
- var gotoButton = null;
- var goButton = showQuickJumper && showQuickJumper.goButton;
- var pageBufferSize = showLessItems ? 1 : 2;
- var prevPage = stateCurrent2 - 1 > 0 ? stateCurrent2 - 1 : 0;
- var nextPage = stateCurrent2 + 1 < allPages ? stateCurrent2 + 1 : allPages;
- var hasPrev2 = this.hasPrev();
- var hasNext2 = this.hasNext();
- if (simple) {
- if (goButton) {
- if (typeof goButton === "boolean") {
- gotoButton = createVNode("button", {
- "type": "button",
- "onClick": this.handleGoTO,
- "onKeyup": this.handleGoTO
- }, [locale4.jump_to_confirm]);
- } else {
- gotoButton = createVNode("span", {
- "onClick": this.handleGoTO,
- "onKeyup": this.handleGoTO
- }, [goButton]);
- }
- var _gotoButton = function() {
- return gotoButton;
- }();
- gotoButton = createVNode("li", {
- "title": showTitle ? "".concat(locale4.jump_to).concat(stateCurrent2, "/").concat(allPages) : null,
- "class": "".concat(prefixCls, "-simple-pager")
- }, [gotoButton]);
- }
- return createVNode("ul", _objectSpread2({
- "class": classNames_default("".concat(prefixCls, " ").concat(prefixCls, "-simple"), _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), className)
- }, restAttrs), [createVNode("li", {
- "title": showTitle ? locale4.prev_page : null,
- "onClick": this.prev,
- "tabindex": hasPrev2 ? 0 : null,
- "onKeypress": this.runIfEnterPrev,
- "class": classNames_default("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !hasPrev2)),
- "aria-disabled": !hasPrev2
- }, [this.renderPrev(prevPage)]), createVNode("li", {
- "title": showTitle ? "".concat(stateCurrent2, "/").concat(allPages) : null,
- "class": "".concat(prefixCls, "-simple-pager")
- }, [withDirectives(createVNode("input", {
- "type": "text",
- "value": this.stateCurrentInputValue,
- "disabled": disabled,
- "onKeydown": this.handleKeyDown,
- "onKeyup": this.handleKeyUp,
- "onInput": this.handleKeyUp,
- "onChange": this.handleKeyUp,
- "size": "3"
- }, null), [[antInputDirective_default]]), createVNode("span", {
- "class": "".concat(prefixCls, "-slash")
- }, [createTextVNode("/")]), allPages]), createVNode("li", {
- "title": showTitle ? locale4.next_page : null,
- "onClick": this.next,
- "tabindex": hasNext2 ? 0 : null,
- "onKeypress": this.runIfEnterNext,
- "class": classNames_default("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), !hasNext2)),
- "aria-disabled": !hasNext2
- }, [this.renderNext(nextPage)]), gotoButton]);
- }
- if (allPages <= 3 + pageBufferSize * 2) {
- var pagerProps = {
- locale: locale4,
- rootPrefixCls: prefixCls,
- showTitle,
- itemRender,
- onClick: this.handleChange,
- onKeypress: this.runIfEnter
- };
- if (!allPages) {
- pagerList.push(createVNode(Pager_default, _objectSpread2(_objectSpread2({}, pagerProps), {}, {
- "key": "noPager",
- "page": 1,
- "class": "".concat(prefixCls, "-item-disabled")
- }), null));
- }
- for (var i3 = 1; i3 <= allPages; i3 += 1) {
- var active = stateCurrent2 === i3;
- pagerList.push(createVNode(Pager_default, _objectSpread2(_objectSpread2({}, pagerProps), {}, {
- "key": i3,
- "page": i3,
- "active": active
- }), null));
- }
- } else {
- var prevItemTitle = showLessItems ? locale4.prev_3 : locale4.prev_5;
- var nextItemTitle = showLessItems ? locale4.next_3 : locale4.next_5;
- if (showPrevNextJumpers) {
- jumpPrev2 = createVNode("li", {
- "title": this.showTitle ? prevItemTitle : null,
- "key": "prev",
- "onClick": this.jumpPrev,
- "tabindex": "0",
- "onKeypress": this.runIfEnterJumpPrev,
- "class": classNames_default("".concat(prefixCls, "-jump-prev"), _defineProperty({}, "".concat(prefixCls, "-jump-prev-custom-icon"), !!jumpPrevIcon))
- }, [itemRender({
- page: this.getJumpPrevPage(),
- type: "jump-prev",
- originalElement: this.getItemIcon("jumpPrevIcon", "prev page")
- })]);
- jumpNext2 = createVNode("li", {
- "title": this.showTitle ? nextItemTitle : null,
- "key": "next",
- "tabindex": "0",
- "onClick": this.jumpNext,
- "onKeypress": this.runIfEnterJumpNext,
- "class": classNames_default("".concat(prefixCls, "-jump-next"), _defineProperty({}, "".concat(prefixCls, "-jump-next-custom-icon"), !!jumpNextIcon))
- }, [itemRender({
- page: this.getJumpNextPage(),
- type: "jump-next",
- originalElement: this.getItemIcon("jumpNextIcon", "next page")
- })]);
- }
- lastPager = createVNode(Pager_default, {
- "locale": locale4,
- "last": true,
- "rootPrefixCls": prefixCls,
- "onClick": this.handleChange,
- "onKeypress": this.runIfEnter,
- "key": allPages,
- "page": allPages,
- "active": false,
- "showTitle": showTitle,
- "itemRender": itemRender
- }, null);
- firstPager = createVNode(Pager_default, {
- "locale": locale4,
- "rootPrefixCls": prefixCls,
- "onClick": this.handleChange,
- "onKeypress": this.runIfEnter,
- "key": 1,
- "page": 1,
- "active": false,
- "showTitle": showTitle,
- "itemRender": itemRender
- }, null);
- var left = Math.max(1, stateCurrent2 - pageBufferSize);
- var right = Math.min(stateCurrent2 + pageBufferSize, allPages);
- if (stateCurrent2 - 1 <= pageBufferSize) {
- right = 1 + pageBufferSize * 2;
- }
- if (allPages - stateCurrent2 <= pageBufferSize) {
- left = allPages - pageBufferSize * 2;
- }
- for (var _i = left; _i <= right; _i += 1) {
- var _active = stateCurrent2 === _i;
- pagerList.push(createVNode(Pager_default, {
- "locale": locale4,
- "rootPrefixCls": prefixCls,
- "onClick": this.handleChange,
- "onKeypress": this.runIfEnter,
- "key": _i,
- "page": _i,
- "active": _active,
- "showTitle": showTitle,
- "itemRender": itemRender
- }, null));
- }
- if (stateCurrent2 - 1 >= pageBufferSize * 2 && stateCurrent2 !== 1 + 2) {
- pagerList[0] = createVNode(Pager_default, {
- "locale": locale4,
- "rootPrefixCls": prefixCls,
- "onClick": this.handleChange,
- "onKeypress": this.runIfEnter,
- "key": left,
- "page": left,
- "class": "".concat(prefixCls, "-item-after-jump-prev"),
- "active": false,
- "showTitle": this.showTitle,
- "itemRender": itemRender
- }, null);
- pagerList.unshift(jumpPrev2);
- }
- if (allPages - stateCurrent2 >= pageBufferSize * 2 && stateCurrent2 !== allPages - 2) {
- pagerList[pagerList.length - 1] = createVNode(Pager_default, {
- "locale": locale4,
- "rootPrefixCls": prefixCls,
- "onClick": this.handleChange,
- "onKeypress": this.runIfEnter,
- "key": right,
- "page": right,
- "class": "".concat(prefixCls, "-item-before-jump-next"),
- "active": false,
- "showTitle": this.showTitle,
- "itemRender": itemRender
- }, null);
- pagerList.push(jumpNext2);
- }
- if (left !== 1) {
- pagerList.unshift(firstPager);
- }
- if (right !== allPages) {
- pagerList.push(lastPager);
- }
- }
- var totalText = null;
- if (showTotal) {
- totalText = createVNode("li", {
- "class": "".concat(prefixCls, "-total-text")
- }, [showTotal(total2, [total2 === 0 ? 0 : (stateCurrent2 - 1) * statePageSize + 1, stateCurrent2 * statePageSize > total2 ? total2 : stateCurrent2 * statePageSize])]);
- }
- var prevDisabled = !hasPrev2 || !allPages;
- var nextDisabled = !hasNext2 || !allPages;
- var buildOptionText = this.buildOptionText || this.$slots.buildOptionText;
- return createVNode("ul", _objectSpread2(_objectSpread2({
- "unselectable": "on",
- "ref": "paginationNode"
- }, restAttrs), {}, {
- "class": classNames_default((_classNames6 = {}, _defineProperty(_classNames6, "".concat(prefixCls), true), _defineProperty(_classNames6, "".concat(prefixCls, "-disabled"), disabled), _classNames6), className)
- }), [totalText, createVNode("li", {
- "title": showTitle ? locale4.prev_page : null,
- "onClick": this.prev,
- "tabindex": prevDisabled ? null : 0,
- "onKeypress": this.runIfEnterPrev,
- "class": classNames_default("".concat(prefixCls, "-prev"), _defineProperty({}, "".concat(prefixCls, "-disabled"), prevDisabled)),
- "aria-disabled": prevDisabled
- }, [this.renderPrev(prevPage)]), pagerList, createVNode("li", {
- "title": showTitle ? locale4.next_page : null,
- "onClick": this.next,
- "tabindex": nextDisabled ? null : 0,
- "onKeypress": this.runIfEnterNext,
- "class": classNames_default("".concat(prefixCls, "-next"), _defineProperty({}, "".concat(prefixCls, "-disabled"), nextDisabled)),
- "aria-disabled": nextDisabled
- }, [this.renderNext(nextPage)]), createVNode(Options_default, {
- "disabled": disabled,
- "locale": locale4,
- "rootPrefixCls": prefixCls,
- "selectComponentClass": selectComponentClass,
- "selectPrefixCls": selectPrefixCls,
- "changeSize": this.getShowSizeChanger() ? this.changePageSize : null,
- "current": stateCurrent2,
- "pageSize": statePageSize,
- "pageSizeOptions": pageSizeOptions,
- "buildOptionText": buildOptionText || null,
- "quickGo": this.shouldDisplayQuickJumper() ? this.handleChange : null,
- "goButton": goButton
- }, null)]);
- }
- });
- // node_modules/ant-design-vue/es/pagination/Pagination.js
- var _excluded42 = ["size", "itemRender", "buildOptionText", "selectComponentClass", "responsive"];
- var paginationProps = function paginationProps2() {
- return {
- total: Number,
- defaultCurrent: Number,
- disabled: {
- type: Boolean,
- default: void 0
- },
- current: Number,
- defaultPageSize: Number,
- pageSize: Number,
- hideOnSinglePage: {
- type: Boolean,
- default: void 0
- },
- showSizeChanger: {
- type: Boolean,
- default: void 0
- },
- pageSizeOptions: Array,
- buildOptionText: Function,
- showQuickJumper: {
- type: [Boolean, Object],
- default: void 0
- },
- showTotal: Function,
- size: String,
- simple: {
- type: Boolean,
- default: void 0
- },
- locale: Object,
- prefixCls: String,
- selectPrefixCls: String,
- totalBoundaryShowSizeChanger: Number,
- selectComponentClass: String,
- itemRender: Function,
- role: String,
- responsive: Boolean,
- showLessItems: {
- type: Boolean,
- default: void 0
- },
- onChange: Function,
- onShowSizeChange: Function,
- "onUpdate:current": Function,
- "onUpdate:pageSize": Function
- };
- };
- var Pagination_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "APagination",
- inheritAttrs: false,
- props: paginationProps(),
- // emits: ['change', 'showSizeChange', 'update:current', 'update:pageSize'],
- setup: function setup137(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("pagination", props5), prefixCls = _useConfigInject.prefixCls, configProvider = _useConfigInject.configProvider, direction = _useConfigInject.direction;
- var selectPrefixCls = computed(function() {
- return configProvider.getPrefixCls("select", props5.selectPrefixCls);
- });
- var breakpoint = useBreakpoint_default();
- var _useLocaleReceiver = useLocaleReceiver("Pagination", en_US_default, toRef(props5, "locale")), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), locale4 = _useLocaleReceiver2[0];
- var getIconsProps = function getIconsProps2(pre) {
- var ellipsis = createVNode("span", {
- "class": "".concat(pre, "-item-ellipsis")
- }, [createTextVNode("•••")]);
- var prevIcon = createVNode("button", {
- "class": "".concat(pre, "-item-link"),
- "type": "button",
- "tabindex": -1
- }, [createVNode(LeftOutlined_default, null, null)]);
- var nextIcon = createVNode("button", {
- "class": "".concat(pre, "-item-link"),
- "type": "button",
- "tabindex": -1
- }, [createVNode(RightOutlined_default, null, null)]);
- var jumpPrevIcon = createVNode("a", {
- "rel": "nofollow",
- "class": "".concat(pre, "-item-link")
- }, [createVNode("div", {
- "class": "".concat(pre, "-item-container")
- }, [createVNode(DoubleLeftOutlined_default, {
- "class": "".concat(pre, "-item-link-icon")
- }, null), ellipsis])]);
- var jumpNextIcon = createVNode("a", {
- "rel": "nofollow",
- "class": "".concat(pre, "-item-link")
- }, [createVNode("div", {
- "class": "".concat(pre, "-item-container")
- }, [createVNode(DoubleRightOutlined_default, {
- "class": "".concat(pre, "-item-link-icon")
- }, null), ellipsis])]);
- if (direction.value === "rtl") {
- var _ref2 = [nextIcon, prevIcon];
- prevIcon = _ref2[0];
- nextIcon = _ref2[1];
- var _ref3 = [jumpNextIcon, jumpPrevIcon];
- jumpPrevIcon = _ref3[0];
- jumpNextIcon = _ref3[1];
- }
- return {
- prevIcon,
- nextIcon,
- jumpPrevIcon,
- jumpNextIcon
- };
- };
- return function() {
- var _breakpoint$value;
- var size = props5.size, _props$itemRender = props5.itemRender, itemRender = _props$itemRender === void 0 ? slots.itemRender : _props$itemRender, _props$buildOptionTex = props5.buildOptionText, buildOptionText = _props$buildOptionTex === void 0 ? slots.buildOptionText : _props$buildOptionTex, selectComponentClass = props5.selectComponentClass, responsive = props5.responsive, restProps = _objectWithoutProperties(props5, _excluded42);
- var isSmall = size === "small" || !!((_breakpoint$value = breakpoint.value) !== null && _breakpoint$value !== void 0 && _breakpoint$value.xs && !size && responsive);
- var paginationProps3 = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, restProps), getIconsProps(prefixCls.value)), {}, {
- prefixCls: prefixCls.value,
- selectPrefixCls: selectPrefixCls.value,
- selectComponentClass: selectComponentClass || (isSmall ? MiniSelect_default : select_default),
- locale: locale4.value,
- buildOptionText
- }, attrs), {}, {
- class: classNames_default(_defineProperty({
- mini: isSmall
- }, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), attrs.class),
- itemRender
- });
- return createVNode(Pagination_default, paginationProps3, null);
- };
- }
- });
- // node_modules/ant-design-vue/es/pagination/index.js
- var pagination_default = withInstall(Pagination_default2);
- // node_modules/ant-design-vue/es/list/ItemMeta.js
- var listItemMetaProps = function listItemMetaProps2() {
- return {
- avatar: vue_types_default.any,
- description: vue_types_default.any,
- prefixCls: String,
- title: vue_types_default.any
- };
- };
- var ItemMeta_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AListItemMeta",
- props: listItemMetaProps(),
- displayName: "AListItemMeta",
- __ANT_LIST_ITEM_META: true,
- slots: ["avatar", "description", "title"],
- setup: function setup138(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("list", props5), prefixCls = _useConfigInject.prefixCls;
- return function() {
- var _props$title, _slots$title, _props$description, _slots$description, _props$avatar, _slots$avatar;
- var classString = "".concat(prefixCls.value, "-item-meta");
- var title = (_props$title = props5.title) !== null && _props$title !== void 0 ? _props$title : (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots);
- var description = (_props$description = props5.description) !== null && _props$description !== void 0 ? _props$description : (_slots$description = slots.description) === null || _slots$description === void 0 ? void 0 : _slots$description.call(slots);
- var avatar = (_props$avatar = props5.avatar) !== null && _props$avatar !== void 0 ? _props$avatar : (_slots$avatar = slots.avatar) === null || _slots$avatar === void 0 ? void 0 : _slots$avatar.call(slots);
- var content = createVNode("div", {
- "class": "".concat(prefixCls.value, "-item-meta-content")
- }, [title && createVNode("h4", {
- "class": "".concat(prefixCls.value, "-item-meta-title")
- }, [title]), description && createVNode("div", {
- "class": "".concat(prefixCls.value, "-item-meta-description")
- }, [description])]);
- return createVNode("div", {
- "class": classString
- }, [avatar && createVNode("div", {
- "class": "".concat(prefixCls.value, "-item-meta-avatar")
- }, [avatar]), (title || description) && content]);
- };
- }
- });
- // node_modules/ant-design-vue/es/list/contextKey.js
- var ListContextKey = Symbol("ListContextKey");
- // node_modules/ant-design-vue/es/list/Item.js
- var _excluded43 = ["class"];
- var listItemProps = function listItemProps2() {
- return {
- prefixCls: String,
- extra: vue_types_default.any,
- actions: vue_types_default.array,
- grid: Object,
- colStyle: {
- type: Object,
- default: void 0
- }
- };
- };
- var Item_default3 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AListItem",
- inheritAttrs: false,
- Meta: ItemMeta_default,
- props: listItemProps(),
- slots: ["actions", "extra"],
- setup: function setup139(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _inject = inject(ListContextKey, {
- grid: ref(),
- itemLayout: ref()
- }), itemLayout = _inject.itemLayout, grid = _inject.grid;
- var _useConfigInject = useConfigInject_default("list", props5), prefixCls = _useConfigInject.prefixCls;
- var isItemContainsTextNodeAndNotSingular = function isItemContainsTextNodeAndNotSingular2() {
- var _slots$default;
- var children = ((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)) || [];
- var result;
- children.forEach(function(element) {
- if (isStringElement(element) && !isEmptyElement(element)) {
- result = true;
- }
- });
- return result && children.length > 1;
- };
- var isFlexMode = function isFlexMode2() {
- var _props$extra, _slots$extra;
- var extra = (_props$extra = props5.extra) !== null && _props$extra !== void 0 ? _props$extra : (_slots$extra = slots.extra) === null || _slots$extra === void 0 ? void 0 : _slots$extra.call(slots);
- if (itemLayout.value === "vertical") {
- return !!extra;
- }
- return !isItemContainsTextNodeAndNotSingular();
- };
- return function() {
- var _props$extra2, _slots$extra2, _slots$default2, _props$actions, _slots$actions;
- var className = attrs.class, restAttrs = _objectWithoutProperties(attrs, _excluded43);
- var pre = prefixCls.value;
- var extra = (_props$extra2 = props5.extra) !== null && _props$extra2 !== void 0 ? _props$extra2 : (_slots$extra2 = slots.extra) === null || _slots$extra2 === void 0 ? void 0 : _slots$extra2.call(slots);
- var children = (_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots);
- var actions = (_props$actions = props5.actions) !== null && _props$actions !== void 0 ? _props$actions : flattenChildren((_slots$actions = slots.actions) === null || _slots$actions === void 0 ? void 0 : _slots$actions.call(slots));
- actions = actions && !Array.isArray(actions) ? [actions] : actions;
- var actionsContent = actions && actions.length > 0 && createVNode("ul", {
- "class": "".concat(pre, "-item-action"),
- "key": "actions"
- }, [actions.map(function(action, i3) {
- return createVNode("li", {
- "key": "".concat(pre, "-item-action-").concat(i3)
- }, [action, i3 !== actions.length - 1 && createVNode("em", {
- "class": "".concat(pre, "-item-action-split")
- }, null)]);
- })]);
- var Element4 = grid.value ? "div" : "li";
- var itemChildren = createVNode(Element4, _objectSpread2(_objectSpread2({}, restAttrs), {}, {
- "class": classNames_default("".concat(pre, "-item"), _defineProperty({}, "".concat(pre, "-item-no-flex"), !isFlexMode()), className)
- }), {
- default: function _default9() {
- return [itemLayout.value === "vertical" && extra ? [createVNode("div", {
- "class": "".concat(pre, "-item-main"),
- "key": "content"
- }, [children, actionsContent]), createVNode("div", {
- "class": "".concat(pre, "-item-extra"),
- "key": "extra"
- }, [extra])] : [children, actionsContent, cloneElement(extra, {
- key: "extra"
- })]];
- }
- });
- return grid.value ? createVNode(Col_default, {
- "flex": 1,
- "style": props5.colStyle
- }, {
- default: function _default9() {
- return [itemChildren];
- }
- }) : itemChildren;
- };
- }
- });
- // node_modules/ant-design-vue/es/list/index.js
- var listProps = function listProps2() {
- return {
- bordered: {
- type: Boolean,
- default: void 0
- },
- dataSource: vue_types_default.array,
- extra: vue_types_default.any,
- grid: {
- type: Object,
- default: void 0
- },
- itemLayout: String,
- loading: {
- type: [Boolean, Object],
- default: void 0
- },
- loadMore: vue_types_default.any,
- pagination: {
- type: [Boolean, Object],
- default: void 0
- },
- prefixCls: String,
- rowKey: [String, Number, Function],
- renderItem: Function,
- size: String,
- split: {
- type: Boolean,
- default: void 0
- },
- header: vue_types_default.any,
- footer: vue_types_default.any,
- locale: {
- type: Object
- }
- };
- };
- var List2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AList",
- Item: Item_default3,
- props: initDefaultProps_default(listProps(), {
- dataSource: [],
- bordered: false,
- split: true,
- loading: false,
- pagination: false
- }),
- slots: ["extra", "loadMore", "renderItem", "header", "footer"],
- setup: function setup140(props5, _ref) {
- var _paginationObj$value$, _paginationObj$value$2;
- var slots = _ref.slots;
- provide(ListContextKey, {
- grid: toRef(props5, "grid"),
- itemLayout: toRef(props5, "itemLayout")
- });
- var defaultPaginationProps = {
- current: 1,
- total: 0
- };
- var _useConfigInject = useConfigInject_default("list", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, renderEmpty2 = _useConfigInject.renderEmpty;
- var paginationObj = computed(function() {
- return props5.pagination && _typeof(props5.pagination) === "object" ? props5.pagination : {};
- });
- var paginationCurrent = ref((_paginationObj$value$ = paginationObj.value.defaultCurrent) !== null && _paginationObj$value$ !== void 0 ? _paginationObj$value$ : 1);
- var paginationSize = ref((_paginationObj$value$2 = paginationObj.value.defaultPageSize) !== null && _paginationObj$value$2 !== void 0 ? _paginationObj$value$2 : 10);
- watch(paginationObj, function() {
- if ("current" in paginationObj.value) {
- paginationCurrent.value = paginationObj.value.current;
- }
- if ("pageSize" in paginationObj.value) {
- paginationSize.value = paginationObj.value.pageSize;
- }
- });
- var listItemsKeys = [];
- var triggerPaginationEvent = function triggerPaginationEvent2(eventName) {
- return function(page, pageSize2) {
- paginationCurrent.value = page;
- paginationSize.value = pageSize2;
- if (paginationObj.value[eventName]) {
- paginationObj.value[eventName](page, pageSize2);
- }
- };
- };
- var onPaginationChange = triggerPaginationEvent("onChange");
- var onPaginationShowSizeChange = triggerPaginationEvent("onShowSizeChange");
- var renderEmptyFunc = function renderEmptyFunc2(renderEmptyHandler) {
- var _props$locale;
- return createVNode("div", {
- "class": "".concat(prefixCls.value, "-empty-text")
- }, [((_props$locale = props5.locale) === null || _props$locale === void 0 ? void 0 : _props$locale.emptyText) || renderEmptyHandler("List")]);
- };
- var loadingProp = computed(function() {
- if (typeof props5.loading === "boolean") {
- return {
- spinning: props5.loading
- };
- } else {
- return props5.loading;
- }
- });
- var isLoading = computed(function() {
- return loadingProp.value && loadingProp.value.spinning;
- });
- var sizeCls = computed(function() {
- var size = "";
- switch (props5.size) {
- case "large":
- size = "lg";
- break;
- case "small":
- size = "sm";
- break;
- default:
- break;
- }
- return size;
- });
- var classObj = computed(function() {
- var _ref2;
- return _ref2 = {}, _defineProperty(_ref2, "".concat(prefixCls.value), true), _defineProperty(_ref2, "".concat(prefixCls.value, "-vertical"), props5.itemLayout === "vertical"), _defineProperty(_ref2, "".concat(prefixCls.value, "-").concat(sizeCls.value), sizeCls.value), _defineProperty(_ref2, "".concat(prefixCls.value, "-split"), props5.split), _defineProperty(_ref2, "".concat(prefixCls.value, "-bordered"), props5.bordered), _defineProperty(_ref2, "".concat(prefixCls.value, "-loading"), isLoading.value), _defineProperty(_ref2, "".concat(prefixCls.value, "-grid"), !!props5.grid), _defineProperty(_ref2, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _ref2;
- });
- var paginationProps3 = computed(function() {
- var pp = _objectSpread2(_objectSpread2({}, defaultPaginationProps), {}, {
- total: props5.dataSource.length,
- current: paginationCurrent.value,
- pageSize: paginationSize.value
- }, props5.pagination || {});
- var largestPage = Math.ceil(pp.total / pp.pageSize);
- if (pp.current > largestPage) {
- pp.current = largestPage;
- }
- return pp;
- });
- var splitDataSource = computed(function() {
- var dd = _toConsumableArray(props5.dataSource);
- if (props5.pagination) {
- if (props5.dataSource.length > (paginationProps3.value.current - 1) * paginationProps3.value.pageSize) {
- dd = _toConsumableArray(props5.dataSource).splice((paginationProps3.value.current - 1) * paginationProps3.value.pageSize, paginationProps3.value.pageSize);
- }
- }
- return dd;
- });
- var screens2 = useBreakpoint_default();
- var currentBreakpoint = eagerComputed(function() {
- for (var i3 = 0; i3 < responsiveArray.length; i3 += 1) {
- var breakpoint = responsiveArray[i3];
- if (screens2.value[breakpoint]) {
- return breakpoint;
- }
- }
- return void 0;
- });
- var colStyle = computed(function() {
- if (!props5.grid) {
- return void 0;
- }
- var columnCount = currentBreakpoint.value && props5.grid[currentBreakpoint.value] ? props5.grid[currentBreakpoint.value] : props5.grid.column;
- if (columnCount) {
- return {
- width: "".concat(100 / columnCount, "%"),
- maxWidth: "".concat(100 / columnCount, "%")
- };
- }
- return void 0;
- });
- var renderInnerItem = function renderInnerItem2(item, index3) {
- var _props$renderItem;
- var renderItem = (_props$renderItem = props5.renderItem) !== null && _props$renderItem !== void 0 ? _props$renderItem : slots.renderItem;
- if (!renderItem)
- return null;
- var key2;
- var rowKeyType = _typeof(props5.rowKey);
- if (rowKeyType === "function") {
- key2 = props5.rowKey(item);
- } else if (rowKeyType === "string" || rowKeyType === "number") {
- key2 = item[props5.rowKey];
- } else {
- key2 = item.key;
- }
- if (!key2) {
- key2 = "list-item-".concat(index3);
- }
- listItemsKeys[index3] = key2;
- return renderItem({
- item,
- index: index3
- });
- };
- return function() {
- var _props$loadMore, _slots$loadMore, _props$footer, _slots$footer, _props$header, _slots$header, _slots$default;
- var loadMore = (_props$loadMore = props5.loadMore) !== null && _props$loadMore !== void 0 ? _props$loadMore : (_slots$loadMore = slots.loadMore) === null || _slots$loadMore === void 0 ? void 0 : _slots$loadMore.call(slots);
- var footer = (_props$footer = props5.footer) !== null && _props$footer !== void 0 ? _props$footer : (_slots$footer = slots.footer) === null || _slots$footer === void 0 ? void 0 : _slots$footer.call(slots);
- var header = (_props$header = props5.header) !== null && _props$header !== void 0 ? _props$header : (_slots$header = slots.header) === null || _slots$header === void 0 ? void 0 : _slots$header.call(slots);
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- var isSomethingAfterLastItem = !!(loadMore || props5.pagination || footer);
- var classString = _objectSpread2(_objectSpread2({}, classObj.value), {}, _defineProperty({}, "".concat(prefixCls.value, "-something-after-last-item"), isSomethingAfterLastItem));
- var paginationContent = props5.pagination ? createVNode("div", {
- "class": "".concat(prefixCls.value, "-pagination")
- }, [createVNode(pagination_default, _objectSpread2(_objectSpread2({}, paginationProps3.value), {}, {
- "onChange": onPaginationChange,
- "onShowSizeChange": onPaginationShowSizeChange
- }), null)]) : null;
- var childrenContent = isLoading.value && createVNode("div", {
- "style": {
- minHeight: "53px"
- }
- }, null);
- if (splitDataSource.value.length > 0) {
- listItemsKeys.length = 0;
- var items = splitDataSource.value.map(function(item, index3) {
- return renderInnerItem(item, index3);
- });
- var childrenList = items.map(function(child, index3) {
- return createVNode("div", {
- "key": listItemsKeys[index3],
- "style": colStyle.value
- }, [child]);
- });
- childrenContent = props5.grid ? createVNode(Row_default, {
- "gutter": props5.grid.gutter
- }, {
- default: function _default9() {
- return [childrenList];
- }
- }) : createVNode("ul", {
- "class": "".concat(prefixCls.value, "-items")
- }, [items]);
- } else if (!children.length && !isLoading.value) {
- childrenContent = renderEmptyFunc(renderEmpty2.value);
- }
- var paginationPosition = paginationProps3.value.position || "bottom";
- return createVNode("div", {
- "class": classString
- }, [(paginationPosition === "top" || paginationPosition === "both") && paginationContent, header && createVNode("div", {
- "class": "".concat(prefixCls.value, "-header")
- }, [header]), createVNode(spin_default, loadingProp.value, {
- default: function _default9() {
- return [childrenContent, children];
- }
- }), footer && createVNode("div", {
- "class": "".concat(prefixCls.value, "-footer")
- }, [footer]), loadMore || (paginationPosition === "bottom" || paginationPosition === "both") && paginationContent]);
- };
- }
- });
- List2.install = function(app) {
- app.component(List2.name, List2);
- app.component(List2.Item.name, List2.Item);
- app.component(List2.Item.Meta.name, List2.Item.Meta);
- return app;
- };
- var list_default = List2;
- // node_modules/ant-design-vue/es/vc-mentions/src/util.js
- function getBeforeSelectionText(input) {
- var selectionStart = input.selectionStart;
- return input.value.slice(0, selectionStart);
- }
- function getLastMeasureIndex(text) {
- var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
- var prefixList = Array.isArray(prefix) ? prefix : [prefix];
- return prefixList.reduce(function(lastMatch, prefixStr) {
- var lastIndex = text.lastIndexOf(prefixStr);
- if (lastIndex > lastMatch.location) {
- return {
- location: lastIndex,
- prefix: prefixStr
- };
- }
- return lastMatch;
- }, {
- location: -1,
- prefix: ""
- });
- }
- function lower(char) {
- return (char || "").toLowerCase();
- }
- function reduceText(text, targetText, split) {
- var firstChar = text[0];
- if (!firstChar || firstChar === split) {
- return text;
- }
- var restText = text;
- var targetTextLen = targetText.length;
- for (var i3 = 0; i3 < targetTextLen; i3 += 1) {
- if (lower(restText[i3]) !== lower(targetText[i3])) {
- restText = restText.slice(i3);
- break;
- } else if (i3 === targetTextLen - 1) {
- restText = restText.slice(targetTextLen);
- }
- }
- return restText;
- }
- function replaceWithMeasure(text, measureConfig) {
- var measureLocation = measureConfig.measureLocation, prefix = measureConfig.prefix, targetText = measureConfig.targetText, selectionStart = measureConfig.selectionStart, split = measureConfig.split;
- var beforeMeasureText = text.slice(0, measureLocation);
- if (beforeMeasureText[beforeMeasureText.length - split.length] === split) {
- beforeMeasureText = beforeMeasureText.slice(0, beforeMeasureText.length - split.length);
- }
- if (beforeMeasureText) {
- beforeMeasureText = "".concat(beforeMeasureText).concat(split);
- }
- var restText = reduceText(text.slice(selectionStart), targetText.slice(selectionStart - measureLocation - prefix.length), split);
- if (restText.slice(0, split.length) === split) {
- restText = restText.slice(split.length);
- }
- var connectedStartText = "".concat(beforeMeasureText).concat(prefix).concat(targetText).concat(split);
- return {
- text: "".concat(connectedStartText).concat(restText),
- selectionLocation: connectedStartText.length
- };
- }
- function setInputSelection(input, location) {
- input.setSelectionRange(location, location);
- input.blur();
- input.focus();
- }
- function validateSearch(text, props5) {
- var split = props5.split;
- return !split || text.indexOf(split) === -1;
- }
- function filterOption(input, _ref) {
- var _ref$value = _ref.value, value = _ref$value === void 0 ? "" : _ref$value;
- var lowerCase = input.toLowerCase();
- return value.toLowerCase().indexOf(lowerCase) !== -1;
- }
- // node_modules/ant-design-vue/es/vc-mentions/src/MentionsContext.js
- var MentionsContextKey = Symbol("MentionsContextKey");
- var MentionsContext_default = MentionsContextKey;
- // node_modules/ant-design-vue/es/vc-mentions/src/DropdownMenu.js
- function noop7() {
- }
- var DropdownMenu_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "DropdownMenu",
- props: {
- prefixCls: String,
- options: {
- type: Array,
- default: function _default6() {
- return [];
- }
- }
- },
- slots: ["notFoundContent", "option"],
- setup: function setup141(props5, _ref) {
- var slots = _ref.slots;
- var _inject = inject(MentionsContext_default, {
- activeIndex: ref(),
- loading: ref(false)
- }), activeIndex = _inject.activeIndex, setActiveIndex = _inject.setActiveIndex, selectOption = _inject.selectOption, _inject$onFocus = _inject.onFocus, onFocus2 = _inject$onFocus === void 0 ? noop7 : _inject$onFocus, loading = _inject.loading;
- var timeoutId;
- var onMousedown2 = function onMousedown3(e3) {
- clearTimeout(timeoutId);
- timeoutId = setTimeout(function() {
- onFocus2(e3);
- });
- };
- onBeforeUnmount(function() {
- clearTimeout(timeoutId);
- });
- return function() {
- var _slots$notFoundConten;
- var prefixCls = props5.prefixCls, options = props5.options;
- var activeOption = options[activeIndex.value] || {};
- return createVNode(menu_default, {
- "prefixCls": "".concat(prefixCls, "-menu"),
- "activeKey": activeOption.value,
- "onSelect": function onSelect(_ref2) {
- var key2 = _ref2.key;
- var option = options.find(function(_ref3) {
- var value = _ref3.value;
- return value === key2;
- });
- selectOption(option);
- },
- "onMousedown": onMousedown2
- }, {
- default: function _default9() {
- return [!loading.value && options.map(function(option, index3) {
- var _slots$option, _slots$option2;
- var value = option.value, disabled = option.disabled, _option$label = option.label, label = _option$label === void 0 ? option.value : _option$label;
- return createVNode(MenuItem_default, {
- "key": value,
- "disabled": disabled,
- "onMouseenter": function onMouseenter2() {
- setActiveIndex(index3);
- }
- }, {
- default: function _default10() {
- return [(_slots$option = (_slots$option2 = slots.option) === null || _slots$option2 === void 0 ? void 0 : _slots$option2.call(slots, option)) !== null && _slots$option !== void 0 ? _slots$option : typeof label === "function" ? label({
- value,
- disabled
- }) : label];
- }
- });
- }), !loading.value && options.length === 0 ? createVNode(MenuItem_default, {
- "key": "notFoundContent",
- "disabled": true
- }, {
- default: function _default10() {
- return [(_slots$notFoundConten = slots.notFoundContent) === null || _slots$notFoundConten === void 0 ? void 0 : _slots$notFoundConten.call(slots)];
- }
- }) : null, loading.value && createVNode(MenuItem_default, {
- "key": "loading",
- "disabled": true
- }, {
- default: function _default10() {
- return [createVNode(spin_default, {
- "size": "small"
- }, null)];
- }
- })];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-mentions/src/KeywordTrigger.js
- var BUILT_IN_PLACEMENTS2 = {
- bottomRight: {
- points: ["tl", "br"],
- offset: [0, 4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- },
- bottomLeft: {
- points: ["tr", "bl"],
- offset: [0, 4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- },
- topRight: {
- points: ["bl", "tr"],
- offset: [0, -4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- },
- topLeft: {
- points: ["br", "tl"],
- offset: [0, -4],
- overflow: {
- adjustX: 0,
- adjustY: 1
- }
- }
- };
- var KeywordTrigger_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "KeywordTrigger",
- props: {
- loading: {
- type: Boolean,
- default: void 0
- },
- options: {
- type: Array,
- default: function _default7() {
- return [];
- }
- },
- prefixCls: String,
- placement: String,
- visible: {
- type: Boolean,
- default: void 0
- },
- transitionName: String,
- getPopupContainer: Function,
- direction: String
- },
- slots: ["notFoundContent", "option"],
- setup: function setup142(props5, _ref) {
- var slots = _ref.slots;
- var getDropdownPrefix = function getDropdownPrefix2() {
- return "".concat(props5.prefixCls, "-dropdown");
- };
- var getDropdownElement = function getDropdownElement2() {
- var options = props5.options;
- return createVNode(DropdownMenu_default, {
- "prefixCls": getDropdownPrefix(),
- "options": options
- }, {
- notFoundContent: slots.notFoundContent,
- option: slots.option
- });
- };
- var popupPlacement = computed(function() {
- var placement = props5.placement, direction = props5.direction;
- var popupPlacement2 = "topRight";
- if (direction === "rtl") {
- popupPlacement2 = placement === "top" ? "topLeft" : "bottomLeft";
- } else {
- popupPlacement2 = placement === "top" ? "topRight" : "bottomRight";
- }
- return popupPlacement2;
- });
- return function() {
- var visible = props5.visible, transitionName2 = props5.transitionName, getPopupContainer = props5.getPopupContainer;
- return createVNode(vc_trigger_default, {
- "prefixCls": getDropdownPrefix(),
- "popupVisible": visible,
- "popup": getDropdownElement(),
- "popupPlacement": popupPlacement.value,
- "popupTransitionName": transitionName2,
- "builtinPlacements": BUILT_IN_PLACEMENTS2,
- "getPopupContainer": getPopupContainer
- }, {
- default: slots.default
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-mentions/src/mentionsProps.js
- var PlaceMent = tuple("top", "bottom");
- var mentionsProps = {
- autofocus: {
- type: Boolean,
- default: void 0
- },
- prefix: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.arrayOf(vue_types_default.string)]),
- prefixCls: String,
- value: String,
- disabled: {
- type: Boolean,
- default: void 0
- },
- split: String,
- transitionName: String,
- placement: vue_types_default.oneOf(PlaceMent),
- character: vue_types_default.any,
- characterRender: Function,
- filterOption: {
- type: [Boolean, Function]
- },
- validateSearch: Function,
- getPopupContainer: {
- type: Function
- },
- options: {
- type: Array,
- default: function _default8() {
- return void 0;
- }
- },
- loading: {
- type: Boolean,
- default: void 0
- },
- rows: [Number, String],
- direction: {
- type: String
- }
- };
- var vcMentionsProps = _objectSpread2({}, mentionsProps);
- var defaultProps2 = {
- prefix: "@",
- split: " ",
- rows: 1,
- validateSearch,
- filterOption: function filterOption2() {
- return filterOption;
- }
- };
- var mentionsProps_default = initDefaultProps_default(vcMentionsProps, defaultProps2);
- // node_modules/ant-design-vue/es/vc-mentions/src/Mentions.js
- var _excluded44 = ["prefixCls", "placement", "transitionName", "getPopupContainer", "direction"];
- var _excluded211 = ["class", "style"];
- function noop8() {
- }
- var Mentions_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Mentions",
- inheritAttrs: false,
- props: initDefaultProps_default(vcMentionsProps, defaultProps2),
- slots: ["notFoundContent", "option"],
- emits: ["change", "select", "search", "focus", "blur", "pressenter"],
- setup: function setup143(props5, _ref) {
- var emit = _ref.emit, attrs = _ref.attrs, expose = _ref.expose, slots = _ref.slots;
- var measure2 = ref(null);
- var textarea = ref(null);
- var focusId = ref();
- var state = reactive({
- value: props5.value || "",
- measuring: false,
- measureLocation: 0,
- measureText: null,
- measurePrefix: "",
- activeIndex: 0,
- isFocus: false
- });
- watchEffect(function() {
- state.value = props5.value;
- });
- var triggerChange = function triggerChange2(val) {
- emit("change", val);
- };
- var onChange3 = function onChange4(_ref2) {
- var _ref2$target = _ref2.target, value = _ref2$target.value, composing = _ref2$target.composing, isComposing = _ref2.isComposing;
- if (isComposing || composing)
- return;
- triggerChange(value);
- };
- var startMeasure = function startMeasure2(measureText, measurePrefix, measureLocation) {
- _extends(state, {
- measuring: true,
- measureText,
- measurePrefix,
- measureLocation,
- activeIndex: 0
- });
- };
- var stopMeasure = function stopMeasure2(callback) {
- _extends(state, {
- measuring: false,
- measureLocation: 0,
- measureText: null
- });
- callback === null || callback === void 0 ? void 0 : callback();
- };
- var onKeyDown = function onKeyDown2(event) {
- var which = event.which;
- if (!state.measuring) {
- return;
- }
- if (which === KeyCode_default.UP || which === KeyCode_default.DOWN) {
- var optionLen = options.value.length;
- var offset4 = which === KeyCode_default.UP ? -1 : 1;
- var newActiveIndex = (state.activeIndex + offset4 + optionLen) % optionLen;
- state.activeIndex = newActiveIndex;
- event.preventDefault();
- } else if (which === KeyCode_default.ESC) {
- stopMeasure();
- } else if (which === KeyCode_default.ENTER) {
- event.preventDefault();
- if (!options.value.length) {
- stopMeasure();
- return;
- }
- var option = options.value[state.activeIndex];
- selectOption(option);
- }
- };
- var onKeyUp = function onKeyUp2(event) {
- var key2 = event.key, which = event.which;
- var prevMeasureText = state.measureText, measuring = state.measuring;
- var prefix = props5.prefix, validateSearch2 = props5.validateSearch;
- var target = event.target;
- if (target.composing) {
- return;
- }
- var selectionStartText = getBeforeSelectionText(target);
- var _getLastMeasureIndex = getLastMeasureIndex(selectionStartText, prefix), measureIndex = _getLastMeasureIndex.location, measurePrefix = _getLastMeasureIndex.prefix;
- if ([KeyCode_default.ESC, KeyCode_default.UP, KeyCode_default.DOWN, KeyCode_default.ENTER].indexOf(which) !== -1) {
- return;
- }
- if (measureIndex !== -1) {
- var measureText = selectionStartText.slice(measureIndex + measurePrefix.length);
- var validateMeasure = validateSearch2(measureText, props5);
- var matchOption = !!getOptions2(measureText).length;
- if (validateMeasure) {
- if (key2 === measurePrefix || key2 === "Shift" || measuring || measureText !== prevMeasureText && matchOption) {
- startMeasure(measureText, measurePrefix, measureIndex);
- }
- } else if (measuring) {
- stopMeasure();
- }
- if (validateMeasure) {
- emit("search", measureText, measurePrefix);
- }
- } else if (measuring) {
- stopMeasure();
- }
- };
- var onPressEnter = function onPressEnter2(event) {
- if (!state.measuring) {
- emit("pressenter", event);
- }
- };
- var onInputFocus = function onInputFocus2(event) {
- onFocus2(event);
- };
- var onInputBlur = function onInputBlur2(event) {
- onBlur2(event);
- };
- var onFocus2 = function onFocus3(event) {
- clearTimeout(focusId.value);
- var isFocus = state.isFocus;
- if (!isFocus && event) {
- emit("focus", event);
- }
- state.isFocus = true;
- };
- var onBlur2 = function onBlur3(event) {
- focusId.value = setTimeout(function() {
- state.isFocus = false;
- stopMeasure();
- emit("blur", event);
- }, 100);
- };
- var selectOption = function selectOption2(option) {
- var split = props5.split;
- var _option$value = option.value, mentionValue = _option$value === void 0 ? "" : _option$value;
- var _replaceWithMeasure = replaceWithMeasure(state.value, {
- measureLocation: state.measureLocation,
- targetText: mentionValue,
- prefix: state.measurePrefix,
- selectionStart: textarea.value.selectionStart,
- split
- }), text = _replaceWithMeasure.text, selectionLocation = _replaceWithMeasure.selectionLocation;
- triggerChange(text);
- stopMeasure(function() {
- setInputSelection(textarea.value, selectionLocation);
- });
- emit("select", option, state.measurePrefix);
- };
- var setActiveIndex = function setActiveIndex2(activeIndex) {
- state.activeIndex = activeIndex;
- };
- var getOptions2 = function getOptions3(measureText) {
- var targetMeasureText = measureText || state.measureText || "";
- var filterOption3 = props5.filterOption;
- var list = props5.options.filter(function(option) {
- if (!!filterOption3 === false) {
- return true;
- }
- return filterOption3(targetMeasureText, option);
- });
- return list;
- };
- var options = computed(function() {
- return getOptions2();
- });
- var focus = function focus2() {
- textarea.value.focus();
- };
- var blur = function blur2() {
- textarea.value.blur();
- };
- expose({
- blur,
- focus
- });
- provide(MentionsContext_default, {
- activeIndex: toRef(state, "activeIndex"),
- setActiveIndex,
- selectOption,
- onFocus: onFocus2,
- onBlur: onBlur2,
- loading: toRef(props5, "loading")
- });
- onUpdated(function() {
- nextTick(function() {
- if (state.measuring) {
- measure2.value.scrollTop = textarea.value.scrollTop;
- }
- });
- });
- return function() {
- var measureLocation = state.measureLocation, measurePrefix = state.measurePrefix, measuring = state.measuring;
- var prefixCls = props5.prefixCls, placement = props5.placement, transitionName2 = props5.transitionName, getPopupContainer = props5.getPopupContainer, direction = props5.direction, restProps = _objectWithoutProperties(props5, _excluded44);
- var className = attrs.class, style = attrs.style, otherAttrs = _objectWithoutProperties(attrs, _excluded211);
- var inputProps4 = omit_default(restProps, ["value", "prefix", "split", "validateSearch", "filterOption", "options", "loading"]);
- var textareaProps = _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps4), otherAttrs), {}, {
- onChange: noop8,
- onSelect: noop8,
- value: state.value,
- onInput: onChange3,
- onBlur: onInputBlur,
- onKeydown: onKeyDown,
- onKeyup: onKeyUp,
- onFocus: onInputFocus,
- onPressenter: onPressEnter
- });
- return createVNode("div", {
- "class": classNames_default(prefixCls, className),
- "style": style
- }, [withDirectives(createVNode("textarea", _objectSpread2({
- "ref": textarea
- }, textareaProps), null), [[antInputDirective_default]]), measuring && createVNode("div", {
- "ref": measure2,
- "class": "".concat(prefixCls, "-measure")
- }, [state.value.slice(0, measureLocation), createVNode(KeywordTrigger_default, {
- "prefixCls": prefixCls,
- "transitionName": transitionName2,
- "placement": placement,
- "options": measuring ? options.value : [],
- "visible": true,
- "direction": direction,
- "getPopupContainer": getPopupContainer
- }, {
- default: function _default9() {
- return [createVNode("span", null, [measurePrefix])];
- },
- notFoundContent: slots.notFoundContent,
- option: slots.option
- }), state.value.slice(measureLocation + measurePrefix.length)])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-mentions/src/Option.js
- var optionProps = {
- value: String,
- disabled: Boolean,
- label: [String, Number, Function]
- };
- var optionOptions = {
- name: "Option",
- props: optionProps,
- render: function render9(_props, _ref) {
- var _slots$default;
- var slots = _ref.slots;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- }
- };
- var Option_default3 = defineComponent(_objectSpread2({
- compatConfig: {
- MODE: 3
- }
- }, optionOptions));
- // node_modules/ant-design-vue/es/vc-mentions/index.js
- var vc_mentions_default = Mentions_default;
- // node_modules/ant-design-vue/es/mentions/index.js
- var _excluded45 = ["disabled", "getPopupContainer", "rows", "id"];
- var _excluded212 = ["class"];
- var getMentions = function getMentions2() {
- var value = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
- var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- var _config$prefix = config.prefix, prefix = _config$prefix === void 0 ? "@" : _config$prefix, _config$split = config.split, split = _config$split === void 0 ? " " : _config$split;
- var prefixList = Array.isArray(prefix) ? prefix : [prefix];
- return value.split(split).map(function() {
- var str = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
- var hitPrefix = null;
- prefixList.some(function(prefixStr) {
- var startStr = str.slice(0, prefixStr.length);
- if (startStr === prefixStr) {
- hitPrefix = prefixStr;
- return true;
- }
- return false;
- });
- if (hitPrefix !== null) {
- return {
- prefix: hitPrefix,
- value: str.slice(hitPrefix.length)
- };
- }
- return null;
- }).filter(function(entity) {
- return !!entity && !!entity.value;
- });
- };
- var mentionsProps2 = function mentionsProps3() {
- return _objectSpread2(_objectSpread2({}, mentionsProps), {}, {
- loading: {
- type: Boolean,
- default: void 0
- },
- onFocus: {
- type: Function
- },
- onBlur: {
- type: Function
- },
- onSelect: {
- type: Function
- },
- onChange: {
- type: Function
- },
- onPressenter: {
- type: Function
- },
- "onUpdate:value": {
- type: Function
- },
- notFoundContent: vue_types_default.any,
- defaultValue: String,
- id: String
- });
- };
- var Mentions = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AMentions",
- inheritAttrs: false,
- props: mentionsProps2(),
- slots: ["notFoundContent", "option"],
- setup: function setup144(props5, _ref) {
- var _ref2, _props$value;
- var slots = _ref.slots, emit = _ref.emit, attrs = _ref.attrs, expose = _ref.expose;
- var _useConfigInject = useConfigInject_default("mentions", props5), prefixCls = _useConfigInject.prefixCls, renderEmpty2 = _useConfigInject.renderEmpty, direction = _useConfigInject.direction;
- var focused = ref(false);
- var vcMentions = ref(null);
- var value = ref((_ref2 = (_props$value = props5.value) !== null && _props$value !== void 0 ? _props$value : props5.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : "");
- var formItemContext = useInjectFormItemContext();
- watch(function() {
- return props5.value;
- }, function(val) {
- value.value = val;
- });
- var handleFocus = function handleFocus2(e3) {
- focused.value = true;
- emit("focus", e3);
- };
- var handleBlur = function handleBlur2(e3) {
- focused.value = false;
- emit("blur", e3);
- formItemContext.onFieldBlur();
- };
- var handleSelect = function handleSelect2() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- emit.apply(void 0, ["select"].concat(args));
- focused.value = true;
- };
- var handleChange2 = function handleChange3(val) {
- if (props5.value === void 0) {
- value.value = val;
- }
- emit("update:value", val);
- emit("change", val);
- formItemContext.onFieldChange();
- };
- var getNotFoundContent = function getNotFoundContent2() {
- var notFoundContent = props5.notFoundContent;
- if (notFoundContent !== void 0) {
- return notFoundContent;
- }
- if (slots.notFoundContent) {
- return slots.notFoundContent();
- }
- return renderEmpty2.value("Select");
- };
- var getOptions2 = function getOptions3() {
- var _slots$default;
- return flattenChildren(((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)) || []).map(function(item) {
- var _item$children, _item$children$defaul;
- return _objectSpread2(_objectSpread2({}, getOptionProps(item)), {}, {
- label: (_item$children = item.children) === null || _item$children === void 0 ? void 0 : (_item$children$defaul = _item$children.default) === null || _item$children$defaul === void 0 ? void 0 : _item$children$defaul.call(_item$children)
- });
- });
- };
- var focus = function focus2() {
- vcMentions.value.focus();
- };
- var blur = function blur2() {
- vcMentions.value.blur();
- };
- expose({
- focus,
- blur
- });
- return function() {
- var _classNames;
- var disabled = props5.disabled, getPopupContainer = props5.getPopupContainer, _props$rows = props5.rows, rows = _props$rows === void 0 ? 1 : _props$rows, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id, restProps = _objectWithoutProperties(props5, _excluded45);
- var className = attrs.class, otherAttrs = _objectWithoutProperties(attrs, _excluded212);
- var otherProps = omit_default(restProps, ["defaultValue", "onUpdate:value", "prefixCls"]);
- var mergedClassName = classNames_default(className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls.value, "-focused"), focused.value), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _classNames));
- var mentionsProps4 = _objectSpread2(_objectSpread2(_objectSpread2({
- prefixCls: prefixCls.value
- }, otherProps), {}, {
- disabled,
- direction: direction.value,
- filterOption: props5.filterOption,
- getPopupContainer,
- options: props5.options || getOptions2(),
- class: mergedClassName
- }, otherAttrs), {}, {
- rows,
- onChange: handleChange2,
- onSelect: handleSelect,
- onFocus: handleFocus,
- onBlur: handleBlur,
- ref: vcMentions,
- value: value.value,
- id
- });
- return createVNode(vc_mentions_default, mentionsProps4, {
- notFoundContent: getNotFoundContent,
- option: slots.option
- });
- };
- }
- });
- var MentionsOption = defineComponent(_objectSpread2(_objectSpread2({
- compatConfig: {
- MODE: 3
- }
- }, optionOptions), {}, {
- name: "AMentionsOption",
- props: optionProps
- }));
- var mentions_default = _extends(Mentions, {
- Option: MentionsOption,
- getMentions,
- install: function install5(app) {
- app.component(Mentions.name, Mentions);
- app.component(MentionsOption.name, MentionsOption);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/modal/Modal.js
- var _excluded46 = ["prefixCls", "visible", "wrapClassName", "centered", "getContainer", "closeIcon", "focusTriggerAfterClose"];
- var mousePosition = null;
- var getClickPosition = function getClickPosition2(e3) {
- mousePosition = {
- x: e3.pageX,
- y: e3.pageY
- };
- setTimeout(function() {
- return mousePosition = null;
- }, 100);
- };
- if (canUseDocElement()) {
- addEventListenerWrap(document.documentElement, "click", getClickPosition, true);
- }
- var modalProps = function modalProps2() {
- return {
- prefixCls: String,
- visible: {
- type: Boolean,
- default: void 0
- },
- confirmLoading: {
- type: Boolean,
- default: void 0
- },
- title: vue_types_default.any,
- closable: {
- type: Boolean,
- default: void 0
- },
- closeIcon: vue_types_default.any,
- onOk: Function,
- onCancel: Function,
- "onUpdate:visible": Function,
- onChange: Function,
- afterClose: Function,
- centered: {
- type: Boolean,
- default: void 0
- },
- width: [String, Number],
- footer: vue_types_default.any,
- okText: vue_types_default.any,
- okType: String,
- cancelText: vue_types_default.any,
- icon: vue_types_default.any,
- maskClosable: {
- type: Boolean,
- default: void 0
- },
- forceRender: {
- type: Boolean,
- default: void 0
- },
- okButtonProps: Object,
- cancelButtonProps: Object,
- destroyOnClose: {
- type: Boolean,
- default: void 0
- },
- wrapClassName: String,
- maskTransitionName: String,
- transitionName: String,
- getContainer: {
- type: [String, Function, Boolean, Object],
- default: void 0
- },
- zIndex: Number,
- bodyStyle: {
- type: Object,
- default: void 0
- },
- maskStyle: {
- type: Object,
- default: void 0
- },
- mask: {
- type: Boolean,
- default: void 0
- },
- keyboard: {
- type: Boolean,
- default: void 0
- },
- wrapProps: Object,
- focusTriggerAfterClose: {
- type: Boolean,
- default: void 0
- },
- modalRender: Function
- };
- };
- var destroyFns = [];
- var Modal_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AModal",
- inheritAttrs: false,
- props: initDefaultProps_default(modalProps(), {
- width: 520,
- transitionName: "zoom",
- maskTransitionName: "fade",
- confirmLoading: false,
- visible: false,
- okType: "primary"
- }),
- setup: function setup145(props5, _ref) {
- var emit = _ref.emit, slots = _ref.slots, attrs = _ref.attrs;
- var _useLocaleReceiver = useLocaleReceiver("Modal"), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), locale4 = _useLocaleReceiver2[0];
- var _useConfigInject = useConfigInject_default("modal", props5), prefixCls = _useConfigInject.prefixCls, rootPrefixCls = _useConfigInject.rootPrefixCls, direction = _useConfigInject.direction, getPopupContainer = _useConfigInject.getPopupContainer;
- var handleCancel = function handleCancel2(e3) {
- emit("update:visible", false);
- emit("cancel", e3);
- emit("change", false);
- };
- var handleOk = function handleOk2(e3) {
- emit("ok", e3);
- };
- var renderFooter = function renderFooter2() {
- var _slots$okText, _slots$cancelText;
- var _props$okText = props5.okText, okText = _props$okText === void 0 ? (_slots$okText = slots.okText) === null || _slots$okText === void 0 ? void 0 : _slots$okText.call(slots) : _props$okText, okType = props5.okType, _props$cancelText = props5.cancelText, cancelText = _props$cancelText === void 0 ? (_slots$cancelText = slots.cancelText) === null || _slots$cancelText === void 0 ? void 0 : _slots$cancelText.call(slots) : _props$cancelText, confirmLoading = props5.confirmLoading;
- return createVNode(Fragment, null, [createVNode(button_default2, _objectSpread2({
- "onClick": handleCancel
- }, props5.cancelButtonProps), {
- default: function _default9() {
- return [cancelText || locale4.value.cancelText];
- }
- }), createVNode(button_default2, _objectSpread2(_objectSpread2({}, convertLegacyProps(okType)), {}, {
- "loading": confirmLoading,
- "onClick": handleOk
- }, props5.okButtonProps), {
- default: function _default9() {
- return [okText || locale4.value.okText];
- }
- })]);
- };
- return function() {
- var _slots$closeIcon, _classNames;
- var customizePrefixCls = props5.prefixCls, visible = props5.visible, wrapClassName = props5.wrapClassName, centered = props5.centered, getContainer5 = props5.getContainer, _props$closeIcon = props5.closeIcon, _closeIcon = _props$closeIcon === void 0 ? (_slots$closeIcon = slots.closeIcon) === null || _slots$closeIcon === void 0 ? void 0 : _slots$closeIcon.call(slots) : _props$closeIcon, _props$focusTriggerAf = props5.focusTriggerAfterClose, focusTriggerAfterClose = _props$focusTriggerAf === void 0 ? true : _props$focusTriggerAf, restProps = _objectWithoutProperties(props5, _excluded46);
- var wrapClassNameExtended = classNames_default(wrapClassName, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-centered"), !!centered), _defineProperty(_classNames, "".concat(prefixCls.value, "-wrap-rtl"), direction.value === "rtl"), _classNames));
- return createVNode(vc_dialog_default, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), attrs), {}, {
- "getContainer": getContainer5 || getPopupContainer.value,
- "prefixCls": prefixCls.value,
- "wrapClassName": wrapClassNameExtended,
- "visible": visible,
- "mousePosition": mousePosition,
- "onClose": handleCancel,
- "focusTriggerAfterClose": focusTriggerAfterClose,
- "transitionName": getTransitionName(rootPrefixCls.value, "zoom", props5.transitionName),
- "maskTransitionName": getTransitionName(rootPrefixCls.value, "fade", props5.maskTransitionName)
- }), _objectSpread2(_objectSpread2({}, slots), {}, {
- footer: slots.footer || renderFooter,
- closeIcon: function closeIcon() {
- return createVNode("span", {
- "class": "".concat(prefixCls.value, "-close-x")
- }, [_closeIcon || createVNode(CloseOutlined_default, {
- "class": "".concat(prefixCls.value, "-close-icon")
- }, null)]);
- }
- }));
- };
- }
- });
- // node_modules/ant-design-vue/es/_util/hooks/useDestroyed.js
- var useDestroyed = function useDestroyed2() {
- var destroyed = ref(false);
- onBeforeUnmount(function() {
- destroyed.value = true;
- });
- return destroyed;
- };
- var useDestroyed_default = useDestroyed;
- // node_modules/ant-design-vue/es/_util/ActionButton.js
- var actionButtonProps = {
- type: {
- type: String
- },
- actionFn: Function,
- close: Function,
- autofocus: Boolean,
- prefixCls: String,
- buttonProps: Object,
- emitEvent: Boolean,
- quitOnNullishReturnValue: Boolean
- };
- function isThenable(thing) {
- return !!(thing && !!thing.then);
- }
- var ActionButton_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ActionButton",
- props: actionButtonProps,
- setup: function setup146(props5, _ref) {
- var slots = _ref.slots;
- var clickedRef = ref(false);
- var buttonRef = ref();
- var loading = ref(false);
- var timeoutId;
- var isDestroyed = useDestroyed_default();
- onMounted(function() {
- if (props5.autofocus) {
- timeoutId = setTimeout(function() {
- var _buttonRef$value$$el;
- return (_buttonRef$value$$el = buttonRef.value.$el) === null || _buttonRef$value$$el === void 0 ? void 0 : _buttonRef$value$$el.focus();
- });
- }
- });
- onBeforeUnmount(function() {
- clearTimeout(timeoutId);
- });
- var handlePromiseOnOk = function handlePromiseOnOk2(returnValueOfOnOk) {
- var close3 = props5.close;
- if (!isThenable(returnValueOfOnOk)) {
- return;
- }
- loading.value = true;
- returnValueOfOnOk.then(function() {
- if (!isDestroyed.value) {
- loading.value = false;
- }
- close3.apply(void 0, arguments);
- clickedRef.value = false;
- }, function(e3) {
- console.error(e3);
- if (!isDestroyed.value) {
- loading.value = false;
- }
- clickedRef.value = false;
- });
- };
- var onClick2 = function onClick3(e3) {
- var actionFn = props5.actionFn, _props$close = props5.close, close3 = _props$close === void 0 ? function() {
- } : _props$close;
- if (clickedRef.value) {
- return;
- }
- clickedRef.value = true;
- if (!actionFn) {
- close3();
- return;
- }
- var returnValueOfOnOk;
- if (props5.emitEvent) {
- returnValueOfOnOk = actionFn(e3);
- if (props5.quitOnNullishReturnValue && !isThenable(returnValueOfOnOk)) {
- clickedRef.value = false;
- close3(e3);
- return;
- }
- } else if (actionFn.length) {
- returnValueOfOnOk = actionFn(close3);
- clickedRef.value = false;
- } else {
- returnValueOfOnOk = actionFn();
- if (!returnValueOfOnOk) {
- close3();
- return;
- }
- }
- handlePromiseOnOk(returnValueOfOnOk);
- };
- return function() {
- var type4 = props5.type, prefixCls = props5.prefixCls, buttonProps3 = props5.buttonProps;
- return createVNode(button_default2, _objectSpread2(_objectSpread2(_objectSpread2({}, convertLegacyProps(type4)), {}, {
- "onClick": onClick2,
- "loading": loading.value,
- "prefixCls": prefixCls
- }, buttonProps3), {}, {
- "ref": buttonRef
- }), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/modal/ConfirmDialog.js
- function renderSomeContent(someContent) {
- if (typeof someContent === "function") {
- return someContent();
- }
- return someContent;
- }
- var ConfirmDialog_default = defineComponent({
- name: "ConfirmDialog",
- inheritAttrs: false,
- props: ["icon", "onCancel", "onOk", "close", "closable", "zIndex", "afterClose", "visible", "keyboard", "centered", "getContainer", "maskStyle", "okButtonProps", "cancelButtonProps", "okType", "prefixCls", "okCancel", "width", "mask", "maskClosable", "okText", "cancelText", "autoFocusButton", "transitionName", "maskTransitionName", "type", "title", "content", "direction", "rootPrefixCls", "bodyStyle", "closeIcon", "modalRender", "focusTriggerAfterClose", "wrapClassName"],
- setup: function setup147(props5, _ref) {
- var attrs = _ref.attrs;
- var _useLocaleReceiver = useLocaleReceiver("Modal"), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), locale4 = _useLocaleReceiver2[0];
- return function() {
- var icon = props5.icon, onCancel = props5.onCancel, onOk = props5.onOk, close3 = props5.close, _props$closable = props5.closable, closable = _props$closable === void 0 ? false : _props$closable, zIndex = props5.zIndex, afterClose = props5.afterClose, visible = props5.visible, keyboard = props5.keyboard, centered = props5.centered, getContainer5 = props5.getContainer, maskStyle = props5.maskStyle, okButtonProps = props5.okButtonProps, cancelButtonProps = props5.cancelButtonProps, _props$okCancel = props5.okCancel, okCancel = _props$okCancel === void 0 ? true : _props$okCancel, _props$width = props5.width, width = _props$width === void 0 ? 416 : _props$width, _props$mask = props5.mask, mask = _props$mask === void 0 ? true : _props$mask, _props$maskClosable = props5.maskClosable, maskClosable = _props$maskClosable === void 0 ? false : _props$maskClosable, type4 = props5.type, title = props5.title, content = props5.content, direction = props5.direction, closeIcon = props5.closeIcon, modalRender = props5.modalRender, focusTriggerAfterClose = props5.focusTriggerAfterClose, rootPrefixCls = props5.rootPrefixCls, bodyStyle = props5.bodyStyle, wrapClassName = props5.wrapClassName;
- var okType = props5.okType || "primary";
- var prefixCls = props5.prefixCls || "ant-modal";
- var contentPrefixCls = "".concat(prefixCls, "-confirm");
- var style = attrs.style || {};
- var okText = renderSomeContent(props5.okText) || (okCancel ? locale4.value.okText : locale4.value.justOkText);
- var cancelText = renderSomeContent(props5.cancelText) || locale4.value.cancelText;
- var autoFocusButton = props5.autoFocusButton === null ? false : props5.autoFocusButton || "ok";
- var classString = classNames_default(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(type4), "".concat(prefixCls, "-").concat(type4), _defineProperty({}, "".concat(contentPrefixCls, "-rtl"), direction === "rtl"), attrs.class);
- var cancelButton = okCancel && createVNode(ActionButton_default, {
- "actionFn": onCancel,
- "close": close3,
- "autofocus": autoFocusButton === "cancel",
- "buttonProps": cancelButtonProps,
- "prefixCls": "".concat(rootPrefixCls, "-btn")
- }, {
- default: function _default9() {
- return [cancelText];
- }
- });
- return createVNode(Modal_default, {
- "prefixCls": prefixCls,
- "class": classString,
- "wrapClassName": classNames_default(_defineProperty({}, "".concat(contentPrefixCls, "-centered"), !!centered), wrapClassName),
- "onCancel": function onCancel2(e3) {
- return close3({
- triggerCancel: true
- }, e3);
- },
- "visible": visible,
- "title": "",
- "footer": "",
- "transitionName": getTransitionName(rootPrefixCls, "zoom", props5.transitionName),
- "maskTransitionName": getTransitionName(rootPrefixCls, "fade", props5.maskTransitionName),
- "mask": mask,
- "maskClosable": maskClosable,
- "maskStyle": maskStyle,
- "style": style,
- "bodyStyle": bodyStyle,
- "width": width,
- "zIndex": zIndex,
- "afterClose": afterClose,
- "keyboard": keyboard,
- "centered": centered,
- "getContainer": getContainer5,
- "closable": closable,
- "closeIcon": closeIcon,
- "modalRender": modalRender,
- "focusTriggerAfterClose": focusTriggerAfterClose
- }, {
- default: function _default9() {
- return [createVNode("div", {
- "class": "".concat(contentPrefixCls, "-body-wrapper")
- }, [createVNode("div", {
- "class": "".concat(contentPrefixCls, "-body")
- }, [renderSomeContent(icon), title === void 0 ? null : createVNode("span", {
- "class": "".concat(contentPrefixCls, "-title")
- }, [renderSomeContent(title)]), createVNode("div", {
- "class": "".concat(contentPrefixCls, "-content")
- }, [renderSomeContent(content)])]), createVNode("div", {
- "class": "".concat(contentPrefixCls, "-btns")
- }, [cancelButton, createVNode(ActionButton_default, {
- "type": okType,
- "actionFn": onOk,
- "close": close3,
- "autofocus": autoFocusButton === "ok",
- "buttonProps": okButtonProps,
- "prefixCls": "".concat(rootPrefixCls, "-btn")
- }, {
- default: function _default10() {
- return [okText];
- }
- })])])];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/modal/confirm.js
- var confirm = function confirm2(config) {
- var container = document.createDocumentFragment();
- var currentConfig = _objectSpread2(_objectSpread2({}, omit_default(config, ["parentContext", "appContext"])), {}, {
- close: close3,
- visible: true
- });
- var confirmDialogInstance = null;
- function destroy3() {
- if (confirmDialogInstance) {
- render(null, container);
- confirmDialogInstance.component.update();
- confirmDialogInstance = null;
- }
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- var triggerCancel = args.some(function(param) {
- return param && param.triggerCancel;
- });
- if (config.onCancel && triggerCancel) {
- config.onCancel.apply(config, args);
- }
- for (var i3 = 0; i3 < destroyFns.length; i3++) {
- var fn = destroyFns[i3];
- if (fn === close3) {
- destroyFns.splice(i3, 1);
- break;
- }
- }
- }
- function close3() {
- var _this = this;
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
- currentConfig = _objectSpread2(_objectSpread2({}, currentConfig), {}, {
- visible: false,
- afterClose: function afterClose() {
- if (typeof config.afterClose === "function") {
- config.afterClose();
- }
- destroy3.apply(_this, args);
- }
- });
- update(currentConfig);
- }
- function update(configUpdate) {
- if (typeof configUpdate === "function") {
- currentConfig = configUpdate(currentConfig);
- } else {
- currentConfig = _objectSpread2(_objectSpread2({}, currentConfig), configUpdate);
- }
- if (confirmDialogInstance) {
- _extends(confirmDialogInstance.component.props, currentConfig);
- confirmDialogInstance.component.update();
- }
- }
- var Wrapper = function Wrapper2(p) {
- var global2 = globalConfigForApi;
- var rootPrefixCls = global2.prefixCls;
- var prefixCls = p.prefixCls || "".concat(rootPrefixCls, "-modal");
- return createVNode(config_provider_default, _objectSpread2(_objectSpread2({}, global2), {}, {
- "notUpdateGlobalConfig": true,
- "prefixCls": rootPrefixCls
- }), {
- default: function _default9() {
- return [createVNode(ConfirmDialog_default, _objectSpread2(_objectSpread2({}, p), {}, {
- "rootPrefixCls": rootPrefixCls,
- "prefixCls": prefixCls
- }), null)];
- }
- });
- };
- function render12(props5) {
- var vm = createVNode(Wrapper, _objectSpread2({}, props5));
- vm.appContext = config.parentContext || config.appContext || vm.appContext;
- render(vm, container);
- return vm;
- }
- confirmDialogInstance = render12(currentConfig);
- destroyFns.push(close3);
- return {
- destroy: close3,
- update
- };
- };
- var confirm_default = confirm;
- function withWarn(props5) {
- return _objectSpread2(_objectSpread2({
- icon: function icon() {
- return createVNode(ExclamationCircleOutlined_default, null, null);
- },
- okCancel: false
- }, props5), {}, {
- type: "warning"
- });
- }
- function withInfo(props5) {
- return _objectSpread2(_objectSpread2({
- icon: function icon() {
- return createVNode(InfoCircleOutlined_default, null, null);
- },
- okCancel: false
- }, props5), {}, {
- type: "info"
- });
- }
- function withSuccess(props5) {
- return _objectSpread2(_objectSpread2({
- icon: function icon() {
- return createVNode(CheckCircleOutlined_default, null, null);
- },
- okCancel: false
- }, props5), {}, {
- type: "success"
- });
- }
- function withError(props5) {
- return _objectSpread2(_objectSpread2({
- icon: function icon() {
- return createVNode(CloseCircleOutlined_default, null, null);
- },
- okCancel: false
- }, props5), {}, {
- type: "error"
- });
- }
- function withConfirm(props5) {
- return _objectSpread2(_objectSpread2({
- icon: function icon() {
- return createVNode(ExclamationCircleOutlined_default, null, null);
- },
- okCancel: true
- }, props5), {}, {
- type: "confirm"
- });
- }
- // node_modules/ant-design-vue/es/modal/index.js
- function modalWarn(props5) {
- return confirm_default(withWarn(props5));
- }
- Modal_default.info = function infoFn(props5) {
- return confirm_default(withInfo(props5));
- };
- Modal_default.success = function successFn(props5) {
- return confirm_default(withSuccess(props5));
- };
- Modal_default.error = function errorFn(props5) {
- return confirm_default(withError(props5));
- };
- Modal_default.warning = modalWarn;
- Modal_default.warn = modalWarn;
- Modal_default.confirm = function confirmFn(props5) {
- return confirm_default(withConfirm(props5));
- };
- Modal_default.destroyAll = function destroyAllFn() {
- while (destroyFns.length) {
- var close3 = destroyFns.pop();
- if (close3) {
- close3();
- }
- }
- };
- Modal_default.install = function(app) {
- app.component(Modal_default.name, Modal_default);
- return app;
- };
- var modal_default = Modal_default;
- // node_modules/lodash-es/padEnd.js
- function padEnd(string3, length, chars) {
- string3 = toString_default(string3);
- length = toInteger_default(length);
- var strLength = length ? stringSize_default(string3) : 0;
- return length && strLength < length ? string3 + createPadding_default(length - strLength, chars) : string3;
- }
- var padEnd_default = padEnd;
- // node_modules/ant-design-vue/es/statistic/Number.js
- var StatisticNumber = function StatisticNumber2(props5) {
- var value = props5.value, formatter = props5.formatter, precision = props5.precision, decimalSeparator = props5.decimalSeparator, _props$groupSeparator = props5.groupSeparator, groupSeparator = _props$groupSeparator === void 0 ? "" : _props$groupSeparator, prefixCls = props5.prefixCls;
- var valueNode;
- if (typeof formatter === "function") {
- valueNode = formatter({
- value
- });
- } else {
- var val = String(value);
- var cells = val.match(/^(-?)(\d*)(\.(\d+))?$/);
- if (!cells) {
- valueNode = val;
- } else {
- var negative = cells[1];
- var int = cells[2] || "0";
- var decimal = cells[4] || "";
- int = int.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
- if (typeof precision === "number") {
- decimal = padEnd_default(decimal, precision, "0").slice(0, precision);
- }
- if (decimal) {
- decimal = "".concat(decimalSeparator).concat(decimal);
- }
- valueNode = [createVNode("span", {
- "key": "int",
- "class": "".concat(prefixCls, "-content-value-int")
- }, [negative, int]), decimal && createVNode("span", {
- "key": "decimal",
- "class": "".concat(prefixCls, "-content-value-decimal")
- }, [decimal])];
- }
- }
- return createVNode("span", {
- "class": "".concat(prefixCls, "-content-value")
- }, [valueNode]);
- };
- StatisticNumber.displayName = "StatisticNumber";
- var Number_default = StatisticNumber;
- // node_modules/ant-design-vue/es/skeleton/Title.js
- var skeletonTitleProps = function skeletonTitleProps2() {
- return {
- prefixCls: String,
- width: {
- type: [Number, String]
- }
- };
- };
- var SkeletonTitle = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "SkeletonTitle",
- props: skeletonTitleProps(),
- setup: function setup148(props5) {
- return function() {
- var prefixCls = props5.prefixCls, width = props5.width;
- var zWidth = typeof width === "number" ? "".concat(width, "px") : width;
- return createVNode("h3", {
- "class": prefixCls,
- "style": {
- width: zWidth
- }
- }, null);
- };
- }
- });
- var Title_default = SkeletonTitle;
- // node_modules/ant-design-vue/es/skeleton/Paragraph.js
- var skeletonParagraphProps = function skeletonParagraphProps2() {
- return {
- prefixCls: String,
- width: {
- type: [Number, String, Array]
- },
- rows: Number
- };
- };
- var SkeletonParagraph = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "SkeletonParagraph",
- props: skeletonParagraphProps(),
- setup: function setup149(props5) {
- var getWidth3 = function getWidth4(index3) {
- var width = props5.width, _props$rows = props5.rows, rows = _props$rows === void 0 ? 2 : _props$rows;
- if (Array.isArray(width)) {
- return width[index3];
- }
- if (rows - 1 === index3) {
- return width;
- }
- return void 0;
- };
- return function() {
- var prefixCls = props5.prefixCls, rows = props5.rows;
- var rowList = _toConsumableArray(Array(rows)).map(function(_2, index3) {
- var width = getWidth3(index3);
- return createVNode("li", {
- "key": index3,
- "style": {
- width: typeof width === "number" ? "".concat(width, "px") : width
- }
- }, null);
- });
- return createVNode("ul", {
- "class": prefixCls
- }, [rowList]);
- };
- }
- });
- var Paragraph_default = SkeletonParagraph;
- // node_modules/ant-design-vue/es/skeleton/Element.js
- var skeletonElementProps = function skeletonElementProps2() {
- return {
- prefixCls: String,
- size: [String, Number],
- shape: String,
- active: {
- type: Boolean,
- default: void 0
- }
- };
- };
- var Element2 = function Element3(props5) {
- var _classNames, _classNames2;
- var prefixCls = props5.prefixCls, size = props5.size, shape = props5.shape;
- var sizeCls = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-lg"), size === "large"), _defineProperty(_classNames, "".concat(prefixCls, "-sm"), size === "small"), _classNames));
- var shapeCls = classNames_default((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-circle"), shape === "circle"), _defineProperty(_classNames2, "".concat(prefixCls, "-square"), shape === "square"), _defineProperty(_classNames2, "".concat(prefixCls, "-round"), shape === "round"), _classNames2));
- var sizeStyle = typeof size === "number" ? {
- width: "".concat(size, "px"),
- height: "".concat(size, "px"),
- lineHeight: "".concat(size, "px")
- } : {};
- return createVNode("span", {
- "class": classNames_default(prefixCls, sizeCls, shapeCls),
- "style": sizeStyle
- }, null);
- };
- Element2.displayName = "SkeletonElement";
- var Element_default = Element2;
- // node_modules/ant-design-vue/es/skeleton/Skeleton.js
- var skeletonProps = function skeletonProps2() {
- return {
- active: {
- type: Boolean,
- default: void 0
- },
- loading: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- avatar: {
- type: [Boolean, Object],
- default: void 0
- },
- title: {
- type: [Boolean, Object],
- default: void 0
- },
- paragraph: {
- type: [Boolean, Object],
- default: void 0
- },
- round: {
- type: Boolean,
- default: void 0
- }
- };
- };
- function getComponentProps(prop) {
- if (prop && _typeof(prop) === "object") {
- return prop;
- }
- return {};
- }
- function getAvatarBasicProps(hasTitle, hasParagraph) {
- if (hasTitle && !hasParagraph) {
- return {
- size: "large",
- shape: "square"
- };
- }
- return {
- size: "large",
- shape: "circle"
- };
- }
- function getTitleBasicProps(hasAvatar, hasParagraph) {
- if (!hasAvatar && hasParagraph) {
- return {
- width: "38%"
- };
- }
- if (hasAvatar && hasParagraph) {
- return {
- width: "50%"
- };
- }
- return {};
- }
- function getParagraphBasicProps(hasAvatar, hasTitle) {
- var basicProps3 = {};
- if (!hasAvatar || !hasTitle) {
- basicProps3.width = "61%";
- }
- if (!hasAvatar && hasTitle) {
- basicProps3.rows = 3;
- } else {
- basicProps3.rows = 2;
- }
- return basicProps3;
- }
- var Skeleton = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASkeleton",
- props: initDefaultProps_default(skeletonProps(), {
- avatar: false,
- title: true,
- paragraph: true
- }),
- setup: function setup150(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("skeleton", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- return function() {
- var _slots$default;
- var loading = props5.loading, avatar = props5.avatar, title = props5.title, paragraph = props5.paragraph, active = props5.active, round = props5.round;
- var pre = prefixCls.value;
- if (loading || props5.loading === void 0) {
- var _classNames;
- var hasAvatar = !!avatar || avatar === "";
- var hasTitle = !!title || title === "";
- var hasParagraph = !!paragraph || paragraph === "";
- var avatarNode;
- if (hasAvatar) {
- var avatarProps5 = _objectSpread2(_objectSpread2({
- prefixCls: "".concat(pre, "-avatar")
- }, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar));
- avatarNode = createVNode("div", {
- "class": "".concat(pre, "-header")
- }, [createVNode(Element_default, avatarProps5, null)]);
- }
- var contentNode;
- if (hasTitle || hasParagraph) {
- var $title;
- if (hasTitle) {
- var titleProps3 = _objectSpread2(_objectSpread2({
- prefixCls: "".concat(pre, "-title")
- }, getTitleBasicProps(hasAvatar, hasParagraph)), getComponentProps(title));
- $title = createVNode(Title_default, titleProps3, null);
- }
- var paragraphNode;
- if (hasParagraph) {
- var paragraphProps3 = _objectSpread2(_objectSpread2({
- prefixCls: "".concat(pre, "-paragraph")
- }, getParagraphBasicProps(hasAvatar, hasTitle)), getComponentProps(paragraph));
- paragraphNode = createVNode(Paragraph_default, paragraphProps3, null);
- }
- contentNode = createVNode("div", {
- "class": "".concat(pre, "-content")
- }, [$title, paragraphNode]);
- }
- var cls = classNames_default(pre, (_classNames = {}, _defineProperty(_classNames, "".concat(pre, "-with-avatar"), hasAvatar), _defineProperty(_classNames, "".concat(pre, "-active"), active), _defineProperty(_classNames, "".concat(pre, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames, "".concat(pre, "-round"), round), _classNames));
- return createVNode("div", {
- "class": cls
- }, [avatarNode, contentNode]);
- }
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- var Skeleton_default = Skeleton;
- // node_modules/ant-design-vue/es/statistic/Statistic.js
- var statisticProps = function statisticProps2() {
- return {
- prefixCls: String,
- decimalSeparator: String,
- groupSeparator: String,
- format: String,
- value: {
- type: [String, Number, Object]
- },
- valueStyle: {
- type: Object,
- default: void 0
- },
- valueRender: vue_types_default.any,
- formatter: vue_types_default.any,
- precision: Number,
- prefix: vue_types_default.any,
- suffix: vue_types_default.any,
- title: vue_types_default.any,
- loading: {
- type: Boolean,
- default: void 0
- }
- };
- };
- var Statistic_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AStatistic",
- props: initDefaultProps_default(statisticProps(), {
- decimalSeparator: ".",
- groupSeparator: ",",
- loading: false
- }),
- slots: ["title", "prefix", "suffix", "formatter"],
- setup: function setup151(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("statistic", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- return function() {
- var _props$title, _slots$title, _props$prefix, _slots$prefix, _props$suffix, _slots$suffix, _props$formatter;
- var _props$value = props5.value, value = _props$value === void 0 ? 0 : _props$value, valueStyle = props5.valueStyle, valueRender = props5.valueRender;
- var pre = prefixCls.value;
- var title = (_props$title = props5.title) !== null && _props$title !== void 0 ? _props$title : (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots);
- var prefix = (_props$prefix = props5.prefix) !== null && _props$prefix !== void 0 ? _props$prefix : (_slots$prefix = slots.prefix) === null || _slots$prefix === void 0 ? void 0 : _slots$prefix.call(slots);
- var suffix = (_props$suffix = props5.suffix) !== null && _props$suffix !== void 0 ? _props$suffix : (_slots$suffix = slots.suffix) === null || _slots$suffix === void 0 ? void 0 : _slots$suffix.call(slots);
- var formatter = (_props$formatter = props5.formatter) !== null && _props$formatter !== void 0 ? _props$formatter : slots.formatter;
- var valueNode = createVNode(Number_default, _objectSpread2({
- "data-for-update": Date.now()
- }, _objectSpread2(_objectSpread2({}, props5), {}, {
- prefixCls: pre,
- value,
- formatter
- })), null);
- if (valueRender) {
- valueNode = valueRender(valueNode);
- }
- return createVNode("div", {
- "class": [pre, _defineProperty({}, "".concat(pre, "-rtl"), direction.value === "rtl")]
- }, [title && createVNode("div", {
- "class": "".concat(pre, "-title")
- }, [title]), createVNode(Skeleton_default, {
- "paragraph": false,
- "loading": props5.loading
- }, {
- default: function _default9() {
- return [createVNode("div", {
- "style": valueStyle,
- "class": "".concat(pre, "-content")
- }, [prefix && createVNode("span", {
- "class": "".concat(pre, "-content-prefix")
- }, [prefix]), valueNode, suffix && createVNode("span", {
- "class": "".concat(pre, "-content-suffix")
- }, [suffix])])];
- }
- })]);
- };
- }
- });
- // node_modules/ant-design-vue/es/statistic/utils.js
- var timeUnits = [
- ["Y", 1e3 * 60 * 60 * 24 * 365],
- ["M", 1e3 * 60 * 60 * 24 * 30],
- ["D", 1e3 * 60 * 60 * 24],
- ["H", 1e3 * 60 * 60],
- ["m", 1e3 * 60],
- ["s", 1e3],
- ["S", 1]
- // million seconds
- ];
- function formatTimeStr(duration, format4) {
- var leftDuration = duration;
- var escapeRegex = /\[[^\]]*]/g;
- var keepList = (format4.match(escapeRegex) || []).map(function(str) {
- return str.slice(1, -1);
- });
- var templateText = format4.replace(escapeRegex, "[]");
- var replacedText = timeUnits.reduce(function(current2, _ref) {
- var _ref2 = _slicedToArray(_ref, 2), name = _ref2[0], unit = _ref2[1];
- if (current2.indexOf(name) !== -1) {
- var value = Math.floor(leftDuration / unit);
- leftDuration -= value * unit;
- return current2.replace(new RegExp("".concat(name, "+"), "g"), function(match3) {
- var len = match3.length;
- return padStart_default(value.toString(), len, "0");
- });
- }
- return current2;
- }, templateText);
- var index3 = 0;
- return replacedText.replace(escapeRegex, function() {
- var match3 = keepList[index3];
- index3 += 1;
- return match3;
- });
- }
- function formatCountdown(value, config) {
- var _config$format = config.format, format4 = _config$format === void 0 ? "" : _config$format;
- var target = new Date(value).getTime();
- var current2 = Date.now();
- var diff = Math.max(target - current2, 0);
- return formatTimeStr(diff, format4);
- }
- // node_modules/ant-design-vue/es/statistic/Countdown.js
- var REFRESH_INTERVAL2 = 1e3 / 30;
- function getTime(value) {
- return new Date(value).getTime();
- }
- var countdownProps = function countdownProps2() {
- return _objectSpread2(_objectSpread2({}, statisticProps()), {}, {
- value: [Number, String, Object],
- format: String,
- onFinish: Function,
- onChange: Function
- });
- };
- var Countdown_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AStatisticCountdown",
- props: initDefaultProps_default(countdownProps(), {
- format: "HH:mm:ss"
- }),
- // emits: ['finish', 'change'],
- setup: function setup152(props5, _ref) {
- var emit = _ref.emit, slots = _ref.slots;
- var countdownId = ref();
- var statistic = ref();
- var syncTimer = function syncTimer2() {
- var value = props5.value;
- var timestamp = getTime(value);
- if (timestamp >= Date.now()) {
- startTimer();
- } else {
- stopTimer();
- }
- };
- var startTimer = function startTimer2() {
- if (countdownId.value)
- return;
- var timestamp = getTime(props5.value);
- countdownId.value = setInterval(function() {
- statistic.value.$forceUpdate();
- if (timestamp > Date.now()) {
- emit("change", timestamp - Date.now());
- }
- syncTimer();
- }, REFRESH_INTERVAL2);
- };
- var stopTimer = function stopTimer2() {
- var value = props5.value;
- if (countdownId.value) {
- clearInterval(countdownId.value);
- countdownId.value = void 0;
- var timestamp = getTime(value);
- if (timestamp < Date.now()) {
- emit("finish");
- }
- }
- };
- var formatCountdown2 = function formatCountdown3(_ref2) {
- var value = _ref2.value, config = _ref2.config;
- var format4 = props5.format;
- return formatCountdown(value, _objectSpread2(_objectSpread2({}, config), {}, {
- format: format4
- }));
- };
- var valueRenderHtml = function valueRenderHtml2(node) {
- return node;
- };
- onMounted(function() {
- syncTimer();
- });
- onUpdated(function() {
- syncTimer();
- });
- onBeforeUnmount(function() {
- stopTimer();
- });
- return function() {
- var value = props5.value;
- return createVNode(Statistic_default, _objectSpread2({
- "ref": statistic
- }, _objectSpread2(_objectSpread2({}, omit_default(props5, ["onFinish", "onChange"])), {}, {
- value,
- valueRender: valueRenderHtml,
- formatter: formatCountdown2
- })), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/statistic/index.js
- Statistic_default.Countdown = Countdown_default;
- Statistic_default.install = function(app) {
- app.component(Statistic_default.name, Statistic_default);
- app.component(Statistic_default.Countdown.name, Statistic_default.Countdown);
- return app;
- };
- var StatisticCountdown = Statistic_default.Countdown;
- var statistic_default = Statistic_default;
- // node_modules/ant-design-vue/es/_util/transButton.js
- var _excluded47 = ["noStyle", "disabled"];
- var inlineStyle = {
- border: 0,
- background: "transparent",
- padding: 0,
- lineHeight: "inherit",
- display: "inline-block"
- };
- var TransButton = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "TransButton",
- inheritAttrs: false,
- props: {
- noStyle: {
- type: Boolean,
- default: void 0
- },
- onClick: Function,
- disabled: {
- type: Boolean,
- default: void 0
- },
- autofocus: {
- type: Boolean,
- default: void 0
- }
- },
- setup: function setup153(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, attrs = _ref.attrs, expose = _ref.expose;
- var domRef = ref();
- var onKeyDown = function onKeyDown2(event) {
- var keyCode = event.keyCode;
- if (keyCode === KeyCode_default.ENTER) {
- event.preventDefault();
- }
- };
- var onKeyUp = function onKeyUp2(event) {
- var keyCode = event.keyCode;
- if (keyCode === KeyCode_default.ENTER) {
- emit("click", event);
- }
- };
- var onClick2 = function onClick3(e3) {
- emit("click", e3);
- };
- var focus = function focus2() {
- if (domRef.value) {
- domRef.value.focus();
- }
- };
- var blur = function blur2() {
- if (domRef.value) {
- domRef.value.blur();
- }
- };
- onMounted(function() {
- if (props5.autofocus) {
- focus();
- }
- });
- expose({
- focus,
- blur
- });
- return function() {
- var _slots$default;
- var noStyle = props5.noStyle, disabled = props5.disabled, restProps = _objectWithoutProperties(props5, _excluded47);
- var mergedStyle = {};
- if (!noStyle) {
- mergedStyle = _objectSpread2({}, inlineStyle);
- }
- if (disabled) {
- mergedStyle.pointerEvents = "none";
- }
- return createVNode("div", _objectSpread2(_objectSpread2(_objectSpread2({
- "role": "button",
- "tabindex": 0,
- "ref": domRef
- }, restProps), attrs), {}, {
- "onClick": onClick2,
- "onKeydown": onKeyDown,
- "onKeyup": onKeyUp,
- "style": _objectSpread2(_objectSpread2({}, mergedStyle), attrs.style || {})
- }), [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- var transButton_default = TransButton;
- // node_modules/ant-design-vue/es/page-header/index.js
- var pageHeaderProps = function pageHeaderProps2() {
- return {
- backIcon: vue_types_default.any,
- prefixCls: String,
- title: vue_types_default.any,
- subTitle: vue_types_default.any,
- breadcrumb: vue_types_default.object,
- tags: vue_types_default.any,
- footer: vue_types_default.any,
- extra: vue_types_default.any,
- avatar: vue_types_default.object,
- ghost: {
- type: Boolean,
- default: void 0
- },
- onBack: Function
- };
- };
- var PageHeader = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "APageHeader",
- props: pageHeaderProps(),
- // emits: ['back'],
- slots: ["backIcon", "avatar", "breadcrumb", "title", "subTitle", "tags", "extra", "footer"],
- setup: function setup154(props5, _ref) {
- var emit = _ref.emit, slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("page-header", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, pageHeader = _useConfigInject.pageHeader;
- var compact = ref(false);
- var isDestroyed = useDestroyed_default();
- var onResize = function onResize2(_ref2) {
- var width = _ref2.width;
- if (!isDestroyed.value) {
- compact.value = width < 768;
- }
- };
- var ghost = computed(function() {
- var _ref3, _props$ghost, _pageHeader$value;
- return (_ref3 = (_props$ghost = props5.ghost) !== null && _props$ghost !== void 0 ? _props$ghost : (_pageHeader$value = pageHeader.value) === null || _pageHeader$value === void 0 ? void 0 : _pageHeader$value.ghost) !== null && _ref3 !== void 0 ? _ref3 : true;
- });
- var getBackIcon = function getBackIcon2() {
- var _ref4, _props$backIcon, _slots$backIcon;
- return (_ref4 = (_props$backIcon = props5.backIcon) !== null && _props$backIcon !== void 0 ? _props$backIcon : (_slots$backIcon = slots.backIcon) === null || _slots$backIcon === void 0 ? void 0 : _slots$backIcon.call(slots)) !== null && _ref4 !== void 0 ? _ref4 : direction.value === "rtl" ? createVNode(ArrowRightOutlined_default, null, null) : createVNode(ArrowLeftOutlined_default, null, null);
- };
- var renderBack = function renderBack2(backIcon) {
- if (!backIcon || !props5.onBack) {
- return null;
- }
- return createVNode(LocaleReceiver_default, {
- "componentName": "PageHeader",
- "children": function children(_ref5) {
- var back = _ref5.back;
- return createVNode("div", {
- "class": "".concat(prefixCls.value, "-back")
- }, [createVNode(transButton_default, {
- "onClick": function onClick2(e3) {
- emit("back", e3);
- },
- "class": "".concat(prefixCls.value, "-back-button"),
- "aria-label": back
- }, {
- default: function _default9() {
- return [backIcon];
- }
- })]);
- }
- }, null);
- };
- var renderBreadcrumb = function renderBreadcrumb2() {
- var _slots$breadcrumb;
- return props5.breadcrumb ? createVNode(breadcrumb_default, props5.breadcrumb, null) : (_slots$breadcrumb = slots.breadcrumb) === null || _slots$breadcrumb === void 0 ? void 0 : _slots$breadcrumb.call(slots);
- };
- var renderTitle = function renderTitle2() {
- var _props$title, _slots$title, _props$subTitle, _slots$subTitle, _props$tags, _slots$tags, _props$extra, _slots$extra, _slots$avatar;
- var avatar = props5.avatar;
- var title = (_props$title = props5.title) !== null && _props$title !== void 0 ? _props$title : (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots);
- var subTitle = (_props$subTitle = props5.subTitle) !== null && _props$subTitle !== void 0 ? _props$subTitle : (_slots$subTitle = slots.subTitle) === null || _slots$subTitle === void 0 ? void 0 : _slots$subTitle.call(slots);
- var tags = (_props$tags = props5.tags) !== null && _props$tags !== void 0 ? _props$tags : (_slots$tags = slots.tags) === null || _slots$tags === void 0 ? void 0 : _slots$tags.call(slots);
- var extra = (_props$extra = props5.extra) !== null && _props$extra !== void 0 ? _props$extra : (_slots$extra = slots.extra) === null || _slots$extra === void 0 ? void 0 : _slots$extra.call(slots);
- var headingPrefixCls = "".concat(prefixCls.value, "-heading");
- var hasHeading = title || subTitle || tags || extra;
- if (!hasHeading) {
- return null;
- }
- var backIcon = getBackIcon();
- var backIconDom = renderBack(backIcon);
- var hasTitle = backIconDom || avatar || hasHeading;
- return createVNode("div", {
- "class": headingPrefixCls
- }, [hasTitle && createVNode("div", {
- "class": "".concat(headingPrefixCls, "-left")
- }, [backIconDom, avatar ? createVNode(avatar_default, avatar, null) : (_slots$avatar = slots.avatar) === null || _slots$avatar === void 0 ? void 0 : _slots$avatar.call(slots), title && createVNode("span", {
- "class": "".concat(headingPrefixCls, "-title"),
- "title": typeof title === "string" ? title : void 0
- }, [title]), subTitle && createVNode("span", {
- "class": "".concat(headingPrefixCls, "-sub-title"),
- "title": typeof subTitle === "string" ? subTitle : void 0
- }, [subTitle]), tags && createVNode("span", {
- "class": "".concat(headingPrefixCls, "-tags")
- }, [tags])]), extra && createVNode("span", {
- "class": "".concat(headingPrefixCls, "-extra")
- }, [extra])]);
- };
- var renderFooter = function renderFooter2() {
- var _props$footer, _slots$footer;
- var footer = (_props$footer = props5.footer) !== null && _props$footer !== void 0 ? _props$footer : filterEmpty((_slots$footer = slots.footer) === null || _slots$footer === void 0 ? void 0 : _slots$footer.call(slots));
- return isEmptyContent(footer) ? null : createVNode("div", {
- "class": "".concat(prefixCls.value, "-footer")
- }, [footer]);
- };
- var renderChildren2 = function renderChildren3(children) {
- return createVNode("div", {
- "class": "".concat(prefixCls.value, "-content")
- }, [children]);
- };
- return function() {
- var _props$breadcrumb, _slots$default, _classNames;
- var hasBreadcrumb = ((_props$breadcrumb = props5.breadcrumb) === null || _props$breadcrumb === void 0 ? void 0 : _props$breadcrumb.routes) || slots.breadcrumb;
- var hasFooter = props5.footer || slots.footer;
- var children = flattenChildren((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- var className = classNames_default(prefixCls.value, (_classNames = {
- "has-breadcrumb": hasBreadcrumb,
- "has-footer": hasFooter
- }, _defineProperty(_classNames, "".concat(prefixCls.value, "-ghost"), ghost.value), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames, "".concat(prefixCls.value, "-compact"), compact.value), _classNames));
- return createVNode(vc_resize_observer_default, {
- "onResize": onResize
- }, {
- default: function _default9() {
- return [createVNode("div", {
- "class": className
- }, [renderBreadcrumb(), renderTitle(), children.length ? renderChildren2(children) : null, renderFooter()])];
- }
- });
- };
- }
- });
- var page_header_default = withInstall(PageHeader);
- // node_modules/ant-design-vue/es/popconfirm/index.js
- var _excluded48 = ["placement", "overlayClassName"];
- var popconfirmProps = function popconfirmProps2() {
- return _objectSpread2(_objectSpread2({}, abstractTooltipProps_default()), {}, {
- prefixCls: String,
- content: vue_types_default.any,
- title: vue_types_default.any,
- okType: {
- type: String,
- default: "primary"
- },
- disabled: {
- type: Boolean,
- default: false
- },
- okText: vue_types_default.any,
- cancelText: vue_types_default.any,
- icon: vue_types_default.any,
- okButtonProps: {
- type: Object,
- default: void 0
- },
- cancelButtonProps: {
- type: Object,
- default: void 0
- },
- showCancel: {
- type: Boolean,
- default: true
- },
- onConfirm: Function,
- onCancel: Function
- });
- };
- var Popconfirm = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "APopconfirm",
- props: initDefaultProps_default(popconfirmProps(), _objectSpread2(_objectSpread2({}, tooltipDefaultProps()), {}, {
- trigger: "click",
- transitionName: "zoom-big",
- placement: "top",
- mouseEnterDelay: 0.1,
- mouseLeaveDelay: 0.1,
- arrowPointAtCenter: false,
- autoAdjustOverflow: true,
- okType: "primary",
- disabled: false
- })),
- slots: ["title", "content", "okText", "icon", "cancelText", "cancelButton", "okButton"],
- emits: ["update:visible", "visibleChange"],
- setup: function setup155(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit, expose = _ref.expose;
- onMounted(function() {
- devWarning_default(props5.defaultVisible === void 0, "Popconfirm", "'defaultVisible' is deprecated, please use 'v-model:visible'");
- });
- var tooltipRef = ref();
- expose({
- getPopupDomNode: function getPopupDomNode2() {
- var _tooltipRef$value, _tooltipRef$value$get;
- return (_tooltipRef$value = tooltipRef.value) === null || _tooltipRef$value === void 0 ? void 0 : (_tooltipRef$value$get = _tooltipRef$value.getPopupDomNode) === null || _tooltipRef$value$get === void 0 ? void 0 : _tooltipRef$value$get.call(_tooltipRef$value);
- }
- });
- var _useMergedState = useMergedState(false, {
- value: toRef(props5, "visible"),
- defaultValue: props5.defaultVisible
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), visible = _useMergedState2[0], setVisible = _useMergedState2[1];
- var settingVisible = function settingVisible2(value, e3) {
- if (props5.visible === void 0) {
- setVisible(value);
- }
- emit("update:visible", value);
- emit("visibleChange", value, e3);
- };
- var close3 = function close4(e3) {
- settingVisible(false, e3);
- };
- var onConfirm = function onConfirm2(e3) {
- var _props$onConfirm;
- return (_props$onConfirm = props5.onConfirm) === null || _props$onConfirm === void 0 ? void 0 : _props$onConfirm.call(props5, e3);
- };
- var onCancel = function onCancel2(e3) {
- var _props$onCancel;
- settingVisible(false, e3);
- (_props$onCancel = props5.onCancel) === null || _props$onCancel === void 0 ? void 0 : _props$onCancel.call(props5, e3);
- };
- var onKeyDown = function onKeyDown2(e3) {
- if (e3.keyCode === KeyCode_default.ESC && visible) {
- settingVisible(false, e3);
- }
- };
- var onVisibleChange = function onVisibleChange2(value) {
- var disabled = props5.disabled;
- if (disabled) {
- return;
- }
- settingVisible(value);
- };
- var _useConfigInject = useConfigInject_default("popconfirm", props5), prefixClsConfirm = _useConfigInject.prefixCls, getPrefixCls2 = _useConfigInject.getPrefixCls;
- var rootPrefixCls = computed(function() {
- return getPrefixCls2();
- });
- var popoverPrefixCls = computed(function() {
- return getPrefixCls2("popover");
- });
- var btnPrefixCls = computed(function() {
- return getPrefixCls2("btn");
- });
- var _useLocaleReceiver = useLocaleReceiver("Popconfirm", default_default2.Popconfirm), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), popconfirmLocale = _useLocaleReceiver2[0];
- var renderOverlay = function renderOverlay2() {
- var _slots$title, _slots$cancel, _slots$okText, _slots$icon;
- var okButtonProps = props5.okButtonProps, cancelButtonProps = props5.cancelButtonProps, _props$title = props5.title, title = _props$title === void 0 ? (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots) : _props$title, _props$cancelText = props5.cancelText, cancelText = _props$cancelText === void 0 ? (_slots$cancel = slots.cancel) === null || _slots$cancel === void 0 ? void 0 : _slots$cancel.call(slots) : _props$cancelText, _props$okText = props5.okText, okText = _props$okText === void 0 ? (_slots$okText = slots.okText) === null || _slots$okText === void 0 ? void 0 : _slots$okText.call(slots) : _props$okText, okType = props5.okType, _props$icon = props5.icon, icon = _props$icon === void 0 ? (_slots$icon = slots.icon) === null || _slots$icon === void 0 ? void 0 : _slots$icon.call(slots) : _props$icon, _props$showCancel = props5.showCancel, showCancel = _props$showCancel === void 0 ? true : _props$showCancel;
- var cancelButton = slots.cancelButton, okButton = slots.okButton;
- var cancelProps = _objectSpread2({
- onClick: onCancel,
- size: "small"
- }, cancelButtonProps);
- var okProps = _objectSpread2(_objectSpread2({
- onClick: onConfirm
- }, convertLegacyProps(okType)), {}, {
- size: "small"
- }, okButtonProps);
- return createVNode("div", {
- "class": "".concat(popoverPrefixCls.value, "-inner-content")
- }, [createVNode("div", {
- "class": "".concat(popoverPrefixCls.value, "-message")
- }, [icon || createVNode(ExclamationCircleFilled_default, null, null), createVNode("div", {
- "class": "".concat(popoverPrefixCls.value, "-message-title")
- }, [title])]), createVNode("div", {
- "class": "".concat(popoverPrefixCls.value, "-buttons")
- }, [showCancel ? cancelButton ? cancelButton(cancelProps) : createVNode(button_default2, cancelProps, {
- default: function _default9() {
- return [cancelText || popconfirmLocale.value.cancelText];
- }
- }) : null, okButton ? okButton(okProps) : createVNode(ActionButton_default, {
- "buttonProps": _objectSpread2(_objectSpread2({
- size: "small"
- }, convertLegacyProps(okType)), okButtonProps),
- "actionFn": onConfirm,
- "close": close3,
- "prefixCls": btnPrefixCls.value,
- "quitOnNullishReturnValue": true,
- "emitEvent": true
- }, {
- default: function _default9() {
- return [okText || popconfirmLocale.value.okText];
- }
- })])]);
- };
- return function() {
- var _slots$default;
- var placement = props5.placement, overlayClassName = props5.overlayClassName, restProps = _objectWithoutProperties(props5, _excluded48);
- var otherProps = omit_default(restProps, ["title", "content", "cancelText", "okText", "onUpdate:visible", "onConfirm", "onCancel"]);
- var overlayClassNames = classNames_default(prefixClsConfirm.value, overlayClassName);
- return createVNode(tooltip_default, _objectSpread2(_objectSpread2({}, otherProps), {}, {
- "prefixCls": popoverPrefixCls.value,
- "placement": placement,
- "onVisibleChange": onVisibleChange,
- "visible": visible.value,
- "overlayClassName": overlayClassNames,
- "transitionName": getTransitionName(rootPrefixCls.value, "zoom-big", props5.transitionName),
- "ref": tooltipRef
- }), {
- default: function _default9() {
- return [cloneVNodes(((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)) || [], {
- onKeydown: function onKeydown(e3) {
- onKeyDown(e3);
- }
- }, false)];
- },
- title: renderOverlay
- });
- };
- }
- });
- var popconfirm_default = withInstall(Popconfirm);
- // node_modules/ant-design-vue/es/progress/props.js
- var progressStatuses = tuple("normal", "exception", "active", "success");
- var ProgressType = tuple("line", "circle", "dashboard");
- var ProgressSize = tuple("default", "small");
- var progressProps = function progressProps2() {
- return {
- prefixCls: String,
- type: vue_types_default.oneOf(ProgressType),
- percent: Number,
- format: {
- type: Function
- },
- status: vue_types_default.oneOf(progressStatuses),
- showInfo: {
- type: Boolean,
- default: void 0
- },
- strokeWidth: Number,
- strokeLinecap: String,
- strokeColor: {
- type: [String, Object],
- default: void 0
- },
- trailColor: String,
- width: Number,
- success: {
- type: Object,
- default: function _default9() {
- return {};
- }
- },
- gapDegree: Number,
- gapPosition: String,
- size: vue_types_default.oneOf(ProgressSize),
- steps: Number,
- /** @deprecated Use `success` instead */
- successPercent: Number,
- title: String
- };
- };
- // node_modules/ant-design-vue/es/progress/utils.js
- function validProgress(progress) {
- if (!progress || progress < 0) {
- return 0;
- }
- if (progress > 100) {
- return 100;
- }
- return progress;
- }
- function getSuccessPercent(_ref) {
- var success = _ref.success, successPercent = _ref.successPercent;
- var percent = successPercent;
- if (success && "progress" in success) {
- devWarning_default(false, "Progress", "`success.progress` is deprecated. Please use `success.percent` instead.");
- percent = success.progress;
- }
- if (success && "percent" in success) {
- percent = success.percent;
- }
- return percent;
- }
- // node_modules/ant-design-vue/es/progress/Line.js
- var _excluded49 = ["from", "to", "direction"];
- var lineProps = function lineProps2() {
- return _objectSpread2(_objectSpread2({}, progressProps()), {}, {
- prefixCls: String,
- direction: {
- type: String
- }
- });
- };
- var sortGradient = function sortGradient2(gradients) {
- var tempArr = [];
- Object.keys(gradients).forEach(function(key2) {
- var formattedKey = parseFloat(key2.replace(/%/g, ""));
- if (!isNaN(formattedKey)) {
- tempArr.push({
- key: formattedKey,
- value: gradients[key2]
- });
- }
- });
- tempArr = tempArr.sort(function(a2, b2) {
- return a2.key - b2.key;
- });
- return tempArr.map(function(_ref) {
- var key2 = _ref.key, value = _ref.value;
- return "".concat(value, " ").concat(key2, "%");
- }).join(", ");
- };
- var handleGradient = function handleGradient2(strokeColor, directionConfig) {
- var _strokeColor$from = strokeColor.from, from = _strokeColor$from === void 0 ? presetPrimaryColors.blue : _strokeColor$from, _strokeColor$to = strokeColor.to, to = _strokeColor$to === void 0 ? presetPrimaryColors.blue : _strokeColor$to, _strokeColor$directio = strokeColor.direction, direction = _strokeColor$directio === void 0 ? directionConfig === "rtl" ? "to left" : "to right" : _strokeColor$directio, rest = _objectWithoutProperties(strokeColor, _excluded49);
- if (Object.keys(rest).length !== 0) {
- var sortedGradients = sortGradient(rest);
- return {
- backgroundImage: "linear-gradient(".concat(direction, ", ").concat(sortedGradients, ")")
- };
- }
- return {
- backgroundImage: "linear-gradient(".concat(direction, ", ").concat(from, ", ").concat(to, ")")
- };
- };
- var Line_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Line",
- props: lineProps(),
- setup: function setup156(props5, _ref2) {
- var slots = _ref2.slots;
- var backgroundProps = computed(function() {
- var strokeColor = props5.strokeColor, direction = props5.direction;
- return strokeColor && typeof strokeColor !== "string" ? handleGradient(strokeColor, direction) : {
- background: strokeColor
- };
- });
- var trailStyle = computed(function() {
- return props5.trailColor ? {
- backgroundColor: props5.trailColor
- } : void 0;
- });
- var percentStyle = computed(function() {
- var percent = props5.percent, strokeWidth = props5.strokeWidth, strokeLinecap = props5.strokeLinecap, size = props5.size;
- return _objectSpread2({
- width: "".concat(validProgress(percent), "%"),
- height: "".concat(strokeWidth || (size === "small" ? 6 : 8), "px"),
- borderRadius: strokeLinecap === "square" ? 0 : ""
- }, backgroundProps.value);
- });
- var successPercent = computed(function() {
- return getSuccessPercent(props5);
- });
- var successPercentStyle = computed(function() {
- var strokeWidth = props5.strokeWidth, size = props5.size, strokeLinecap = props5.strokeLinecap, success = props5.success;
- return {
- width: "".concat(validProgress(successPercent.value), "%"),
- height: "".concat(strokeWidth || (size === "small" ? 6 : 8), "px"),
- borderRadius: strokeLinecap === "square" ? 0 : "",
- backgroundColor: success === null || success === void 0 ? void 0 : success.strokeColor
- };
- });
- return function() {
- var _slots$default;
- return createVNode(Fragment, null, [createVNode("div", {
- "class": "".concat(props5.prefixCls, "-outer")
- }, [createVNode("div", {
- "class": "".concat(props5.prefixCls, "-inner"),
- "style": trailStyle.value
- }, [createVNode("div", {
- "class": "".concat(props5.prefixCls, "-bg"),
- "style": percentStyle.value
- }, null), successPercent.value !== void 0 ? createVNode("div", {
- "class": "".concat(props5.prefixCls, "-success-bg"),
- "style": successPercentStyle.value
- }, null) : null])]), (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-progress/src/common.js
- var defaultProps3 = {
- percent: 0,
- prefixCls: "vc-progress",
- strokeColor: "#2db7f5",
- strokeLinecap: "round",
- strokeWidth: 1,
- trailColor: "#D9D9D9",
- trailWidth: 1
- };
- var useTransitionDuration = function useTransitionDuration2(paths) {
- var prevTimeStamp = ref(null);
- onUpdated(function() {
- var now4 = Date.now();
- var updated4 = false;
- paths.value.forEach(function(val) {
- var path2 = (val === null || val === void 0 ? void 0 : val.$el) || val;
- if (!path2) {
- return;
- }
- updated4 = true;
- var pathStyle = path2.style;
- pathStyle.transitionDuration = ".3s, .3s, .3s, .06s";
- if (prevTimeStamp.value && now4 - prevTimeStamp.value < 100) {
- pathStyle.transitionDuration = "0s, 0s";
- }
- });
- if (updated4) {
- prevTimeStamp.value = Date.now();
- }
- });
- return paths;
- };
- // node_modules/ant-design-vue/es/vc-progress/src/types.js
- var propTypes = {
- gapDegree: Number,
- gapPosition: {
- type: String
- },
- percent: {
- type: [Array, Number]
- },
- prefixCls: String,
- strokeColor: {
- type: [Object, String, Array]
- },
- strokeLinecap: {
- type: String
- },
- strokeWidth: Number,
- trailColor: String,
- trailWidth: Number,
- transition: String
- };
- // node_modules/ant-design-vue/es/vc-progress/src/Line.js
- var _excluded50 = ["percent", "prefixCls", "strokeColor", "strokeLinecap", "strokeWidth", "trailColor", "trailWidth", "transition"];
- var Line_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Line",
- props: initDefaultProps_default(propTypes, defaultProps3),
- setup: function setup157(props5) {
- var percentList = computed(function() {
- var percent = props5.percent;
- return Array.isArray(percent) ? percent : [percent];
- });
- var percentListProps = computed(function() {
- var prefixCls = props5.prefixCls, strokeLinecap = props5.strokeLinecap, strokeWidth = props5.strokeWidth, transition = props5.transition;
- var stackPtg = 0;
- return percentList.value.map(function(ptg, index3) {
- var dashPercent = 1;
- switch (strokeLinecap) {
- case "round":
- dashPercent = 1 - strokeWidth / 100;
- break;
- case "square":
- dashPercent = 1 - strokeWidth / 2 / 100;
- break;
- default:
- dashPercent = 1;
- break;
- }
- var pathStyle = {
- strokeDasharray: "".concat(ptg * dashPercent, "px, 100px"),
- strokeDashoffset: "-".concat(stackPtg, "px"),
- transition: transition || "stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"
- };
- var color = strokeColorList.value[index3] || strokeColorList.value[strokeColorList.value.length - 1];
- stackPtg += ptg;
- var pathProps = {
- key: index3,
- d: pathString.value,
- "stroke-linecap": strokeLinecap,
- stroke: color,
- "stroke-width": strokeWidth,
- "fill-opacity": "0",
- class: "".concat(prefixCls, "-line-path"),
- style: pathStyle
- };
- return pathProps;
- });
- });
- var strokeColorList = computed(function() {
- var strokeColor = props5.strokeColor;
- return Array.isArray(strokeColor) ? strokeColor : [strokeColor];
- });
- var _useRefs = useRefs_default(), _useRefs2 = _slicedToArray(_useRefs, 2), setRef = _useRefs2[0], paths = _useRefs2[1];
- useTransitionDuration(paths);
- var center = computed(function() {
- return props5.strokeWidth / 2;
- });
- var right = computed(function() {
- return 100 - props5.strokeWidth / 2;
- });
- var pathString = computed(function() {
- return "M ".concat(props5.strokeLinecap === "round" ? center.value : 0, ",").concat(center.value, "\n L ").concat(props5.strokeLinecap === "round" ? right.value : 100, ",").concat(center.value);
- });
- var viewBoxString = computed(function() {
- return "0 0 100 ".concat(props5.strokeWidth);
- });
- var pathFirst = computed(function() {
- return {
- d: pathString.value,
- "stroke-linecap": props5.strokeLinecap,
- stroke: props5.trailColor,
- "stroke-width": props5.trailWidth || props5.strokeWidth,
- "fill-opacity": "0",
- class: "".concat(props5.prefixCls, "-line-trail")
- };
- });
- return function() {
- var percent = props5.percent, prefixCls = props5.prefixCls, strokeColor = props5.strokeColor, strokeLinecap = props5.strokeLinecap, strokeWidth = props5.strokeWidth, trailColor = props5.trailColor, trailWidth = props5.trailWidth, transition = props5.transition, restProps = _objectWithoutProperties(props5, _excluded50);
- delete restProps.gapPosition;
- return createVNode("svg", _objectSpread2({
- "class": "".concat(prefixCls, "-line"),
- "viewBox": viewBoxString.value,
- "preserveAspectRatio": "none"
- }, restProps), [createVNode("path", pathFirst.value, null), percentListProps.value.map(function(pathProps, index3) {
- return createVNode("path", _objectSpread2({
- "ref": setRef(index3)
- }, pathProps), null);
- })]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-progress/src/Circle.js
- var _excluded51 = ["prefixCls", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "strokeColor"];
- var gradientSeed = 0;
- function stripPercentToNumber(percent) {
- return +percent.replace("%", "");
- }
- function toArray6(value) {
- return Array.isArray(value) ? value : [value];
- }
- function getPathStyles(offset4, percent, strokeColor, strokeWidth) {
- var gapDegree = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
- var gapPosition = arguments.length > 5 ? arguments[5] : void 0;
- var radius = 50 - strokeWidth / 2;
- var beginPositionX = 0;
- var beginPositionY = -radius;
- var endPositionX = 0;
- var endPositionY = -2 * radius;
- switch (gapPosition) {
- case "left":
- beginPositionX = -radius;
- beginPositionY = 0;
- endPositionX = 2 * radius;
- endPositionY = 0;
- break;
- case "right":
- beginPositionX = radius;
- beginPositionY = 0;
- endPositionX = -2 * radius;
- endPositionY = 0;
- break;
- case "bottom":
- beginPositionY = radius;
- endPositionY = 2 * radius;
- break;
- default:
- }
- var pathString = "M 50,50 m ".concat(beginPositionX, ",").concat(beginPositionY, "\n a ").concat(radius, ",").concat(radius, " 0 1 1 ").concat(endPositionX, ",").concat(-endPositionY, "\n a ").concat(radius, ",").concat(radius, " 0 1 1 ").concat(-endPositionX, ",").concat(endPositionY);
- var len = Math.PI * 2 * radius;
- var pathStyle = {
- stroke: strokeColor,
- strokeDasharray: "".concat(percent / 100 * (len - gapDegree), "px ").concat(len, "px"),
- strokeDashoffset: "-".concat(gapDegree / 2 + offset4 / 100 * (len - gapDegree), "px"),
- 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
- };
- return {
- pathString,
- pathStyle
- };
- }
- var Circle_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "VCCircle",
- props: initDefaultProps_default(propTypes, defaultProps3),
- setup: function setup158(props5) {
- gradientSeed += 1;
- var gradientId = ref(gradientSeed);
- var percentList = computed(function() {
- return toArray6(props5.percent);
- });
- var strokeColorList = computed(function() {
- return toArray6(props5.strokeColor);
- });
- var _useRefs = useRefs_default(), _useRefs2 = _slicedToArray(_useRefs, 2), setRef = _useRefs2[0], paths = _useRefs2[1];
- useTransitionDuration(paths);
- var getStokeList = function getStokeList2() {
- var prefixCls = props5.prefixCls, strokeWidth = props5.strokeWidth, strokeLinecap = props5.strokeLinecap, gapDegree = props5.gapDegree, gapPosition = props5.gapPosition;
- var stackPtg = 0;
- return percentList.value.map(function(ptg, index3) {
- var color = strokeColorList.value[index3] || strokeColorList.value[strokeColorList.value.length - 1];
- var stroke = Object.prototype.toString.call(color) === "[object Object]" ? "url(#".concat(prefixCls, "-gradient-").concat(gradientId.value, ")") : "";
- var _getPathStyles = getPathStyles(stackPtg, ptg, color, strokeWidth, gapDegree, gapPosition), pathString = _getPathStyles.pathString, pathStyle = _getPathStyles.pathStyle;
- stackPtg += ptg;
- var pathProps = {
- key: index3,
- d: pathString,
- stroke,
- "stroke-linecap": strokeLinecap,
- "stroke-width": strokeWidth,
- opacity: ptg === 0 ? 0 : 1,
- "fill-opacity": "0",
- class: "".concat(prefixCls, "-circle-path"),
- style: pathStyle
- };
- return createVNode("path", _objectSpread2({
- "ref": setRef(index3)
- }, pathProps), null);
- });
- };
- return function() {
- var prefixCls = props5.prefixCls, strokeWidth = props5.strokeWidth, trailWidth = props5.trailWidth, gapDegree = props5.gapDegree, gapPosition = props5.gapPosition, trailColor = props5.trailColor, strokeLinecap = props5.strokeLinecap, strokeColor = props5.strokeColor, restProps = _objectWithoutProperties(props5, _excluded51);
- var _getPathStyles2 = getPathStyles(0, 100, trailColor, strokeWidth, gapDegree, gapPosition), pathString = _getPathStyles2.pathString, pathStyle = _getPathStyles2.pathStyle;
- delete restProps.percent;
- var gradient = strokeColorList.value.find(function(color) {
- return Object.prototype.toString.call(color) === "[object Object]";
- });
- var pathFirst = {
- d: pathString,
- stroke: trailColor,
- "stroke-linecap": strokeLinecap,
- "stroke-width": trailWidth || strokeWidth,
- "fill-opacity": "0",
- class: "".concat(prefixCls, "-circle-trail"),
- style: pathStyle
- };
- return createVNode("svg", _objectSpread2({
- "class": "".concat(prefixCls, "-circle"),
- "viewBox": "0 0 100 100"
- }, restProps), [gradient && createVNode("defs", null, [createVNode("linearGradient", {
- "id": "".concat(prefixCls, "-gradient-").concat(gradientId.value),
- "x1": "100%",
- "y1": "0%",
- "x2": "0%",
- "y2": "0%"
- }, [Object.keys(gradient).sort(function(a2, b2) {
- return stripPercentToNumber(a2) - stripPercentToNumber(b2);
- }).map(function(key2, index3) {
- return createVNode("stop", {
- "key": index3,
- "offset": key2,
- "stop-color": gradient[key2]
- }, null);
- })])]), createVNode("path", pathFirst, null), getStokeList().reverse()]);
- };
- }
- });
- // node_modules/ant-design-vue/es/progress/Circle.js
- function getPercentage(_ref) {
- var percent = _ref.percent, success = _ref.success, successPercent = _ref.successPercent;
- var realSuccessPercent = validProgress(getSuccessPercent({
- success,
- successPercent
- }));
- return [realSuccessPercent, validProgress(validProgress(percent) - realSuccessPercent)];
- }
- function getStrokeColor(_ref2) {
- var _ref2$success = _ref2.success, success = _ref2$success === void 0 ? {} : _ref2$success, strokeColor = _ref2.strokeColor;
- var successColor = success.strokeColor;
- return [successColor || presetPrimaryColors.green, strokeColor || null];
- }
- var Circle_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Circle",
- inheritAttrs: false,
- props: progressProps(),
- setup: function setup159(props5, _ref3) {
- var slots = _ref3.slots;
- var gapDeg = computed(function() {
- if (props5.gapDegree || props5.gapDegree === 0) {
- return props5.gapDegree;
- }
- if (props5.type === "dashboard") {
- return 75;
- }
- return void 0;
- });
- var circleStyle = computed(function() {
- var circleSize = props5.width || 120;
- return {
- width: typeof circleSize === "number" ? "".concat(circleSize, "px") : circleSize,
- height: typeof circleSize === "number" ? "".concat(circleSize, "px") : circleSize,
- fontSize: "".concat(circleSize * 0.15 + 6, "px")
- };
- });
- var circleWidth = computed(function() {
- return props5.strokeWidth || 6;
- });
- var gapPos = computed(function() {
- return props5.gapPosition || props5.type === "dashboard" && "bottom" || "top";
- });
- var percent = computed(function() {
- return getPercentage(props5);
- });
- var isGradient = computed(function() {
- return Object.prototype.toString.call(props5.strokeColor) === "[object Object]";
- });
- var strokeColor = computed(function() {
- return getStrokeColor({
- success: props5.success,
- strokeColor: props5.strokeColor
- });
- });
- var wrapperClassName = computed(function() {
- var _ref4;
- return _ref4 = {}, _defineProperty(_ref4, "".concat(props5.prefixCls, "-inner"), true), _defineProperty(_ref4, "".concat(props5.prefixCls, "-circle-gradient"), isGradient.value), _ref4;
- });
- return function() {
- var _slots$default;
- return createVNode("div", {
- "class": wrapperClassName.value,
- "style": circleStyle.value
- }, [createVNode(Circle_default, {
- "percent": percent.value,
- "strokeWidth": circleWidth.value,
- "trailWidth": circleWidth.value,
- "strokeColor": strokeColor.value,
- "strokeLinecap": props5.strokeLinecap,
- "trailColor": props5.trailColor,
- "prefixCls": props5.prefixCls,
- "gapDegree": gapDeg.value,
- "gapPosition": gapPos.value
- }, null), (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/progress/Steps.js
- var stepsProps = function stepsProps2() {
- return _objectSpread2(_objectSpread2({}, progressProps()), {}, {
- steps: Number,
- size: {
- type: String
- },
- strokeColor: String,
- trailColor: String
- });
- };
- var Steps_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Steps",
- props: stepsProps(),
- setup: function setup160(props5, _ref) {
- var slots = _ref.slots;
- var current2 = computed(function() {
- return Math.round(props5.steps * ((props5.percent || 0) / 100));
- });
- var stepWidth = computed(function() {
- return props5.size === "small" ? 2 : 14;
- });
- var styledSteps = computed(function() {
- var steps = props5.steps, _props$strokeWidth = props5.strokeWidth, strokeWidth = _props$strokeWidth === void 0 ? 8 : _props$strokeWidth, strokeColor = props5.strokeColor, trailColor = props5.trailColor, prefixCls = props5.prefixCls;
- var temp = [];
- for (var i3 = 0; i3 < steps; i3 += 1) {
- var _cls;
- var cls = (_cls = {}, _defineProperty(_cls, "".concat(prefixCls, "-steps-item"), true), _defineProperty(_cls, "".concat(prefixCls, "-steps-item-active"), i3 <= current2.value - 1), _cls);
- temp.push(createVNode("div", {
- "key": i3,
- "class": cls,
- "style": {
- backgroundColor: i3 <= current2.value - 1 ? strokeColor : trailColor,
- width: "".concat(stepWidth.value, "px"),
- height: "".concat(strokeWidth, "px")
- }
- }, null));
- }
- return temp;
- });
- return function() {
- var _slots$default;
- return createVNode("div", {
- "class": "".concat(props5.prefixCls, "-steps-outer")
- }, [styledSteps.value, (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/progress/progress.js
- var progress_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AProgress",
- props: initDefaultProps_default(progressProps(), {
- type: "line",
- percent: 0,
- showInfo: true,
- // null for different theme definition
- trailColor: null,
- size: "default",
- strokeLinecap: "round"
- }),
- slots: ["format"],
- setup: function setup161(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("progress", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- devWarning_default(props5.successPercent == void 0, "Progress", "`successPercent` is deprecated. Please use `success.percent` instead.");
- var classString = computed(function() {
- var _ref2;
- var type4 = props5.type, showInfo = props5.showInfo, size = props5.size;
- var pre = prefixCls.value;
- return _ref2 = {}, _defineProperty(_ref2, pre, true), _defineProperty(_ref2, "".concat(pre, "-").concat(type4 === "dashboard" && "circle" || type4), true), _defineProperty(_ref2, "".concat(pre, "-show-info"), showInfo), _defineProperty(_ref2, "".concat(pre, "-").concat(size), size), _defineProperty(_ref2, "".concat(pre, "-rtl"), direction.value === "rtl"), _ref2;
- });
- var percentNumber = computed(function() {
- var _props$percent = props5.percent, percent = _props$percent === void 0 ? 0 : _props$percent;
- var successPercent = getSuccessPercent(props5);
- return parseInt(successPercent !== void 0 ? successPercent.toString() : percent.toString(), 10);
- });
- var progressStatus = computed(function() {
- var status = props5.status;
- if (progressStatuses.indexOf(status) < 0 && percentNumber.value >= 100) {
- return "success";
- }
- return status || "normal";
- });
- var renderProcessInfo = function renderProcessInfo2() {
- var showInfo = props5.showInfo, format4 = props5.format, type4 = props5.type, percent = props5.percent, title = props5.title;
- var successPercent = getSuccessPercent(props5);
- if (!showInfo)
- return null;
- var text;
- var textFormatter = format4 || (slots === null || slots === void 0 ? void 0 : slots.format) || function(val) {
- return "".concat(val, "%");
- };
- var isLineType = type4 === "line";
- if (format4 || slots !== null && slots !== void 0 && slots.format || progressStatus.value !== "exception" && progressStatus.value !== "success") {
- text = textFormatter(validProgress(percent), validProgress(successPercent));
- } else if (progressStatus.value === "exception") {
- text = isLineType ? createVNode(CloseCircleFilled_default, null, null) : createVNode(CloseOutlined_default, null, null);
- } else if (progressStatus.value === "success") {
- text = isLineType ? createVNode(CheckCircleFilled_default, null, null) : createVNode(CheckOutlined_default, null, null);
- }
- return createVNode("span", {
- "class": "".concat(prefixCls.value, "-text"),
- "title": title === void 0 && typeof text === "string" ? text : void 0
- }, [text]);
- };
- return function() {
- var type4 = props5.type, steps = props5.steps, strokeColor = props5.strokeColor, title = props5.title;
- var progressInfo = renderProcessInfo();
- var progress;
- if (type4 === "line") {
- progress = steps ? createVNode(Steps_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "strokeColor": typeof strokeColor === "string" ? strokeColor : void 0,
- "prefixCls": prefixCls.value,
- "steps": steps
- }), {
- default: function _default9() {
- return [progressInfo];
- }
- }) : createVNode(Line_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls.value
- }), {
- default: function _default9() {
- return [progressInfo];
- }
- });
- } else if (type4 === "circle" || type4 === "dashboard") {
- progress = createVNode(Circle_default2, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": prefixCls.value
- }), {
- default: function _default9() {
- return [progressInfo];
- }
- });
- }
- var classNames2 = _objectSpread2(_objectSpread2({}, classString.value), {}, _defineProperty({}, "".concat(prefixCls.value, "-status-").concat(progressStatus.value), true));
- return createVNode("div", {
- "class": classNames2,
- "title": title
- }, [progress]);
- };
- }
- });
- // node_modules/ant-design-vue/es/progress/index.js
- var progress_default2 = withInstall(progress_default);
- // node_modules/ant-design-vue/es/rate/util.js
- function getScroll4(w2) {
- var ret = w2.pageXOffset;
- var method4 = "scrollLeft";
- if (typeof ret !== "number") {
- var d2 = w2.document;
- ret = d2.documentElement[method4];
- if (typeof ret !== "number") {
- ret = d2.body[method4];
- }
- }
- return ret;
- }
- function getClientPosition2(elem) {
- var x2;
- var y2;
- var doc = elem.ownerDocument;
- var body = doc.body;
- var docElem = doc && doc.documentElement;
- var box = elem.getBoundingClientRect();
- x2 = box.left;
- y2 = box.top;
- x2 -= docElem.clientLeft || body.clientLeft || 0;
- y2 -= docElem.clientTop || body.clientTop || 0;
- return {
- left: x2,
- top: y2
- };
- }
- function getOffsetLeft(el) {
- var pos = getClientPosition2(el);
- var doc = el.ownerDocument;
- var w2 = doc.defaultView || doc.parentWindow;
- pos.left += getScroll4(w2);
- return pos.left;
- }
- // node_modules/ant-design-vue/es/rate/Star.js
- var starProps = {
- value: Number,
- index: Number,
- prefixCls: String,
- allowHalf: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- character: vue_types_default.any,
- characterRender: Function,
- focused: {
- type: Boolean,
- default: void 0
- },
- count: Number,
- onClick: Function,
- onHover: Function
- };
- var Star_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Star",
- inheritAttrs: false,
- props: starProps,
- emits: ["hover", "click"],
- setup: function setup162(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit;
- var onHover = function onHover2(e3) {
- var index3 = props5.index;
- emit("hover", e3, index3);
- };
- var onClick2 = function onClick3(e3) {
- var index3 = props5.index;
- emit("click", e3, index3);
- };
- var onKeyDown = function onKeyDown2(e3) {
- var index3 = props5.index;
- if (e3.keyCode === 13) {
- emit("click", e3, index3);
- }
- };
- var cls = computed(function() {
- var prefixCls = props5.prefixCls, index3 = props5.index, value = props5.value, allowHalf = props5.allowHalf, focused = props5.focused;
- var starValue = index3 + 1;
- var className = prefixCls;
- if (value === 0 && index3 === 0 && focused) {
- className += " ".concat(prefixCls, "-focused");
- } else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
- className += " ".concat(prefixCls, "-half ").concat(prefixCls, "-active");
- if (focused) {
- className += " ".concat(prefixCls, "-focused");
- }
- } else {
- className += starValue <= value ? " ".concat(prefixCls, "-full") : " ".concat(prefixCls, "-zero");
- if (starValue === value && focused) {
- className += " ".concat(prefixCls, "-focused");
- }
- }
- return className;
- });
- return function() {
- var disabled = props5.disabled, prefixCls = props5.prefixCls, characterRender = props5.characterRender, index3 = props5.index, count = props5.count, value = props5.value;
- var character = getPropsSlot(slots, props5, "character");
- var star = createVNode("li", {
- "class": cls.value
- }, [createVNode("div", {
- "onClick": disabled ? null : onClick2,
- "onKeydown": disabled ? null : onKeyDown,
- "onMousemove": disabled ? null : onHover,
- "role": "radio",
- "aria-checked": value > index3 ? "true" : "false",
- "aria-posinset": index3 + 1,
- "aria-setsize": count,
- "tabindex": disabled ? -1 : 0
- }, [createVNode("div", {
- "class": "".concat(prefixCls, "-first")
- }, [character]), createVNode("div", {
- "class": "".concat(prefixCls, "-second")
- }, [character])])]);
- if (characterRender) {
- star = characterRender(star, props5);
- }
- return star;
- };
- }
- });
- // node_modules/ant-design-vue/es/rate/index.js
- var rateProps = function rateProps2() {
- return {
- prefixCls: String,
- count: Number,
- value: Number,
- allowHalf: {
- type: Boolean,
- default: void 0
- },
- allowClear: {
- type: Boolean,
- default: void 0
- },
- tooltips: Array,
- disabled: {
- type: Boolean,
- default: void 0
- },
- character: vue_types_default.any,
- autofocus: {
- type: Boolean,
- default: void 0
- },
- tabindex: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- direction: String,
- id: String,
- onChange: Function,
- onHoverChange: Function,
- "onUpdate:value": Function,
- onFocus: Function,
- onBlur: Function,
- onKeydown: Function
- };
- };
- var Rate = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ARate",
- inheritAttrs: false,
- props: initDefaultProps_default(rateProps(), {
- value: 0,
- count: 5,
- allowHalf: false,
- allowClear: true,
- tabindex: 0,
- direction: "ltr"
- }),
- // emits: ['hoverChange', 'update:value', 'change', 'focus', 'blur', 'keydown'],
- setup: function setup163(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, emit = _ref.emit, expose = _ref.expose;
- var _useConfigInject = useConfigInject_default("rate", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var formItemContext = useInjectFormItemContext();
- var rateRef = ref();
- var _useRefs = useRefs_default(), _useRefs2 = _slicedToArray(_useRefs, 2), setRef = _useRefs2[0], starRefs = _useRefs2[1];
- var state = reactive({
- value: props5.value,
- focused: false,
- cleanedValue: null,
- hoverValue: void 0
- });
- watch(function() {
- return props5.value;
- }, function() {
- state.value = props5.value;
- });
- var getStarDOM = function getStarDOM2(index3) {
- return findDOMNode(starRefs.value.get(index3));
- };
- var getStarValue = function getStarValue2(index3, x2) {
- var reverse = direction.value === "rtl";
- var value = index3 + 1;
- if (props5.allowHalf) {
- var starEle = getStarDOM(index3);
- var leftDis = getOffsetLeft(starEle);
- var width = starEle.clientWidth;
- if (reverse && x2 - leftDis > width / 2) {
- value -= 0.5;
- } else if (!reverse && x2 - leftDis < width / 2) {
- value -= 0.5;
- }
- }
- return value;
- };
- var changeValue = function changeValue2(value) {
- if (props5.value === void 0) {
- state.value = value;
- }
- emit("update:value", value);
- emit("change", value);
- formItemContext.onFieldChange();
- };
- var onHover = function onHover2(e3, index3) {
- var hoverValue = getStarValue(index3, e3.pageX);
- if (hoverValue !== state.cleanedValue) {
- state.hoverValue = hoverValue;
- state.cleanedValue = null;
- }
- emit("hoverChange", hoverValue);
- };
- var onMouseLeave = function onMouseLeave2() {
- state.hoverValue = void 0;
- state.cleanedValue = null;
- emit("hoverChange", void 0);
- };
- var onClick2 = function onClick3(event, index3) {
- var allowClear = props5.allowClear;
- var newValue = getStarValue(index3, event.pageX);
- var isReset = false;
- if (allowClear) {
- isReset = newValue === state.value;
- }
- onMouseLeave();
- changeValue(isReset ? 0 : newValue);
- state.cleanedValue = isReset ? newValue : null;
- };
- var onFocus2 = function onFocus3(e3) {
- state.focused = true;
- emit("focus", e3);
- };
- var onBlur2 = function onBlur3(e3) {
- state.focused = false;
- emit("blur", e3);
- formItemContext.onFieldBlur();
- };
- var onKeyDown = function onKeyDown2(event) {
- var keyCode = event.keyCode;
- var count = props5.count, allowHalf = props5.allowHalf;
- var reverse = direction.value === "rtl";
- if (keyCode === KeyCode_default.RIGHT && state.value < count && !reverse) {
- if (allowHalf) {
- state.value += 0.5;
- } else {
- state.value += 1;
- }
- changeValue(state.value);
- event.preventDefault();
- } else if (keyCode === KeyCode_default.LEFT && state.value > 0 && !reverse) {
- if (allowHalf) {
- state.value -= 0.5;
- } else {
- state.value -= 1;
- }
- changeValue(state.value);
- event.preventDefault();
- } else if (keyCode === KeyCode_default.RIGHT && state.value > 0 && reverse) {
- if (allowHalf) {
- state.value -= 0.5;
- } else {
- state.value -= 1;
- }
- changeValue(state.value);
- event.preventDefault();
- } else if (keyCode === KeyCode_default.LEFT && state.value < count && reverse) {
- if (allowHalf) {
- state.value += 0.5;
- } else {
- state.value += 1;
- }
- changeValue(state.value);
- event.preventDefault();
- }
- emit("keydown", event);
- };
- var focus = function focus2() {
- if (!props5.disabled) {
- rateRef.value.focus();
- }
- };
- var blur = function blur2() {
- if (!props5.disabled) {
- rateRef.value.blur();
- }
- };
- expose({
- focus,
- blur
- });
- onMounted(function() {
- var autofocus = props5.autofocus, disabled = props5.disabled;
- if (autofocus && !disabled) {
- focus();
- }
- });
- var characterRender = function characterRender2(node, _ref2) {
- var index3 = _ref2.index;
- var tooltips = props5.tooltips;
- if (!tooltips)
- return node;
- return createVNode(tooltip_default, {
- "title": tooltips[index3]
- }, {
- default: function _default9() {
- return [node];
- }
- });
- };
- var character = getPropsSlot(slots, props5, "character") || createVNode(StarFilled_default, null, null);
- return function() {
- var count = props5.count, allowHalf = props5.allowHalf, disabled = props5.disabled, tabindex = props5.tabindex, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id;
- var className = attrs.class, style = attrs.style;
- var stars = [];
- var disabledClass = disabled ? "".concat(prefixCls.value, "-disabled") : "";
- for (var index3 = 0; index3 < count; index3++) {
- stars.push(createVNode(Star_default, {
- "ref": setRef(index3),
- "key": index3,
- "index": index3,
- "count": count,
- "disabled": disabled,
- "prefixCls": "".concat(prefixCls.value, "-star"),
- "allowHalf": allowHalf,
- "value": state.hoverValue === void 0 ? state.value : state.hoverValue,
- "onClick": onClick2,
- "onHover": onHover,
- "character": character,
- "characterRender": characterRender,
- "focused": state.focused
- }, null));
- }
- var rateClassName = classNames_default(prefixCls.value, disabledClass, className, _defineProperty({}, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"));
- return createVNode("ul", _objectSpread2(_objectSpread2({}, attrs), {}, {
- "id": id,
- "class": rateClassName,
- "style": style,
- "onMouseleave": disabled ? null : onMouseLeave,
- "tabindex": disabled ? -1 : tabindex,
- "onFocus": disabled ? null : onFocus2,
- "onBlur": disabled ? null : onBlur2,
- "onKeydown": disabled ? null : onKeyDown,
- "ref": rateRef,
- "role": "radiogroup"
- }), [stars]);
- };
- }
- });
- var rate_default = withInstall(Rate);
- // node_modules/ant-design-vue/es/result/noFound.js
- var NoFound = function NoFound2() {
- return createVNode("svg", {
- "width": "252",
- "height": "294"
- }, [createVNode("defs", null, [createVNode("path", {
- "d": "M0 .387h251.772v251.772H0z"
- }, null)]), createVNode("g", {
- "fill": "none",
- "fill-rule": "evenodd"
- }, [createVNode("g", {
- "transform": "translate(0 .012)"
- }, [createVNode("mask", {
- "fill": "#fff"
- }, null), createVNode("path", {
- "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",
- "fill": "#E4EBF7",
- "mask": "url(#b)"
- }, null)]), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "d": "M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",
- "stroke": "#FFF",
- "stroke-width": "2"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "d": "M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",
- "stroke": "#FFF",
- "stroke-width": "2"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "stroke": "#FFF",
- "stroke-width": "2"
- }, null), createVNode("path", {
- "stroke": "#FFF",
- "stroke-width": "2",
- "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"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#1890FF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFB594"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#CBD1D1"
- }, null), createVNode("path", {
- "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",
- "fill": "#2B0849"
- }, null), createVNode("path", {
- "d": "M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",
- "fill": "#A4AABA"
- }, null), createVNode("path", {
- "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",
- "fill": "#CBD1D1"
- }, null), createVNode("path", {
- "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",
- "fill": "#2B0849"
- }, null), createVNode("path", {
- "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",
- "fill": "#A4AABA"
- }, null), createVNode("path", {
- "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",
- "fill": "#7BB2F9"
- }, null), createVNode("path", {
- "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",
- "stroke": "#648BD8",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M107.275 222.1s2.773-1.11 6.102-3.884",
- "stroke": "#648BD8",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#648BD8",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#192064"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#192064"
- }, null), createVNode("path", {
- "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",
- "stroke": "#648BD8",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "fill": "#520038"
- }, null), createVNode("path", {
- "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",
- "fill": "#552950"
- }, null), createVNode("path", {
- "stroke": "#DB836E",
- "stroke-width": "1.118",
- "stroke-linecap": "round",
- "stroke-linejoin": "round",
- "d": "M110.13 74.84l-.896 1.61-.298 4.357h-2.228"
- }, null), createVNode("path", {
- "d": "M110.846 74.481s1.79-.716 2.506.537",
- "stroke": "#5C2552",
- "stroke-width": "1.118",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#DB836E",
- "stroke-width": "1.118",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M103.287 72.93s1.83 1.113 4.137.954",
- "stroke": "#5C2552",
- "stroke-width": "1.118",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#DB836E",
- "stroke-width": "1.118",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",
- "stroke": "#E4EBF7",
- "stroke-width": "1.101",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M129.405 122.865s-5.272 7.403-9.422 10.768",
- "stroke": "#E4EBF7",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M119.306 107.329s.452 4.366-2.127 32.062",
- "stroke": "#E4EBF7",
- "stroke-width": "1.101",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#F2D7AD"
- }, null), createVNode("path", {
- "d": "M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",
- "fill": "#F4D19D"
- }, null), createVNode("path", {
- "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",
- "fill": "#F2D7AD"
- }, null), createVNode("path", {
- "fill": "#CC9B6E",
- "d": "M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"
- }, null), createVNode("path", {
- "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",
- "fill": "#F4D19D"
- }, null), createVNode("path", {
- "fill": "#CC9B6E",
- "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"
- }, null), createVNode("path", {
- "fill": "#CC9B6E",
- "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"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "stroke": "#DB836E",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",
- "stroke": "#DB836E",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#DB836E",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#5BA02E"
- }, null), createVNode("path", {
- "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",
- "fill": "#92C110"
- }, null), createVNode("path", {
- "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",
- "fill": "#F2D7AD"
- }, null), createVNode("path", {
- "d": "M88.979 89.48s7.776 5.384 16.6 2.842",
- "stroke": "#E4EBF7",
- "stroke-width": "1.101",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null)])]);
- };
- var noFound_default = NoFound;
- // node_modules/ant-design-vue/es/result/serverError.js
- var ServerError = function ServerError2() {
- return createVNode("svg", {
- "width": "254",
- "height": "294"
- }, [createVNode("defs", null, [createVNode("path", {
- "d": "M0 .335h253.49v253.49H0z"
- }, null), createVNode("path", {
- "d": "M0 293.665h253.49V.401H0z"
- }, null)]), createVNode("g", {
- "fill": "none",
- "fill-rule": "evenodd"
- }, [createVNode("g", {
- "transform": "translate(0 .067)"
- }, [createVNode("mask", {
- "fill": "#fff"
- }, null), createVNode("path", {
- "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",
- "fill": "#E4EBF7",
- "mask": "url(#b)"
- }, null)]), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "d": "M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",
- "stroke": "#FFF",
- "stroke-width": "2"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FF603B"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFB594"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFB594"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "fill": "#520038"
- }, null), createVNode("path", {
- "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",
- "fill": "#552950"
- }, null), createVNode("path", {
- "stroke": "#DB836E",
- "stroke-width": "1.063",
- "stroke-linecap": "round",
- "stroke-linejoin": "round",
- "d": "M99.206 73.644l-.9 1.62-.3 4.38h-2.24"
- }, null), createVNode("path", {
- "d": "M99.926 73.284s1.8-.72 2.52.54",
- "stroke": "#5C2552",
- "stroke-width": "1.117",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#DB836E",
- "stroke-width": "1.117",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M92.326 71.724s1.84 1.12 4.16.96",
- "stroke": "#5C2552",
- "stroke-width": "1.117",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#DB836E",
- "stroke-width": "1.063",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",
- "stroke": "#E4EBF7",
- "stroke-width": "1.136",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "d": "M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",
- "stroke": "#E4EBF7",
- "stroke-width": "1.085",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#CBD1D1"
- }, null), createVNode("path", {
- "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",
- "fill": "#2B0849"
- }, null), createVNode("path", {
- "d": "M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",
- "fill": "#A4AABA"
- }, null), createVNode("path", {
- "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",
- "fill": "#CBD1D1"
- }, null), createVNode("path", {
- "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",
- "fill": "#2B0849"
- }, null), createVNode("path", {
- "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",
- "fill": "#A4AABA"
- }, null), createVNode("path", {
- "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",
- "fill": "#7BB2F9"
- }, null), createVNode("path", {
- "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",
- "stroke": "#648BD8",
- "stroke-width": "1.085",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M96.973 219.373s2.882-1.153 6.34-4.034",
- "stroke": "#648BD8",
- "stroke-width": "1.032",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#648BD8",
- "stroke-width": "1.085",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#192064"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#192064"
- }, null), createVNode("path", {
- "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",
- "stroke": "#648BD8",
- "stroke-width": "1.085",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#E4EBF7",
- "stroke-width": "1.085",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "stroke": "#DB836E",
- "stroke-width": ".774",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",
- "stroke": "#E59788",
- "stroke-width": ".774",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "stroke": "#E59788",
- "stroke-width": ".774",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M109.278 112.533s3.38-3.613 7.575-4.662",
- "stroke": "#E4EBF7",
- "stroke-width": "1.085",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M107.375 123.006s9.697-2.745 11.445-.88",
- "stroke": "#E59788",
- "stroke-width": ".774",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#BFCDDD",
- "stroke-width": "2",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#A3B4C6"
- }, null), createVNode("path", {
- "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",
- "fill": "#A3B4C6"
- }, null), createVNode("mask", {
- "fill": "#fff"
- }, null), createVNode("path", {
- "fill": "#A3B4C6",
- "mask": "url(#d)",
- "d": "M154.098 190.096h70.513v-84.617h-70.513z"
- }, null), createVNode("path", {
- "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",
- "fill": "#BFCDDD",
- "mask": "url(#d)"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF",
- "mask": "url(#d)"
- }, null), createVNode("path", {
- "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",
- "fill": "#BFCDDD",
- "mask": "url(#d)"
- }, null), createVNode("path", {
- "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",
- "stroke": "#7C90A5",
- "stroke-width": "1.124",
- "stroke-linecap": "round",
- "stroke-linejoin": "round",
- "mask": "url(#d)"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF",
- "mask": "url(#d)"
- }, null), createVNode("path", {
- "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",
- "fill": "#BFCDDD",
- "mask": "url(#d)"
- }, null), createVNode("path", {
- "d": "M177.259 207.217v11.52M201.05 207.217v11.52",
- "stroke": "#A3B4C6",
- "stroke-width": "1.124",
- "stroke-linecap": "round",
- "stroke-linejoin": "round",
- "mask": "url(#d)"
- }, null), createVNode("path", {
- "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",
- "fill": "#5BA02E",
- "mask": "url(#d)"
- }, null), createVNode("path", {
- "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",
- "fill": "#92C110",
- "mask": "url(#d)"
- }, null), createVNode("path", {
- "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",
- "fill": "#F2D7AD",
- "mask": "url(#d)"
- }, null)])]);
- };
- var serverError_default = ServerError;
- // node_modules/ant-design-vue/es/result/unauthorized.js
- var Unauthorized = function Unauthorized2() {
- return createVNode("svg", {
- "width": "251",
- "height": "294"
- }, [createVNode("g", {
- "fill": "none",
- "fill-rule": "evenodd"
- }, [createVNode("path", {
- "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",
- "fill": "#E4EBF7"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "d": "M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",
- "stroke": "#FFF",
- "stroke-width": "2"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "d": "M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",
- "stroke": "#FFF",
- "stroke-width": "2"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "stroke": "#FFF",
- "stroke-width": "2"
- }, null), createVNode("path", {
- "stroke": "#FFF",
- "stroke-width": "2",
- "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"
- }, null), createVNode("path", {
- "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",
- "fill": "#A26EF4"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#5BA02E"
- }, null), createVNode("path", {
- "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",
- "fill": "#92C110"
- }, null), createVNode("path", {
- "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",
- "fill": "#F2D7AD"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFB594"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "d": "M78.18 94.656s.911 7.41-4.914 13.078",
- "stroke": "#E4EBF7",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",
- "stroke": "#E4EBF7",
- "stroke-width": ".932",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFB594"
- }, null), createVNode("path", {
- "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",
- "fill": "#5C2552"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "stroke": "#DB836E",
- "stroke-width": "1.145",
- "stroke-linecap": "round",
- "stroke-linejoin": "round",
- "d": "M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"
- }, null), createVNode("path", {
- "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",
- "fill": "#552950"
- }, null), createVNode("path", {
- "d": "M91.132 86.786s5.269 4.957 12.679 2.327",
- "stroke": "#DB836E",
- "stroke-width": "1.145",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#DB836E"
- }, null), createVNode("path", {
- "d": "M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",
- "stroke": "#5C2552",
- "stroke-width": "1.526",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#DB836E",
- "stroke-width": "1.145",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",
- "stroke": "#E4EBF7",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M66.508 86.763s-1.598 8.83-6.697 14.078",
- "stroke": "#E4EBF7",
- "stroke-width": "1.114",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M128.31 87.934s3.013 4.121 4.06 11.785",
- "stroke": "#E4EBF7",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M64.09 84.816s-6.03 9.912-13.607 9.903",
- "stroke": "#DB836E",
- "stroke-width": ".795",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFC6A0"
- }, null), createVNode("path", {
- "d": "M130.532 85.488s4.588 5.757 11.619 6.214",
- "stroke": "#DB836E",
- "stroke-width": ".75",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M121.708 105.73s-.393 8.564-1.34 13.612",
- "stroke": "#E4EBF7",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M115.784 161.512s-3.57-1.488-2.678-7.14",
- "stroke": "#648BD8",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#CBD1D1"
- }, null), createVNode("path", {
- "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",
- "fill": "#2B0849"
- }, null), createVNode("path", {
- "d": "M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",
- "fill": "#A4AABA"
- }, null), createVNode("path", {
- "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",
- "fill": "#CBD1D1"
- }, null), createVNode("path", {
- "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",
- "fill": "#2B0849"
- }, null), createVNode("path", {
- "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",
- "fill": "#A4AABA"
- }, null), createVNode("path", {
- "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",
- "fill": "#7BB2F9"
- }, null), createVNode("path", {
- "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",
- "stroke": "#648BD8",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "d": "M108.459 220.905s2.759-1.104 6.07-3.863",
- "stroke": "#648BD8",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "stroke": "#648BD8",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null), createVNode("path", {
- "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",
- "fill": "#192064"
- }, null), createVNode("path", {
- "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",
- "fill": "#FFF"
- }, null), createVNode("path", {
- "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",
- "fill": "#192064"
- }, null), createVNode("path", {
- "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",
- "stroke": "#648BD8",
- "stroke-width": "1.051",
- "stroke-linecap": "round",
- "stroke-linejoin": "round"
- }, null)])]);
- };
- var unauthorized_default = Unauthorized;
- // node_modules/ant-design-vue/es/result/index.js
- var IconMap = {
- success: CheckCircleFilled_default,
- error: CloseCircleFilled_default,
- info: ExclamationCircleFilled_default,
- warning: WarningFilled_default
- };
- var ExceptionMap = {
- "404": noFound_default,
- "500": serverError_default,
- "403": unauthorized_default
- };
- var ExceptionStatus = Object.keys(ExceptionMap);
- var resultProps = function resultProps2() {
- return {
- prefixCls: String,
- icon: vue_types_default.any,
- status: {
- type: [Number, String],
- default: "info"
- },
- title: vue_types_default.any,
- subTitle: vue_types_default.any,
- extra: vue_types_default.any
- };
- };
- var renderIcon = function renderIcon2(prefixCls, _ref) {
- var status = _ref.status, icon = _ref.icon;
- if (ExceptionStatus.includes("".concat(status))) {
- var SVGComponent = ExceptionMap[status];
- return createVNode("div", {
- "class": "".concat(prefixCls, "-icon ").concat(prefixCls, "-image")
- }, [createVNode(SVGComponent, null, null)]);
- }
- var IconComponent = IconMap[status];
- var iconNode = icon || createVNode(IconComponent, null, null);
- return createVNode("div", {
- "class": "".concat(prefixCls, "-icon")
- }, [iconNode]);
- };
- var renderExtra = function renderExtra2(prefixCls, extra) {
- return extra && createVNode("div", {
- "class": "".concat(prefixCls, "-extra")
- }, [extra]);
- };
- var Result = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AResult",
- props: resultProps(),
- slots: ["title", "subTitle", "icon", "extra"],
- setup: function setup164(props5, _ref2) {
- var slots = _ref2.slots;
- var _useConfigInject = useConfigInject_default("result", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var className = computed(function() {
- return classNames_default(prefixCls.value, "".concat(prefixCls.value, "-").concat(props5.status), _defineProperty({}, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"));
- });
- return function() {
- var _props$title, _slots$title, _props$subTitle, _slots$subTitle, _props$icon, _slots$icon, _props$extra, _slots$extra;
- var title = (_props$title = props5.title) !== null && _props$title !== void 0 ? _props$title : (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots);
- var subTitle = (_props$subTitle = props5.subTitle) !== null && _props$subTitle !== void 0 ? _props$subTitle : (_slots$subTitle = slots.subTitle) === null || _slots$subTitle === void 0 ? void 0 : _slots$subTitle.call(slots);
- var icon = (_props$icon = props5.icon) !== null && _props$icon !== void 0 ? _props$icon : (_slots$icon = slots.icon) === null || _slots$icon === void 0 ? void 0 : _slots$icon.call(slots);
- var extra = (_props$extra = props5.extra) !== null && _props$extra !== void 0 ? _props$extra : (_slots$extra = slots.extra) === null || _slots$extra === void 0 ? void 0 : _slots$extra.call(slots);
- var pre = prefixCls.value;
- return createVNode("div", {
- "class": className.value
- }, [renderIcon(pre, {
- status: props5.status,
- icon
- }), createVNode("div", {
- "class": "".concat(pre, "-title")
- }, [title]), subTitle && createVNode("div", {
- "class": "".concat(pre, "-subtitle")
- }, [subTitle]), renderExtra(pre, extra), slots.default && createVNode("div", {
- "class": "".concat(pre, "-content")
- }, [slots.default()])]);
- };
- }
- });
- Result.PRESENTED_IMAGE_403 = ExceptionMap[403];
- Result.PRESENTED_IMAGE_404 = ExceptionMap[404];
- Result.PRESENTED_IMAGE_500 = ExceptionMap[500];
- Result.install = function(app) {
- app.component(Result.name, Result);
- return app;
- };
- var result_default = Result;
- // node_modules/ant-design-vue/es/skeleton/Button.js
- var skeletonButtonProps = function skeletonButtonProps2() {
- return _objectSpread2(_objectSpread2({}, skeletonElementProps()), {}, {
- size: String,
- block: Boolean
- });
- };
- var SkeletonButton = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASkeletonButton",
- props: initDefaultProps_default(skeletonButtonProps(), {
- size: "default"
- }),
- setup: function setup165(props5) {
- var _useConfigInject = useConfigInject_default("skeleton", props5), prefixCls = _useConfigInject.prefixCls;
- var cls = computed(function() {
- var _classNames;
- return classNames_default(prefixCls.value, "".concat(prefixCls.value, "-element"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-active"), props5.active), _defineProperty(_classNames, "".concat(prefixCls.value, "-block"), props5.block), _classNames));
- });
- return function() {
- return createVNode("div", {
- "class": cls.value
- }, [createVNode(Element_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": "".concat(prefixCls.value, "-button")
- }), null)]);
- };
- }
- });
- var Button_default = SkeletonButton;
- // node_modules/ant-design-vue/es/skeleton/Input.js
- var SkeletonInput = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASkeletonInput",
- props: _objectSpread2(_objectSpread2({}, omit_default(skeletonElementProps(), ["shape"])), {}, {
- size: String
- }),
- setup: function setup166(props5) {
- var _useConfigInject = useConfigInject_default("skeleton", props5), prefixCls = _useConfigInject.prefixCls;
- var cls = computed(function() {
- return classNames_default(prefixCls.value, "".concat(prefixCls.value, "-element"), _defineProperty({}, "".concat(prefixCls.value, "-active"), props5.active));
- });
- return function() {
- return createVNode("div", {
- "class": cls.value
- }, [createVNode(Element_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": "".concat(prefixCls.value, "-input")
- }), null)]);
- };
- }
- });
- var Input_default3 = SkeletonInput;
- // node_modules/ant-design-vue/es/skeleton/Image.js
- var path = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";
- var SkeletonImage = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASkeletonImage",
- props: omit_default(skeletonElementProps(), ["size", "shape", "active"]),
- setup: function setup167(props5) {
- var _useConfigInject = useConfigInject_default("skeleton", props5), prefixCls = _useConfigInject.prefixCls;
- var cls = computed(function() {
- return classNames_default(prefixCls.value, "".concat(prefixCls.value, "-element"));
- });
- return function() {
- return createVNode("div", {
- "class": cls.value
- }, [createVNode("div", {
- "class": "".concat(prefixCls.value, "-image")
- }, [createVNode("svg", {
- "viewBox": "0 0 1098 1024",
- "xmlns": "http://www.w3.org/2000/svg",
- "class": "".concat(prefixCls.value, "-image-svg")
- }, [createVNode("path", {
- "d": path,
- "class": "".concat(prefixCls.value, "-image-path")
- }, null)])])]);
- };
- }
- });
- var Image_default2 = SkeletonImage;
- // node_modules/ant-design-vue/es/skeleton/Avatar.js
- var avatarProps3 = function avatarProps4() {
- return _objectSpread2(_objectSpread2({}, skeletonElementProps()), {}, {
- shape: String
- });
- };
- var SkeletonAvatar = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASkeletonAvatar",
- props: initDefaultProps_default(avatarProps3(), {
- size: "default",
- shape: "circle"
- }),
- setup: function setup168(props5) {
- var _useConfigInject = useConfigInject_default("skeleton", props5), prefixCls = _useConfigInject.prefixCls;
- var cls = computed(function() {
- return classNames_default(prefixCls.value, "".concat(prefixCls.value, "-element"), _defineProperty({}, "".concat(prefixCls.value, "-active"), props5.active));
- });
- return function() {
- return createVNode("div", {
- "class": cls.value
- }, [createVNode(Element_default, _objectSpread2(_objectSpread2({}, props5), {}, {
- "prefixCls": "".concat(prefixCls.value, "-avatar")
- }), null)]);
- };
- }
- });
- var Avatar_default2 = SkeletonAvatar;
- // node_modules/ant-design-vue/es/skeleton/index.js
- Skeleton_default.Button = Button_default;
- Skeleton_default.Avatar = Avatar_default2;
- Skeleton_default.Input = Input_default3;
- Skeleton_default.Image = Image_default2;
- Skeleton_default.Title = Title_default;
- Skeleton_default.install = function(app) {
- app.component(Skeleton_default.name, Skeleton_default);
- app.component(Skeleton_default.Button.name, Button_default);
- app.component(Skeleton_default.Avatar.name, Avatar_default2);
- app.component(Skeleton_default.Input.name, Input_default3);
- app.component(Skeleton_default.Image.name, Image_default2);
- app.component(Skeleton_default.Title.name, Title_default);
- return app;
- };
- var skeleton_default = Skeleton_default;
- // node_modules/ant-design-vue/es/vc-slider/src/common/Track.js
- var Track3 = function Track4(_2, _ref) {
- var _ref2, _ref3;
- var attrs = _ref.attrs;
- var included = attrs.included, vertical = attrs.vertical, style = attrs.style, className = attrs.class;
- var length = attrs.length, offset4 = attrs.offset, reverse = attrs.reverse;
- if (length < 0) {
- reverse = !reverse;
- length = Math.abs(length);
- offset4 = 100 - offset4;
- }
- var positonStyle = vertical ? (_ref2 = {}, _defineProperty(_ref2, reverse ? "top" : "bottom", "".concat(offset4, "%")), _defineProperty(_ref2, reverse ? "bottom" : "top", "auto"), _defineProperty(_ref2, "height", "".concat(length, "%")), _ref2) : (_ref3 = {}, _defineProperty(_ref3, reverse ? "right" : "left", "".concat(offset4, "%")), _defineProperty(_ref3, reverse ? "left" : "right", "auto"), _defineProperty(_ref3, "width", "".concat(length, "%")), _ref3);
- var elStyle = _objectSpread2(_objectSpread2({}, style), positonStyle);
- return included ? createVNode("div", {
- "class": className,
- "style": elStyle
- }, null) : null;
- };
- Track3.inheritAttrs = false;
- var Track_default = Track3;
- // node_modules/ant-design-vue/es/vc-slider/src/common/Steps.js
- var calcPoints = function calcPoints2(_vertical, marks, dots, step, min3, max3) {
- warning_default2(dots ? step > 0 : true, "Slider", "`Slider[step]` should be a positive number in order to make Slider[dots] work.");
- var points = Object.keys(marks).map(parseFloat).sort(function(a2, b2) {
- return a2 - b2;
- });
- if (dots && step) {
- for (var i3 = min3; i3 <= max3; i3 += step) {
- if (points.indexOf(i3) === -1) {
- points.push(i3);
- }
- }
- }
- return points;
- };
- var Steps = function Steps2(_2, _ref) {
- var attrs = _ref.attrs;
- var prefixCls = attrs.prefixCls, vertical = attrs.vertical, reverse = attrs.reverse, marks = attrs.marks, dots = attrs.dots, step = attrs.step, included = attrs.included, lowerBound = attrs.lowerBound, upperBound = attrs.upperBound, max3 = attrs.max, min3 = attrs.min, dotStyle = attrs.dotStyle, activeDotStyle = attrs.activeDotStyle;
- var range3 = max3 - min3;
- var elements = calcPoints(vertical, marks, dots, step, min3, max3).map(function(point) {
- var _classNames;
- var offset4 = "".concat(Math.abs(point - min3) / range3 * 100, "%");
- var isActived = !included && point === upperBound || included && point <= upperBound && point >= lowerBound;
- var style = vertical ? _objectSpread2(_objectSpread2({}, dotStyle), {}, _defineProperty({}, reverse ? "top" : "bottom", offset4)) : _objectSpread2(_objectSpread2({}, dotStyle), {}, _defineProperty({}, reverse ? "right" : "left", offset4));
- if (isActived) {
- style = _objectSpread2(_objectSpread2({}, style), activeDotStyle);
- }
- var pointClassName = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-dot"), true), _defineProperty(_classNames, "".concat(prefixCls, "-dot-active"), isActived), _defineProperty(_classNames, "".concat(prefixCls, "-dot-reverse"), reverse), _classNames));
- return createVNode("span", {
- "class": pointClassName,
- "style": style,
- "key": point
- }, null);
- });
- return createVNode("div", {
- "class": "".concat(prefixCls, "-step")
- }, [elements]);
- };
- Steps.inheritAttrs = false;
- var Steps_default2 = Steps;
- // node_modules/ant-design-vue/es/vc-slider/src/common/Marks.js
- var Marks = function Marks2(_2, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var className = attrs.class, vertical = attrs.vertical, reverse = attrs.reverse, marks = attrs.marks, included = attrs.included, upperBound = attrs.upperBound, lowerBound = attrs.lowerBound, max3 = attrs.max, min3 = attrs.min, onClickLabel = attrs.onClickLabel;
- var marksKeys = Object.keys(marks);
- var customMark = slots.mark;
- var range3 = max3 - min3;
- var elements = marksKeys.map(parseFloat).sort(function(a2, b2) {
- return a2 - b2;
- }).map(function(point) {
- var _classNames;
- var markPoint = typeof marks[point] === "function" ? marks[point]() : marks[point];
- var markPointIsObject = _typeof(markPoint) === "object" && !isValidElement(markPoint);
- var markLabel = markPointIsObject ? markPoint.label : markPoint;
- if (!markLabel && markLabel !== 0) {
- return null;
- }
- if (customMark) {
- markLabel = customMark({
- point,
- label: markLabel
- });
- }
- var isActive = !included && point === upperBound || included && point <= upperBound && point >= lowerBound;
- var markClassName = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(className, "-text"), true), _defineProperty(_classNames, "".concat(className, "-text-active"), isActive), _classNames));
- var bottomStyle = _defineProperty({
- marginBottom: "-50%"
- }, reverse ? "top" : "bottom", "".concat((point - min3) / range3 * 100, "%"));
- var leftStyle = _defineProperty({
- transform: "translateX(".concat(reverse ? "50%" : "-50%", ")"),
- msTransform: "translateX(".concat(reverse ? "50%" : "-50%", ")")
- }, reverse ? "right" : "left", "".concat((point - min3) / range3 * 100, "%"));
- var style = vertical ? bottomStyle : leftStyle;
- var markStyle = markPointIsObject ? _objectSpread2(_objectSpread2({}, style), markPoint.style) : style;
- var touchEvents = _defineProperty({}, supportsPassive_default ? "onTouchstartPassive" : "onTouchstart", function(e3) {
- return onClickLabel(e3, point);
- });
- return createVNode("span", _objectSpread2({
- "class": markClassName,
- "style": markStyle,
- "key": point,
- "onMousedown": function onMousedown2(e3) {
- return onClickLabel(e3, point);
- }
- }, touchEvents), [markLabel]);
- });
- return createVNode("div", {
- "class": className
- }, [elements]);
- };
- Marks.inheritAttrs = false;
- var Marks_default = Marks;
- // node_modules/ant-design-vue/es/vc-slider/src/Handle.js
- var Handle_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Handle",
- inheritAttrs: false,
- props: {
- prefixCls: String,
- vertical: {
- type: Boolean,
- default: void 0
- },
- offset: Number,
- disabled: {
- type: Boolean,
- default: void 0
- },
- min: Number,
- max: Number,
- value: Number,
- tabindex: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- reverse: {
- type: Boolean,
- default: void 0
- },
- ariaLabel: String,
- ariaLabelledBy: String,
- ariaValueTextFormatter: Function,
- onMouseenter: {
- type: Function
- },
- onMouseleave: {
- type: Function
- },
- onMousedown: {
- type: Function
- }
- },
- setup: function setup169(props5, _ref) {
- var attrs = _ref.attrs, emit = _ref.emit, expose = _ref.expose;
- var clickFocused = ref(false);
- var handle = ref();
- var handleMouseUp = function handleMouseUp2() {
- if (document.activeElement === handle.value) {
- clickFocused.value = true;
- }
- };
- var handleBlur = function handleBlur2(e3) {
- clickFocused.value = false;
- emit("blur", e3);
- };
- var handleKeyDown2 = function handleKeyDown3() {
- clickFocused.value = false;
- };
- var focus = function focus2() {
- var _handle$value;
- (_handle$value = handle.value) === null || _handle$value === void 0 ? void 0 : _handle$value.focus();
- };
- var blur = function blur2() {
- var _handle$value2;
- (_handle$value2 = handle.value) === null || _handle$value2 === void 0 ? void 0 : _handle$value2.blur();
- };
- var clickFocus = function clickFocus2() {
- clickFocused.value = true;
- focus();
- };
- var handleMousedown = function handleMousedown2(e3) {
- e3.preventDefault();
- focus();
- emit("mousedown", e3);
- };
- expose({
- focus,
- blur,
- clickFocus,
- ref: handle
- });
- var onMouseUpListener = null;
- onMounted(function() {
- onMouseUpListener = addEventListenerWrap(document, "mouseup", handleMouseUp);
- });
- onBeforeUnmount(function() {
- var _onMouseUpListener;
- (_onMouseUpListener = onMouseUpListener) === null || _onMouseUpListener === void 0 ? void 0 : _onMouseUpListener.remove();
- });
- var positionStyle = computed(function() {
- var _ref2, _ref3;
- var vertical = props5.vertical, offset4 = props5.offset, reverse = props5.reverse;
- return vertical ? (_ref2 = {}, _defineProperty(_ref2, reverse ? "top" : "bottom", "".concat(offset4, "%")), _defineProperty(_ref2, reverse ? "bottom" : "top", "auto"), _defineProperty(_ref2, "transform", reverse ? null : "translateY(+50%)"), _ref2) : (_ref3 = {}, _defineProperty(_ref3, reverse ? "right" : "left", "".concat(offset4, "%")), _defineProperty(_ref3, reverse ? "left" : "right", "auto"), _defineProperty(_ref3, "transform", "translateX(".concat(reverse ? "+" : "-", "50%)")), _ref3);
- });
- return function() {
- var prefixCls = props5.prefixCls, disabled = props5.disabled, min3 = props5.min, max3 = props5.max, value = props5.value, tabindex = props5.tabindex, ariaLabel = props5.ariaLabel, ariaLabelledBy = props5.ariaLabelledBy, ariaValueTextFormatter = props5.ariaValueTextFormatter, onMouseenter2 = props5.onMouseenter, onMouseleave2 = props5.onMouseleave;
- var className = classNames_default(attrs.class, _defineProperty({}, "".concat(prefixCls, "-handle-click-focused"), clickFocused.value));
- var ariaProps = {
- "aria-valuemin": min3,
- "aria-valuemax": max3,
- "aria-valuenow": value,
- "aria-disabled": !!disabled
- };
- var elStyle = [attrs.style, positionStyle.value];
- var mergedTabIndex = tabindex || 0;
- if (disabled || tabindex === null) {
- mergedTabIndex = null;
- }
- var ariaValueText;
- if (ariaValueTextFormatter) {
- ariaValueText = ariaValueTextFormatter(value);
- }
- var handleProps = _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), {}, {
- role: "slider",
- tabindex: mergedTabIndex
- }, ariaProps), {}, {
- class: className,
- onBlur: handleBlur,
- onKeydown: handleKeyDown2,
- onMousedown: handleMousedown,
- onMouseenter: onMouseenter2,
- onMouseleave: onMouseleave2,
- ref: handle,
- style: elStyle
- });
- return createVNode("div", _objectSpread2(_objectSpread2({}, handleProps), {}, {
- "aria-label": ariaLabel,
- "aria-labelledby": ariaLabelledBy,
- "aria-valuetext": ariaValueText
- }), null);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-slider/src/utils.js
- function isEventFromHandle(e3, handles) {
- try {
- return Object.keys(handles).some(function(key2) {
- return e3.target === handles[key2].ref;
- });
- } catch (error) {
- return false;
- }
- }
- function isValueOutOfRange(value, _ref) {
- var min3 = _ref.min, max3 = _ref.max;
- return value < min3 || value > max3;
- }
- function isNotTouchEvent(e3) {
- return e3.touches.length > 1 || e3.type.toLowerCase() === "touchend" && e3.touches.length > 0;
- }
- function getClosestPoint(val, _ref2) {
- var marks = _ref2.marks, step = _ref2.step, min3 = _ref2.min, max3 = _ref2.max;
- var points = Object.keys(marks).map(parseFloat);
- if (step !== null) {
- var baseNum = Math.pow(10, getPrecision(step));
- var maxSteps = Math.floor((max3 * baseNum - min3 * baseNum) / (step * baseNum));
- var steps = Math.min((val - min3) / step, maxSteps);
- var closestStep = Math.round(steps) * step + min3;
- points.push(closestStep);
- }
- var diffs = points.map(function(point) {
- return Math.abs(val - point);
- });
- return points[diffs.indexOf(Math.min.apply(Math, _toConsumableArray(diffs)))];
- }
- function getPrecision(step) {
- var stepString = step.toString();
- var precision = 0;
- if (stepString.indexOf(".") >= 0) {
- precision = stepString.length - stepString.indexOf(".") - 1;
- }
- return precision;
- }
- function getMousePosition(vertical, e3) {
- var zoom = 1;
- if (window.visualViewport) {
- zoom = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2);
- }
- return (vertical ? e3.clientY : e3.pageX) / zoom;
- }
- function getTouchPosition(vertical, e3) {
- var zoom = 1;
- if (window.visualViewport) {
- zoom = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2);
- }
- return (vertical ? e3.touches[0].clientY : e3.touches[0].pageX) / zoom;
- }
- function getHandleCenterPosition(vertical, handle) {
- var coords = handle.getBoundingClientRect();
- return vertical ? coords.top + coords.height * 0.5 : window.pageXOffset + coords.left + coords.width * 0.5;
- }
- function ensureValueInRange(val, _ref3) {
- var max3 = _ref3.max, min3 = _ref3.min;
- if (val <= min3) {
- return min3;
- }
- if (val >= max3) {
- return max3;
- }
- return val;
- }
- function ensureValuePrecision(val, props5) {
- var step = props5.step;
- var closestPoint = isFinite(getClosestPoint(val, props5)) ? getClosestPoint(val, props5) : 0;
- return step === null ? closestPoint : parseFloat(closestPoint.toFixed(getPrecision(step)));
- }
- function pauseEvent(e3) {
- e3.stopPropagation();
- e3.preventDefault();
- }
- function calculateNextValue(func, value, props5) {
- var operations = {
- increase: function increase(a2, b2) {
- return a2 + b2;
- },
- decrease: function decrease(a2, b2) {
- return a2 - b2;
- }
- };
- var indexToGet = operations[func](Object.keys(props5.marks).indexOf(JSON.stringify(value)), 1);
- var keyToGet = Object.keys(props5.marks)[indexToGet];
- if (props5.step) {
- return operations[func](value, props5.step);
- }
- if (!!Object.keys(props5.marks).length && !!props5.marks[keyToGet]) {
- return props5.marks[keyToGet];
- }
- return value;
- }
- function getKeyboardValueMutator(e3, vertical, reverse) {
- var increase = "increase";
- var decrease = "decrease";
- var method4 = increase;
- switch (e3.keyCode) {
- case KeyCode_default.UP:
- method4 = vertical && reverse ? decrease : increase;
- break;
- case KeyCode_default.RIGHT:
- method4 = !vertical && reverse ? decrease : increase;
- break;
- case KeyCode_default.DOWN:
- method4 = vertical && reverse ? increase : decrease;
- break;
- case KeyCode_default.LEFT:
- method4 = !vertical && reverse ? increase : decrease;
- break;
- case KeyCode_default.END:
- return function(_value, props5) {
- return props5.max;
- };
- case KeyCode_default.HOME:
- return function(_value, props5) {
- return props5.min;
- };
- case KeyCode_default.PAGE_UP:
- return function(value, props5) {
- return value + props5.step * 2;
- };
- case KeyCode_default.PAGE_DOWN:
- return function(value, props5) {
- return value - props5.step * 2;
- };
- default:
- return void 0;
- }
- return function(value, props5) {
- return calculateNextValue(method4, value, props5);
- };
- }
- // node_modules/ant-design-vue/es/vc-slider/src/common/createSlider.js
- var _excluded52 = ["index", "directives", "className", "style"];
- function noop9() {
- }
- function createSlider(Component) {
- var propTypes2 = {
- id: String,
- min: Number,
- max: Number,
- step: Number,
- marks: vue_types_default.object,
- included: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- disabled: {
- type: Boolean,
- default: void 0
- },
- handle: Function,
- dots: {
- type: Boolean,
- default: void 0
- },
- vertical: {
- type: Boolean,
- default: void 0
- },
- reverse: {
- type: Boolean,
- default: void 0
- },
- minimumTrackStyle: vue_types_default.object,
- maximumTrackStyle: vue_types_default.object,
- handleStyle: vue_types_default.oneOfType([vue_types_default.object, vue_types_default.arrayOf(vue_types_default.object)]),
- trackStyle: vue_types_default.oneOfType([vue_types_default.object, vue_types_default.arrayOf(vue_types_default.object)]),
- railStyle: vue_types_default.object,
- dotStyle: vue_types_default.object,
- activeDotStyle: vue_types_default.object,
- autofocus: {
- type: Boolean,
- default: void 0
- },
- draggableTrack: {
- type: Boolean,
- default: void 0
- }
- };
- return defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "CreateSlider",
- mixins: [BaseMixin_default, Component],
- inheritAttrs: false,
- slots: ["mark"],
- props: initDefaultProps_default(propTypes2, {
- prefixCls: "rc-slider",
- min: 0,
- max: 100,
- step: 1,
- marks: {},
- included: true,
- disabled: false,
- dots: false,
- vertical: false,
- reverse: false,
- trackStyle: [{}],
- handleStyle: [{}],
- railStyle: {},
- dotStyle: {},
- activeDotStyle: {}
- }),
- emits: ["change", "blur", "focus"],
- data: function data8() {
- var step = this.step, max3 = this.max, min3 = this.min;
- var isPointDiffEven = isFinite(max3 - min3) ? (max3 - min3) % step === 0 : true;
- warning_default2(step && Math.floor(step) === step ? isPointDiffEven : true, "Slider[max] - Slider[min] (".concat(max3 - min3, ") should be a multiple of Slider[step] (").concat(step, ")"));
- this.handlesRefs = {};
- return {};
- },
- mounted: function mounted6() {
- var _this = this;
- this.$nextTick(function() {
- _this.document = _this.sliderRef && _this.sliderRef.ownerDocument;
- var autofocus = _this.autofocus, disabled = _this.disabled;
- if (autofocus && !disabled) {
- _this.focus();
- }
- });
- },
- beforeUnmount: function beforeUnmount6() {
- var _this2 = this;
- this.$nextTick(function() {
- _this2.removeDocumentEvents();
- });
- },
- methods: {
- defaultHandle: function defaultHandle(_ref) {
- var index3 = _ref.index, directives = _ref.directives, className = _ref.className, style = _ref.style, restProps = _objectWithoutProperties(_ref, _excluded52);
- delete restProps.dragging;
- if (restProps.value === null) {
- return null;
- }
- var handleProps = _objectSpread2(_objectSpread2({}, restProps), {}, {
- class: className,
- style,
- key: index3
- });
- return createVNode(Handle_default, handleProps, null);
- },
- onDown: function onDown(e3, position) {
- var p = position;
- var _this$$props = this.$props, draggableTrack = _this$$props.draggableTrack, isVertical = _this$$props.vertical;
- var bounds = this.$data.bounds;
- var value = draggableTrack && this.positionGetValue ? this.positionGetValue(p) || [] : [];
- var inPoint = isEventFromHandle(e3, this.handlesRefs);
- this.dragTrack = draggableTrack && bounds.length >= 2 && !inPoint && !value.map(function(n3, i3) {
- var v2 = !i3 ? n3 >= bounds[i3] : true;
- return i3 === value.length - 1 ? n3 <= bounds[i3] : v2;
- }).some(function(c2) {
- return !c2;
- });
- if (this.dragTrack) {
- this.dragOffset = p;
- this.startBounds = _toConsumableArray(bounds);
- } else {
- if (!inPoint) {
- this.dragOffset = 0;
- } else {
- var handlePosition = getHandleCenterPosition(isVertical, e3.target);
- this.dragOffset = p - handlePosition;
- p = handlePosition;
- }
- this.onStart(p);
- }
- },
- onMouseDown: function onMouseDown2(e3) {
- if (e3.button !== 0) {
- return;
- }
- this.removeDocumentEvents();
- var isVertical = this.$props.vertical;
- var position = getMousePosition(isVertical, e3);
- this.onDown(e3, position);
- this.addDocumentMouseEvents();
- },
- onTouchStart: function onTouchStart(e3) {
- if (isNotTouchEvent(e3))
- return;
- var isVertical = this.vertical;
- var position = getTouchPosition(isVertical, e3);
- this.onDown(e3, position);
- this.addDocumentTouchEvents();
- pauseEvent(e3);
- },
- onFocus: function onFocus2(e3) {
- var vertical = this.vertical;
- if (isEventFromHandle(e3, this.handlesRefs) && !this.dragTrack) {
- var handlePosition = getHandleCenterPosition(vertical, e3.target);
- this.dragOffset = 0;
- this.onStart(handlePosition);
- pauseEvent(e3);
- this.$emit("focus", e3);
- }
- },
- onBlur: function onBlur2(e3) {
- if (!this.dragTrack) {
- this.onEnd();
- }
- this.$emit("blur", e3);
- },
- onMouseUp: function onMouseUp2() {
- if (this.handlesRefs[this.prevMovedHandleIndex]) {
- this.handlesRefs[this.prevMovedHandleIndex].clickFocus();
- }
- },
- onMouseMove: function onMouseMove3(e3) {
- if (!this.sliderRef) {
- this.onEnd();
- return;
- }
- var position = getMousePosition(this.vertical, e3);
- this.onMove(e3, position - this.dragOffset, this.dragTrack, this.startBounds);
- },
- onTouchMove: function onTouchMove(e3) {
- if (isNotTouchEvent(e3) || !this.sliderRef) {
- this.onEnd();
- return;
- }
- var position = getTouchPosition(this.vertical, e3);
- this.onMove(e3, position - this.dragOffset, this.dragTrack, this.startBounds);
- },
- onKeyDown: function onKeyDown(e3) {
- if (this.sliderRef && isEventFromHandle(e3, this.handlesRefs)) {
- this.onKeyboard(e3);
- }
- },
- onClickMarkLabel: function onClickMarkLabel(e3, value) {
- var _this3 = this;
- e3.stopPropagation();
- this.onChange({
- sValue: value
- });
- this.setState({
- sValue: value
- }, function() {
- return _this3.onEnd(true);
- });
- },
- getSliderStart: function getSliderStart() {
- var slider = this.sliderRef;
- var vertical = this.vertical, reverse = this.reverse;
- var rect = slider.getBoundingClientRect();
- if (vertical) {
- return reverse ? rect.bottom : rect.top;
- }
- return window.pageXOffset + (reverse ? rect.right : rect.left);
- },
- getSliderLength: function getSliderLength() {
- var slider = this.sliderRef;
- if (!slider) {
- return 0;
- }
- var coords = slider.getBoundingClientRect();
- return this.vertical ? coords.height : coords.width;
- },
- addDocumentTouchEvents: function addDocumentTouchEvents() {
- this.onTouchMoveListener = addEventListenerWrap(this.document, "touchmove", this.onTouchMove);
- this.onTouchUpListener = addEventListenerWrap(this.document, "touchend", this.onEnd);
- },
- addDocumentMouseEvents: function addDocumentMouseEvents() {
- this.onMouseMoveListener = addEventListenerWrap(this.document, "mousemove", this.onMouseMove);
- this.onMouseUpListener = addEventListenerWrap(this.document, "mouseup", this.onEnd);
- },
- removeDocumentEvents: function removeDocumentEvents() {
- this.onTouchMoveListener && this.onTouchMoveListener.remove();
- this.onTouchUpListener && this.onTouchUpListener.remove();
- this.onMouseMoveListener && this.onMouseMoveListener.remove();
- this.onMouseUpListener && this.onMouseUpListener.remove();
- },
- focus: function focus() {
- var _this$handlesRefs$;
- if (this.$props.disabled) {
- return;
- }
- (_this$handlesRefs$ = this.handlesRefs[0]) === null || _this$handlesRefs$ === void 0 ? void 0 : _this$handlesRefs$.focus();
- },
- blur: function blur() {
- var _this4 = this;
- if (this.$props.disabled) {
- return;
- }
- Object.keys(this.handlesRefs).forEach(function(key2) {
- var _this4$handlesRefs$ke, _this4$handlesRefs$ke2;
- (_this4$handlesRefs$ke = _this4.handlesRefs[key2]) === null || _this4$handlesRefs$ke === void 0 ? void 0 : (_this4$handlesRefs$ke2 = _this4$handlesRefs$ke.blur) === null || _this4$handlesRefs$ke2 === void 0 ? void 0 : _this4$handlesRefs$ke2.call(_this4$handlesRefs$ke);
- });
- },
- calcValue: function calcValue(offset4) {
- var vertical = this.vertical, min3 = this.min, max3 = this.max;
- var ratio = Math.abs(Math.max(offset4, 0) / this.getSliderLength());
- var value = vertical ? (1 - ratio) * (max3 - min3) + min3 : ratio * (max3 - min3) + min3;
- return value;
- },
- calcValueByPos: function calcValueByPos(position) {
- var sign = this.reverse ? -1 : 1;
- var pixelOffset = sign * (position - this.getSliderStart());
- var nextValue = this.trimAlignValue(this.calcValue(pixelOffset));
- return nextValue;
- },
- calcOffset: function calcOffset(value) {
- var min3 = this.min, max3 = this.max;
- var ratio = (value - min3) / (max3 - min3);
- return Math.max(0, ratio * 100);
- },
- saveSlider: function saveSlider(slider) {
- this.sliderRef = slider;
- },
- saveHandle: function saveHandle(index3, handle) {
- this.handlesRefs[index3] = handle;
- }
- },
- render: function render12() {
- var _classNames;
- var prefixCls = this.prefixCls, marks = this.marks, dots = this.dots, step = this.step, included = this.included, disabled = this.disabled, vertical = this.vertical, reverse = this.reverse, min3 = this.min, max3 = this.max, maximumTrackStyle = this.maximumTrackStyle, railStyle = this.railStyle, dotStyle = this.dotStyle, activeDotStyle = this.activeDotStyle, id = this.id;
- var _this$$attrs = this.$attrs, className = _this$$attrs.class, style = _this$$attrs.style;
- var _this$renderSlider = this.renderSlider(), tracks = _this$renderSlider.tracks, handles = _this$renderSlider.handles;
- var sliderClassName = classNames_default(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-with-marks"), Object.keys(marks).length), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-vertical"), vertical), _classNames));
- var markProps = {
- vertical,
- marks,
- included,
- lowerBound: this.getLowerBound(),
- upperBound: this.getUpperBound(),
- max: max3,
- min: min3,
- reverse,
- class: "".concat(prefixCls, "-mark"),
- onClickLabel: disabled ? noop9 : this.onClickMarkLabel
- };
- var touchEvents = _defineProperty({}, supportsPassive_default ? "onTouchstartPassive" : "onTouchstart", disabled ? noop9 : this.onTouchStart);
- return createVNode("div", _objectSpread2(_objectSpread2({
- "id": id,
- "ref": this.saveSlider,
- "tabindex": "-1",
- "class": sliderClassName
- }, touchEvents), {}, {
- "onMousedown": disabled ? noop9 : this.onMouseDown,
- "onMouseup": disabled ? noop9 : this.onMouseUp,
- "onKeydown": disabled ? noop9 : this.onKeyDown,
- "onFocus": disabled ? noop9 : this.onFocus,
- "onBlur": disabled ? noop9 : this.onBlur,
- "style": style
- }), [createVNode("div", {
- "class": "".concat(prefixCls, "-rail"),
- "style": _objectSpread2(_objectSpread2({}, maximumTrackStyle), railStyle)
- }, null), tracks, createVNode(Steps_default2, {
- "prefixCls": prefixCls,
- "vertical": vertical,
- "reverse": reverse,
- "marks": marks,
- "dots": dots,
- "step": step,
- "included": included,
- "lowerBound": this.getLowerBound(),
- "upperBound": this.getUpperBound(),
- "max": max3,
- "min": min3,
- "dotStyle": dotStyle,
- "activeDotStyle": activeDotStyle
- }, null), handles, createVNode(Marks_default, markProps, {
- mark: this.$slots.mark
- }), getSlot(this)]);
- }
- });
- }
- // node_modules/ant-design-vue/es/vc-slider/src/Slider.js
- var Slider = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Slider",
- mixins: [BaseMixin_default],
- inheritAttrs: false,
- props: {
- defaultValue: Number,
- value: Number,
- disabled: {
- type: Boolean,
- default: void 0
- },
- autofocus: {
- type: Boolean,
- default: void 0
- },
- tabindex: vue_types_default.oneOfType([vue_types_default.number, vue_types_default.string]),
- reverse: {
- type: Boolean,
- default: void 0
- },
- min: Number,
- max: Number,
- ariaLabelForHandle: String,
- ariaLabelledByForHandle: String,
- ariaValueTextFormatterForHandle: String,
- startPoint: Number
- },
- emits: ["beforeChange", "afterChange", "change"],
- data: function data6() {
- var defaultValue = this.defaultValue !== void 0 ? this.defaultValue : this.min;
- var value = this.value !== void 0 ? this.value : defaultValue;
- return {
- sValue: this.trimAlignValue(value),
- dragging: false
- };
- },
- watch: {
- value: {
- handler: function handler3(val) {
- this.setChangeValue(val);
- },
- deep: true
- },
- min: function min() {
- var sValue = this.sValue;
- this.setChangeValue(sValue);
- },
- max: function max() {
- var sValue = this.sValue;
- this.setChangeValue(sValue);
- }
- },
- methods: {
- setChangeValue: function setChangeValue(value) {
- var newValue = value !== void 0 ? value : this.sValue;
- var nextValue = this.trimAlignValue(newValue, this.$props);
- if (nextValue === this.sValue)
- return;
- this.setState({
- sValue: nextValue
- });
- if (isValueOutOfRange(newValue, this.$props)) {
- this.$emit("change", nextValue);
- }
- },
- onChange: function onChange(state) {
- var isNotControlled = !hasProp(this, "value");
- var nextState = state.sValue > this.max ? _objectSpread2(_objectSpread2({}, state), {}, {
- sValue: this.max
- }) : state;
- if (isNotControlled) {
- this.setState(nextState);
- }
- var changedValue = nextState.sValue;
- this.$emit("change", changedValue);
- },
- onStart: function onStart(position) {
- this.setState({
- dragging: true
- });
- var sValue = this.sValue;
- this.$emit("beforeChange", sValue);
- var value = this.calcValueByPos(position);
- this.startValue = value;
- this.startPosition = position;
- if (value === sValue)
- return;
- this.prevMovedHandleIndex = 0;
- this.onChange({
- sValue: value
- });
- },
- onEnd: function onEnd(force) {
- var dragging = this.dragging;
- this.removeDocumentEvents();
- if (dragging || force) {
- this.$emit("afterChange", this.sValue);
- }
- this.setState({
- dragging: false
- });
- },
- onMove: function onMove(e3, position) {
- pauseEvent(e3);
- var sValue = this.sValue;
- var value = this.calcValueByPos(position);
- if (value === sValue)
- return;
- this.onChange({
- sValue: value
- });
- },
- onKeyboard: function onKeyboard(e3) {
- var _this$$props = this.$props, reverse = _this$$props.reverse, vertical = _this$$props.vertical;
- var valueMutator = getKeyboardValueMutator(e3, vertical, reverse);
- if (valueMutator) {
- pauseEvent(e3);
- var sValue = this.sValue;
- var mutatedValue = valueMutator(sValue, this.$props);
- var value = this.trimAlignValue(mutatedValue);
- if (value === sValue)
- return;
- this.onChange({
- sValue: value
- });
- this.$emit("afterChange", value);
- this.onEnd();
- }
- },
- getLowerBound: function getLowerBound() {
- var minPoint = this.$props.startPoint || this.$props.min;
- return this.$data.sValue > minPoint ? minPoint : this.$data.sValue;
- },
- getUpperBound: function getUpperBound() {
- if (this.$data.sValue < this.$props.startPoint) {
- return this.$props.startPoint;
- }
- return this.$data.sValue;
- },
- trimAlignValue: function trimAlignValue(v2) {
- var nextProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (v2 === null) {
- return null;
- }
- var mergedProps = _objectSpread2(_objectSpread2({}, this.$props), nextProps);
- var val = ensureValueInRange(v2, mergedProps);
- return ensureValuePrecision(val, mergedProps);
- },
- getTrack: function getTrack(_ref) {
- var prefixCls = _ref.prefixCls, reverse = _ref.reverse, vertical = _ref.vertical, included = _ref.included, minimumTrackStyle = _ref.minimumTrackStyle, mergedTrackStyle = _ref.mergedTrackStyle, length = _ref.length, offset4 = _ref.offset;
- return createVNode(Track_default, {
- "class": "".concat(prefixCls, "-track"),
- "vertical": vertical,
- "included": included,
- "offset": offset4,
- "reverse": reverse,
- "length": length,
- "style": _objectSpread2(_objectSpread2({}, minimumTrackStyle), mergedTrackStyle)
- }, null);
- },
- renderSlider: function renderSlider() {
- var _this = this;
- var prefixCls = this.prefixCls, vertical = this.vertical, included = this.included, disabled = this.disabled, minimumTrackStyle = this.minimumTrackStyle, trackStyle = this.trackStyle, handleStyle = this.handleStyle, tabindex = this.tabindex, ariaLabelForHandle = this.ariaLabelForHandle, ariaLabelledByForHandle = this.ariaLabelledByForHandle, ariaValueTextFormatterForHandle = this.ariaValueTextFormatterForHandle, min3 = this.min, max3 = this.max, startPoint = this.startPoint, reverse = this.reverse, handle = this.handle, defaultHandle = this.defaultHandle;
- var handleGenerator = handle || defaultHandle;
- var sValue = this.sValue, dragging = this.dragging;
- var offset4 = this.calcOffset(sValue);
- var handles = handleGenerator({
- class: "".concat(prefixCls, "-handle"),
- prefixCls,
- vertical,
- offset: offset4,
- value: sValue,
- dragging,
- disabled,
- min: min3,
- max: max3,
- reverse,
- index: 0,
- tabindex,
- ariaLabel: ariaLabelForHandle,
- ariaLabelledBy: ariaLabelledByForHandle,
- ariaValueTextFormatter: ariaValueTextFormatterForHandle,
- style: handleStyle[0] || handleStyle,
- ref: function ref2(h3) {
- return _this.saveHandle(0, h3);
- },
- onFocus: this.onFocus,
- onBlur: this.onBlur
- });
- var trackOffset = startPoint !== void 0 ? this.calcOffset(startPoint) : 0;
- var mergedTrackStyle = trackStyle[0] || trackStyle;
- return {
- tracks: this.getTrack({
- prefixCls,
- reverse,
- vertical,
- included,
- offset: trackOffset,
- minimumTrackStyle,
- mergedTrackStyle,
- length: offset4 - trackOffset
- }),
- handles
- };
- }
- }
- });
- var Slider_default = createSlider(Slider);
- // node_modules/ant-design-vue/es/vc-slider/src/Range.js
- var _trimAlignValue = function trimAlignValue2(_ref) {
- var value = _ref.value, handle = _ref.handle, bounds = _ref.bounds, props5 = _ref.props;
- var allowCross = props5.allowCross, pushable = props5.pushable;
- var thershold = Number(pushable);
- var valInRange = ensureValueInRange(value, props5);
- var valNotConflict = valInRange;
- if (!allowCross && handle != null && bounds !== void 0) {
- if (handle > 0 && valInRange <= bounds[handle - 1] + thershold) {
- valNotConflict = bounds[handle - 1] + thershold;
- }
- if (handle < bounds.length - 1 && valInRange >= bounds[handle + 1] - thershold) {
- valNotConflict = bounds[handle + 1] - thershold;
- }
- }
- return ensureValuePrecision(valNotConflict, props5);
- };
- var rangeProps = {
- defaultValue: vue_types_default.arrayOf(vue_types_default.number),
- value: vue_types_default.arrayOf(vue_types_default.number),
- count: Number,
- pushable: withUndefined(vue_types_default.oneOfType([vue_types_default.looseBool, vue_types_default.number])),
- allowCross: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- reverse: {
- type: Boolean,
- default: void 0
- },
- tabindex: vue_types_default.arrayOf(vue_types_default.number),
- prefixCls: String,
- min: Number,
- max: Number,
- autofocus: {
- type: Boolean,
- default: void 0
- },
- ariaLabelGroupForHandles: Array,
- ariaLabelledByGroupForHandles: Array,
- ariaValueTextFormatterGroupForHandles: Array,
- draggableTrack: {
- type: Boolean,
- default: void 0
- }
- };
- var Range = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Range",
- mixins: [BaseMixin_default],
- inheritAttrs: false,
- props: initDefaultProps_default(rangeProps, {
- count: 1,
- allowCross: true,
- pushable: false,
- tabindex: [],
- draggableTrack: false,
- ariaLabelGroupForHandles: [],
- ariaLabelledByGroupForHandles: [],
- ariaValueTextFormatterGroupForHandles: []
- }),
- emits: ["beforeChange", "afterChange", "change"],
- displayName: "Range",
- data: function data7() {
- var _this = this;
- var count = this.count, min3 = this.min, max3 = this.max;
- var initialValue = Array.apply(void 0, _toConsumableArray(Array(count + 1))).map(function() {
- return min3;
- });
- var defaultValue = hasProp(this, "defaultValue") ? this.defaultValue : initialValue;
- var value = this.value;
- if (value === void 0) {
- value = defaultValue;
- }
- var bounds = value.map(function(v2, i3) {
- return _trimAlignValue({
- value: v2,
- handle: i3,
- props: _this.$props
- });
- });
- var recent = bounds[0] === max3 ? 0 : bounds.length - 1;
- return {
- sHandle: null,
- recent,
- bounds
- };
- },
- watch: {
- value: {
- handler: function handler4(val) {
- var bounds = this.bounds;
- this.setChangeValue(val || bounds);
- },
- deep: true
- },
- min: function min2() {
- var value = this.value;
- this.setChangeValue(value || this.bounds);
- },
- max: function max2() {
- var value = this.value;
- this.setChangeValue(value || this.bounds);
- }
- },
- methods: {
- setChangeValue: function setChangeValue2(value) {
- var _this2 = this;
- var bounds = this.bounds;
- var nextBounds = value.map(function(v2, i3) {
- return _trimAlignValue({
- value: v2,
- handle: i3,
- bounds,
- props: _this2.$props
- });
- });
- if (bounds.length === nextBounds.length) {
- if (nextBounds.every(function(v2, i3) {
- return v2 === bounds[i3];
- })) {
- return null;
- }
- } else {
- nextBounds = value.map(function(v2, i3) {
- return _trimAlignValue({
- value: v2,
- handle: i3,
- props: _this2.$props
- });
- });
- }
- this.setState({
- bounds: nextBounds
- });
- if (value.some(function(v2) {
- return isValueOutOfRange(v2, _this2.$props);
- })) {
- var newValues = value.map(function(v2) {
- return ensureValueInRange(v2, _this2.$props);
- });
- this.$emit("change", newValues);
- }
- },
- onChange: function onChange2(state) {
- var isNotControlled = !hasProp(this, "value");
- if (isNotControlled) {
- this.setState(state);
- } else {
- var controlledState = {};
- ["sHandle", "recent"].forEach(function(item) {
- if (state[item] !== void 0) {
- controlledState[item] = state[item];
- }
- });
- if (Object.keys(controlledState).length) {
- this.setState(controlledState);
- }
- }
- var data8 = _objectSpread2(_objectSpread2({}, this.$data), state);
- var changedValue = data8.bounds;
- this.$emit("change", changedValue);
- },
- positionGetValue: function positionGetValue(position) {
- var bounds = this.getValue();
- var value = this.calcValueByPos(position);
- var closestBound = this.getClosestBound(value);
- var index3 = this.getBoundNeedMoving(value, closestBound);
- var prevValue = bounds[index3];
- if (value === prevValue)
- return null;
- var nextBounds = _toConsumableArray(bounds);
- nextBounds[index3] = value;
- return nextBounds;
- },
- onStart: function onStart2(position) {
- var bounds = this.bounds;
- this.$emit("beforeChange", bounds);
- var value = this.calcValueByPos(position);
- this.startValue = value;
- this.startPosition = position;
- var closestBound = this.getClosestBound(value);
- this.prevMovedHandleIndex = this.getBoundNeedMoving(value, closestBound);
- this.setState({
- sHandle: this.prevMovedHandleIndex,
- recent: this.prevMovedHandleIndex
- });
- var prevValue = bounds[this.prevMovedHandleIndex];
- if (value === prevValue)
- return;
- var nextBounds = _toConsumableArray(bounds);
- nextBounds[this.prevMovedHandleIndex] = value;
- this.onChange({
- bounds: nextBounds
- });
- },
- onEnd: function onEnd2(force) {
- var sHandle = this.sHandle;
- this.removeDocumentEvents();
- if (!sHandle) {
- this.dragTrack = false;
- }
- if (sHandle !== null || force) {
- this.$emit("afterChange", this.bounds);
- }
- this.setState({
- sHandle: null
- });
- },
- onMove: function onMove2(e3, position, dragTrack, startBounds) {
- pauseEvent(e3);
- var state = this.$data, props5 = this.$props;
- var maxValue = props5.max || 100;
- var minValue = props5.min || 0;
- if (dragTrack) {
- var pos = props5.vertical ? -position : position;
- pos = props5.reverse ? -pos : pos;
- var max3 = maxValue - Math.max.apply(Math, _toConsumableArray(startBounds));
- var min3 = minValue - Math.min.apply(Math, _toConsumableArray(startBounds));
- var ratio = Math.min(Math.max(pos / (this.getSliderLength() / 100), min3), max3);
- var nextBounds = startBounds.map(function(v2) {
- return Math.floor(Math.max(Math.min(v2 + ratio, maxValue), minValue));
- });
- if (state.bounds.map(function(c2, i3) {
- return c2 === nextBounds[i3];
- }).some(function(c2) {
- return !c2;
- })) {
- this.onChange({
- bounds: nextBounds
- });
- }
- return;
- }
- var bounds = this.bounds, sHandle = this.sHandle;
- var value = this.calcValueByPos(position);
- var oldValue = bounds[sHandle];
- if (value === oldValue)
- return;
- this.moveTo(value);
- },
- onKeyboard: function onKeyboard2(e3) {
- var _this$$props = this.$props, reverse = _this$$props.reverse, vertical = _this$$props.vertical;
- var valueMutator = getKeyboardValueMutator(e3, vertical, reverse);
- if (valueMutator) {
- pauseEvent(e3);
- var bounds = this.bounds, sHandle = this.sHandle;
- var oldValue = bounds[sHandle === null ? this.recent : sHandle];
- var mutatedValue = valueMutator(oldValue, this.$props);
- var value = _trimAlignValue({
- value: mutatedValue,
- handle: sHandle,
- bounds,
- props: this.$props
- });
- if (value === oldValue)
- return;
- var isFromKeyboardEvent = true;
- this.moveTo(value, isFromKeyboardEvent);
- }
- },
- getClosestBound: function getClosestBound(value) {
- var bounds = this.bounds;
- var closestBound = 0;
- for (var i3 = 1; i3 < bounds.length - 1; i3 += 1) {
- if (value >= bounds[i3]) {
- closestBound = i3;
- }
- }
- if (Math.abs(bounds[closestBound + 1] - value) < Math.abs(bounds[closestBound] - value)) {
- closestBound += 1;
- }
- return closestBound;
- },
- getBoundNeedMoving: function getBoundNeedMoving(value, closestBound) {
- var bounds = this.bounds, recent = this.recent;
- var boundNeedMoving = closestBound;
- var isAtTheSamePoint = bounds[closestBound + 1] === bounds[closestBound];
- if (isAtTheSamePoint && bounds[recent] === bounds[closestBound]) {
- boundNeedMoving = recent;
- }
- if (isAtTheSamePoint && value !== bounds[closestBound + 1]) {
- boundNeedMoving = value < bounds[closestBound + 1] ? closestBound : closestBound + 1;
- }
- return boundNeedMoving;
- },
- getLowerBound: function getLowerBound2() {
- return this.bounds[0];
- },
- getUpperBound: function getUpperBound2() {
- var bounds = this.bounds;
- return bounds[bounds.length - 1];
- },
- /**
- * Returns an array of possible slider points, taking into account both
- * `marks` and `step`. The result is cached.
- */
- getPoints: function getPoints() {
- var marks = this.marks, step = this.step, min3 = this.min, max3 = this.max;
- var cache = this.internalPointsCache;
- if (!cache || cache.marks !== marks || cache.step !== step) {
- var pointsObject = _objectSpread2({}, marks);
- if (step !== null) {
- for (var point = min3; point <= max3; point += step) {
- pointsObject[point] = point;
- }
- }
- var points = Object.keys(pointsObject).map(parseFloat);
- points.sort(function(a2, b2) {
- return a2 - b2;
- });
- this.internalPointsCache = {
- marks,
- step,
- points
- };
- }
- return this.internalPointsCache.points;
- },
- moveTo: function moveTo(value, isFromKeyboardEvent) {
- var _this3 = this;
- var nextBounds = _toConsumableArray(this.bounds);
- var sHandle = this.sHandle, recent = this.recent;
- var handle = sHandle === null ? recent : sHandle;
- nextBounds[handle] = value;
- var nextHandle = handle;
- if (this.$props.pushable !== false) {
- this.pushSurroundingHandles(nextBounds, nextHandle);
- } else if (this.$props.allowCross) {
- nextBounds.sort(function(a2, b2) {
- return a2 - b2;
- });
- nextHandle = nextBounds.indexOf(value);
- }
- this.onChange({
- recent: nextHandle,
- sHandle: nextHandle,
- bounds: nextBounds
- });
- if (isFromKeyboardEvent) {
- this.$emit("afterChange", nextBounds);
- this.setState({}, function() {
- _this3.handlesRefs[nextHandle].focus();
- });
- this.onEnd();
- }
- },
- pushSurroundingHandles: function pushSurroundingHandles(bounds, handle) {
- var value = bounds[handle];
- var pushable = this.pushable;
- var threshold = Number(pushable);
- var direction = 0;
- if (bounds[handle + 1] - value < threshold) {
- direction = 1;
- }
- if (value - bounds[handle - 1] < threshold) {
- direction = -1;
- }
- if (direction === 0) {
- return;
- }
- var nextHandle = handle + direction;
- var diffToNext = direction * (bounds[nextHandle] - value);
- if (!this.pushHandle(bounds, nextHandle, direction, threshold - diffToNext)) {
- bounds[handle] = bounds[nextHandle] - direction * threshold;
- }
- },
- pushHandle: function pushHandle(bounds, handle, direction, amount) {
- var originalValue = bounds[handle];
- var currentValue = bounds[handle];
- while (direction * (currentValue - originalValue) < amount) {
- if (!this.pushHandleOnePoint(bounds, handle, direction)) {
- bounds[handle] = originalValue;
- return false;
- }
- currentValue = bounds[handle];
- }
- return true;
- },
- pushHandleOnePoint: function pushHandleOnePoint(bounds, handle, direction) {
- var points = this.getPoints();
- var pointIndex = points.indexOf(bounds[handle]);
- var nextPointIndex = pointIndex + direction;
- if (nextPointIndex >= points.length || nextPointIndex < 0) {
- return false;
- }
- var nextHandle = handle + direction;
- var nextValue = points[nextPointIndex];
- var pushable = this.pushable;
- var threshold = Number(pushable);
- var diffToNext = direction * (bounds[nextHandle] - nextValue);
- if (!this.pushHandle(bounds, nextHandle, direction, threshold - diffToNext)) {
- return false;
- }
- bounds[handle] = nextValue;
- return true;
- },
- trimAlignValue: function trimAlignValue3(value) {
- var sHandle = this.sHandle, bounds = this.bounds;
- return _trimAlignValue({
- value,
- handle: sHandle,
- bounds,
- props: this.$props
- });
- },
- ensureValueNotConflict: function ensureValueNotConflict(handle, val, _ref2) {
- var allowCross = _ref2.allowCross, thershold = _ref2.pushable;
- var state = this.$data || {};
- var bounds = state.bounds;
- handle = handle === void 0 ? state.sHandle : handle;
- thershold = Number(thershold);
- if (!allowCross && handle != null && bounds !== void 0) {
- if (handle > 0 && val <= bounds[handle - 1] + thershold) {
- return bounds[handle - 1] + thershold;
- }
- if (handle < bounds.length - 1 && val >= bounds[handle + 1] - thershold) {
- return bounds[handle + 1] - thershold;
- }
- }
- return val;
- },
- getTrack: function getTrack2(_ref3) {
- var bounds = _ref3.bounds, prefixCls = _ref3.prefixCls, reverse = _ref3.reverse, vertical = _ref3.vertical, included = _ref3.included, offsets = _ref3.offsets, trackStyle = _ref3.trackStyle;
- return bounds.slice(0, -1).map(function(_2, index3) {
- var _classNames;
- var i3 = index3 + 1;
- var trackClassName = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-track"), true), _defineProperty(_classNames, "".concat(prefixCls, "-track-").concat(i3), true), _classNames));
- return createVNode(Track_default, {
- "class": trackClassName,
- "vertical": vertical,
- "reverse": reverse,
- "included": included,
- "offset": offsets[i3 - 1],
- "length": offsets[i3] - offsets[i3 - 1],
- "style": trackStyle[index3],
- "key": i3
- }, null);
- });
- },
- renderSlider: function renderSlider2() {
- var _this4 = this;
- var sHandle = this.sHandle, bounds = this.bounds, prefixCls = this.prefixCls, vertical = this.vertical, included = this.included, disabled = this.disabled, min3 = this.min, max3 = this.max, reverse = this.reverse, handle = this.handle, defaultHandle = this.defaultHandle, trackStyle = this.trackStyle, handleStyle = this.handleStyle, tabindex = this.tabindex, ariaLabelGroupForHandles = this.ariaLabelGroupForHandles, ariaLabelledByGroupForHandles = this.ariaLabelledByGroupForHandles, ariaValueTextFormatterGroupForHandles = this.ariaValueTextFormatterGroupForHandles;
- var handleGenerator = handle || defaultHandle;
- var offsets = bounds.map(function(v2) {
- return _this4.calcOffset(v2);
- });
- var handleClassName = "".concat(prefixCls, "-handle");
- var handles = bounds.map(function(v2, i3) {
- var _classNames2;
- var mergedTabIndex = tabindex[i3] || 0;
- if (disabled || tabindex[i3] === null) {
- mergedTabIndex = null;
- }
- var dragging = sHandle === i3;
- return handleGenerator({
- class: classNames_default((_classNames2 = {}, _defineProperty(_classNames2, handleClassName, true), _defineProperty(_classNames2, "".concat(handleClassName, "-").concat(i3 + 1), true), _defineProperty(_classNames2, "".concat(handleClassName, "-dragging"), dragging), _classNames2)),
- prefixCls,
- vertical,
- dragging,
- offset: offsets[i3],
- value: v2,
- index: i3,
- tabindex: mergedTabIndex,
- min: min3,
- max: max3,
- reverse,
- disabled,
- style: handleStyle[i3],
- ref: function ref2(h3) {
- return _this4.saveHandle(i3, h3);
- },
- onFocus: _this4.onFocus,
- onBlur: _this4.onBlur,
- ariaLabel: ariaLabelGroupForHandles[i3],
- ariaLabelledBy: ariaLabelledByGroupForHandles[i3],
- ariaValueTextFormatter: ariaValueTextFormatterGroupForHandles[i3]
- });
- });
- return {
- tracks: this.getTrack({
- bounds,
- prefixCls,
- reverse,
- vertical,
- included,
- offsets,
- trackStyle
- }),
- handles
- };
- }
- }
- });
- var Range_default = createSlider(Range);
- // node_modules/ant-design-vue/es/slider/SliderTooltip.js
- var SliderTooltip_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "SliderTooltip",
- inheritAttrs: false,
- props: tooltipProps(),
- setup: function setup170(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var innerRef = ref(null);
- var rafRef = ref(null);
- function cancelKeepAlign() {
- wrapperRaf.cancel(rafRef.value);
- rafRef.value = null;
- }
- function keepAlign() {
- rafRef.value = wrapperRaf(function() {
- var _innerRef$value;
- (_innerRef$value = innerRef.value) === null || _innerRef$value === void 0 ? void 0 : _innerRef$value.forcePopupAlign();
- rafRef.value = null;
- });
- }
- var align = function align2() {
- cancelKeepAlign();
- if (props5.visible) {
- keepAlign();
- }
- };
- watch([function() {
- return props5.visible;
- }, function() {
- return props5.title;
- }], function() {
- align();
- }, {
- flush: "post",
- immediate: true
- });
- onActivated(function() {
- align();
- });
- onBeforeUnmount(function() {
- cancelKeepAlign();
- });
- return function() {
- return createVNode(tooltip_default, _objectSpread2(_objectSpread2({
- "ref": innerRef
- }, props5), attrs), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/slider/index.js
- var _excluded53 = ["value", "dragging", "index"];
- var _excluded213 = ["tooltipPrefixCls", "range", "id"];
- var defaultTipFormatter = function defaultTipFormatter2(value) {
- return typeof value === "number" ? value.toString() : "";
- };
- var sliderProps = function sliderProps2() {
- return {
- id: String,
- prefixCls: String,
- tooltipPrefixCls: String,
- range: {
- type: [Boolean, Object],
- default: void 0
- },
- reverse: {
- type: Boolean,
- default: void 0
- },
- min: Number,
- max: Number,
- step: {
- type: [Number, Object]
- },
- marks: {
- type: Object
- },
- dots: {
- type: Boolean,
- default: void 0
- },
- value: {
- type: [Number, Array]
- },
- defaultValue: {
- type: [Number, Array]
- },
- included: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- vertical: {
- type: Boolean,
- default: void 0
- },
- tipFormatter: {
- type: [Function, Object],
- default: function _default9() {
- return defaultTipFormatter;
- }
- },
- tooltipVisible: {
- type: Boolean,
- default: void 0
- },
- tooltipPlacement: {
- type: String
- },
- getTooltipPopupContainer: {
- type: Function
- },
- autofocus: {
- type: Boolean,
- default: void 0
- },
- handleStyle: {
- type: [Object, Array]
- },
- trackStyle: {
- type: [Object, Array]
- },
- onChange: {
- type: Function
- },
- onAfterChange: {
- type: Function
- },
- onFocus: {
- type: Function
- },
- onBlur: {
- type: Function
- },
- "onUpdate:value": {
- type: Function
- }
- };
- };
- var Slider2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASlider",
- inheritAttrs: false,
- props: sliderProps(),
- // emits: ['update:value', 'change', 'afterChange', 'blur'],
- slots: ["mark"],
- setup: function setup171(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, emit = _ref.emit, expose = _ref.expose;
- var _useConfigInject = useConfigInject_default("slider", props5), prefixCls = _useConfigInject.prefixCls, rootPrefixCls = _useConfigInject.rootPrefixCls, direction = _useConfigInject.direction, getPopupContainer = _useConfigInject.getPopupContainer, configProvider = _useConfigInject.configProvider;
- var formItemContext = useInjectFormItemContext();
- var sliderRef = ref();
- var visibles = ref({});
- var toggleTooltipVisible = function toggleTooltipVisible2(index3, visible) {
- visibles.value[index3] = visible;
- };
- var tooltipPlacement = computed(function() {
- if (props5.tooltipPlacement) {
- return props5.tooltipPlacement;
- }
- if (!props5.vertical) {
- return "top";
- }
- return direction.value === "rtl" ? "left" : "right";
- });
- var focus = function focus2() {
- var _sliderRef$value;
- (_sliderRef$value = sliderRef.value) === null || _sliderRef$value === void 0 ? void 0 : _sliderRef$value.focus();
- };
- var blur = function blur2() {
- var _sliderRef$value2;
- (_sliderRef$value2 = sliderRef.value) === null || _sliderRef$value2 === void 0 ? void 0 : _sliderRef$value2.blur();
- };
- var handleChange2 = function handleChange3(val) {
- emit("update:value", val);
- emit("change", val);
- formItemContext.onFieldChange();
- };
- var handleBlur = function handleBlur2(e3) {
- emit("blur", e3);
- };
- expose({
- focus,
- blur
- });
- var handleWithTooltip = function handleWithTooltip2(_ref2) {
- var tooltipPrefixCls = _ref2.tooltipPrefixCls, _ref2$info = _ref2.info, value = _ref2$info.value, dragging = _ref2$info.dragging, index3 = _ref2$info.index, restProps = _objectWithoutProperties(_ref2$info, _excluded53);
- var tipFormatter = props5.tipFormatter, tooltipVisible = props5.tooltipVisible, getTooltipPopupContainer = props5.getTooltipPopupContainer;
- var isTipFormatter = tipFormatter ? visibles.value[index3] || dragging : false;
- var visible = tooltipVisible || tooltipVisible === void 0 && isTipFormatter;
- return createVNode(SliderTooltip_default, {
- "prefixCls": tooltipPrefixCls,
- "title": tipFormatter ? tipFormatter(value) : "",
- "visible": visible,
- "placement": tooltipPlacement.value,
- "transitionName": "".concat(rootPrefixCls.value, "-zoom-down"),
- "key": index3,
- "overlayClassName": "".concat(prefixCls.value, "-tooltip"),
- "getPopupContainer": getTooltipPopupContainer || getPopupContainer.value
- }, {
- default: function _default9() {
- return [createVNode(Handle_default, _objectSpread2(_objectSpread2({}, restProps), {}, {
- "value": value,
- "onMouseenter": function onMouseenter2() {
- return toggleTooltipVisible(index3, true);
- },
- "onMouseleave": function onMouseleave2() {
- return toggleTooltipVisible(index3, false);
- }
- }), null)];
- }
- });
- };
- return function() {
- var customizeTooltipPrefixCls = props5.tooltipPrefixCls, range3 = props5.range, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id, restProps = _objectWithoutProperties(props5, _excluded213);
- var tooltipPrefixCls = configProvider.getPrefixCls("tooltip", customizeTooltipPrefixCls);
- var cls = classNames_default(attrs.class, _defineProperty({}, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"));
- if (direction.value === "rtl" && !restProps.vertical) {
- restProps.reverse = !restProps.reverse;
- }
- var draggableTrack;
- if (_typeof(range3) === "object") {
- draggableTrack = range3.draggableTrack;
- }
- if (range3) {
- return createVNode(Range_default, _objectSpread2(_objectSpread2({}, restProps), {}, {
- "step": restProps.step,
- "draggableTrack": draggableTrack,
- "class": cls,
- "ref": sliderRef,
- "handle": function handle(info) {
- return handleWithTooltip({
- tooltipPrefixCls,
- prefixCls: prefixCls.value,
- info
- });
- },
- "prefixCls": prefixCls.value,
- "onChange": handleChange2,
- "onBlur": handleBlur
- }), {
- mark: slots.mark
- });
- }
- return createVNode(Slider_default, _objectSpread2(_objectSpread2({}, restProps), {}, {
- "id": id,
- "step": restProps.step,
- "class": cls,
- "ref": sliderRef,
- "handle": function handle(info) {
- return handleWithTooltip({
- tooltipPrefixCls,
- prefixCls: prefixCls.value,
- info
- });
- },
- "prefixCls": prefixCls.value,
- "onChange": handleChange2,
- "onBlur": handleBlur
- }), {
- mark: slots.mark
- });
- };
- }
- });
- var slider_default2 = withInstall(Slider2);
- // node_modules/ant-design-vue/es/space/index.js
- var spaceSize = {
- small: 8,
- middle: 16,
- large: 24
- };
- var spaceProps = function spaceProps2() {
- return {
- prefixCls: String,
- size: {
- type: [String, Number, Array]
- },
- direction: vue_types_default.oneOf(tuple("horizontal", "vertical")).def("horizontal"),
- align: vue_types_default.oneOf(tuple("start", "end", "center", "baseline")),
- wrap: {
- type: Boolean,
- default: void 0
- }
- };
- };
- function getNumberSize(size) {
- return typeof size === "string" ? spaceSize[size] : size || 0;
- }
- var Space = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASpace",
- props: spaceProps(),
- slots: ["split"],
- setup: function setup172(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("space", props5), prefixCls = _useConfigInject.prefixCls, space = _useConfigInject.space, directionConfig = _useConfigInject.direction;
- var supportFlexGap = useFlexGapSupport_default();
- var size = computed(function() {
- var _ref2, _props$size, _space$value;
- return (_ref2 = (_props$size = props5.size) !== null && _props$size !== void 0 ? _props$size : (_space$value = space.value) === null || _space$value === void 0 ? void 0 : _space$value.size) !== null && _ref2 !== void 0 ? _ref2 : "small";
- });
- var horizontalSize = ref();
- var verticalSize = ref();
- watch(size, function() {
- var _map = (Array.isArray(size.value) ? size.value : [size.value, size.value]).map(function(item) {
- return getNumberSize(item);
- });
- var _map2 = _slicedToArray(_map, 2);
- horizontalSize.value = _map2[0];
- verticalSize.value = _map2[1];
- }, {
- immediate: true
- });
- var mergedAlign = computed(function() {
- return props5.align === void 0 && props5.direction === "horizontal" ? "center" : props5.align;
- });
- var cn = computed(function() {
- var _classNames;
- return classNames_default(prefixCls.value, "".concat(prefixCls.value, "-").concat(props5.direction), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), directionConfig.value === "rtl"), _defineProperty(_classNames, "".concat(prefixCls.value, "-align-").concat(mergedAlign.value), mergedAlign.value), _classNames));
- });
- var marginDirection = computed(function() {
- return directionConfig.value === "rtl" ? "marginLeft" : "marginRight";
- });
- var style = computed(function() {
- var gapStyle = {};
- if (supportFlexGap.value) {
- gapStyle.columnGap = "".concat(horizontalSize.value, "px");
- gapStyle.rowGap = "".concat(verticalSize.value, "px");
- }
- return _objectSpread2(_objectSpread2({}, gapStyle), props5.wrap && {
- flexWrap: "wrap",
- marginBottom: "".concat(-verticalSize.value, "px")
- });
- });
- return function() {
- var _slots$default, _slots$split;
- var wrap = props5.wrap, _props$direction = props5.direction, direction = _props$direction === void 0 ? "horizontal" : _props$direction;
- var items = filterEmpty((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- var len = items.length;
- if (len === 0) {
- return null;
- }
- var split = (_slots$split = slots.split) === null || _slots$split === void 0 ? void 0 : _slots$split.call(slots);
- var itemClassName = "".concat(prefixCls.value, "-item");
- var horizontalSizeVal = horizontalSize.value;
- var latestIndex = len - 1;
- return createVNode("div", {
- "class": cn.value,
- "style": style.value
- }, [items.map(function(child, index3) {
- var itemStyle = {};
- if (!supportFlexGap.value) {
- if (direction === "vertical") {
- if (index3 < latestIndex) {
- itemStyle = {
- marginBottom: "".concat(horizontalSizeVal / (split ? 2 : 1), "px")
- };
- }
- } else {
- itemStyle = _objectSpread2(_objectSpread2({}, index3 < latestIndex && _defineProperty({}, marginDirection.value, "".concat(horizontalSizeVal / (split ? 2 : 1), "px"))), wrap && {
- paddingBottom: "".concat(verticalSize.value, "px")
- });
- }
- }
- return createVNode(Fragment, null, [createVNode("div", {
- "class": itemClassName,
- "style": itemStyle
- }, [child]), index3 < latestIndex && split && createVNode("span", {
- "class": "".concat(itemClassName, "-split"),
- "style": itemStyle
- }, [split])]);
- })]);
- };
- }
- });
- var space_default = withInstall(Space);
- // node_modules/ant-design-vue/es/vc-steps/Steps.js
- var _excluded54 = ["prefixCls"];
- var Steps_default3 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Steps",
- props: {
- type: vue_types_default.string.def("default"),
- prefixCls: vue_types_default.string.def("vc-steps"),
- iconPrefix: vue_types_default.string.def("vc"),
- direction: vue_types_default.string.def("horizontal"),
- labelPlacement: vue_types_default.string.def("horizontal"),
- status: vue_types_default.string.def("process"),
- size: vue_types_default.string.def(""),
- progressDot: vue_types_default.oneOfType([vue_types_default.looseBool, vue_types_default.func]).def(void 0),
- initial: vue_types_default.number.def(0),
- current: vue_types_default.number.def(0),
- icons: vue_types_default.shape({
- finish: vue_types_default.any,
- error: vue_types_default.any
- }).loose,
- stepIcon: Function
- },
- slots: ["stepIcon", "progressDot"],
- emits: ["change"],
- setup: function setup173(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit;
- var onStepClick = function onStepClick2(next2) {
- var current2 = props5.current;
- if (current2 !== next2) {
- emit("change", next2);
- }
- };
- return function() {
- var _classNames, _slots$default;
- var prefixCls = props5.prefixCls, direction = props5.direction, type4 = props5.type, labelPlacement = props5.labelPlacement, iconPrefix = props5.iconPrefix, status = props5.status, size = props5.size, current2 = props5.current, _props$progressDot = props5.progressDot, progressDot = _props$progressDot === void 0 ? slots.progressDot : _props$progressDot, initial = props5.initial, icons2 = props5.icons, _props$stepIcon = props5.stepIcon, stepIcon = _props$stepIcon === void 0 ? slots.stepIcon : _props$stepIcon;
- var isNav = type4 === "navigation";
- var adjustedLabelPlacement = progressDot ? "vertical" : labelPlacement;
- var classString = classNames_default(prefixCls, "".concat(prefixCls, "-").concat(direction), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(size), size), _defineProperty(_classNames, "".concat(prefixCls, "-label-").concat(adjustedLabelPlacement), direction === "horizontal"), _defineProperty(_classNames, "".concat(prefixCls, "-dot"), !!progressDot), _defineProperty(_classNames, "".concat(prefixCls, "-navigation"), isNav), _classNames));
- var children = filterEmpty((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- return createVNode("div", {
- "class": classString
- }, [children.map(function(child, index3) {
- var _ref2 = child.props || {}, _ref2$prefixCls = _ref2.prefixCls, pre = _ref2$prefixCls === void 0 ? prefixCls : _ref2$prefixCls, restProps = _objectWithoutProperties(_ref2, _excluded54);
- var stepNumber = initial + index3;
- var stepProps = _objectSpread2(_objectSpread2({}, restProps), {}, {
- stepNumber: stepNumber + 1,
- stepIndex: stepNumber,
- key: stepNumber,
- prefixCls: pre,
- iconPrefix,
- progressDot,
- icons: icons2,
- stepIcon,
- onStepClick
- });
- if (status === "error" && index3 === current2 - 1) {
- stepProps.class = "".concat(prefixCls, "-next-error");
- }
- if (!restProps.status) {
- if (stepNumber === current2) {
- stepProps.status = status;
- } else if (stepNumber < current2) {
- stepProps.status = "finish";
- } else {
- stepProps.status = "wait";
- }
- }
- stepProps.active = stepNumber === current2;
- return cloneElement(child, stepProps);
- })]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-steps/Step.js
- function isString3(str) {
- return typeof str === "string";
- }
- function noop10() {
- }
- var VcStepProps = function VcStepProps2() {
- return {
- prefixCls: String,
- wrapperStyle: {
- type: Object,
- default: void 0
- },
- itemWidth: String,
- active: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- status: String,
- iconPrefix: String,
- icon: vue_types_default.any,
- adjustMarginRight: String,
- stepNumber: Number,
- stepIndex: Number,
- description: vue_types_default.any,
- title: vue_types_default.any,
- subTitle: vue_types_default.any,
- progressDot: withUndefined(vue_types_default.oneOfType([vue_types_default.looseBool, vue_types_default.func])),
- tailContent: vue_types_default.any,
- icons: vue_types_default.shape({
- finish: vue_types_default.any,
- error: vue_types_default.any
- }).loose,
- onClick: Function,
- onStepClick: Function,
- stepIcon: Function
- };
- };
- var Step_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Step",
- props: VcStepProps(),
- slots: ["title", "subTitle", "description", "tailContent", "stepIcon", "progressDot"],
- emits: ["click", "stepClick"],
- setup: function setup174(props5, _ref) {
- var slots = _ref.slots, emit = _ref.emit;
- var onItemClick2 = function onItemClick3(e3) {
- emit("click", e3);
- emit("stepClick", props5.stepIndex);
- };
- var renderIconNode = function renderIconNode2(_ref2) {
- var _iconClassName;
- var icon = _ref2.icon, title = _ref2.title, description = _ref2.description;
- var prefixCls = props5.prefixCls, stepNumber = props5.stepNumber, status = props5.status, iconPrefix = props5.iconPrefix, icons2 = props5.icons, _props$progressDot = props5.progressDot, progressDot = _props$progressDot === void 0 ? slots.progressDot : _props$progressDot, _props$stepIcon = props5.stepIcon, stepIcon = _props$stepIcon === void 0 ? slots.stepIcon : _props$stepIcon;
- var iconNode;
- var iconClassName = (_iconClassName = {}, _defineProperty(_iconClassName, "".concat(prefixCls, "-icon"), true), _defineProperty(_iconClassName, "".concat(iconPrefix, "icon"), true), _defineProperty(_iconClassName, "".concat(iconPrefix, "icon-").concat(icon), icon && isString3(icon)), _defineProperty(_iconClassName, "".concat(iconPrefix, "icon-check"), !icon && status === "finish" && icons2 && !icons2.finish), _defineProperty(_iconClassName, "".concat(iconPrefix, "icon-close"), !icon && status === "error" && icons2 && !icons2.error), _iconClassName);
- var iconDot = createVNode("span", {
- "class": "".concat(prefixCls, "-icon-dot")
- }, null);
- if (progressDot) {
- if (typeof progressDot === "function") {
- iconNode = createVNode("span", {
- "class": "".concat(prefixCls, "-icon")
- }, [progressDot({
- iconDot,
- index: stepNumber - 1,
- status,
- title,
- description,
- prefixCls
- })]);
- } else {
- iconNode = createVNode("span", {
- "class": "".concat(prefixCls, "-icon")
- }, [iconDot]);
- }
- } else if (icon && !isString3(icon)) {
- iconNode = createVNode("span", {
- "class": "".concat(prefixCls, "-icon")
- }, [icon]);
- } else if (icons2 && icons2.finish && status === "finish") {
- iconNode = createVNode("span", {
- "class": "".concat(prefixCls, "-icon")
- }, [icons2.finish]);
- } else if (icons2 && icons2.error && status === "error") {
- iconNode = createVNode("span", {
- "class": "".concat(prefixCls, "-icon")
- }, [icons2.error]);
- } else if (icon || status === "finish" || status === "error") {
- iconNode = createVNode("span", {
- "class": iconClassName
- }, null);
- } else {
- iconNode = createVNode("span", {
- "class": "".concat(prefixCls, "-icon")
- }, [stepNumber]);
- }
- if (stepIcon) {
- iconNode = stepIcon({
- index: stepNumber - 1,
- status,
- title,
- description,
- node: iconNode
- });
- }
- return iconNode;
- };
- return function() {
- var _slots$title, _slots$description, _slots$subTitle, _slots$icon, _classString;
- var prefixCls = props5.prefixCls, itemWidth = props5.itemWidth, active = props5.active, _props$status = props5.status, status = _props$status === void 0 ? "wait" : _props$status, tailContent = props5.tailContent, adjustMarginRight = props5.adjustMarginRight, disabled = props5.disabled, _props$title = props5.title, title = _props$title === void 0 ? (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots) : _props$title, _props$description = props5.description, description = _props$description === void 0 ? (_slots$description = slots.description) === null || _slots$description === void 0 ? void 0 : _slots$description.call(slots) : _props$description, _props$subTitle = props5.subTitle, subTitle = _props$subTitle === void 0 ? (_slots$subTitle = slots.subTitle) === null || _slots$subTitle === void 0 ? void 0 : _slots$subTitle.call(slots) : _props$subTitle, _props$icon = props5.icon, icon = _props$icon === void 0 ? (_slots$icon = slots.icon) === null || _slots$icon === void 0 ? void 0 : _slots$icon.call(slots) : _props$icon, onClick2 = props5.onClick, onStepClick = props5.onStepClick;
- var classString = (_classString = {}, _defineProperty(_classString, "".concat(prefixCls, "-item"), true), _defineProperty(_classString, "".concat(prefixCls, "-item-").concat(status), true), _defineProperty(_classString, "".concat(prefixCls, "-item-custom"), icon), _defineProperty(_classString, "".concat(prefixCls, "-item-active"), active), _defineProperty(_classString, "".concat(prefixCls, "-item-disabled"), disabled === true), _classString);
- var stepProps = {
- class: classString
- };
- var stepItemStyle = {};
- if (itemWidth) {
- stepItemStyle.width = itemWidth;
- }
- if (adjustMarginRight) {
- stepItemStyle.marginRight = adjustMarginRight;
- }
- var accessibilityProps = {
- onClick: onClick2 || noop10
- };
- if (onStepClick && !disabled) {
- accessibilityProps.role = "button";
- accessibilityProps.tabindex = 0;
- accessibilityProps.onClick = onItemClick2;
- }
- return createVNode("div", _objectSpread2(_objectSpread2({}, stepProps), {}, {
- "style": stepItemStyle
- }), [createVNode("div", _objectSpread2(_objectSpread2({}, accessibilityProps), {}, {
- "class": "".concat(prefixCls, "-item-container")
- }), [createVNode("div", {
- "class": "".concat(prefixCls, "-item-tail")
- }, [tailContent]), createVNode("div", {
- "class": "".concat(prefixCls, "-item-icon")
- }, [renderIconNode({
- icon,
- title,
- description
- })]), createVNode("div", {
- "class": "".concat(prefixCls, "-item-content")
- }, [createVNode("div", {
- "class": "".concat(prefixCls, "-item-title")
- }, [title, subTitle && createVNode("div", {
- "title": subTitle,
- "class": "".concat(prefixCls, "-item-subtitle")
- }, [subTitle])]), description && createVNode("div", {
- "class": "".concat(prefixCls, "-item-description")
- }, [description])])])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-steps/index.js
- var vc_steps_default = Steps_default3;
- // node_modules/ant-design-vue/es/steps/index.js
- var stepsProps3 = function stepsProps4() {
- return {
- prefixCls: String,
- iconPrefix: String,
- current: Number,
- initial: Number,
- percent: Number,
- responsive: {
- type: Boolean,
- default: void 0
- },
- labelPlacement: String,
- status: String,
- size: String,
- direction: String,
- progressDot: {
- type: [Boolean, Function],
- default: void 0
- },
- type: String,
- onChange: Function,
- "onUpdate:current": Function
- };
- };
- var Steps3 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASteps",
- inheritAttrs: false,
- props: initDefaultProps_default(stepsProps3(), {
- current: 0,
- responsive: true,
- labelPlacement: "horizontal"
- }),
- slots: ["progressDot"],
- // emits: ['update:current', 'change'],
- setup: function setup175(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, emit = _ref.emit;
- var _useConfigInject = useConfigInject_default("steps", props5), prefixCls = _useConfigInject.prefixCls, rtlDirection = _useConfigInject.direction, configProvider = _useConfigInject.configProvider;
- var screens2 = useBreakpoint_default();
- var direction = computed(function() {
- return props5.responsive && screens2.value.xs ? "vertical" : props5.direction;
- });
- var iconPrefix = computed(function() {
- return configProvider.getPrefixCls("", props5.iconPrefix);
- });
- var handleChange2 = function handleChange3(current2) {
- emit("update:current", current2);
- emit("change", current2);
- };
- var stepIconRender = function stepIconRender2(_ref2) {
- var node = _ref2.node, status = _ref2.status;
- if (status === "process" && props5.percent !== void 0) {
- var progressWidth = props5.size === "small" ? 32 : 40;
- var iconWithProgress = createVNode("div", {
- "class": "".concat(prefixCls, "-progress-icon")
- }, [createVNode(progress_default2, {
- "type": "circle",
- "percent": props5.percent,
- "width": progressWidth,
- "strokeWidth": 4,
- "format": function format4() {
- return null;
- }
- }, null), node]);
- return iconWithProgress;
- }
- return node;
- };
- return function() {
- var _classNames;
- var stepsClassName = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), rtlDirection.value === "rtl"), _defineProperty(_classNames, "".concat(prefixCls.value, "-with-progress"), props5.percent !== void 0), _classNames), attrs.class);
- var icons2 = {
- finish: createVNode(CheckOutlined_default, {
- "class": "".concat(prefixCls, "-finish-icon")
- }, null),
- error: createVNode(CloseOutlined_default, {
- "class": "".concat(prefixCls, "-error-icon")
- }, null)
- };
- return createVNode(vc_steps_default, _objectSpread2(_objectSpread2({
- "icons": icons2
- }, omit_default(props5, ["percent", "responsive"])), {}, {
- "direction": direction.value,
- "prefixCls": prefixCls.value,
- "iconPrefix": iconPrefix.value,
- "class": stepsClassName,
- "onChange": handleChange2
- }), _objectSpread2(_objectSpread2({}, slots), {}, {
- stepIcon: stepIconRender
- }));
- };
- }
- });
- var Step = defineComponent(_objectSpread2(_objectSpread2({
- compatConfig: {
- MODE: 3
- }
- }, Step_default), {}, {
- name: "AStep",
- props: VcStepProps()
- }));
- var steps_default = _extends(Steps3, {
- Step,
- install: function install6(app) {
- app.component(Steps3.name, Steps3);
- app.component(Step.name, Step);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/switch/index.js
- var SwitchSizes = tuple("small", "default");
- var switchProps = function switchProps2() {
- return {
- id: String,
- prefixCls: String,
- size: vue_types_default.oneOf(SwitchSizes),
- disabled: {
- type: Boolean,
- default: void 0
- },
- checkedChildren: vue_types_default.any,
- unCheckedChildren: vue_types_default.any,
- tabindex: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number]),
- autofocus: {
- type: Boolean,
- default: void 0
- },
- loading: {
- type: Boolean,
- default: void 0
- },
- checked: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number, vue_types_default.looseBool]),
- checkedValue: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number, vue_types_default.looseBool]).def(true),
- unCheckedValue: vue_types_default.oneOfType([vue_types_default.string, vue_types_default.number, vue_types_default.looseBool]).def(false),
- onChange: {
- type: Function
- },
- onClick: {
- type: Function
- },
- onKeydown: {
- type: Function
- },
- onMouseup: {
- type: Function
- },
- "onUpdate:checked": {
- type: Function
- },
- onBlur: Function,
- onFocus: Function
- };
- };
- var Switch = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ASwitch",
- __ANT_SWITCH: true,
- inheritAttrs: false,
- props: switchProps(),
- slots: ["checkedChildren", "unCheckedChildren"],
- // emits: ['update:checked', 'mouseup', 'change', 'click', 'keydown', 'blur'],
- setup: function setup176(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, expose = _ref.expose, emit = _ref.emit;
- var formItemContext = useInjectFormItemContext();
- onBeforeMount(function() {
- warning_default2(!("defaultChecked" in attrs), "Switch", "'defaultChecked' is deprecated, please use 'v-model:checked'");
- warning_default2(!("value" in attrs), "Switch", "`value` is not validate prop, do you mean `checked`?");
- });
- var checked = ref(props5.checked !== void 0 ? props5.checked : attrs.defaultChecked);
- var checkedStatus = computed(function() {
- return checked.value === props5.checkedValue;
- });
- watch(function() {
- return props5.checked;
- }, function() {
- checked.value = props5.checked;
- });
- var _useConfigInject = useConfigInject_default("switch", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, size = _useConfigInject.size;
- var refSwitchNode = ref();
- var focus = function focus2() {
- var _refSwitchNode$value;
- (_refSwitchNode$value = refSwitchNode.value) === null || _refSwitchNode$value === void 0 ? void 0 : _refSwitchNode$value.focus();
- };
- var blur = function blur2() {
- var _refSwitchNode$value2;
- (_refSwitchNode$value2 = refSwitchNode.value) === null || _refSwitchNode$value2 === void 0 ? void 0 : _refSwitchNode$value2.blur();
- };
- expose({
- focus,
- blur
- });
- onMounted(function() {
- nextTick(function() {
- if (props5.autofocus && !props5.disabled) {
- refSwitchNode.value.focus();
- }
- });
- });
- var setChecked = function setChecked2(check, e3) {
- if (props5.disabled) {
- return;
- }
- emit("update:checked", check);
- emit("change", check, e3);
- formItemContext.onFieldChange();
- };
- var handleBlur = function handleBlur2(e3) {
- emit("blur", e3);
- };
- var handleClick = function handleClick2(e3) {
- focus();
- var newChecked = checkedStatus.value ? props5.unCheckedValue : props5.checkedValue;
- setChecked(newChecked, e3);
- emit("click", newChecked, e3);
- };
- var handleKeyDown2 = function handleKeyDown3(e3) {
- if (e3.keyCode === KeyCode_default.LEFT) {
- setChecked(props5.unCheckedValue, e3);
- } else if (e3.keyCode === KeyCode_default.RIGHT) {
- setChecked(props5.checkedValue, e3);
- }
- emit("keydown", e3);
- };
- var handleMouseUp = function handleMouseUp2(e3) {
- var _refSwitchNode$value3;
- (_refSwitchNode$value3 = refSwitchNode.value) === null || _refSwitchNode$value3 === void 0 ? void 0 : _refSwitchNode$value3.blur();
- emit("mouseup", e3);
- };
- var classNames2 = computed(function() {
- var _ref2;
- return _ref2 = {}, _defineProperty(_ref2, "".concat(prefixCls.value, "-small"), size.value === "small"), _defineProperty(_ref2, "".concat(prefixCls.value, "-loading"), props5.loading), _defineProperty(_ref2, "".concat(prefixCls.value, "-checked"), checkedStatus.value), _defineProperty(_ref2, "".concat(prefixCls.value, "-disabled"), props5.disabled), _defineProperty(_ref2, prefixCls.value, true), _defineProperty(_ref2, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _ref2;
- });
- return function() {
- var _props$id;
- return createVNode(wave_default, {
- "insertExtraNode": true
- }, {
- default: function _default9() {
- return [createVNode("button", _objectSpread2(_objectSpread2(_objectSpread2({}, omit_default(props5, ["prefixCls", "checkedChildren", "unCheckedChildren", "checked", "autofocus", "checkedValue", "unCheckedValue", "id", "onChange", "onUpdate:checked"])), attrs), {}, {
- "id": (_props$id = props5.id) !== null && _props$id !== void 0 ? _props$id : formItemContext.id.value,
- "onKeydown": handleKeyDown2,
- "onClick": handleClick,
- "onBlur": handleBlur,
- "onMouseup": handleMouseUp,
- "type": "button",
- "role": "switch",
- "aria-checked": checked.value,
- "disabled": props5.disabled || props5.loading,
- "class": [attrs.class, classNames2.value],
- "ref": refSwitchNode
- }), [createVNode("div", {
- "class": "".concat(prefixCls.value, "-handle")
- }, [props5.loading ? createVNode(LoadingOutlined_default, {
- "class": "".concat(prefixCls.value, "-loading-icon")
- }, null) : null]), createVNode("span", {
- "class": "".concat(prefixCls.value, "-inner")
- }, [checkedStatus.value ? getPropsSlot(slots, props5, "checkedChildren") : getPropsSlot(slots, props5, "unCheckedChildren")])])];
- }
- });
- };
- }
- });
- var switch_default = withInstall(Switch);
- // node_modules/ant-design-vue/es/vc-table/context/TableContext.js
- var TableContextKey = Symbol("TableContextProps");
- var useProvideTable = function useProvideTable2(props5) {
- provide(TableContextKey, props5);
- };
- var useInjectTable = function useInjectTable2() {
- return inject(TableContextKey, {});
- };
- // node_modules/ant-design-vue/es/vc-table/utils/valueUtil.js
- var INTERNAL_KEY_PREFIX = "RC_TABLE_KEY";
- function toArray7(arr) {
- if (arr === void 0 || arr === null) {
- return [];
- }
- return Array.isArray(arr) ? arr : [arr];
- }
- function getPathValue(record, path2) {
- if (!path2 && typeof path2 !== "number") {
- return record;
- }
- var pathList = toArray7(path2);
- var current2 = record;
- for (var i3 = 0; i3 < pathList.length; i3 += 1) {
- if (!current2) {
- return null;
- }
- var prop = pathList[i3];
- current2 = current2[prop];
- }
- return current2;
- }
- function getColumnsKey(columns) {
- var columnKeys = [];
- var keys2 = {};
- columns.forEach(function(column) {
- var _ref = column || {}, key2 = _ref.key, dataIndex = _ref.dataIndex;
- var mergedKey = key2 || toArray7(dataIndex).join("-") || INTERNAL_KEY_PREFIX;
- while (keys2[mergedKey]) {
- mergedKey = "".concat(mergedKey, "_next");
- }
- keys2[mergedKey] = true;
- columnKeys.push(mergedKey);
- });
- return columnKeys;
- }
- function mergeObject() {
- var merged = {};
- function fillProps(obj, clone2) {
- if (clone2) {
- Object.keys(clone2).forEach(function(key2) {
- var value = clone2[key2];
- if (value && _typeof(value) === "object") {
- obj[key2] = obj[key2] || {};
- fillProps(obj[key2], value);
- } else {
- obj[key2] = value;
- }
- });
- }
- }
- for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {
- objects[_key] = arguments[_key];
- }
- objects.forEach(function(clone2) {
- fillProps(merged, clone2);
- });
- return merged;
- }
- function validateValue(val) {
- return val !== null && val !== void 0;
- }
- // node_modules/ant-design-vue/es/table/context.js
- var SlotsContextKey = Symbol("SlotsContextProps");
- var useProvideSlots = function useProvideSlots2(props5) {
- provide(SlotsContextKey, props5);
- };
- var useInjectSlots = function useInjectSlots2() {
- return inject(SlotsContextKey, computed(function() {
- return {};
- }));
- };
- var ContextKey2 = Symbol("ContextProps");
- var useProvideTableContext = function useProvideTableContext2(props5) {
- provide(ContextKey2, props5);
- };
- var useInjectTableContext = function useInjectTableContext2() {
- return inject(ContextKey2, {
- onResizeColumn: function onResizeColumn() {
- }
- });
- };
- // node_modules/ant-design-vue/es/vc-table/utils/legacyUtil.js
- var INTERNAL_COL_DEFINE = "RC_TABLE_INTERNAL_COL_DEFINE";
- // node_modules/ant-design-vue/es/vc-table/context/HoverContext.js
- var HoverContextKey = Symbol("HoverContextProps");
- var useProvideHover = function useProvideHover2(props5) {
- provide(HoverContextKey, props5);
- };
- var useInjectHover = function useInjectHover2() {
- return inject(HoverContextKey, {
- startRow: ref(-1),
- endRow: ref(-1),
- onHover: function onHover() {
- }
- });
- };
- // node_modules/ant-design-vue/es/vc-table/context/StickyContext.js
- var supportSticky = ref(false);
- var useProvideSticky = function useProvideSticky2() {
- onMounted(function() {
- supportSticky.value = supportSticky.value || styleChecker_default("position", "sticky");
- });
- };
- var useInjectSticky = function useInjectSticky2() {
- return supportSticky;
- };
- // node_modules/ant-design-vue/es/vc-table/Cell/index.js
- var _excluded55 = ["colSpan", "rowSpan", "style", "class"];
- function inHoverRange(cellStartRow, cellRowSpan, startRow, endRow) {
- var cellEndRow = cellStartRow + cellRowSpan - 1;
- return cellStartRow <= endRow && cellEndRow >= startRow;
- }
- function isRenderCell(data8) {
- return data8 && _typeof(data8) === "object" && !Array.isArray(data8) && !isVNode(data8);
- }
- var Cell_default2 = defineComponent({
- name: "Cell",
- props: ["prefixCls", "record", "index", "renderIndex", "dataIndex", "customRender", "component", "colSpan", "rowSpan", "fixLeft", "fixRight", "firstFixLeft", "lastFixLeft", "firstFixRight", "lastFixRight", "appendNode", "additionalProps", "ellipsis", "align", "rowType", "isSticky", "column", "cellType", "transformCellText"],
- slots: ["appendNode"],
- setup: function setup177(props5, _ref) {
- var slots = _ref.slots;
- var contextSlots = useInjectSlots();
- var _useInjectHover = useInjectHover(), onHover = _useInjectHover.onHover, startRow = _useInjectHover.startRow, endRow = _useInjectHover.endRow;
- var colSpan = computed(function() {
- var _ref2, _props$colSpan, _props$additionalProp, _props$additionalProp2;
- return (_ref2 = (_props$colSpan = props5.colSpan) !== null && _props$colSpan !== void 0 ? _props$colSpan : (_props$additionalProp = props5.additionalProps) === null || _props$additionalProp === void 0 ? void 0 : _props$additionalProp.colSpan) !== null && _ref2 !== void 0 ? _ref2 : (_props$additionalProp2 = props5.additionalProps) === null || _props$additionalProp2 === void 0 ? void 0 : _props$additionalProp2.colspan;
- });
- var rowSpan = computed(function() {
- var _ref3, _props$rowSpan, _props$additionalProp3, _props$additionalProp4;
- return (_ref3 = (_props$rowSpan = props5.rowSpan) !== null && _props$rowSpan !== void 0 ? _props$rowSpan : (_props$additionalProp3 = props5.additionalProps) === null || _props$additionalProp3 === void 0 ? void 0 : _props$additionalProp3.rowSpan) !== null && _ref3 !== void 0 ? _ref3 : (_props$additionalProp4 = props5.additionalProps) === null || _props$additionalProp4 === void 0 ? void 0 : _props$additionalProp4.rowspan;
- });
- var hovering = eagerComputed(function() {
- var index3 = props5.index;
- return inHoverRange(index3, rowSpan.value || 1, startRow.value, endRow.value);
- });
- var supportSticky2 = useInjectSticky();
- var _onMouseenter = function onMouseenter2(event, mergedRowSpan) {
- var _additionalProps$onMo;
- var record = props5.record, index3 = props5.index, additionalProps = props5.additionalProps;
- if (record) {
- onHover(index3, index3 + mergedRowSpan - 1);
- }
- additionalProps === null || additionalProps === void 0 ? void 0 : (_additionalProps$onMo = additionalProps.onMouseenter) === null || _additionalProps$onMo === void 0 ? void 0 : _additionalProps$onMo.call(additionalProps, event);
- };
- var onMouseleave2 = function onMouseleave3(event) {
- var _additionalProps$onMo2;
- var record = props5.record, additionalProps = props5.additionalProps;
- if (record) {
- onHover(-1, -1);
- }
- additionalProps === null || additionalProps === void 0 ? void 0 : (_additionalProps$onMo2 = additionalProps.onMouseleave) === null || _additionalProps$onMo2 === void 0 ? void 0 : _additionalProps$onMo2.call(additionalProps, event);
- };
- var getTitle = function getTitle2(vnodes) {
- var vnode = filterEmpty(vnodes)[0];
- if (isVNode(vnode)) {
- if (vnode.type === Text) {
- return vnode.children;
- } else {
- return Array.isArray(vnode.children) ? getTitle2(vnode.children) : void 0;
- }
- } else {
- return vnode;
- }
- };
- return function() {
- var _slots$appendNode, _slots$default, _ref5, _ref6, _classNames, _slots$dragHandle;
- var prefixCls = props5.prefixCls, record = props5.record, index3 = props5.index, renderIndex = props5.renderIndex, dataIndex = props5.dataIndex, customRender = props5.customRender, _props$component = props5.component, Component = _props$component === void 0 ? "td" : _props$component, fixLeft = props5.fixLeft, fixRight = props5.fixRight, firstFixLeft = props5.firstFixLeft, lastFixLeft = props5.lastFixLeft, firstFixRight = props5.firstFixRight, lastFixRight = props5.lastFixRight, _props$appendNode = props5.appendNode, appendNode = _props$appendNode === void 0 ? (_slots$appendNode = slots.appendNode) === null || _slots$appendNode === void 0 ? void 0 : _slots$appendNode.call(slots) : _props$appendNode, _props$additionalProp5 = props5.additionalProps, additionalProps = _props$additionalProp5 === void 0 ? {} : _props$additionalProp5, ellipsis = props5.ellipsis, align = props5.align, rowType = props5.rowType, isSticky = props5.isSticky, _props$column = props5.column, column = _props$column === void 0 ? {} : _props$column, cellType = props5.cellType;
- var cellPrefixCls = "".concat(prefixCls, "-cell");
- var cellProps;
- var childNode;
- var children = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- if (validateValue(children) || cellType === "header") {
- childNode = children;
- } else {
- var _column$slots;
- var value = getPathValue(record, dataIndex);
- childNode = value;
- if (customRender) {
- var renderData = customRender({
- text: value,
- value,
- record,
- index: index3,
- renderIndex,
- column: column.__originColumn__
- });
- if (isRenderCell(renderData)) {
- if (true) {
- warning(false, "`columns.customRender` return cell props is deprecated with perf issue, please use `customCell` instead.");
- }
- childNode = renderData.children;
- cellProps = renderData.props;
- } else {
- childNode = renderData;
- }
- }
- if (!(INTERNAL_COL_DEFINE in column) && cellType === "body" && contextSlots.value.bodyCell && !((_column$slots = column.slots) !== null && _column$slots !== void 0 && _column$slots.customRender)) {
- var child = renderSlot(contextSlots.value, "bodyCell", {
- text: value,
- value,
- record,
- index: index3,
- column: column.__originColumn__
- }, function() {
- var fallback = childNode === void 0 ? value : childNode;
- return [_typeof(fallback) === "object" && isValidElement(fallback) || _typeof(fallback) !== "object" ? fallback : null];
- });
- childNode = flattenChildren(child);
- }
- if (props5.transformCellText) {
- childNode = props5.transformCellText({
- text: childNode,
- record,
- index: index3,
- column: column.__originColumn__
- });
- }
- }
- if (_typeof(childNode) === "object" && !Array.isArray(childNode) && !isVNode(childNode)) {
- childNode = null;
- }
- if (ellipsis && (lastFixLeft || firstFixRight)) {
- var _childNode = function() {
- return childNode;
- }();
- childNode = createVNode("span", {
- "class": "".concat(cellPrefixCls, "-content")
- }, [childNode]);
- }
- if (Array.isArray(childNode) && childNode.length === 1) {
- childNode = childNode[0];
- }
- var _ref4 = cellProps || {}, cellColSpan = _ref4.colSpan, cellRowSpan = _ref4.rowSpan, cellStyle = _ref4.style, cellClassName = _ref4.class, restCellProps = _objectWithoutProperties(_ref4, _excluded55);
- var mergedColSpan = (_ref5 = cellColSpan !== void 0 ? cellColSpan : colSpan.value) !== null && _ref5 !== void 0 ? _ref5 : 1;
- var mergedRowSpan = (_ref6 = cellRowSpan !== void 0 ? cellRowSpan : rowSpan.value) !== null && _ref6 !== void 0 ? _ref6 : 1;
- if (mergedColSpan === 0 || mergedRowSpan === 0) {
- return null;
- }
- var fixedStyle = {};
- var isFixLeft = typeof fixLeft === "number" && supportSticky2.value;
- var isFixRight = typeof fixRight === "number" && supportSticky2.value;
- if (isFixLeft) {
- fixedStyle.position = "sticky";
- fixedStyle.left = "".concat(fixLeft, "px");
- }
- if (isFixRight) {
- fixedStyle.position = "sticky";
- fixedStyle.right = "".concat(fixRight, "px");
- }
- var alignStyle = {};
- if (align) {
- alignStyle.textAlign = align;
- }
- var title;
- var ellipsisConfig = ellipsis === true ? {
- showTitle: true
- } : ellipsis;
- if (ellipsisConfig && (ellipsisConfig.showTitle || rowType === "header")) {
- if (typeof childNode === "string" || typeof childNode === "number") {
- title = childNode.toString();
- } else if (isVNode(childNode)) {
- title = getTitle([childNode]);
- }
- }
- var componentProps = _objectSpread2(_objectSpread2(_objectSpread2({
- title
- }, restCellProps), additionalProps), {}, {
- colSpan: mergedColSpan !== 1 ? mergedColSpan : null,
- rowSpan: mergedRowSpan !== 1 ? mergedRowSpan : null,
- class: classNames_default(cellPrefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left"), isFixLeft && supportSticky2.value), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-first"), firstFixLeft && supportSticky2.value), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-left-last"), lastFixLeft && supportSticky2.value), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right"), isFixRight && supportSticky2.value), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right-first"), firstFixRight && supportSticky2.value), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-right-last"), lastFixRight && supportSticky2.value), _defineProperty(_classNames, "".concat(cellPrefixCls, "-ellipsis"), ellipsis), _defineProperty(_classNames, "".concat(cellPrefixCls, "-with-append"), appendNode), _defineProperty(_classNames, "".concat(cellPrefixCls, "-fix-sticky"), (isFixLeft || isFixRight) && isSticky && supportSticky2.value), _defineProperty(_classNames, "".concat(cellPrefixCls, "-row-hover"), !cellProps && hovering.value), _classNames), additionalProps.class, cellClassName),
- onMouseenter: function onMouseenter2(e3) {
- _onMouseenter(e3, mergedRowSpan);
- },
- onMouseleave: onMouseleave2,
- style: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, parseStyleText(additionalProps.style)), alignStyle), fixedStyle), cellStyle)
- });
- return createVNode(Component, componentProps, {
- default: function _default9() {
- return [appendNode, childNode, (_slots$dragHandle = slots.dragHandle) === null || _slots$dragHandle === void 0 ? void 0 : _slots$dragHandle.call(slots)];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/utils/fixUtil.js
- function getCellFixedInfo(colStart, colEnd, columns, stickyOffsets, direction) {
- var startColumn = columns[colStart] || {};
- var endColumn = columns[colEnd] || {};
- var fixLeft;
- var fixRight;
- if (startColumn.fixed === "left") {
- fixLeft = stickyOffsets.left[colStart];
- } else if (endColumn.fixed === "right") {
- fixRight = stickyOffsets.right[colEnd];
- }
- var lastFixLeft = false;
- var firstFixRight = false;
- var lastFixRight = false;
- var firstFixLeft = false;
- var nextColumn = columns[colEnd + 1];
- var prevColumn = columns[colStart - 1];
- if (direction === "rtl") {
- if (fixLeft !== void 0) {
- var prevFixLeft = prevColumn && prevColumn.fixed === "left";
- firstFixLeft = !prevFixLeft;
- } else if (fixRight !== void 0) {
- var nextFixRight = nextColumn && nextColumn.fixed === "right";
- lastFixRight = !nextFixRight;
- }
- } else if (fixLeft !== void 0) {
- var nextFixLeft = nextColumn && nextColumn.fixed === "left";
- lastFixLeft = !nextFixLeft;
- } else if (fixRight !== void 0) {
- var prevFixRight = prevColumn && prevColumn.fixed === "right";
- firstFixRight = !prevFixRight;
- }
- return {
- fixLeft,
- fixRight,
- lastFixLeft,
- firstFixRight,
- lastFixRight,
- firstFixLeft,
- isSticky: stickyOffsets.isSticky
- };
- }
- // node_modules/ant-design-vue/es/vc-table/Header/DragHandle.js
- var events = {
- mouse: {
- start: "mousedown",
- move: "mousemove",
- stop: "mouseup"
- },
- touch: {
- start: "touchstart",
- move: "touchmove",
- stop: "touchend"
- }
- };
- var defaultMinWidth = 50;
- var DragHandle_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "DragHandle",
- props: {
- prefixCls: String,
- width: {
- type: Number,
- required: true
- },
- minWidth: {
- type: Number,
- default: defaultMinWidth
- },
- maxWidth: {
- type: Number,
- default: Infinity
- },
- column: {
- type: Object,
- default: void 0
- }
- },
- setup: function setup178(props5) {
- var startX = 0;
- var moveEvent = {
- remove: function remove() {
- }
- };
- var stopEvent = {
- remove: function remove() {
- }
- };
- var removeEvents2 = function removeEvents3() {
- moveEvent.remove();
- stopEvent.remove();
- };
- onUnmounted(function() {
- removeEvents2();
- });
- watchEffect(function() {
- devWarning_default(!isNaN(props5.width), "Table", "width must be a number when use resizable");
- });
- var _useInjectTableContex = useInjectTableContext(), onResizeColumn = _useInjectTableContex.onResizeColumn;
- var minWidth = computed(function() {
- return typeof props5.minWidth === "number" && !isNaN(props5.minWidth) ? props5.minWidth : defaultMinWidth;
- });
- var maxWidth = computed(function() {
- return typeof props5.maxWidth === "number" && !isNaN(props5.maxWidth) ? props5.maxWidth : Infinity;
- });
- var instance = getCurrentInstance();
- var baseWidth = 0;
- var dragging = ref(false);
- var rafId;
- var updateWidth = function updateWidth2(e3) {
- var pageX = 0;
- if (e3.touches) {
- if (e3.touches.length) {
- pageX = e3.touches[0].pageX;
- } else {
- pageX = e3.changedTouches[0].pageX;
- }
- } else {
- pageX = e3.pageX;
- }
- var tmpDeltaX = startX - pageX;
- var w2 = Math.max(baseWidth - tmpDeltaX, minWidth.value);
- w2 = Math.min(w2, maxWidth.value);
- wrapperRaf.cancel(rafId);
- rafId = wrapperRaf(function() {
- onResizeColumn(w2, props5.column.__originColumn__);
- });
- };
- var handleMove = function handleMove2(e3) {
- updateWidth(e3);
- };
- var handleStop = function handleStop2(e3) {
- dragging.value = false;
- updateWidth(e3);
- removeEvents2();
- };
- var handleStart = function handleStart2(e3, eventsFor) {
- dragging.value = true;
- removeEvents2();
- baseWidth = instance.vnode.el.parentNode.getBoundingClientRect().width;
- if (e3 instanceof MouseEvent && e3.which !== 1) {
- return;
- }
- if (e3.stopPropagation)
- e3.stopPropagation();
- startX = e3.touches ? e3.touches[0].pageX : e3.pageX;
- moveEvent = addEventListenerWrap(document.documentElement, eventsFor.move, handleMove);
- stopEvent = addEventListenerWrap(document.documentElement, eventsFor.stop, handleStop);
- };
- var handleDown = function handleDown2(e3) {
- e3.stopPropagation();
- e3.preventDefault();
- handleStart(e3, events.mouse);
- };
- var handleTouchDown = function handleTouchDown2(e3) {
- e3.stopPropagation();
- e3.preventDefault();
- handleStart(e3, events.touch);
- };
- var handleClick = function handleClick2(e3) {
- e3.stopPropagation();
- e3.preventDefault();
- };
- return function() {
- var prefixCls = props5.prefixCls;
- var touchEvents = _defineProperty({}, supportsPassive_default ? "onTouchstartPassive" : "onTouchstart", function(e3) {
- return handleTouchDown(e3);
- });
- return createVNode("div", _objectSpread2(_objectSpread2({
- "class": "".concat(prefixCls, "-resize-handle ").concat(dragging.value ? "dragging" : ""),
- "onMousedown": handleDown
- }, touchEvents), {}, {
- "onClick": handleClick
- }), [createVNode("div", {
- "class": "".concat(prefixCls, "-resize-handle-line")
- }, null)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/Header/HeaderRow.js
- var HeaderRow_default = defineComponent({
- name: "HeaderRow",
- props: ["cells", "stickyOffsets", "flattenColumns", "rowComponent", "cellComponent", "index", "customHeaderRow"],
- setup: function setup179(props5) {
- var tableContext = useInjectTable();
- return function() {
- var prefixCls = tableContext.prefixCls, direction = tableContext.direction;
- var cells = props5.cells, stickyOffsets = props5.stickyOffsets, flattenColumns = props5.flattenColumns, RowComponent = props5.rowComponent, CellComponent = props5.cellComponent, customHeaderRow = props5.customHeaderRow, index3 = props5.index;
- var rowProps3;
- if (customHeaderRow) {
- rowProps3 = customHeaderRow(cells.map(function(cell) {
- return cell.column;
- }), index3);
- }
- var columnsKey = getColumnsKey(cells.map(function(cell) {
- return cell.column;
- }));
- return createVNode(RowComponent, rowProps3, {
- default: function _default9() {
- return [cells.map(function(cell, cellIndex) {
- var column = cell.column;
- var fixedInfo = getCellFixedInfo(cell.colStart, cell.colEnd, flattenColumns, stickyOffsets, direction);
- var additionalProps;
- if (column && column.customHeaderCell) {
- additionalProps = cell.column.customHeaderCell(column);
- }
- var col = column;
- return createVNode(Cell_default2, _objectSpread2(_objectSpread2(_objectSpread2({}, cell), {}, {
- "cellType": "header",
- "ellipsis": column.ellipsis,
- "align": column.align,
- "component": CellComponent,
- "prefixCls": prefixCls,
- "key": columnsKey[cellIndex]
- }, fixedInfo), {}, {
- "additionalProps": additionalProps,
- "rowType": "header",
- "column": column
- }), {
- default: function _default10() {
- return column.title;
- },
- dragHandle: function dragHandle() {
- return col.resizable ? createVNode(DragHandle_default, {
- "prefixCls": prefixCls,
- "width": col.width,
- "minWidth": col.minWidth,
- "maxWidth": col.maxWidth,
- "column": col
- }, null) : null;
- }
- });
- })];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/Header/Header.js
- function parseHeaderRows(rootColumns) {
- var rows = [];
- function fillRowCells(columns, colIndex) {
- var rowIndex2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
- rows[rowIndex2] = rows[rowIndex2] || [];
- var currentColIndex = colIndex;
- var colSpans = columns.filter(Boolean).map(function(column) {
- var cell = {
- key: column.key,
- class: classNames_default(column.className, column.class),
- // children: column.title,
- column,
- colStart: currentColIndex
- };
- var colSpan = 1;
- var subColumns = column.children;
- if (subColumns && subColumns.length > 0) {
- colSpan = fillRowCells(subColumns, currentColIndex, rowIndex2 + 1).reduce(function(total2, count) {
- return total2 + count;
- }, 0);
- cell.hasSubColumns = true;
- }
- if ("colSpan" in column) {
- colSpan = column.colSpan;
- }
- if ("rowSpan" in column) {
- cell.rowSpan = column.rowSpan;
- }
- cell.colSpan = colSpan;
- cell.colEnd = cell.colStart + colSpan - 1;
- rows[rowIndex2].push(cell);
- currentColIndex += colSpan;
- return colSpan;
- });
- return colSpans;
- }
- fillRowCells(rootColumns, 0);
- var rowCount = rows.length;
- var _loop = function _loop2(rowIndex2) {
- rows[rowIndex2].forEach(function(cell) {
- if (!("rowSpan" in cell) && !cell.hasSubColumns) {
- cell.rowSpan = rowCount - rowIndex2;
- }
- });
- };
- for (var rowIndex = 0; rowIndex < rowCount; rowIndex += 1) {
- _loop(rowIndex);
- }
- return rows;
- }
- var Header_default3 = defineComponent({
- name: "Header",
- inheritAttrs: false,
- props: ["columns", "flattenColumns", "stickyOffsets", "customHeaderRow"],
- setup: function setup180(props5) {
- var tableContext = useInjectTable();
- var rows = computed(function() {
- return parseHeaderRows(props5.columns);
- });
- return function() {
- var prefixCls = tableContext.prefixCls, getComponent4 = tableContext.getComponent;
- var stickyOffsets = props5.stickyOffsets, flattenColumns = props5.flattenColumns, customHeaderRow = props5.customHeaderRow;
- var WrapperComponent = getComponent4(["header", "wrapper"], "thead");
- var trComponent = getComponent4(["header", "row"], "tr");
- var thComponent = getComponent4(["header", "cell"], "th");
- return createVNode(WrapperComponent, {
- "class": "".concat(prefixCls, "-thead")
- }, {
- default: function _default9() {
- return [rows.value.map(function(row, rowIndex) {
- var rowNode = createVNode(HeaderRow_default, {
- "key": rowIndex,
- "flattenColumns": flattenColumns,
- "cells": row,
- "stickyOffsets": stickyOffsets,
- "rowComponent": trComponent,
- "cellComponent": thComponent,
- "customHeaderRow": customHeaderRow,
- "index": rowIndex
- }, null);
- return rowNode;
- })];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/context/ExpandedRowContext.js
- var ExpandedRowContextKey = Symbol("ExpandedRowProps");
- var useProvideExpandedRow = function useProvideExpandedRow2(props5) {
- provide(ExpandedRowContextKey, props5);
- };
- var useInjectExpandedRow = function useInjectExpandedRow2() {
- return inject(ExpandedRowContextKey, {});
- };
- // node_modules/ant-design-vue/es/vc-table/Body/ExpandedRow.js
- var ExpandedRow_default = defineComponent({
- name: "ExpandedRow",
- inheritAttrs: false,
- props: ["prefixCls", "component", "cellComponent", "expanded", "colSpan", "isEmpty"],
- setup: function setup181(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var tableContext = useInjectTable();
- var expandedRowContext = useInjectExpandedRow();
- var fixHeader = expandedRowContext.fixHeader, fixColumn = expandedRowContext.fixColumn, componentWidth = expandedRowContext.componentWidth, horizonScroll = expandedRowContext.horizonScroll;
- return function() {
- var prefixCls = props5.prefixCls, Component = props5.component, cellComponent = props5.cellComponent, expanded = props5.expanded, colSpan = props5.colSpan, isEmpty2 = props5.isEmpty;
- return createVNode(Component, {
- "class": attrs.class,
- "style": {
- display: expanded ? null : "none"
- }
- }, {
- default: function _default9() {
- return [createVNode(Cell_default2, {
- "component": cellComponent,
- "prefixCls": prefixCls,
- "colSpan": colSpan
- }, {
- default: function _default10() {
- var _slots$default;
- var contentNode = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- if (isEmpty2 ? horizonScroll.value : fixColumn.value) {
- var _contentNode = function() {
- return contentNode;
- }();
- contentNode = createVNode("div", {
- "style": {
- width: "".concat(componentWidth.value - (fixHeader.value ? tableContext.scrollbarSize : 0), "px"),
- position: "sticky",
- left: 0,
- overflow: "hidden"
- },
- "class": "".concat(prefixCls, "-expanded-row-fixed")
- }, [contentNode]);
- }
- return contentNode;
- }
- })];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/Body/MeasureCell.js
- var MeasureCell_default = defineComponent({
- name: "MeasureCell",
- props: ["columnKey"],
- setup: function setup182(props5, _ref) {
- var emit = _ref.emit;
- var tdRef = ref();
- onMounted(function() {
- if (tdRef.value) {
- emit("columnResize", props5.columnKey, tdRef.value.offsetWidth);
- }
- });
- return function() {
- return createVNode(vc_resize_observer_default, {
- "onResize": function onResize(_ref2) {
- var offsetWidth = _ref2.offsetWidth;
- emit("columnResize", props5.columnKey, offsetWidth);
- }
- }, {
- default: function _default9() {
- return [createVNode("td", {
- "ref": tdRef,
- "style": {
- padding: 0,
- border: 0,
- height: 0
- }
- }, [createVNode("div", {
- "style": {
- height: 0,
- overflow: "hidden"
- }
- }, [createTextVNode(" ")])])];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/context/BodyContext.js
- var BodyContextKey = Symbol("BodyContextProps");
- var useProvideBody = function useProvideBody2(props5) {
- provide(BodyContextKey, props5);
- };
- var useInjectBody = function useInjectBody2() {
- return inject(BodyContextKey, {});
- };
- // node_modules/ant-design-vue/es/vc-table/Body/BodyRow.js
- var BodyRow_default = defineComponent({
- name: "BodyRow",
- inheritAttrs: false,
- props: ["record", "index", "renderIndex", "recordKey", "expandedKeys", "rowComponent", "cellComponent", "customRow", "rowExpandable", "indent", "rowKey", "getRowKey", "childrenColumnName"],
- setup: function setup183(props5, _ref) {
- var attrs = _ref.attrs;
- var tableContext = useInjectTable();
- var bodyContext = useInjectBody();
- var expandRended = ref(false);
- var expanded = computed(function() {
- return props5.expandedKeys && props5.expandedKeys.has(props5.recordKey);
- });
- watchEffect(function() {
- if (expanded.value) {
- expandRended.value = true;
- }
- });
- var rowSupportExpand = computed(function() {
- return bodyContext.expandableType === "row" && (!props5.rowExpandable || props5.rowExpandable(props5.record));
- });
- var nestExpandable = computed(function() {
- return bodyContext.expandableType === "nest";
- });
- var hasNestChildren = computed(function() {
- return props5.childrenColumnName && props5.record && props5.record[props5.childrenColumnName];
- });
- var mergedExpandable = computed(function() {
- return rowSupportExpand.value || nestExpandable.value;
- });
- var onInternalTriggerExpand = function onInternalTriggerExpand2(record, event) {
- bodyContext.onTriggerExpand(record, event);
- };
- var additionalProps = computed(function() {
- var _props$customRow;
- return ((_props$customRow = props5.customRow) === null || _props$customRow === void 0 ? void 0 : _props$customRow.call(props5, props5.record, props5.index)) || {};
- });
- var onClick2 = function onClick3(event) {
- var _additionalProps$valu, _additionalProps$valu2;
- if (bodyContext.expandRowByClick && mergedExpandable.value) {
- onInternalTriggerExpand(props5.record, event);
- }
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
- (_additionalProps$valu = additionalProps.value) === null || _additionalProps$valu === void 0 ? void 0 : (_additionalProps$valu2 = _additionalProps$valu.onClick) === null || _additionalProps$valu2 === void 0 ? void 0 : _additionalProps$valu2.call.apply(_additionalProps$valu2, [_additionalProps$valu, event].concat(args));
- };
- var computeRowClassName = computed(function() {
- var record = props5.record, index3 = props5.index, indent = props5.indent;
- var rowClassName = bodyContext.rowClassName;
- if (typeof rowClassName === "string") {
- return rowClassName;
- } else if (typeof rowClassName === "function") {
- return rowClassName(record, index3, indent);
- }
- return "";
- });
- var columnsKey = computed(function() {
- return getColumnsKey(bodyContext.flattenColumns);
- });
- return function() {
- var className = attrs.class, style = attrs.style;
- var record = props5.record, index3 = props5.index, rowKey = props5.rowKey, _props$indent = props5.indent, indent = _props$indent === void 0 ? 0 : _props$indent, RowComponent = props5.rowComponent, cellComponent = props5.cellComponent;
- var prefixCls = tableContext.prefixCls, fixedInfoList = tableContext.fixedInfoList, transformCellText = tableContext.transformCellText;
- var flattenColumns = bodyContext.flattenColumns, expandedRowClassName = bodyContext.expandedRowClassName, indentSize = bodyContext.indentSize, expandIcon = bodyContext.expandIcon, expandedRowRender = bodyContext.expandedRowRender, expandIconColumnIndex = bodyContext.expandIconColumnIndex;
- var baseRowNode = createVNode(RowComponent, _objectSpread2(_objectSpread2({}, additionalProps.value), {}, {
- "data-row-key": rowKey,
- "class": classNames_default(className, "".concat(prefixCls, "-row"), "".concat(prefixCls, "-row-level-").concat(indent), computeRowClassName.value, additionalProps.value.class),
- "style": _objectSpread2(_objectSpread2({}, style), parseStyleText(additionalProps.value.style)),
- "onClick": onClick2
- }), {
- default: function _default9() {
- return [flattenColumns.map(function(column, colIndex) {
- var customRender = column.customRender, dataIndex = column.dataIndex, columnClassName = column.className;
- var key2 = columnsKey[colIndex];
- var fixedInfo = fixedInfoList[colIndex];
- var additionalCellProps;
- if (column.customCell) {
- additionalCellProps = column.customCell(record, index3, column);
- }
- var appendNode = colIndex === (expandIconColumnIndex || 0) && nestExpandable.value ? createVNode(Fragment, null, [createVNode("span", {
- "style": {
- paddingLeft: "".concat(indentSize * indent, "px")
- },
- "class": "".concat(prefixCls, "-row-indent indent-level-").concat(indent)
- }, null), expandIcon({
- prefixCls,
- expanded: expanded.value,
- expandable: hasNestChildren.value,
- record,
- onExpand: onInternalTriggerExpand
- })]) : null;
- return createVNode(Cell_default2, _objectSpread2(_objectSpread2({
- "cellType": "body",
- "class": columnClassName,
- "ellipsis": column.ellipsis,
- "align": column.align,
- "component": cellComponent,
- "prefixCls": prefixCls,
- "key": key2,
- "record": record,
- "index": index3,
- "renderIndex": props5.renderIndex,
- "dataIndex": dataIndex,
- "customRender": customRender
- }, fixedInfo), {}, {
- "additionalProps": additionalCellProps,
- "column": column,
- "transformCellText": transformCellText,
- "appendNode": appendNode
- }), null);
- })];
- }
- });
- var expandRowNode;
- if (rowSupportExpand.value && (expandRended.value || expanded.value)) {
- var expandContent = expandedRowRender({
- record,
- index: index3,
- indent: indent + 1,
- expanded: expanded.value
- });
- var computedExpandedRowClassName = expandedRowClassName && expandedRowClassName(record, index3, indent);
- expandRowNode = createVNode(ExpandedRow_default, {
- "expanded": expanded.value,
- "class": classNames_default("".concat(prefixCls, "-expanded-row"), "".concat(prefixCls, "-expanded-row-level-").concat(indent + 1), computedExpandedRowClassName),
- "prefixCls": prefixCls,
- "component": RowComponent,
- "cellComponent": cellComponent,
- "colSpan": flattenColumns.length,
- "isEmpty": false
- }, {
- default: function _default9() {
- return [expandContent];
- }
- });
- }
- return createVNode(Fragment, null, [baseRowNode, expandRowNode]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/hooks/useFlattenRecords.js
- function flatRecord(record, indent, childrenColumnName, expandedKeys, getRowKey, index3) {
- var arr = [];
- arr.push({
- record,
- indent,
- index: index3
- });
- var key2 = getRowKey(record);
- var expanded = expandedKeys === null || expandedKeys === void 0 ? void 0 : expandedKeys.has(key2);
- if (record && Array.isArray(record[childrenColumnName]) && expanded) {
- for (var i3 = 0; i3 < record[childrenColumnName].length; i3 += 1) {
- var tempArr = flatRecord(record[childrenColumnName][i3], indent + 1, childrenColumnName, expandedKeys, getRowKey, i3);
- arr.push.apply(arr, _toConsumableArray(tempArr));
- }
- }
- return arr;
- }
- function useFlattenRecords(dataRef, childrenColumnNameRef, expandedKeysRef, getRowKey) {
- var arr = computed(function() {
- var childrenColumnName = childrenColumnNameRef.value;
- var expandedKeys = expandedKeysRef.value;
- var data8 = dataRef.value;
- if (expandedKeys !== null && expandedKeys !== void 0 && expandedKeys.size) {
- var temp = [];
- for (var i3 = 0; i3 < (data8 === null || data8 === void 0 ? void 0 : data8.length); i3 += 1) {
- var record = data8[i3];
- temp.push.apply(temp, _toConsumableArray(flatRecord(record, 0, childrenColumnName, expandedKeys, getRowKey.value, i3)));
- }
- return temp;
- }
- return data8 === null || data8 === void 0 ? void 0 : data8.map(function(item, index3) {
- return {
- record: item,
- indent: 0,
- index: index3
- };
- });
- });
- return arr;
- }
- // node_modules/ant-design-vue/es/vc-table/context/ResizeContext.js
- var ResizeContextKey = Symbol("ResizeContextProps");
- var useProvideResize = function useProvideResize2(props5) {
- provide(ResizeContextKey, props5);
- };
- var useInjectResize = function useInjectResize2() {
- return inject(ResizeContextKey, {
- onColumnResize: function onColumnResize() {
- }
- });
- };
- // node_modules/ant-design-vue/es/vc-table/Body/index.js
- var Body_default = defineComponent({
- name: "Body",
- props: ["data", "getRowKey", "measureColumnWidth", "expandedKeys", "customRow", "rowExpandable", "childrenColumnName"],
- slots: ["emptyNode"],
- setup: function setup184(props5, _ref) {
- var slots = _ref.slots;
- var resizeContext = useInjectResize();
- var tableContext = useInjectTable();
- var bodyContext = useInjectBody();
- var flattenData2 = useFlattenRecords(toRef(props5, "data"), toRef(props5, "childrenColumnName"), toRef(props5, "expandedKeys"), toRef(props5, "getRowKey"));
- var startRow = ref(-1);
- var endRow = ref(-1);
- var timeoutId;
- useProvideHover({
- startRow,
- endRow,
- onHover: function onHover(start, end) {
- clearTimeout(timeoutId);
- timeoutId = setTimeout(function() {
- startRow.value = start;
- endRow.value = end;
- }, 100);
- }
- });
- return function() {
- var data8 = props5.data, getRowKey = props5.getRowKey, measureColumnWidth = props5.measureColumnWidth, expandedKeys = props5.expandedKeys, customRow = props5.customRow, rowExpandable = props5.rowExpandable, childrenColumnName = props5.childrenColumnName;
- var onColumnResize = resizeContext.onColumnResize;
- var prefixCls = tableContext.prefixCls, getComponent4 = tableContext.getComponent;
- var flattenColumns = bodyContext.flattenColumns;
- var WrapperComponent = getComponent4(["body", "wrapper"], "tbody");
- var trComponent = getComponent4(["body", "row"], "tr");
- var tdComponent = getComponent4(["body", "cell"], "td");
- var rows;
- if (data8.length) {
- rows = flattenData2.value.map(function(item, idx) {
- var record = item.record, indent = item.indent, renderIndex = item.index;
- var key2 = getRowKey(record, idx);
- return createVNode(BodyRow_default, {
- "key": key2,
- "rowKey": key2,
- "record": record,
- "recordKey": key2,
- "index": idx,
- "renderIndex": renderIndex,
- "rowComponent": trComponent,
- "cellComponent": tdComponent,
- "expandedKeys": expandedKeys,
- "customRow": customRow,
- "getRowKey": getRowKey,
- "rowExpandable": rowExpandable,
- "childrenColumnName": childrenColumnName,
- "indent": indent
- }, null);
- });
- } else {
- var _slots$emptyNode;
- rows = createVNode(ExpandedRow_default, {
- "expanded": true,
- "class": "".concat(prefixCls, "-placeholder"),
- "prefixCls": prefixCls,
- "component": trComponent,
- "cellComponent": tdComponent,
- "colSpan": flattenColumns.length,
- "isEmpty": true
- }, {
- default: function _default9() {
- return [(_slots$emptyNode = slots.emptyNode) === null || _slots$emptyNode === void 0 ? void 0 : _slots$emptyNode.call(slots)];
- }
- });
- }
- var columnsKey = getColumnsKey(flattenColumns);
- return createVNode(WrapperComponent, {
- "class": "".concat(prefixCls, "-tbody")
- }, {
- default: function _default9() {
- return [measureColumnWidth && createVNode("tr", {
- "aria-hidden": "true",
- "class": "".concat(prefixCls, "-measure-row"),
- "style": {
- height: 0,
- fontSize: 0
- }
- }, [columnsKey.map(function(columnKey) {
- return createVNode(MeasureCell_default, {
- "key": columnKey,
- "columnKey": columnKey,
- "onColumnResize": onColumnResize
- }, null);
- })]), rows];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/constant.js
- var EXPAND_COLUMN = {};
- // node_modules/ant-design-vue/es/vc-table/hooks/useColumns.js
- var _excluded56 = ["fixed"];
- function flatColumns(columns) {
- return columns.reduce(function(list, column) {
- var fixed = column.fixed;
- var parsedFixed = fixed === true ? "left" : fixed;
- var subColumns = column.children;
- if (subColumns && subColumns.length > 0) {
- return [].concat(_toConsumableArray(list), _toConsumableArray(flatColumns(subColumns).map(function(subColum) {
- return _objectSpread2({
- fixed: parsedFixed
- }, subColum);
- })));
- }
- return [].concat(_toConsumableArray(list), [_objectSpread2(_objectSpread2({}, column), {}, {
- fixed: parsedFixed
- })]);
- }, []);
- }
- function warningFixed(flattenColumns) {
- var allFixLeft = true;
- for (var i3 = 0; i3 < flattenColumns.length; i3 += 1) {
- var col = flattenColumns[i3];
- if (allFixLeft && col.fixed !== "left") {
- allFixLeft = false;
- } else if (!allFixLeft && col.fixed === "left") {
- warning(false, "Index ".concat(i3 - 1, " of `columns` missing `fixed='left'` prop."));
- break;
- }
- }
- var allFixRight = true;
- for (var _i = flattenColumns.length - 1; _i >= 0; _i -= 1) {
- var _col = flattenColumns[_i];
- if (allFixRight && _col.fixed !== "right") {
- allFixRight = false;
- } else if (!allFixRight && _col.fixed === "right") {
- warning(false, "Index ".concat(_i + 1, " of `columns` missing `fixed='right'` prop."));
- break;
- }
- }
- }
- function revertForRtl(columns) {
- return columns.map(function(column) {
- var fixed = column.fixed, restProps = _objectWithoutProperties(column, _excluded56);
- var parsedFixed = fixed;
- if (fixed === "left") {
- parsedFixed = "right";
- } else if (fixed === "right") {
- parsedFixed = "left";
- }
- return _objectSpread2({
- fixed: parsedFixed
- }, restProps);
- });
- }
- function useColumns(_ref, transformColumns) {
- var prefixCls = _ref.prefixCls, baseColumns = _ref.columns, expandable = _ref.expandable, expandedKeys = _ref.expandedKeys, getRowKey = _ref.getRowKey, onTriggerExpand = _ref.onTriggerExpand, expandIcon = _ref.expandIcon, rowExpandable = _ref.rowExpandable, expandIconColumnIndex = _ref.expandIconColumnIndex, direction = _ref.direction, expandRowByClick = _ref.expandRowByClick, expandColumnWidth = _ref.expandColumnWidth, expandFixed = _ref.expandFixed;
- var withExpandColumns = computed(function() {
- if (expandable.value) {
- var _expandColumn;
- var cloneColumns = baseColumns.value.slice();
- if (expandIconColumnIndex.value >= 0) {
- warning(false, "`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead.");
- }
- if (!cloneColumns.includes(EXPAND_COLUMN)) {
- var expandColIndex = expandIconColumnIndex.value || 0;
- if (expandColIndex >= 0) {
- cloneColumns.splice(expandColIndex, 0, EXPAND_COLUMN);
- }
- }
- if (cloneColumns.filter(function(c2) {
- return c2 === EXPAND_COLUMN;
- }).length > 1) {
- warning(false, "There exist more than one `EXPAND_COLUMN` in `columns`.");
- }
- var expandColumnIndex = cloneColumns.indexOf(EXPAND_COLUMN);
- cloneColumns = cloneColumns.filter(function(column, index3) {
- return column !== EXPAND_COLUMN || index3 === expandColumnIndex;
- });
- var prevColumn = baseColumns.value[expandColumnIndex];
- var fixedColumn;
- if ((expandFixed.value === "left" || expandFixed.value) && !expandIconColumnIndex.value) {
- fixedColumn = "left";
- } else if ((expandFixed.value === "right" || expandFixed.value) && expandIconColumnIndex.value === baseColumns.value.length) {
- fixedColumn = "right";
- } else {
- fixedColumn = prevColumn ? prevColumn.fixed : null;
- }
- var expandedKeysValue = expandedKeys.value;
- var rowExpandableValue = rowExpandable.value;
- var expandIconValue = expandIcon.value;
- var prefixClsValue = prefixCls.value;
- var expandRowByClickValue = expandRowByClick.value;
- var expandColumn = (_expandColumn = {}, _defineProperty(_expandColumn, INTERNAL_COL_DEFINE, {
- class: "".concat(prefixCls.value, "-expand-icon-col"),
- columnType: "EXPAND_COLUMN"
- }), _defineProperty(_expandColumn, "title", ""), _defineProperty(_expandColumn, "fixed", fixedColumn), _defineProperty(_expandColumn, "class", "".concat(prefixCls.value, "-row-expand-icon-cell")), _defineProperty(_expandColumn, "width", expandColumnWidth.value), _defineProperty(_expandColumn, "customRender", function customRender(_ref2) {
- var record = _ref2.record, index3 = _ref2.index;
- var rowKey = getRowKey.value(record, index3);
- var expanded = expandedKeysValue.has(rowKey);
- var recordExpandable = rowExpandableValue ? rowExpandableValue(record) : true;
- var icon = expandIconValue({
- prefixCls: prefixClsValue,
- expanded,
- expandable: recordExpandable,
- record,
- onExpand: onTriggerExpand
- });
- if (expandRowByClickValue) {
- return createVNode("span", {
- "onClick": function onClick2(e3) {
- return e3.stopPropagation();
- }
- }, [icon]);
- }
- return icon;
- }), _expandColumn);
- return cloneColumns.map(function(col) {
- return col === EXPAND_COLUMN ? expandColumn : col;
- });
- }
- if (baseColumns.value.includes(EXPAND_COLUMN)) {
- warning(false, "`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`.");
- }
- return baseColumns.value.filter(function(col) {
- return col !== EXPAND_COLUMN;
- });
- });
- var mergedColumns = computed(function() {
- var finalColumns = withExpandColumns.value;
- if (transformColumns.value) {
- finalColumns = transformColumns.value(finalColumns);
- }
- if (!finalColumns.length) {
- finalColumns = [{
- customRender: function customRender() {
- return null;
- }
- }];
- }
- return finalColumns;
- });
- var flattenColumns = computed(function() {
- if (direction.value === "rtl") {
- return revertForRtl(flatColumns(mergedColumns.value));
- }
- return flatColumns(mergedColumns.value);
- });
- if (true) {
- watchEffect(function() {
- setTimeout(function() {
- warningFixed(flattenColumns.value);
- });
- });
- }
- return [mergedColumns, flattenColumns];
- }
- var useColumns_default = useColumns;
- // node_modules/ant-design-vue/es/vc-table/hooks/useFrame.js
- function useLayoutState(defaultState) {
- var stateRef = shallowRef(defaultState);
- var rafId;
- var updateBatchRef = shallowRef([]);
- function setFrameState(updater) {
- updateBatchRef.value.push(updater);
- wrapperRaf.cancel(rafId);
- rafId = wrapperRaf(function() {
- var prevBatch = updateBatchRef.value;
- updateBatchRef.value = [];
- prevBatch.forEach(function(batchUpdater) {
- stateRef.value = batchUpdater(stateRef.value);
- });
- });
- }
- onBeforeUnmount(function() {
- wrapperRaf.cancel(rafId);
- });
- return [stateRef, setFrameState];
- }
- function useTimeoutLock(defaultState) {
- var frameRef = ref(defaultState || null);
- var timeoutRef = ref();
- function cleanUp() {
- clearTimeout(timeoutRef.value);
- }
- function setState2(newState) {
- frameRef.value = newState;
- cleanUp();
- timeoutRef.value = setTimeout(function() {
- frameRef.value = null;
- timeoutRef.value = void 0;
- }, 100);
- }
- function getState() {
- return frameRef.value;
- }
- onBeforeUnmount(function() {
- cleanUp();
- });
- return [setState2, getState];
- }
- // node_modules/ant-design-vue/es/vc-table/hooks/useStickyOffsets.js
- function useStickyOffsets(colWidthsRef, columnCountRef, directionRef) {
- var stickyOffsets = computed(function() {
- var leftOffsets = [];
- var rightOffsets = [];
- var left = 0;
- var right = 0;
- var colWidths = colWidthsRef.value;
- var columnCount = columnCountRef.value;
- var direction = directionRef.value;
- for (var start = 0; start < columnCount; start += 1) {
- if (direction === "rtl") {
- rightOffsets[start] = right;
- right += colWidths[start] || 0;
- var end = columnCount - start - 1;
- leftOffsets[end] = left;
- left += colWidths[end] || 0;
- } else {
- leftOffsets[start] = left;
- left += colWidths[start] || 0;
- var _end = columnCount - start - 1;
- rightOffsets[_end] = right;
- right += colWidths[_end] || 0;
- }
- }
- return {
- left: leftOffsets,
- right: rightOffsets
- };
- });
- return stickyOffsets;
- }
- var useStickyOffsets_default = useStickyOffsets;
- // node_modules/ant-design-vue/es/vc-table/ColGroup.js
- var _excluded57 = ["columnType"];
- function ColGroup(_ref) {
- var colWidths = _ref.colWidths, columns = _ref.columns, columCount = _ref.columCount;
- var cols = [];
- var len = columCount || columns.length;
- var mustInsert = false;
- for (var i3 = len - 1; i3 >= 0; i3 -= 1) {
- var width = colWidths[i3];
- var column = columns && columns[i3];
- var additionalProps = column && column[INTERNAL_COL_DEFINE];
- if (width || additionalProps || mustInsert) {
- var _ref2 = additionalProps || {}, columnType = _ref2.columnType, restAdditionalProps = _objectWithoutProperties(_ref2, _excluded57);
- cols.unshift(createVNode("col", _objectSpread2({
- "key": i3,
- "style": {
- width: typeof width === "number" ? "".concat(width, "px") : width
- }
- }, restAdditionalProps), null));
- mustInsert = true;
- }
- }
- return createVNode("colgroup", null, [cols]);
- }
- var ColGroup_default = ColGroup;
- // node_modules/ant-design-vue/es/vc-table/Panel/index.js
- function Panel(_2, _ref) {
- var _slots$default;
- var slots = _ref.slots;
- return createVNode("div", null, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- }
- Panel.displayName = "Panel";
- var Panel_default = Panel;
- // node_modules/ant-design-vue/es/vc-table/Footer/Summary.js
- var indexGuid4 = 0;
- var Summary = defineComponent({
- name: "Summary",
- props: ["fixed"],
- setup: function setup185(props5, _ref) {
- var slots = _ref.slots;
- var tableContext = useInjectTable();
- var uniKey = "table-summary-uni-key-".concat(++indexGuid4);
- var fixed = computed(function() {
- return props5.fixed === "" || props5.fixed;
- });
- watchEffect(function() {
- tableContext.summaryCollect(uniKey, fixed.value);
- });
- onBeforeUnmount(function() {
- tableContext.summaryCollect(uniKey, false);
- });
- return function() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- };
- }
- });
- var Summary_default = Summary;
- // node_modules/ant-design-vue/es/vc-table/Footer/Row.js
- var Row_default3 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATableSummaryRow",
- setup: function setup186(_props, _ref) {
- var slots = _ref.slots;
- return function() {
- var _slots$default;
- return createVNode("tr", null, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/context/SummaryContext.js
- var SummaryContextKey = Symbol("SummaryContextProps");
- var useProvideSummary = function useProvideSummary2(props5) {
- provide(SummaryContextKey, props5);
- };
- var useInjectSummary = function useInjectSummary2() {
- return inject(SummaryContextKey, {});
- };
- // node_modules/ant-design-vue/es/vc-table/Footer/Cell.js
- var Cell_default3 = defineComponent({
- name: "ATableSummaryCell",
- props: ["index", "colSpan", "rowSpan", "align"],
- setup: function setup187(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var tableContext = useInjectTable();
- var summaryContext = useInjectSummary();
- return function() {
- var index3 = props5.index, _props$colSpan = props5.colSpan, colSpan = _props$colSpan === void 0 ? 1 : _props$colSpan, rowSpan = props5.rowSpan, align = props5.align;
- var prefixCls = tableContext.prefixCls, direction = tableContext.direction;
- var scrollColumnIndex = summaryContext.scrollColumnIndex, stickyOffsets = summaryContext.stickyOffsets, flattenColumns = summaryContext.flattenColumns;
- var lastIndex = index3 + colSpan - 1;
- var mergedColSpan = lastIndex + 1 === scrollColumnIndex ? colSpan + 1 : colSpan;
- var fixedInfo = getCellFixedInfo(index3, index3 + mergedColSpan - 1, flattenColumns, stickyOffsets, direction);
- return createVNode(Cell_default2, _objectSpread2({
- "class": attrs.class,
- "index": index3,
- "component": "td",
- "prefixCls": prefixCls,
- "record": null,
- "dataIndex": null,
- "align": align,
- "colSpan": mergedColSpan,
- "rowSpan": rowSpan,
- "customRender": function customRender() {
- var _slots$default;
- return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- }
- }, fixedInfo), null);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/Footer/index.js
- var Footer_default = defineComponent({
- name: "Footer",
- inheritAttrs: false,
- props: ["stickyOffsets", "flattenColumns"],
- setup: function setup188(props5, _ref) {
- var slots = _ref.slots;
- var tableContext = useInjectTable();
- useProvideSummary(reactive({
- stickyOffsets: toRef(props5, "stickyOffsets"),
- flattenColumns: toRef(props5, "flattenColumns"),
- scrollColumnIndex: computed(function() {
- var lastColumnIndex = props5.flattenColumns.length - 1;
- var scrollColumn = props5.flattenColumns[lastColumnIndex];
- return scrollColumn !== null && scrollColumn !== void 0 && scrollColumn.scrollbar ? lastColumnIndex : null;
- })
- }));
- return function() {
- var _slots$default;
- var prefixCls = tableContext.prefixCls;
- return createVNode("tfoot", {
- "class": "".concat(prefixCls, "-summary")
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- }
- });
- var FooterComponents = Summary_default;
- // node_modules/ant-design-vue/es/vc-table/utils/expandUtil.js
- function renderExpandIcon(_ref) {
- var _ref2;
- var prefixCls = _ref.prefixCls, record = _ref.record, onExpand = _ref.onExpand, expanded = _ref.expanded, expandable = _ref.expandable;
- var expandClassName = "".concat(prefixCls, "-row-expand-icon");
- if (!expandable) {
- return createVNode("span", {
- "class": [expandClassName, "".concat(prefixCls, "-row-spaced")]
- }, null);
- }
- var onClick2 = function onClick3(event) {
- onExpand(record, event);
- event.stopPropagation();
- };
- return createVNode("span", {
- "class": (_ref2 = {}, _defineProperty(_ref2, expandClassName, true), _defineProperty(_ref2, "".concat(prefixCls, "-row-expanded"), expanded), _defineProperty(_ref2, "".concat(prefixCls, "-row-collapsed"), !expanded), _ref2),
- "onClick": onClick2
- }, null);
- }
- function findAllChildrenKeys(data8, getRowKey, childrenColumnName) {
- var keys2 = [];
- function dig(list) {
- (list || []).forEach(function(item, index3) {
- keys2.push(getRowKey(item, index3));
- dig(item[childrenColumnName]);
- });
- }
- dig(data8);
- return keys2;
- }
- // node_modules/ant-design-vue/es/vc-table/stickyScrollBar.js
- var stickyScrollBar_default = defineComponent({
- name: "StickyScrollBar",
- inheritAttrs: false,
- props: ["offsetScroll", "container", "scrollBodyRef", "scrollBodySizeInfo"],
- emits: ["scroll"],
- setup: function setup189(props5, _ref) {
- var emit = _ref.emit, expose = _ref.expose;
- var tableContext = useInjectTable();
- var bodyScrollWidth = ref(0);
- var bodyWidth = ref(0);
- var scrollBarWidth = ref(0);
- watchEffect(function() {
- bodyScrollWidth.value = props5.scrollBodySizeInfo.scrollWidth || 0;
- bodyWidth.value = props5.scrollBodySizeInfo.clientWidth || 0;
- scrollBarWidth.value = bodyScrollWidth.value && bodyWidth.value * (bodyWidth.value / bodyScrollWidth.value);
- }, {
- flush: "post"
- });
- var scrollBarRef = ref();
- var _useLayoutState = useLayoutState({
- scrollLeft: 0,
- isHiddenScrollBar: true
- }), _useLayoutState2 = _slicedToArray(_useLayoutState, 2), scrollState = _useLayoutState2[0], setScrollState = _useLayoutState2[1];
- var refState = ref({
- delta: 0,
- x: 0
- });
- var isActive = ref(false);
- var onMouseUp2 = function onMouseUp3() {
- isActive.value = false;
- };
- var onMouseDown2 = function onMouseDown3(event) {
- refState.value = {
- delta: event.pageX - scrollState.value.scrollLeft,
- x: 0
- };
- isActive.value = true;
- event.preventDefault();
- };
- var onMouseMove3 = function onMouseMove4(event) {
- var _window2;
- var _ref2 = event || ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.event), buttons = _ref2.buttons;
- if (!isActive.value || buttons === 0) {
- if (isActive.value) {
- isActive.value = false;
- }
- return;
- }
- var left = refState.value.x + event.pageX - refState.value.x - refState.value.delta;
- if (left <= 0) {
- left = 0;
- }
- if (left + scrollBarWidth.value >= bodyWidth.value) {
- left = bodyWidth.value - scrollBarWidth.value;
- }
- emit("scroll", {
- scrollLeft: left / bodyWidth.value * (bodyScrollWidth.value + 2)
- });
- refState.value.x = event.pageX;
- };
- var onContainerScroll = function onContainerScroll2() {
- if (!props5.scrollBodyRef.value) {
- return;
- }
- var tableOffsetTop = getOffset3(props5.scrollBodyRef.value).top;
- var tableBottomOffset = tableOffsetTop + props5.scrollBodyRef.value.offsetHeight;
- var currentClientOffset = props5.container === window ? document.documentElement.scrollTop + window.innerHeight : getOffset3(props5.container).top + props5.container.clientHeight;
- if (tableBottomOffset - getScrollBarSize() <= currentClientOffset || tableOffsetTop >= currentClientOffset - props5.offsetScroll) {
- setScrollState(function(state) {
- return _objectSpread2(_objectSpread2({}, state), {}, {
- isHiddenScrollBar: true
- });
- });
- } else {
- setScrollState(function(state) {
- return _objectSpread2(_objectSpread2({}, state), {}, {
- isHiddenScrollBar: false
- });
- });
- }
- };
- var setScrollLeft = function setScrollLeft2(left) {
- setScrollState(function(state) {
- return _objectSpread2(_objectSpread2({}, state), {}, {
- scrollLeft: left / bodyScrollWidth.value * bodyWidth.value || 0
- });
- });
- };
- expose({
- setScrollLeft
- });
- var onMouseUpListener = null;
- var onMouseMoveListener = null;
- var onResizeListener = null;
- var onScrollListener = null;
- onMounted(function() {
- onMouseUpListener = addEventListenerWrap(document.body, "mouseup", onMouseUp2, false);
- onMouseMoveListener = addEventListenerWrap(document.body, "mousemove", onMouseMove3, false);
- onResizeListener = addEventListenerWrap(window, "resize", onContainerScroll, false);
- });
- onActivated(function() {
- nextTick(function() {
- onContainerScroll();
- });
- });
- onMounted(function() {
- setTimeout(function() {
- watch([scrollBarWidth, isActive], function() {
- onContainerScroll();
- }, {
- immediate: true,
- flush: "post"
- });
- });
- });
- watch(function() {
- return props5.container;
- }, function() {
- var _onScrollListener;
- (_onScrollListener = onScrollListener) === null || _onScrollListener === void 0 ? void 0 : _onScrollListener.remove();
- onScrollListener = addEventListenerWrap(props5.container, "scroll", onContainerScroll, false);
- }, {
- immediate: true,
- flush: "post"
- });
- onBeforeUnmount(function() {
- var _onMouseUpListener, _onMouseMoveListener, _onScrollListener2, _onResizeListener;
- (_onMouseUpListener = onMouseUpListener) === null || _onMouseUpListener === void 0 ? void 0 : _onMouseUpListener.remove();
- (_onMouseMoveListener = onMouseMoveListener) === null || _onMouseMoveListener === void 0 ? void 0 : _onMouseMoveListener.remove();
- (_onScrollListener2 = onScrollListener) === null || _onScrollListener2 === void 0 ? void 0 : _onScrollListener2.remove();
- (_onResizeListener = onResizeListener) === null || _onResizeListener === void 0 ? void 0 : _onResizeListener.remove();
- });
- watch(function() {
- return _objectSpread2({}, scrollState.value);
- }, function(newState, preState) {
- if (newState.isHiddenScrollBar !== (preState === null || preState === void 0 ? void 0 : preState.isHiddenScrollBar) && !newState.isHiddenScrollBar) {
- setScrollState(function(state) {
- var bodyNode = props5.scrollBodyRef.value;
- if (!bodyNode) {
- return state;
- }
- return _objectSpread2(_objectSpread2({}, state), {}, {
- scrollLeft: bodyNode.scrollLeft / bodyNode.scrollWidth * bodyNode.clientWidth
- });
- });
- }
- }, {
- immediate: true
- });
- var scrollbarSize = getScrollBarSize();
- return function() {
- if (bodyScrollWidth.value <= bodyWidth.value || !scrollBarWidth.value || scrollState.value.isHiddenScrollBar) {
- return null;
- }
- var prefixCls = tableContext.prefixCls;
- return createVNode("div", {
- "style": {
- height: "".concat(scrollbarSize, "px"),
- width: "".concat(bodyWidth.value, "px"),
- bottom: "".concat(props5.offsetScroll, "px")
- },
- "class": "".concat(prefixCls, "-sticky-scroll")
- }, [createVNode("div", {
- "onMousedown": onMouseDown2,
- "ref": scrollBarRef,
- "class": classNames_default("".concat(prefixCls, "-sticky-scroll-bar"), _defineProperty({}, "".concat(prefixCls, "-sticky-scroll-bar-active"), isActive.value)),
- "style": {
- width: "".concat(scrollBarWidth.value, "px"),
- transform: "translate3d(".concat(scrollState.value.scrollLeft, "px, 0, 0)")
- }
- }, null)]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/hooks/useSticky.js
- var defaultContainer = canUseDom_default() ? window : null;
- function useSticky(stickyRef, prefixClsRef) {
- return computed(function() {
- var _ref = _typeof(stickyRef.value) === "object" ? stickyRef.value : {}, _ref$offsetHeader = _ref.offsetHeader, offsetHeader = _ref$offsetHeader === void 0 ? 0 : _ref$offsetHeader, _ref$offsetSummary = _ref.offsetSummary, offsetSummary = _ref$offsetSummary === void 0 ? 0 : _ref$offsetSummary, _ref$offsetScroll = _ref.offsetScroll, offsetScroll = _ref$offsetScroll === void 0 ? 0 : _ref$offsetScroll, _ref$getContainer = _ref.getContainer, getContainer5 = _ref$getContainer === void 0 ? function() {
- return defaultContainer;
- } : _ref$getContainer;
- var container = getContainer5() || defaultContainer;
- var isSticky = !!stickyRef.value;
- return {
- isSticky,
- stickyClassName: isSticky ? "".concat(prefixClsRef.value, "-sticky-holder") : "",
- offsetHeader,
- offsetSummary,
- offsetScroll,
- container
- };
- });
- }
- // node_modules/ant-design-vue/es/vc-table/FixedHolder/index.js
- function useColumnWidth(colWidthsRef, columCountRef) {
- return computed(function() {
- var cloneColumns = [];
- var colWidths = colWidthsRef.value;
- var columCount = columCountRef.value;
- for (var i3 = 0; i3 < columCount; i3 += 1) {
- var val = colWidths[i3];
- if (val !== void 0) {
- cloneColumns[i3] = val;
- } else {
- return null;
- }
- }
- return cloneColumns;
- });
- }
- var FixedHolder_default = defineComponent({
- name: "FixedHolder",
- inheritAttrs: false,
- props: ["columns", "flattenColumns", "stickyOffsets", "customHeaderRow", "noData", "maxContentScroll", "colWidths", "columCount", "direction", "fixHeader", "stickyTopOffset", "stickyBottomOffset", "stickyClassName"],
- emits: ["scroll"],
- setup: function setup190(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, emit = _ref.emit;
- var tableContext = useInjectTable();
- var combinationScrollBarSize = computed(function() {
- return tableContext.isSticky && !props5.fixHeader ? 0 : tableContext.scrollbarSize;
- });
- var scrollRef = ref();
- var onWheel = function onWheel2(e3) {
- var currentTarget = e3.currentTarget, deltaX = e3.deltaX;
- if (deltaX) {
- emit("scroll", {
- currentTarget,
- scrollLeft: currentTarget.scrollLeft + deltaX
- });
- e3.preventDefault();
- }
- };
- var wheelEvent = ref();
- onMounted(function() {
- nextTick(function() {
- wheelEvent.value = addEventListenerWrap(scrollRef.value, "wheel", onWheel);
- });
- });
- onBeforeUnmount(function() {
- var _wheelEvent$value;
- (_wheelEvent$value = wheelEvent.value) === null || _wheelEvent$value === void 0 ? void 0 : _wheelEvent$value.remove();
- });
- var allFlattenColumnsWithWidth = computed(function() {
- return props5.flattenColumns.every(function(column) {
- return column.width && column.width !== 0 && column.width !== "0px";
- });
- });
- var columnsWithScrollbar = ref([]);
- var flattenColumnsWithScrollbar = ref([]);
- watchEffect(function() {
- var lastColumn = props5.flattenColumns[props5.flattenColumns.length - 1];
- var ScrollBarColumn = {
- fixed: lastColumn ? lastColumn.fixed : null,
- scrollbar: true,
- customHeaderCell: function customHeaderCell() {
- return {
- class: "".concat(tableContext.prefixCls, "-cell-scrollbar")
- };
- }
- };
- columnsWithScrollbar.value = combinationScrollBarSize.value ? [].concat(_toConsumableArray(props5.columns), [ScrollBarColumn]) : props5.columns;
- flattenColumnsWithScrollbar.value = combinationScrollBarSize.value ? [].concat(_toConsumableArray(props5.flattenColumns), [ScrollBarColumn]) : props5.flattenColumns;
- });
- var headerStickyOffsets = computed(function() {
- var stickyOffsets = props5.stickyOffsets, direction = props5.direction;
- var right = stickyOffsets.right, left = stickyOffsets.left;
- return _objectSpread2(_objectSpread2({}, stickyOffsets), {}, {
- left: direction === "rtl" ? [].concat(_toConsumableArray(left.map(function(width) {
- return width + combinationScrollBarSize.value;
- })), [0]) : left,
- right: direction === "rtl" ? right : [].concat(_toConsumableArray(right.map(function(width) {
- return width + combinationScrollBarSize.value;
- })), [0]),
- isSticky: tableContext.isSticky
- });
- });
- var mergedColumnWidth = useColumnWidth(toRef(props5, "colWidths"), toRef(props5, "columCount"));
- return function() {
- var _slots$default;
- var noData = props5.noData, columCount = props5.columCount, stickyTopOffset = props5.stickyTopOffset, stickyBottomOffset = props5.stickyBottomOffset, stickyClassName = props5.stickyClassName, maxContentScroll = props5.maxContentScroll;
- var isSticky = tableContext.isSticky;
- return createVNode("div", {
- "style": _objectSpread2({
- overflow: "hidden"
- }, isSticky ? {
- top: "".concat(stickyTopOffset, "px"),
- bottom: "".concat(stickyBottomOffset, "px")
- } : {}),
- "ref": scrollRef,
- "class": classNames_default(attrs.class, _defineProperty({}, stickyClassName, !!stickyClassName))
- }, [createVNode("table", {
- "style": {
- tableLayout: "fixed",
- visibility: noData || mergedColumnWidth.value ? null : "hidden"
- }
- }, [(!noData || !maxContentScroll || allFlattenColumnsWithWidth.value) && createVNode(ColGroup_default, {
- "colWidths": mergedColumnWidth.value ? [].concat(_toConsumableArray(mergedColumnWidth.value), [combinationScrollBarSize.value]) : [],
- "columCount": columCount + 1,
- "columns": flattenColumnsWithScrollbar.value
- }, null), (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots, _objectSpread2(_objectSpread2({}, props5), {}, {
- stickyOffsets: headerStickyOffsets.value,
- columns: columnsWithScrollbar.value,
- flattenColumns: flattenColumnsWithScrollbar.value
- }))])]);
- };
- }
- });
- // node_modules/lodash-es/fromPairs.js
- function fromPairs(pairs) {
- var index3 = -1, length = pairs == null ? 0 : pairs.length, result = {};
- while (++index3 < length) {
- var pair = pairs[index3];
- result[pair[0]] = pair[1];
- }
- return result;
- }
- var fromPairs_default = fromPairs;
- // node_modules/ant-design-vue/es/_util/reactivePick.js
- function reactivePick(obj) {
- for (var _len = arguments.length, keys2 = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- keys2[_key - 1] = arguments[_key];
- }
- return reactive(fromPairs_default(keys2.map(function(k2) {
- return [k2, toRef(obj, k2)];
- })));
- }
- // node_modules/ant-design-vue/es/vc-table/Table.js
- var EMPTY_DATA2 = [];
- var EMPTY_SCROLL_TARGET = {};
- var INTERNAL_HOOKS = "rc-table-internal-hook";
- var Table_default = defineComponent({
- name: "Table",
- inheritAttrs: false,
- props: ["prefixCls", "data", "columns", "rowKey", "tableLayout", "scroll", "rowClassName", "title", "footer", "id", "showHeader", "components", "customRow", "customHeaderRow", "direction", "expandFixed", "expandColumnWidth", "expandedRowKeys", "defaultExpandedRowKeys", "expandedRowRender", "expandRowByClick", "expandIcon", "onExpand", "onExpandedRowsChange", "onUpdate:expandedRowKeys", "defaultExpandAllRows", "indentSize", "expandIconColumnIndex", "expandedRowClassName", "childrenColumnName", "rowExpandable", "sticky", "transformColumns", "internalHooks", "internalRefs", "canExpandable", "onUpdateInternalRefs", "transformCellText"],
- slots: ["title", "footer", "summary", "emptyText"],
- emits: ["expand", "expandedRowsChange", "updateInternalRefs", "update:expandedRowKeys"],
- setup: function setup191(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, emit = _ref.emit;
- var mergedData = computed(function() {
- return props5.data || EMPTY_DATA2;
- });
- var hasData = computed(function() {
- return !!mergedData.value.length;
- });
- var mergedComponents = computed(function() {
- return mergeObject(props5.components, {});
- });
- var getComponent4 = function getComponent5(path2, defaultComponent) {
- return getPathValue(mergedComponents.value, path2) || defaultComponent;
- };
- var getRowKey = computed(function() {
- var rowKey = props5.rowKey;
- if (typeof rowKey === "function") {
- return rowKey;
- }
- return function(record) {
- var key2 = record && record[rowKey];
- if (true) {
- warning(key2 !== void 0, "Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key.");
- }
- return key2;
- };
- });
- var mergedExpandIcon = computed(function() {
- return props5.expandIcon || renderExpandIcon;
- });
- var mergedChildrenColumnName = computed(function() {
- return props5.childrenColumnName || "children";
- });
- var expandableType = computed(function() {
- if (props5.expandedRowRender) {
- return "row";
- }
- if (props5.canExpandable || mergedData.value.some(function(record) {
- return record && _typeof(record) === "object" && record[mergedChildrenColumnName.value];
- })) {
- return "nest";
- }
- return false;
- });
- var innerExpandedKeys = shallowRef([]);
- var stop = watchEffect(function() {
- if (props5.defaultExpandedRowKeys) {
- innerExpandedKeys.value = props5.defaultExpandedRowKeys;
- }
- if (props5.defaultExpandAllRows) {
- innerExpandedKeys.value = findAllChildrenKeys(mergedData.value, getRowKey.value, mergedChildrenColumnName.value);
- }
- });
- stop();
- var mergedExpandedKeys = computed(function() {
- return new Set(props5.expandedRowKeys || innerExpandedKeys.value || []);
- });
- var onTriggerExpand = function onTriggerExpand2(record) {
- var key2 = getRowKey.value(record, mergedData.value.indexOf(record));
- var newExpandedKeys;
- var hasKey = mergedExpandedKeys.value.has(key2);
- if (hasKey) {
- mergedExpandedKeys.value.delete(key2);
- newExpandedKeys = _toConsumableArray(mergedExpandedKeys.value);
- } else {
- newExpandedKeys = [].concat(_toConsumableArray(mergedExpandedKeys.value), [key2]);
- }
- innerExpandedKeys.value = newExpandedKeys;
- emit("expand", !hasKey, record);
- emit("update:expandedRowKeys", newExpandedKeys);
- emit("expandedRowsChange", newExpandedKeys);
- };
- if (props5.expandedRowRender && mergedData.value.some(function(record) {
- return Array.isArray(record === null || record === void 0 ? void 0 : record[mergedChildrenColumnName.value]);
- })) {
- warning(false, "`expandedRowRender` should not use with nested Table");
- }
- var componentWidth = ref(0);
- var _useColumns = useColumns_default(_objectSpread2(_objectSpread2({}, toRefs(props5)), {}, {
- // children,
- expandable: computed(function() {
- return !!props5.expandedRowRender;
- }),
- expandedKeys: mergedExpandedKeys,
- getRowKey,
- onTriggerExpand,
- expandIcon: mergedExpandIcon
- }), computed(function() {
- return props5.internalHooks === INTERNAL_HOOKS ? props5.transformColumns : null;
- })), _useColumns2 = _slicedToArray(_useColumns, 2), columns = _useColumns2[0], flattenColumns = _useColumns2[1];
- var columnContext = computed(function() {
- return {
- columns: columns.value,
- flattenColumns: flattenColumns.value
- };
- });
- var fullTableRef = ref();
- var scrollHeaderRef = ref();
- var scrollBodyRef = ref();
- var scrollBodySizeInfo = ref({
- scrollWidth: 0,
- clientWidth: 0
- });
- var scrollSummaryRef = ref();
- var _useState = useState(false), _useState2 = _slicedToArray(_useState, 2), pingedLeft = _useState2[0], setPingedLeft = _useState2[1];
- var _useState3 = useState(false), _useState4 = _slicedToArray(_useState3, 2), pingedRight = _useState4[0], setPingedRight = _useState4[1];
- var _useLayoutState = useLayoutState(/* @__PURE__ */ new Map()), _useLayoutState2 = _slicedToArray(_useLayoutState, 2), colsWidths = _useLayoutState2[0], updateColsWidths = _useLayoutState2[1];
- var colsKeys = computed(function() {
- return getColumnsKey(flattenColumns.value);
- });
- var colWidths = computed(function() {
- return colsKeys.value.map(function(columnKey) {
- return colsWidths.value.get(columnKey);
- });
- });
- var columnCount = computed(function() {
- return flattenColumns.value.length;
- });
- var stickyOffsets = useStickyOffsets_default(colWidths, columnCount, toRef(props5, "direction"));
- var fixHeader = computed(function() {
- return props5.scroll && validateValue(props5.scroll.y);
- });
- var horizonScroll = computed(function() {
- return props5.scroll && validateValue(props5.scroll.x) || Boolean(props5.expandFixed);
- });
- var fixColumn = computed(function() {
- return horizonScroll.value && flattenColumns.value.some(function(_ref2) {
- var fixed = _ref2.fixed;
- return fixed;
- });
- });
- var stickyRef = ref();
- var stickyState = useSticky(toRef(props5, "sticky"), toRef(props5, "prefixCls"));
- var summaryFixedInfos = reactive({});
- var fixFooter = computed(function() {
- var info = Object.values(summaryFixedInfos)[0];
- return (fixHeader.value || stickyState.value.isSticky) && info;
- });
- var summaryCollect = function summaryCollect2(uniKey, fixed) {
- if (fixed) {
- summaryFixedInfos[uniKey] = fixed;
- } else {
- delete summaryFixedInfos[uniKey];
- }
- };
- var scrollXStyle = ref({});
- var scrollYStyle = ref({});
- var scrollTableStyle = ref({});
- watchEffect(function() {
- if (fixHeader.value) {
- scrollYStyle.value = {
- overflowY: "scroll",
- maxHeight: toPx(props5.scroll.y)
- };
- }
- if (horizonScroll.value) {
- scrollXStyle.value = {
- overflowX: "auto"
- };
- if (!fixHeader.value) {
- scrollYStyle.value = {
- overflowY: "hidden"
- };
- }
- scrollTableStyle.value = {
- width: props5.scroll.x === true ? "auto" : toPx(props5.scroll.x),
- minWidth: "100%"
- };
- }
- });
- var onColumnResize = function onColumnResize2(columnKey, width) {
- if (isVisible_default(fullTableRef.value)) {
- updateColsWidths(function(widths) {
- if (widths.get(columnKey) !== width) {
- var newWidths = new Map(widths);
- newWidths.set(columnKey, width);
- return newWidths;
- }
- return widths;
- });
- }
- };
- var _useTimeoutLock = useTimeoutLock(null), _useTimeoutLock2 = _slicedToArray(_useTimeoutLock, 2), setScrollTarget = _useTimeoutLock2[0], getScrollTarget = _useTimeoutLock2[1];
- function forceScroll(scrollLeft, target) {
- if (!target) {
- return;
- }
- if (typeof target === "function") {
- target(scrollLeft);
- return;
- }
- var domTarget = target.$el || target;
- if (domTarget.scrollLeft !== scrollLeft) {
- domTarget.scrollLeft = scrollLeft;
- }
- }
- var onScroll = function onScroll2(_ref3) {
- var currentTarget = _ref3.currentTarget, scrollLeft = _ref3.scrollLeft;
- var isRTL = props5.direction === "rtl";
- var mergedScrollLeft = typeof scrollLeft === "number" ? scrollLeft : currentTarget.scrollLeft;
- var compareTarget = currentTarget || EMPTY_SCROLL_TARGET;
- if (!getScrollTarget() || getScrollTarget() === compareTarget) {
- var _stickyRef$value;
- setScrollTarget(compareTarget);
- forceScroll(mergedScrollLeft, scrollHeaderRef.value);
- forceScroll(mergedScrollLeft, scrollBodyRef.value);
- forceScroll(mergedScrollLeft, scrollSummaryRef.value);
- forceScroll(mergedScrollLeft, (_stickyRef$value = stickyRef.value) === null || _stickyRef$value === void 0 ? void 0 : _stickyRef$value.setScrollLeft);
- }
- if (currentTarget) {
- var scrollWidth = currentTarget.scrollWidth, clientWidth = currentTarget.clientWidth;
- if (isRTL) {
- setPingedLeft(-mergedScrollLeft < scrollWidth - clientWidth);
- setPingedRight(-mergedScrollLeft > 0);
- } else {
- setPingedLeft(mergedScrollLeft > 0);
- setPingedRight(mergedScrollLeft < scrollWidth - clientWidth);
- }
- }
- };
- var triggerOnScroll = function triggerOnScroll2() {
- if (horizonScroll.value && scrollBodyRef.value) {
- onScroll({
- currentTarget: scrollBodyRef.value
- });
- } else {
- setPingedLeft(false);
- setPingedRight(false);
- }
- };
- var timtout;
- var updateWidth = function updateWidth2(width) {
- if (width !== componentWidth.value) {
- triggerOnScroll();
- componentWidth.value = fullTableRef.value ? fullTableRef.value.offsetWidth : width;
- }
- };
- var onFullTableResize = function onFullTableResize2(_ref4) {
- var width = _ref4.width;
- clearTimeout(timtout);
- if (componentWidth.value === 0) {
- updateWidth(width);
- return;
- }
- timtout = setTimeout(function() {
- updateWidth(width);
- }, 100);
- };
- watch([horizonScroll, function() {
- return props5.data;
- }, function() {
- return props5.columns;
- }], function() {
- if (horizonScroll.value) {
- triggerOnScroll();
- }
- }, {
- flush: "post"
- });
- var _useState5 = useState(0), _useState6 = _slicedToArray(_useState5, 2), scrollbarSize = _useState6[0], setScrollbarSize = _useState6[1];
- useProvideSticky();
- onMounted(function() {
- nextTick(function() {
- var _scrollBodyRef$value, _scrollBodyRef$value2;
- triggerOnScroll();
- setScrollbarSize(getTargetScrollBarSize(scrollBodyRef.value).width);
- scrollBodySizeInfo.value = {
- scrollWidth: ((_scrollBodyRef$value = scrollBodyRef.value) === null || _scrollBodyRef$value === void 0 ? void 0 : _scrollBodyRef$value.scrollWidth) || 0,
- clientWidth: ((_scrollBodyRef$value2 = scrollBodyRef.value) === null || _scrollBodyRef$value2 === void 0 ? void 0 : _scrollBodyRef$value2.clientWidth) || 0
- };
- });
- });
- onUpdated(function() {
- nextTick(function() {
- var _scrollBodyRef$value3, _scrollBodyRef$value4;
- var scrollWidth = ((_scrollBodyRef$value3 = scrollBodyRef.value) === null || _scrollBodyRef$value3 === void 0 ? void 0 : _scrollBodyRef$value3.scrollWidth) || 0;
- var clientWidth = ((_scrollBodyRef$value4 = scrollBodyRef.value) === null || _scrollBodyRef$value4 === void 0 ? void 0 : _scrollBodyRef$value4.clientWidth) || 0;
- if (scrollBodySizeInfo.value.scrollWidth !== scrollWidth || scrollBodySizeInfo.value.clientWidth !== clientWidth) {
- scrollBodySizeInfo.value = {
- scrollWidth,
- clientWidth
- };
- }
- });
- });
- watchEffect(function() {
- if (props5.internalHooks === INTERNAL_HOOKS && props5.internalRefs) {
- props5.onUpdateInternalRefs({
- body: scrollBodyRef.value ? scrollBodyRef.value.$el || scrollBodyRef.value : null
- });
- }
- }, {
- flush: "post"
- });
- var mergedTableLayout = computed(function() {
- if (props5.tableLayout) {
- return props5.tableLayout;
- }
- if (fixColumn.value) {
- return props5.scroll.x === "max-content" ? "auto" : "fixed";
- }
- if (fixHeader.value || stickyState.value.isSticky || flattenColumns.value.some(function(_ref5) {
- var ellipsis = _ref5.ellipsis;
- return ellipsis;
- })) {
- return "fixed";
- }
- return "auto";
- });
- var emptyNode = function emptyNode2() {
- var _slots$emptyText;
- return hasData.value ? null : ((_slots$emptyText = slots.emptyText) === null || _slots$emptyText === void 0 ? void 0 : _slots$emptyText.call(slots)) || "No Data";
- };
- useProvideTable(reactive(_objectSpread2(_objectSpread2({}, toRefs(reactivePick(props5, "prefixCls", "direction", "transformCellText"))), {}, {
- getComponent: getComponent4,
- scrollbarSize,
- fixedInfoList: computed(function() {
- return flattenColumns.value.map(function(_2, colIndex) {
- return getCellFixedInfo(colIndex, colIndex, flattenColumns.value, stickyOffsets.value, props5.direction);
- });
- }),
- isSticky: computed(function() {
- return stickyState.value.isSticky;
- }),
- summaryCollect
- })));
- useProvideBody(reactive(_objectSpread2(_objectSpread2({}, toRefs(reactivePick(props5, "rowClassName", "expandedRowClassName", "expandRowByClick", "expandedRowRender", "expandIconColumnIndex", "indentSize"))), {}, {
- columns,
- flattenColumns,
- tableLayout: mergedTableLayout,
- expandIcon: mergedExpandIcon,
- expandableType,
- onTriggerExpand
- })));
- useProvideResize({
- onColumnResize
- });
- useProvideExpandedRow({
- componentWidth,
- fixHeader,
- fixColumn,
- horizonScroll
- });
- var bodyTable = function bodyTable2() {
- return createVNode(Body_default, {
- "data": mergedData.value,
- "measureColumnWidth": fixHeader.value || horizonScroll.value || stickyState.value.isSticky,
- "expandedKeys": mergedExpandedKeys.value,
- "rowExpandable": props5.rowExpandable,
- "getRowKey": getRowKey.value,
- "customRow": props5.customRow,
- "childrenColumnName": mergedChildrenColumnName.value
- }, {
- emptyNode
- });
- };
- var bodyColGroup = function bodyColGroup2() {
- return createVNode(ColGroup_default, {
- "colWidths": flattenColumns.value.map(function(_ref6) {
- var width = _ref6.width;
- return width;
- }),
- "columns": flattenColumns.value
- }, null);
- };
- return function() {
- var _slots$summary;
- var prefixCls = props5.prefixCls, scroll = props5.scroll, tableLayout = props5.tableLayout, direction = props5.direction, _props$title = props5.title, title = _props$title === void 0 ? slots.title : _props$title, _props$footer = props5.footer, footer = _props$footer === void 0 ? slots.footer : _props$footer, id = props5.id, showHeader = props5.showHeader, customHeaderRow = props5.customHeaderRow;
- var _stickyState$value = stickyState.value, isSticky = _stickyState$value.isSticky, offsetHeader = _stickyState$value.offsetHeader, offsetSummary = _stickyState$value.offsetSummary, offsetScroll = _stickyState$value.offsetScroll, stickyClassName = _stickyState$value.stickyClassName, container = _stickyState$value.container;
- var TableComponent = getComponent4(["table"], "table");
- var customizeScrollBody = getComponent4(["body"]);
- var summaryNode = (_slots$summary = slots.summary) === null || _slots$summary === void 0 ? void 0 : _slots$summary.call(slots, {
- pageData: mergedData.value
- });
- var groupTableNode = function groupTableNode2() {
- return null;
- };
- var headerProps = {
- colWidths: colWidths.value,
- columCount: flattenColumns.value.length,
- stickyOffsets: stickyOffsets.value,
- customHeaderRow,
- fixHeader: fixHeader.value,
- scroll
- };
- if (typeof customizeScrollBody === "function" && hasData.value && !fixHeader.value) {
- warning(false, "`components.body` with render props is only work on `scroll.y`.");
- }
- if (fixHeader.value || isSticky) {
- var bodyContent = function bodyContent2() {
- return null;
- };
- if (typeof customizeScrollBody === "function") {
- bodyContent = function bodyContent2() {
- return customizeScrollBody(mergedData.value, {
- scrollbarSize: scrollbarSize.value,
- ref: scrollBodyRef,
- onScroll
- });
- };
- headerProps.colWidths = flattenColumns.value.map(function(_ref7, index3) {
- var width = _ref7.width;
- var colWidth = index3 === columns.value.length - 1 ? width - scrollbarSize.value : width;
- if (typeof colWidth === "number" && !Number.isNaN(colWidth)) {
- return colWidth;
- }
- warning(false, "When use `components.body` with render props. Each column should have a fixed `width` value.");
- return 0;
- });
- } else {
- bodyContent = function bodyContent2() {
- return createVNode("div", {
- "style": _objectSpread2(_objectSpread2({}, scrollXStyle.value), scrollYStyle.value),
- "onScroll": onScroll,
- "ref": scrollBodyRef,
- "class": classNames_default("".concat(prefixCls, "-body"))
- }, [createVNode(TableComponent, {
- "style": _objectSpread2(_objectSpread2({}, scrollTableStyle.value), {}, {
- tableLayout: mergedTableLayout.value
- })
- }, {
- default: function _default9() {
- return [bodyColGroup(), bodyTable(), !fixFooter.value && summaryNode && createVNode(Footer_default, {
- "stickyOffsets": stickyOffsets.value,
- "flattenColumns": flattenColumns.value
- }, {
- default: function _default10() {
- return [summaryNode];
- }
- })];
- }
- })]);
- };
- }
- var fixedHolderProps = _objectSpread2(_objectSpread2(_objectSpread2({
- noData: !mergedData.value.length,
- maxContentScroll: horizonScroll.value && scroll.x === "max-content"
- }, headerProps), columnContext.value), {}, {
- direction,
- stickyClassName,
- onScroll
- });
- groupTableNode = function groupTableNode2() {
- return createVNode(Fragment, null, [showHeader !== false && createVNode(FixedHolder_default, _objectSpread2(_objectSpread2({}, fixedHolderProps), {}, {
- "stickyTopOffset": offsetHeader,
- "class": "".concat(prefixCls, "-header"),
- "ref": scrollHeaderRef
- }), {
- default: function _default9(fixedHolderPassProps) {
- return createVNode(Fragment, null, [createVNode(Header_default3, fixedHolderPassProps, null), fixFooter.value === "top" && createVNode(Footer_default, fixedHolderPassProps, {
- default: function _default10() {
- return [summaryNode];
- }
- })]);
- }
- }), bodyContent(), fixFooter.value && fixFooter.value !== "top" && createVNode(FixedHolder_default, _objectSpread2(_objectSpread2({}, fixedHolderProps), {}, {
- "stickyBottomOffset": offsetSummary,
- "class": "".concat(prefixCls, "-summary"),
- "ref": scrollSummaryRef
- }), {
- default: function _default9(fixedHolderPassProps) {
- return createVNode(Footer_default, fixedHolderPassProps, {
- default: function _default10() {
- return [summaryNode];
- }
- });
- }
- }), isSticky && scrollBodyRef.value && createVNode(stickyScrollBar_default, {
- "ref": stickyRef,
- "offsetScroll": offsetScroll,
- "scrollBodyRef": scrollBodyRef,
- "onScroll": onScroll,
- "container": container,
- "scrollBodySizeInfo": scrollBodySizeInfo.value
- }, null)]);
- };
- } else {
- groupTableNode = function groupTableNode2() {
- return createVNode("div", {
- "style": _objectSpread2(_objectSpread2({}, scrollXStyle.value), scrollYStyle.value),
- "class": classNames_default("".concat(prefixCls, "-content")),
- "onScroll": onScroll,
- "ref": scrollBodyRef
- }, [createVNode(TableComponent, {
- "style": _objectSpread2(_objectSpread2({}, scrollTableStyle.value), {}, {
- tableLayout: mergedTableLayout.value
- })
- }, {
- default: function _default9() {
- return [bodyColGroup(), showHeader !== false && createVNode(Header_default3, _objectSpread2(_objectSpread2({}, headerProps), columnContext.value), null), bodyTable(), summaryNode && createVNode(Footer_default, {
- "stickyOffsets": stickyOffsets.value,
- "flattenColumns": flattenColumns.value
- }, {
- default: function _default10() {
- return [summaryNode];
- }
- })];
- }
- })]);
- };
- }
- var ariaProps = pickAttrs(attrs, {
- aria: true,
- data: true
- });
- var fullTable = function fullTable2() {
- var _classNames;
- return createVNode("div", _objectSpread2(_objectSpread2({}, ariaProps), {}, {
- "class": classNames_default(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === "rtl"), _defineProperty(_classNames, "".concat(prefixCls, "-ping-left"), pingedLeft.value), _defineProperty(_classNames, "".concat(prefixCls, "-ping-right"), pingedRight.value), _defineProperty(_classNames, "".concat(prefixCls, "-layout-fixed"), tableLayout === "fixed"), _defineProperty(_classNames, "".concat(prefixCls, "-fixed-header"), fixHeader.value), _defineProperty(_classNames, "".concat(prefixCls, "-fixed-column"), fixColumn.value), _defineProperty(_classNames, "".concat(prefixCls, "-scroll-horizontal"), horizonScroll.value), _defineProperty(_classNames, "".concat(prefixCls, "-has-fix-left"), flattenColumns.value[0] && flattenColumns.value[0].fixed), _defineProperty(_classNames, "".concat(prefixCls, "-has-fix-right"), flattenColumns.value[columnCount.value - 1] && flattenColumns.value[columnCount.value - 1].fixed === "right"), _defineProperty(_classNames, attrs.class, attrs.class), _classNames)),
- "style": attrs.style,
- "id": id,
- "ref": fullTableRef
- }), [title && createVNode(Panel_default, {
- "class": "".concat(prefixCls, "-title")
- }, {
- default: function _default9() {
- return [title(mergedData.value)];
- }
- }), createVNode("div", {
- "class": "".concat(prefixCls, "-container")
- }, [groupTableNode()]), footer && createVNode(Panel_default, {
- "class": "".concat(prefixCls, "-footer")
- }, {
- default: function _default9() {
- return [footer(mergedData.value)];
- }
- })]);
- };
- if (horizonScroll.value) {
- return createVNode(vc_resize_observer_default, {
- "onResize": onFullTableResize
- }, {
- default: fullTable
- });
- }
- return fullTable();
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-table/index.js
- var vc_table_default = Table_default;
- // node_modules/ant-design-vue/es/table/hooks/usePagination.js
- var DEFAULT_PAGE_SIZE = 10;
- function getPaginationParam(pagination, mergedPagination) {
- var param = {
- current: mergedPagination.current,
- pageSize: mergedPagination.pageSize
- };
- var paginationObj = pagination && _typeof(pagination) === "object" ? pagination : {};
- Object.keys(paginationObj).forEach(function(pageProp) {
- var value = mergedPagination[pageProp];
- if (typeof value !== "function") {
- param[pageProp] = value;
- }
- });
- return param;
- }
- function extendsObject() {
- var result = {};
- for (var _len = arguments.length, list = new Array(_len), _key = 0; _key < _len; _key++) {
- list[_key] = arguments[_key];
- }
- list.forEach(function(obj) {
- if (obj) {
- Object.keys(obj).forEach(function(key2) {
- var val = obj[key2];
- if (val !== void 0) {
- result[key2] = val;
- }
- });
- }
- });
- return result;
- }
- function usePagination(totalRef, paginationRef, onChange3) {
- var pagination = computed(function() {
- return paginationRef.value && _typeof(paginationRef.value) === "object" ? paginationRef.value : {};
- });
- var paginationTotal = computed(function() {
- return pagination.value.total || 0;
- });
- var _useState = useState(function() {
- return {
- current: "defaultCurrent" in pagination.value ? pagination.value.defaultCurrent : 1,
- pageSize: "defaultPageSize" in pagination.value ? pagination.value.defaultPageSize : DEFAULT_PAGE_SIZE
- };
- }), _useState2 = _slicedToArray(_useState, 2), innerPagination = _useState2[0], setInnerPagination = _useState2[1];
- var mergedPagination = computed(function() {
- var mP = extendsObject(innerPagination.value, pagination.value, {
- total: paginationTotal.value > 0 ? paginationTotal.value : totalRef.value
- });
- var maxPage = Math.ceil((paginationTotal.value || totalRef.value) / mP.pageSize);
- if (mP.current > maxPage) {
- mP.current = maxPage || 1;
- }
- return mP;
- });
- var refreshPagination = function refreshPagination2(current2, pageSize2) {
- if (pagination.value === false)
- return;
- setInnerPagination({
- current: current2 !== null && current2 !== void 0 ? current2 : 1,
- pageSize: pageSize2 || mergedPagination.value.pageSize
- });
- };
- var onInternalChange = function onInternalChange2(current2, pageSize2) {
- if (pagination.value) {
- var _pagination$value$onC, _pagination$value;
- (_pagination$value$onC = (_pagination$value = pagination.value).onChange) === null || _pagination$value$onC === void 0 ? void 0 : _pagination$value$onC.call(_pagination$value, current2, pageSize2);
- }
- refreshPagination(current2, pageSize2);
- onChange3(current2, pageSize2 || mergedPagination.value.pageSize);
- };
- return [computed(function() {
- return pagination.value === false ? {} : _objectSpread2(_objectSpread2({}, mergedPagination.value), {}, {
- onChange: onInternalChange
- });
- }), refreshPagination];
- }
- // node_modules/ant-design-vue/es/table/hooks/useLazyKVMap.js
- function useLazyKVMap(dataRef, childrenColumnNameRef, getRowKeyRef) {
- var mapCacheRef = shallowRef({});
- watch([dataRef, childrenColumnNameRef, getRowKeyRef], function() {
- var kvMap = /* @__PURE__ */ new Map();
- var getRowKey = getRowKeyRef.value;
- var childrenColumnName = childrenColumnNameRef.value;
- function dig(records) {
- records.forEach(function(record, index3) {
- var rowKey = getRowKey(record, index3);
- kvMap.set(rowKey, record);
- if (record && _typeof(record) === "object" && childrenColumnName in record) {
- dig(record[childrenColumnName] || []);
- }
- });
- }
- dig(dataRef.value);
- mapCacheRef.value = {
- kvMap
- };
- }, {
- deep: true,
- immediate: true
- });
- function getRecordByKey(key2) {
- return mapCacheRef.value.kvMap.get(key2);
- }
- return [getRecordByKey];
- }
- // node_modules/ant-design-vue/es/table/hooks/useSelection.js
- var SELECTION_COLUMN = {};
- var SELECTION_ALL = "SELECT_ALL";
- var SELECTION_INVERT = "SELECT_INVERT";
- var SELECTION_NONE = "SELECT_NONE";
- var EMPTY_LIST2 = [];
- function flattenData(data8, childrenColumnName) {
- var list = [];
- (data8 || []).forEach(function(record) {
- list.push(record);
- if (record && _typeof(record) === "object" && childrenColumnName in record) {
- list = [].concat(_toConsumableArray(list), _toConsumableArray(flattenData(record[childrenColumnName], childrenColumnName)));
- }
- });
- return list;
- }
- function useSelection(rowSelectionRef, configRef) {
- var mergedRowSelection = computed(function() {
- var temp = rowSelectionRef.value || {};
- var _temp$checkStrictly = temp.checkStrictly, checkStrictly = _temp$checkStrictly === void 0 ? true : _temp$checkStrictly;
- return _objectSpread2(_objectSpread2({}, temp), {}, {
- checkStrictly
- });
- });
- var _useMergedState = useMergedState(mergedRowSelection.value.selectedRowKeys || mergedRowSelection.value.defaultSelectedRowKeys || EMPTY_LIST2, {
- value: computed(function() {
- return mergedRowSelection.value.selectedRowKeys;
- })
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedSelectedKeys = _useMergedState2[0], setMergedSelectedKeys = _useMergedState2[1];
- var preserveRecordsRef = shallowRef(/* @__PURE__ */ new Map());
- var updatePreserveRecordsCache = function updatePreserveRecordsCache2(keys2) {
- if (mergedRowSelection.value.preserveSelectedRowKeys) {
- var newCache = /* @__PURE__ */ new Map();
- keys2.forEach(function(key2) {
- var record = configRef.getRecordByKey(key2);
- if (!record && preserveRecordsRef.value.has(key2)) {
- record = preserveRecordsRef.value.get(key2);
- }
- newCache.set(key2, record);
- });
- preserveRecordsRef.value = newCache;
- }
- };
- watchEffect(function() {
- updatePreserveRecordsCache(mergedSelectedKeys.value);
- });
- var keyEntities = computed(function() {
- return mergedRowSelection.value.checkStrictly ? null : convertDataToEntities(configRef.data.value, {
- externalGetKey: configRef.getRowKey.value,
- childrenPropName: configRef.childrenColumnName.value
- }).keyEntities;
- });
- var flattedData = computed(function() {
- return flattenData(configRef.pageData.value, configRef.childrenColumnName.value);
- });
- var checkboxPropsMap = computed(function() {
- var map = /* @__PURE__ */ new Map();
- var getRowKey = configRef.getRowKey.value;
- var getCheckboxProps = mergedRowSelection.value.getCheckboxProps;
- flattedData.value.forEach(function(record, index3) {
- var key2 = getRowKey(record, index3);
- var checkboxProps4 = (getCheckboxProps ? getCheckboxProps(record) : null) || {};
- map.set(key2, checkboxProps4);
- if ("checked" in checkboxProps4 || "defaultChecked" in checkboxProps4) {
- devWarning_default(false, "Table", "Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.");
- }
- });
- return map;
- });
- var _useMaxLevel = useMaxLevel(keyEntities), maxLevel = _useMaxLevel.maxLevel, levelEntities = _useMaxLevel.levelEntities;
- var isCheckboxDisabled = function isCheckboxDisabled2(r3) {
- var _checkboxPropsMap$val;
- return !!((_checkboxPropsMap$val = checkboxPropsMap.value.get(configRef.getRowKey.value(r3))) !== null && _checkboxPropsMap$val !== void 0 && _checkboxPropsMap$val.disabled);
- };
- var selectKeysState = computed(function() {
- if (mergedRowSelection.value.checkStrictly) {
- return [mergedSelectedKeys.value || [], []];
- }
- var _conductCheck = conductCheck(mergedSelectedKeys.value, true, keyEntities.value, maxLevel.value, levelEntities.value, isCheckboxDisabled), checkedKeys = _conductCheck.checkedKeys, halfCheckedKeys = _conductCheck.halfCheckedKeys;
- return [checkedKeys || [], halfCheckedKeys];
- });
- var derivedSelectedKeys = computed(function() {
- return selectKeysState.value[0];
- });
- var derivedHalfSelectedKeys = computed(function() {
- return selectKeysState.value[1];
- });
- var derivedSelectedKeySet = computed(function() {
- var keys2 = mergedRowSelection.value.type === "radio" ? derivedSelectedKeys.value.slice(0, 1) : derivedSelectedKeys.value;
- return new Set(keys2);
- });
- var derivedHalfSelectedKeySet = computed(function() {
- return mergedRowSelection.value.type === "radio" ? /* @__PURE__ */ new Set() : new Set(derivedHalfSelectedKeys.value);
- });
- var _useState = useState(null), _useState2 = _slicedToArray(_useState, 2), lastSelectedKey = _useState2[0], setLastSelectedKey = _useState2[1];
- var setSelectedKeys = function setSelectedKeys2(keys2) {
- var availableKeys;
- var records;
- updatePreserveRecordsCache(keys2);
- var _mergedRowSelection$v = mergedRowSelection.value, preserveSelectedRowKeys = _mergedRowSelection$v.preserveSelectedRowKeys, onSelectionChange = _mergedRowSelection$v.onChange;
- var getRecordByKey = configRef.getRecordByKey;
- if (preserveSelectedRowKeys) {
- availableKeys = keys2;
- records = keys2.map(function(key2) {
- return preserveRecordsRef.value.get(key2);
- });
- } else {
- availableKeys = [];
- records = [];
- keys2.forEach(function(key2) {
- var record = getRecordByKey(key2);
- if (record !== void 0) {
- availableKeys.push(key2);
- records.push(record);
- }
- });
- }
- setMergedSelectedKeys(availableKeys);
- onSelectionChange === null || onSelectionChange === void 0 ? void 0 : onSelectionChange(availableKeys, records);
- };
- var triggerSingleSelection = function triggerSingleSelection2(key2, selected, keys2, event) {
- var onSelect = mergedRowSelection.value.onSelect;
- var _ref = configRef || {}, getRecordByKey = _ref.getRecordByKey;
- if (onSelect) {
- var rows = keys2.map(function(k2) {
- return getRecordByKey(k2);
- });
- onSelect(getRecordByKey(key2), selected, rows, event);
- }
- setSelectedKeys(keys2);
- };
- var mergedSelections = computed(function() {
- var _mergedRowSelection$v2 = mergedRowSelection.value, onSelectInvert = _mergedRowSelection$v2.onSelectInvert, onSelectNone = _mergedRowSelection$v2.onSelectNone, selections = _mergedRowSelection$v2.selections, hideSelectAll = _mergedRowSelection$v2.hideSelectAll;
- var data8 = configRef.data, pageData = configRef.pageData, getRowKey = configRef.getRowKey, tableLocale = configRef.locale;
- if (!selections || hideSelectAll) {
- return null;
- }
- var selectionList = selections === true ? [SELECTION_ALL, SELECTION_INVERT, SELECTION_NONE] : selections;
- return selectionList.map(function(selection) {
- if (selection === SELECTION_ALL) {
- return {
- key: "all",
- text: tableLocale.value.selectionAll,
- onSelect: function onSelect() {
- setSelectedKeys(data8.value.map(function(record, index3) {
- return getRowKey.value(record, index3);
- }).filter(function(key2) {
- var checkProps = checkboxPropsMap.value.get(key2);
- return !(checkProps !== null && checkProps !== void 0 && checkProps.disabled) || derivedSelectedKeySet.value.has(key2);
- }));
- }
- };
- }
- if (selection === SELECTION_INVERT) {
- return {
- key: "invert",
- text: tableLocale.value.selectInvert,
- onSelect: function onSelect() {
- var keySet = new Set(derivedSelectedKeySet.value);
- pageData.value.forEach(function(record, index3) {
- var key2 = getRowKey.value(record, index3);
- var checkProps = checkboxPropsMap.value.get(key2);
- if (!(checkProps !== null && checkProps !== void 0 && checkProps.disabled)) {
- if (keySet.has(key2)) {
- keySet.delete(key2);
- } else {
- keySet.add(key2);
- }
- }
- });
- var keys2 = Array.from(keySet);
- if (onSelectInvert) {
- devWarning_default(false, "Table", "`onSelectInvert` will be removed in future. Please use `onChange` instead.");
- onSelectInvert(keys2);
- }
- setSelectedKeys(keys2);
- }
- };
- }
- if (selection === SELECTION_NONE) {
- return {
- key: "none",
- text: tableLocale.value.selectNone,
- onSelect: function onSelect() {
- onSelectNone === null || onSelectNone === void 0 ? void 0 : onSelectNone();
- setSelectedKeys(Array.from(derivedSelectedKeySet.value).filter(function(key2) {
- var checkProps = checkboxPropsMap.value.get(key2);
- return checkProps === null || checkProps === void 0 ? void 0 : checkProps.disabled;
- }));
- }
- };
- }
- return selection;
- });
- });
- var flattedDataLength = computed(function() {
- return flattedData.value.length;
- });
- var transformColumns = function transformColumns2(columns) {
- var _prevCol$INTERNAL_COL;
- var _mergedRowSelection$v3 = mergedRowSelection.value, onSelectAll = _mergedRowSelection$v3.onSelectAll, onSelectMultiple = _mergedRowSelection$v3.onSelectMultiple, selectionColWidth = _mergedRowSelection$v3.columnWidth, selectionType = _mergedRowSelection$v3.type, fixed = _mergedRowSelection$v3.fixed, customizeRenderCell = _mergedRowSelection$v3.renderCell, hideSelectAll = _mergedRowSelection$v3.hideSelectAll, checkStrictly = _mergedRowSelection$v3.checkStrictly;
- var prefixCls = configRef.prefixCls, getRecordByKey = configRef.getRecordByKey, getRowKey = configRef.getRowKey, expandType = configRef.expandType, getPopupContainer = configRef.getPopupContainer;
- if (!rowSelectionRef.value) {
- if (true) {
- devWarning_default(!columns.includes(SELECTION_COLUMN), "Table", "`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`.");
- }
- return columns.filter(function(col) {
- return col !== SELECTION_COLUMN;
- });
- }
- var cloneColumns = columns.slice();
- var keySet = new Set(derivedSelectedKeySet.value);
- var recordKeys = flattedData.value.map(getRowKey.value).filter(function(key2) {
- return !checkboxPropsMap.value.get(key2).disabled;
- });
- var checkedCurrentAll = recordKeys.every(function(key2) {
- return keySet.has(key2);
- });
- var checkedCurrentSome = recordKeys.some(function(key2) {
- return keySet.has(key2);
- });
- var onSelectAllChange = function onSelectAllChange2() {
- var changeKeys = [];
- if (checkedCurrentAll) {
- recordKeys.forEach(function(key2) {
- keySet.delete(key2);
- changeKeys.push(key2);
- });
- } else {
- recordKeys.forEach(function(key2) {
- if (!keySet.has(key2)) {
- keySet.add(key2);
- changeKeys.push(key2);
- }
- });
- }
- var keys2 = Array.from(keySet);
- onSelectAll === null || onSelectAll === void 0 ? void 0 : onSelectAll(!checkedCurrentAll, keys2.map(function(k2) {
- return getRecordByKey(k2);
- }), changeKeys.map(function(k2) {
- return getRecordByKey(k2);
- }));
- setSelectedKeys(keys2);
- };
- var title;
- if (selectionType !== "radio") {
- var customizeSelections;
- if (mergedSelections.value) {
- var menu = createVNode(menu_default, {
- "getPopupContainer": getPopupContainer.value
- }, {
- default: function _default9() {
- return [mergedSelections.value.map(function(selection, index3) {
- var key2 = selection.key, text = selection.text, onSelectionClick = selection.onSelect;
- return createVNode(menu_default.Item, {
- "key": key2 || index3,
- "onClick": function onClick2() {
- onSelectionClick === null || onSelectionClick === void 0 ? void 0 : onSelectionClick(recordKeys);
- }
- }, {
- default: function _default10() {
- return [text];
- }
- });
- })];
- }
- });
- customizeSelections = createVNode("div", {
- "class": "".concat(prefixCls.value, "-selection-extra")
- }, [createVNode(dropdown_default2, {
- "overlay": menu,
- "getPopupContainer": getPopupContainer.value
- }, {
- default: function _default9() {
- return [createVNode("span", null, [createVNode(DownOutlined_default, null, null)])];
- }
- })]);
- }
- var allDisabledData = flattedData.value.map(function(record, index3) {
- var key2 = getRowKey.value(record, index3);
- var checkboxProps4 = checkboxPropsMap.value.get(key2) || {};
- return _objectSpread2({
- checked: keySet.has(key2)
- }, checkboxProps4);
- }).filter(function(_ref2) {
- var disabled = _ref2.disabled;
- return disabled;
- });
- var allDisabled = !!allDisabledData.length && allDisabledData.length === flattedDataLength.value;
- var allDisabledAndChecked = allDisabled && allDisabledData.every(function(_ref3) {
- var checked = _ref3.checked;
- return checked;
- });
- var allDisabledSomeChecked = allDisabled && allDisabledData.some(function(_ref4) {
- var checked = _ref4.checked;
- return checked;
- });
- title = !hideSelectAll && createVNode("div", {
- "class": "".concat(prefixCls.value, "-selection")
- }, [createVNode(checkbox_default, {
- "checked": !allDisabled ? !!flattedDataLength.value && checkedCurrentAll : allDisabledAndChecked,
- "indeterminate": !allDisabled ? !checkedCurrentAll && checkedCurrentSome : !allDisabledAndChecked && allDisabledSomeChecked,
- "onChange": onSelectAllChange,
- "disabled": flattedDataLength.value === 0 || allDisabled,
- "skipGroup": true
- }, null), customizeSelections]);
- }
- var renderCell;
- if (selectionType === "radio") {
- renderCell = function renderCell2(_ref5) {
- var record = _ref5.record, index3 = _ref5.index;
- var key2 = getRowKey.value(record, index3);
- var checked = keySet.has(key2);
- return {
- node: createVNode(radio_default, _objectSpread2(_objectSpread2({}, checkboxPropsMap.value.get(key2)), {}, {
- "checked": checked,
- "onClick": function onClick2(e3) {
- return e3.stopPropagation();
- },
- "onChange": function onChange3(event) {
- if (!keySet.has(key2)) {
- triggerSingleSelection(key2, true, [key2], event.nativeEvent);
- }
- }
- }), null),
- checked
- };
- };
- } else {
- renderCell = function renderCell2(_ref6) {
- var record = _ref6.record, index3 = _ref6.index;
- var key2 = getRowKey.value(record, index3);
- var checked = keySet.has(key2);
- var indeterminate = derivedHalfSelectedKeySet.value.has(key2);
- var checkboxProps4 = checkboxPropsMap.value.get(key2);
- var mergedIndeterminate;
- if (expandType.value === "nest") {
- mergedIndeterminate = indeterminate;
- devWarning_default(typeof (checkboxProps4 === null || checkboxProps4 === void 0 ? void 0 : checkboxProps4.indeterminate) !== "boolean", "Table", "set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.");
- } else {
- var _checkboxProps$indete;
- mergedIndeterminate = (_checkboxProps$indete = checkboxProps4 === null || checkboxProps4 === void 0 ? void 0 : checkboxProps4.indeterminate) !== null && _checkboxProps$indete !== void 0 ? _checkboxProps$indete : indeterminate;
- }
- return {
- node: createVNode(checkbox_default, _objectSpread2(_objectSpread2({}, checkboxProps4), {}, {
- "indeterminate": mergedIndeterminate,
- "checked": checked,
- "skipGroup": true,
- "onClick": function onClick2(e3) {
- return e3.stopPropagation();
- },
- "onChange": function onChange3(_ref7) {
- var nativeEvent = _ref7.nativeEvent;
- var shiftKey = nativeEvent.shiftKey;
- var startIndex = -1;
- var endIndex = -1;
- if (shiftKey && checkStrictly) {
- var pointKeys = /* @__PURE__ */ new Set([lastSelectedKey.value, key2]);
- recordKeys.some(function(recordKey, recordIndex) {
- if (pointKeys.has(recordKey)) {
- if (startIndex === -1) {
- startIndex = recordIndex;
- } else {
- endIndex = recordIndex;
- return true;
- }
- }
- return false;
- });
- }
- if (endIndex !== -1 && startIndex !== endIndex && checkStrictly) {
- var rangeKeys = recordKeys.slice(startIndex, endIndex + 1);
- var changedKeys = [];
- if (checked) {
- rangeKeys.forEach(function(recordKey) {
- if (keySet.has(recordKey)) {
- changedKeys.push(recordKey);
- keySet.delete(recordKey);
- }
- });
- } else {
- rangeKeys.forEach(function(recordKey) {
- if (!keySet.has(recordKey)) {
- changedKeys.push(recordKey);
- keySet.add(recordKey);
- }
- });
- }
- var keys2 = Array.from(keySet);
- onSelectMultiple === null || onSelectMultiple === void 0 ? void 0 : onSelectMultiple(!checked, keys2.map(function(recordKey) {
- return getRecordByKey(recordKey);
- }), changedKeys.map(function(recordKey) {
- return getRecordByKey(recordKey);
- }));
- setSelectedKeys(keys2);
- } else {
- var originCheckedKeys = derivedSelectedKeys.value;
- if (checkStrictly) {
- var checkedKeys = checked ? arrDel(originCheckedKeys, key2) : arrAdd(originCheckedKeys, key2);
- triggerSingleSelection(key2, !checked, checkedKeys, nativeEvent);
- } else {
- var result = conductCheck([].concat(_toConsumableArray(originCheckedKeys), [key2]), true, keyEntities.value, maxLevel.value, levelEntities.value, isCheckboxDisabled);
- var _checkedKeys = result.checkedKeys, halfCheckedKeys = result.halfCheckedKeys;
- var nextCheckedKeys = _checkedKeys;
- if (checked) {
- var tempKeySet = new Set(_checkedKeys);
- tempKeySet.delete(key2);
- nextCheckedKeys = conductCheck(Array.from(tempKeySet), {
- checked: false,
- halfCheckedKeys
- }, keyEntities.value, maxLevel.value, levelEntities.value, isCheckboxDisabled).checkedKeys;
- }
- triggerSingleSelection(key2, !checked, nextCheckedKeys, nativeEvent);
- }
- }
- setLastSelectedKey(key2);
- }
- }), null),
- checked
- };
- };
- }
- var renderSelectionCell = function renderSelectionCell2(_ref8) {
- var record = _ref8.record, index3 = _ref8.index;
- var _renderCell = renderCell({
- record,
- index: index3
- }), node = _renderCell.node, checked = _renderCell.checked;
- if (customizeRenderCell) {
- return customizeRenderCell(checked, record, index3, node);
- }
- return node;
- };
- if (!cloneColumns.includes(SELECTION_COLUMN)) {
- if (cloneColumns.findIndex(function(col) {
- var _col$INTERNAL_COL_DEF;
- return ((_col$INTERNAL_COL_DEF = col[INTERNAL_COL_DEFINE]) === null || _col$INTERNAL_COL_DEF === void 0 ? void 0 : _col$INTERNAL_COL_DEF.columnType) === "EXPAND_COLUMN";
- }) === 0) {
- var _cloneColumns = cloneColumns, _cloneColumns2 = _toArray(_cloneColumns), expandColumn = _cloneColumns2[0], restColumns = _cloneColumns2.slice(1);
- cloneColumns = [expandColumn, SELECTION_COLUMN].concat(_toConsumableArray(restColumns));
- } else {
- cloneColumns = [SELECTION_COLUMN].concat(_toConsumableArray(cloneColumns));
- }
- }
- var selectionColumnIndex = cloneColumns.indexOf(SELECTION_COLUMN);
- if (cloneColumns.filter(function(col) {
- return col === SELECTION_COLUMN;
- }).length > 1) {
- devWarning_default(false, "Table", "Multiple `SELECTION_COLUMN` exist in `columns`.");
- }
- cloneColumns = cloneColumns.filter(function(column, index3) {
- return column !== SELECTION_COLUMN || index3 === selectionColumnIndex;
- });
- var prevCol = cloneColumns[selectionColumnIndex - 1];
- var nextCol = cloneColumns[selectionColumnIndex + 1];
- var mergedFixed = fixed;
- if (mergedFixed === void 0) {
- if ((nextCol === null || nextCol === void 0 ? void 0 : nextCol.fixed) !== void 0) {
- mergedFixed = nextCol.fixed;
- } else if ((prevCol === null || prevCol === void 0 ? void 0 : prevCol.fixed) !== void 0) {
- mergedFixed = prevCol.fixed;
- }
- }
- if (mergedFixed && prevCol && ((_prevCol$INTERNAL_COL = prevCol[INTERNAL_COL_DEFINE]) === null || _prevCol$INTERNAL_COL === void 0 ? void 0 : _prevCol$INTERNAL_COL.columnType) === "EXPAND_COLUMN" && prevCol.fixed === void 0) {
- prevCol.fixed = mergedFixed;
- }
- var selectionColumn = _defineProperty({
- fixed: mergedFixed,
- width: selectionColWidth,
- className: "".concat(prefixCls.value, "-selection-column"),
- title: mergedRowSelection.value.columnTitle || title,
- customRender: renderSelectionCell
- }, INTERNAL_COL_DEFINE, {
- class: "".concat(prefixCls.value, "-selection-col")
- });
- return cloneColumns.map(function(col) {
- return col === SELECTION_COLUMN ? selectionColumn : col;
- });
- };
- return [transformColumns, derivedSelectedKeySet];
- }
- // node_modules/ant-design-vue/es/table/util.js
- var _excluded58 = ["default"];
- function getColumnKey(column, defaultKey) {
- if ("key" in column && column.key !== void 0 && column.key !== null) {
- return column.key;
- }
- if (column.dataIndex) {
- return Array.isArray(column.dataIndex) ? column.dataIndex.join(".") : column.dataIndex;
- }
- return defaultKey;
- }
- function getColumnPos(index3, pos) {
- return pos ? "".concat(pos, "-").concat(index3) : "".concat(index3);
- }
- function renderColumnTitle(title, props5) {
- if (typeof title === "function") {
- return title(props5);
- }
- return title;
- }
- function convertChildrenToColumns() {
- var elements = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- var flattenElements = flattenChildren(elements);
- var columns = [];
- flattenElements.forEach(function(element) {
- var _element$props, _element$props2, _element$type;
- if (!element) {
- return;
- }
- var key2 = element.key;
- var style = ((_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.style) || {};
- var cls = ((_element$props2 = element.props) === null || _element$props2 === void 0 ? void 0 : _element$props2.class) || "";
- var props5 = element.props || {};
- for (var _i = 0, _Object$entries = Object.entries(props5); _i < _Object$entries.length; _i++) {
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), k2 = _Object$entries$_i[0], v2 = _Object$entries$_i[1];
- props5[camelize(k2)] = v2;
- }
- var _ref = element.children || {}, children = _ref.default, restSlots = _objectWithoutProperties(_ref, _excluded58);
- var column = _objectSpread2(_objectSpread2(_objectSpread2({}, restSlots), props5), {}, {
- style,
- class: cls
- });
- if (key2) {
- column.key = key2;
- }
- if ((_element$type = element.type) !== null && _element$type !== void 0 && _element$type.__ANT_TABLE_COLUMN_GROUP) {
- column.children = convertChildrenToColumns(typeof children === "function" ? children() : children);
- } else {
- var _element$children;
- var customRender = (_element$children = element.children) === null || _element$children === void 0 ? void 0 : _element$children.default;
- column.customRender = column.customRender || customRender;
- }
- columns.push(column);
- });
- return columns;
- }
- // node_modules/ant-design-vue/es/table/hooks/useSorter.js
- var ASCEND = "ascend";
- var DESCEND = "descend";
- function getMultiplePriority(column) {
- if (_typeof(column.sorter) === "object" && typeof column.sorter.multiple === "number") {
- return column.sorter.multiple;
- }
- return false;
- }
- function getSortFunction(sorter) {
- if (typeof sorter === "function") {
- return sorter;
- }
- if (sorter && _typeof(sorter) === "object" && sorter.compare) {
- return sorter.compare;
- }
- return false;
- }
- function nextSortDirection(sortDirections, current2) {
- if (!current2) {
- return sortDirections[0];
- }
- return sortDirections[sortDirections.indexOf(current2) + 1];
- }
- function collectSortStates(columns, init, pos) {
- var sortStates = [];
- function pushState(column, columnPos) {
- sortStates.push({
- column,
- key: getColumnKey(column, columnPos),
- multiplePriority: getMultiplePriority(column),
- sortOrder: column.sortOrder
- });
- }
- (columns || []).forEach(function(column, index3) {
- var columnPos = getColumnPos(index3, pos);
- if (column.children) {
- if ("sortOrder" in column) {
- pushState(column, columnPos);
- }
- sortStates = [].concat(_toConsumableArray(sortStates), _toConsumableArray(collectSortStates(column.children, init, columnPos)));
- } else if (column.sorter) {
- if ("sortOrder" in column) {
- pushState(column, columnPos);
- } else if (init && column.defaultSortOrder) {
- sortStates.push({
- column,
- key: getColumnKey(column, columnPos),
- multiplePriority: getMultiplePriority(column),
- sortOrder: column.defaultSortOrder
- });
- }
- }
- });
- return sortStates;
- }
- function injectSorter(prefixCls, columns, sorterSates, triggerSorter, defaultSortDirections, tableLocale, tableShowSorterTooltip, pos) {
- return (columns || []).map(function(column, index3) {
- var columnPos = getColumnPos(index3, pos);
- var newColumn = column;
- if (newColumn.sorter) {
- var sortDirections = newColumn.sortDirections || defaultSortDirections;
- var showSorterTooltip = newColumn.showSorterTooltip === void 0 ? tableShowSorterTooltip : newColumn.showSorterTooltip;
- var columnKey = getColumnKey(newColumn, columnPos);
- var sorterState = sorterSates.find(function(_ref) {
- var key2 = _ref.key;
- return key2 === columnKey;
- });
- var sorterOrder = sorterState ? sorterState.sortOrder : null;
- var nextSortOrder = nextSortDirection(sortDirections, sorterOrder);
- var upNode = sortDirections.includes(ASCEND) && createVNode(CaretUpOutlined_default, {
- "class": classNames_default("".concat(prefixCls, "-column-sorter-up"), {
- active: sorterOrder === ASCEND
- })
- }, null);
- var downNode = sortDirections.includes(DESCEND) && createVNode(CaretDownOutlined_default, {
- "class": classNames_default("".concat(prefixCls, "-column-sorter-down"), {
- active: sorterOrder === DESCEND
- })
- }, null);
- var _ref2 = tableLocale || {}, cancelSort = _ref2.cancelSort, triggerAsc = _ref2.triggerAsc, triggerDesc = _ref2.triggerDesc;
- var sortTip = cancelSort;
- if (nextSortOrder === DESCEND) {
- sortTip = triggerDesc;
- } else if (nextSortOrder === ASCEND) {
- sortTip = triggerAsc;
- }
- var tooltipProps3 = _typeof(showSorterTooltip) === "object" ? showSorterTooltip : {
- title: sortTip
- };
- newColumn = _objectSpread2(_objectSpread2({}, newColumn), {}, {
- className: classNames_default(newColumn.className, _defineProperty({}, "".concat(prefixCls, "-column-sort"), sorterOrder)),
- title: function title(renderProps) {
- var renderSortTitle = createVNode("div", {
- "class": "".concat(prefixCls, "-column-sorters")
- }, [createVNode("span", {
- "class": "".concat(prefixCls, "-column-title")
- }, [renderColumnTitle(column.title, renderProps)]), createVNode("span", {
- "class": classNames_default("".concat(prefixCls, "-column-sorter"), _defineProperty({}, "".concat(prefixCls, "-column-sorter-full"), !!(upNode && downNode)))
- }, [createVNode("span", {
- "class": "".concat(prefixCls, "-column-sorter-inner")
- }, [upNode, downNode])])]);
- return showSorterTooltip ? createVNode(tooltip_default, tooltipProps3, {
- default: function _default9() {
- return [renderSortTitle];
- }
- }) : renderSortTitle;
- },
- customHeaderCell: function customHeaderCell(col) {
- var cell = column.customHeaderCell && column.customHeaderCell(col) || {};
- var originOnClick = cell.onClick;
- cell.onClick = function(event) {
- triggerSorter({
- column,
- key: columnKey,
- sortOrder: nextSortOrder,
- multiplePriority: getMultiplePriority(column)
- });
- if (originOnClick) {
- originOnClick(event);
- }
- };
- cell.class = classNames_default(cell.class, "".concat(prefixCls, "-column-has-sorters"));
- return cell;
- }
- });
- }
- if ("children" in newColumn) {
- newColumn = _objectSpread2(_objectSpread2({}, newColumn), {}, {
- children: injectSorter(prefixCls, newColumn.children, sorterSates, triggerSorter, defaultSortDirections, tableLocale, tableShowSorterTooltip, columnPos)
- });
- }
- return newColumn;
- });
- }
- function stateToInfo(sorterStates) {
- var column = sorterStates.column, sortOrder = sorterStates.sortOrder;
- return {
- column,
- order: sortOrder,
- field: column.dataIndex,
- columnKey: column.key
- };
- }
- function generateSorterInfo(sorterStates) {
- var list = sorterStates.filter(function(_ref3) {
- var sortOrder = _ref3.sortOrder;
- return sortOrder;
- }).map(stateToInfo);
- if (list.length === 0 && sorterStates.length) {
- return _objectSpread2(_objectSpread2({}, stateToInfo(sorterStates[sorterStates.length - 1])), {}, {
- column: void 0
- });
- }
- if (list.length <= 1) {
- return list[0] || {};
- }
- return list;
- }
- function getSortData(data8, sortStates, childrenColumnName) {
- var innerSorterStates = sortStates.slice().sort(function(a2, b2) {
- return b2.multiplePriority - a2.multiplePriority;
- });
- var cloneData = data8.slice();
- var runningSorters = innerSorterStates.filter(function(_ref4) {
- var sorter = _ref4.column.sorter, sortOrder = _ref4.sortOrder;
- return getSortFunction(sorter) && sortOrder;
- });
- if (!runningSorters.length) {
- return cloneData;
- }
- return cloneData.sort(function(record1, record2) {
- for (var i3 = 0; i3 < runningSorters.length; i3 += 1) {
- var sorterState = runningSorters[i3];
- var sorter = sorterState.column.sorter, sortOrder = sorterState.sortOrder;
- var compareFn = getSortFunction(sorter);
- if (compareFn && sortOrder) {
- var compareResult = compareFn(record1, record2, sortOrder);
- if (compareResult !== 0) {
- return sortOrder === ASCEND ? compareResult : -compareResult;
- }
- }
- }
- return 0;
- }).map(function(record) {
- var subRecords = record[childrenColumnName];
- if (subRecords) {
- return _objectSpread2(_objectSpread2({}, record), {}, _defineProperty({}, childrenColumnName, getSortData(subRecords, sortStates, childrenColumnName)));
- }
- return record;
- });
- }
- function useFilterSorter(_ref5) {
- var prefixCls = _ref5.prefixCls, mergedColumns = _ref5.mergedColumns, onSorterChange = _ref5.onSorterChange, sortDirections = _ref5.sortDirections, tableLocale = _ref5.tableLocale, showSorterTooltip = _ref5.showSorterTooltip;
- var _useState = useState(collectSortStates(mergedColumns.value, true)), _useState2 = _slicedToArray(_useState, 2), sortStates = _useState2[0], setSortStates = _useState2[1];
- var mergedSorterStates = computed(function() {
- var validate = true;
- var collectedStates = collectSortStates(mergedColumns.value, false);
- if (!collectedStates.length) {
- return sortStates.value;
- }
- var validateStates = [];
- function patchStates(state) {
- if (validate) {
- validateStates.push(state);
- } else {
- validateStates.push(_objectSpread2(_objectSpread2({}, state), {}, {
- sortOrder: null
- }));
- }
- }
- var multipleMode = null;
- collectedStates.forEach(function(state) {
- if (multipleMode === null) {
- patchStates(state);
- if (state.sortOrder) {
- if (state.multiplePriority === false) {
- validate = false;
- } else {
- multipleMode = true;
- }
- }
- } else if (multipleMode && state.multiplePriority !== false) {
- patchStates(state);
- } else {
- validate = false;
- patchStates(state);
- }
- });
- return validateStates;
- });
- var columnTitleSorterProps = computed(function() {
- var sortColumns = mergedSorterStates.value.map(function(_ref6) {
- var column = _ref6.column, sortOrder = _ref6.sortOrder;
- return {
- column,
- order: sortOrder
- };
- });
- return {
- sortColumns,
- // Legacy
- sortColumn: sortColumns[0] && sortColumns[0].column,
- sortOrder: sortColumns[0] && sortColumns[0].order
- };
- });
- function triggerSorter(sortState) {
- var newSorterStates;
- if (sortState.multiplePriority === false || !mergedSorterStates.value.length || mergedSorterStates.value[0].multiplePriority === false) {
- newSorterStates = [sortState];
- } else {
- newSorterStates = [].concat(_toConsumableArray(mergedSorterStates.value.filter(function(_ref7) {
- var key2 = _ref7.key;
- return key2 !== sortState.key;
- })), [sortState]);
- }
- setSortStates(newSorterStates);
- onSorterChange(generateSorterInfo(newSorterStates), newSorterStates);
- }
- var transformColumns = function transformColumns2(innerColumns) {
- return injectSorter(prefixCls.value, innerColumns, mergedSorterStates.value, triggerSorter, sortDirections.value, tableLocale.value, showSorterTooltip.value);
- };
- var sorters = computed(function() {
- return generateSorterInfo(mergedSorterStates.value);
- });
- return [transformColumns, mergedSorterStates, columnTitleSorterProps, sorters];
- }
- // node_modules/ant-design-vue/es/table/hooks/useFilter/FilterWrapper.js
- var FilterDropdownMenuWrapper = function FilterDropdownMenuWrapper2(_props, _ref) {
- var _slots$default;
- var slots = _ref.slots;
- return createVNode("div", {
- "onClick": function onClick2(e3) {
- return e3.stopPropagation();
- }
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
- };
- var FilterWrapper_default = FilterDropdownMenuWrapper;
- // node_modules/ant-design-vue/es/table/hooks/useFilter/FilterSearch.js
- var FilterSearch_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "FilterSearch",
- inheritAttrs: false,
- props: {
- value: String,
- onChange: Function,
- filterSearch: Boolean,
- tablePrefixCls: String,
- locale: {
- type: Object,
- default: void 0
- }
- },
- setup: function setup192(props5) {
- return function() {
- var value = props5.value, onChange3 = props5.onChange, filterSearch = props5.filterSearch, tablePrefixCls = props5.tablePrefixCls, locale4 = props5.locale;
- if (!filterSearch) {
- return null;
- }
- return createVNode("div", {
- "class": "".concat(tablePrefixCls, "-filter-dropdown-search")
- }, [createVNode(input_default, {
- "placeholder": locale4.filterSearchPlaceholder,
- "onChange": onChange3,
- "value": value,
- "htmlSize": 1,
- "class": "".concat(tablePrefixCls, "-filter-dropdown-search-input")
- }, {
- prefix: function prefix() {
- return createVNode(SearchOutlined_default, null, null);
- }
- })]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tree/MotionTreeNode.js
- var _excluded59 = ["motion", "motionNodes", "motionType", "active", "eventKey"];
- var MotionTreeNode_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "MotionTreeNode",
- inheritAttrs: false,
- props: _objectSpread2(_objectSpread2({}, treeNodeProps), {}, {
- active: Boolean,
- motion: Object,
- motionNodes: {
- type: Array
- },
- onMotionStart: Function,
- onMotionEnd: Function,
- motionType: String
- // treeNodeRequiredProps: { type: Object as PropType<TreeNodeRequiredProps> },
- }),
- slots: ["title", "icon", "switcherIcon", "checkable"],
- setup: function setup193(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var visible = ref(true);
- var context2 = useInjectTreeContext();
- var motionedRef = ref(false);
- var transitionProps = computed(function() {
- if (props5.motion) {
- return props5.motion;
- } else {
- return collapseMotion_default();
- }
- });
- var onMotionEnd = function onMotionEnd2(node, type4) {
- if (type4 === "appear") {
- var _transitionProps$valu, _transitionProps$valu2;
- (_transitionProps$valu = transitionProps.value) === null || _transitionProps$valu === void 0 ? void 0 : (_transitionProps$valu2 = _transitionProps$valu.onAfterEnter) === null || _transitionProps$valu2 === void 0 ? void 0 : _transitionProps$valu2.call(_transitionProps$valu, node);
- } else if (type4 === "leave") {
- var _transitionProps$valu3, _transitionProps$valu4;
- (_transitionProps$valu3 = transitionProps.value) === null || _transitionProps$valu3 === void 0 ? void 0 : (_transitionProps$valu4 = _transitionProps$valu3.onAfterLeave) === null || _transitionProps$valu4 === void 0 ? void 0 : _transitionProps$valu4.call(_transitionProps$valu3, node);
- }
- if (!motionedRef.value) {
- props5.onMotionEnd();
- }
- motionedRef.value = true;
- };
- watch(function() {
- return props5.motionNodes;
- }, function() {
- if (props5.motionNodes && props5.motionType === "hide" && visible.value) {
- nextTick(function() {
- visible.value = false;
- });
- }
- }, {
- immediate: true,
- flush: "post"
- });
- onMounted(function() {
- props5.motionNodes && props5.onMotionStart();
- });
- onBeforeUnmount(function() {
- props5.motionNodes && onMotionEnd();
- });
- return function() {
- var motion = props5.motion, motionNodes = props5.motionNodes, motionType = props5.motionType, active = props5.active, eventKey = props5.eventKey, otherProps = _objectWithoutProperties(props5, _excluded59);
- if (motionNodes) {
- return createVNode(Transition, _objectSpread2(_objectSpread2({}, transitionProps.value), {}, {
- "appear": motionType === "show",
- "onAfterAppear": function onAfterAppear(node) {
- return onMotionEnd(node, "appear");
- },
- "onAfterLeave": function onAfterLeave(node) {
- return onMotionEnd(node, "leave");
- }
- }), {
- default: function _default9() {
- return [withDirectives(createVNode("div", {
- "class": "".concat(context2.value.prefixCls, "-treenode-motion")
- }, [motionNodes.map(function(treeNode) {
- var restProps = _extends({}, (_objectDestructuringEmpty(treeNode.data), treeNode.data)), title = treeNode.title, key2 = treeNode.key, isStart = treeNode.isStart, isEnd = treeNode.isEnd;
- delete restProps.children;
- return createVNode(TreeNode_default, _objectSpread2(_objectSpread2({}, restProps), {}, {
- "title": title,
- "active": active,
- "data": treeNode.data,
- "key": key2,
- "eventKey": key2,
- "isStart": isStart,
- "isEnd": isEnd
- }), slots);
- })]), [[vShow, visible.value]])];
- }
- });
- }
- return createVNode(TreeNode_default, _objectSpread2(_objectSpread2({
- "domRef": ref,
- "class": attrs.class,
- "style": attrs.style
- }, otherProps), {}, {
- "active": active,
- "eventKey": eventKey
- }), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tree/utils/diffUtil.js
- function findExpandedKeys() {
- var prev2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- var next2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
- var prevLen = prev2.length;
- var nextLen = next2.length;
- if (Math.abs(prevLen - nextLen) !== 1) {
- return {
- add: false,
- key: null
- };
- }
- function find2(shorter, longer) {
- var cache = /* @__PURE__ */ new Map();
- shorter.forEach(function(key2) {
- cache.set(key2, true);
- });
- var keys2 = longer.filter(function(key2) {
- return !cache.has(key2);
- });
- return keys2.length === 1 ? keys2[0] : null;
- }
- if (prevLen < nextLen) {
- return {
- add: true,
- key: find2(prev2, next2)
- };
- }
- return {
- add: false,
- key: find2(next2, prev2)
- };
- }
- function getExpandRange(shorter, longer, key2) {
- var shorterStartIndex = shorter.findIndex(function(item) {
- return item.key === key2;
- });
- var shorterEndNode = shorter[shorterStartIndex + 1];
- var longerStartIndex = longer.findIndex(function(item) {
- return item.key === key2;
- });
- if (shorterEndNode) {
- var longerEndIndex = longer.findIndex(function(item) {
- return item.key === shorterEndNode.key;
- });
- return longer.slice(longerStartIndex + 1, longerEndIndex);
- }
- return longer.slice(longerStartIndex + 1);
- }
- // node_modules/ant-design-vue/es/vc-tree/NodeList.js
- var _excluded60 = ["prefixCls", "selectable", "checkable", "disabled", "motion", "height", "itemHeight", "virtual", "focusable", "activeItem", "focused", "tabindex", "onKeydown", "onFocus", "onBlur", "onListChangeStart", "onListChangeEnd"];
- var HIDDEN_STYLE2 = {
- width: 0,
- height: 0,
- display: "flex",
- overflow: "hidden",
- opacity: 0,
- border: 0,
- padding: 0,
- margin: 0
- };
- var noop11 = function noop12() {
- };
- var MOTION_KEY = "RC_TREE_MOTION_".concat(Math.random());
- var MotionNode = {
- key: MOTION_KEY
- };
- var MotionEntity = {
- key: MOTION_KEY,
- level: 0,
- index: 0,
- pos: "0",
- node: MotionNode,
- nodes: [MotionNode]
- };
- var MotionFlattenData = {
- parent: null,
- children: [],
- pos: MotionEntity.pos,
- data: MotionNode,
- title: null,
- key: MOTION_KEY,
- /** Hold empty list here since we do not use it */
- isStart: [],
- isEnd: []
- };
- function getMinimumRangeTransitionRange(list, virtual, height, itemHeight) {
- if (virtual === false || !height) {
- return list;
- }
- return list.slice(0, Math.ceil(height / itemHeight) + 1);
- }
- function itemKey(item) {
- var key2 = item.key, pos = item.pos;
- return getKey4(key2, pos);
- }
- function getAccessibilityPath(item) {
- var path2 = String(item.key);
- var current2 = item;
- while (current2.parent) {
- current2 = current2.parent;
- path2 = "".concat(current2.key, " > ").concat(path2);
- }
- return path2;
- }
- var NodeList_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "NodeList",
- inheritAttrs: false,
- props: nodeListProps,
- setup: function setup194(props5, _ref) {
- var expose = _ref.expose, attrs = _ref.attrs;
- var listRef = ref();
- var indentMeasurerRef = ref();
- var _useInjectKeysState = useInjectKeysState(), expandedKeys = _useInjectKeysState.expandedKeys, flattenNodes = _useInjectKeysState.flattenNodes;
- expose({
- scrollTo: function scrollTo3(scroll) {
- listRef.value.scrollTo(scroll);
- },
- getIndentWidth: function getIndentWidth() {
- return indentMeasurerRef.value.offsetWidth;
- }
- });
- var transitionData = shallowRef(flattenNodes.value);
- var transitionRange = shallowRef([]);
- var motionType = ref(null);
- function onMotionEnd() {
- transitionData.value = flattenNodes.value;
- transitionRange.value = [];
- motionType.value = null;
- props5.onListChangeEnd();
- }
- var context2 = useInjectTreeContext();
- watch([function() {
- return expandedKeys.value.slice();
- }, flattenNodes], function(_ref2, _ref3) {
- var _ref4 = _slicedToArray(_ref2, 2), expandedKeys2 = _ref4[0], data8 = _ref4[1];
- var _ref5 = _slicedToArray(_ref3, 2), prevExpandedKeys = _ref5[0], prevData = _ref5[1];
- var diffExpanded = findExpandedKeys(prevExpandedKeys, expandedKeys2);
- if (diffExpanded.key !== null) {
- var virtual = props5.virtual, height = props5.height, itemHeight = props5.itemHeight;
- if (diffExpanded.add) {
- var keyIndex = prevData.findIndex(function(_ref6) {
- var key2 = _ref6.key;
- return key2 === diffExpanded.key;
- });
- var rangeNodes = getMinimumRangeTransitionRange(getExpandRange(prevData, data8, diffExpanded.key), virtual, height, itemHeight);
- var newTransitionData = prevData.slice();
- newTransitionData.splice(keyIndex + 1, 0, MotionFlattenData);
- transitionData.value = newTransitionData;
- transitionRange.value = rangeNodes;
- motionType.value = "show";
- } else {
- var _keyIndex = data8.findIndex(function(_ref7) {
- var key2 = _ref7.key;
- return key2 === diffExpanded.key;
- });
- var _rangeNodes = getMinimumRangeTransitionRange(getExpandRange(data8, prevData, diffExpanded.key), virtual, height, itemHeight);
- var _newTransitionData = data8.slice();
- _newTransitionData.splice(_keyIndex + 1, 0, MotionFlattenData);
- transitionData.value = _newTransitionData;
- transitionRange.value = _rangeNodes;
- motionType.value = "hide";
- }
- } else if (prevData !== data8) {
- transitionData.value = data8;
- }
- });
- watch(function() {
- return context2.value.dragging;
- }, function(dragging) {
- if (!dragging) {
- onMotionEnd();
- }
- });
- var mergedData = computed(function() {
- return props5.motion === void 0 ? transitionData.value : flattenNodes.value;
- });
- var onActiveChange = function onActiveChange2() {
- props5.onActiveChange(null);
- };
- return function() {
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), prefixCls = _props$attrs.prefixCls, selectable = _props$attrs.selectable, checkable = _props$attrs.checkable, disabled = _props$attrs.disabled, motion = _props$attrs.motion, height = _props$attrs.height, itemHeight = _props$attrs.itemHeight, virtual = _props$attrs.virtual, focusable = _props$attrs.focusable, activeItem = _props$attrs.activeItem, focused = _props$attrs.focused, tabindex = _props$attrs.tabindex, onKeydown = _props$attrs.onKeydown, onFocus2 = _props$attrs.onFocus, onBlur2 = _props$attrs.onBlur, onListChangeStart = _props$attrs.onListChangeStart, onListChangeEnd = _props$attrs.onListChangeEnd, domProps = _objectWithoutProperties(_props$attrs, _excluded60);
- return createVNode(Fragment, null, [focused && activeItem && createVNode("span", {
- "style": HIDDEN_STYLE2,
- "aria-live": "assertive"
- }, [getAccessibilityPath(activeItem)]), createVNode("div", null, [createVNode("input", {
- "style": HIDDEN_STYLE2,
- "disabled": focusable === false || disabled,
- "tabindex": focusable !== false ? tabindex : null,
- "onKeydown": onKeydown,
- "onFocus": onFocus2,
- "onBlur": onBlur2,
- "value": "",
- "onChange": noop11,
- "aria-label": "for screen reader"
- }, null)]), createVNode("div", {
- "class": "".concat(prefixCls, "-treenode"),
- "aria-hidden": true,
- "style": {
- position: "absolute",
- pointerEvents: "none",
- visibility: "hidden",
- height: 0,
- overflow: "hidden"
- }
- }, [createVNode("div", {
- "class": "".concat(prefixCls, "-indent")
- }, [createVNode("div", {
- "ref": indentMeasurerRef,
- "class": "".concat(prefixCls, "-indent-unit")
- }, null)])]), createVNode(vc_virtual_list_default, _objectSpread2(_objectSpread2({}, omit_default(domProps, ["onActiveChange"])), {}, {
- "data": mergedData.value,
- "itemKey": itemKey,
- "height": height,
- "fullHeight": false,
- "virtual": virtual,
- "itemHeight": itemHeight,
- "prefixCls": "".concat(prefixCls, "-list"),
- "ref": listRef,
- "onVisibleChange": function onVisibleChange(originList, fullList) {
- var originSet = new Set(originList);
- var restList = fullList.filter(function(item) {
- return !originSet.has(item);
- });
- if (restList.some(function(item) {
- return itemKey(item) === MOTION_KEY;
- })) {
- onMotionEnd();
- }
- }
- }), {
- default: function _default9(treeNode) {
- var pos = treeNode.pos, restProps = _extends({}, (_objectDestructuringEmpty(treeNode.data), treeNode.data)), title = treeNode.title, key2 = treeNode.key, isStart = treeNode.isStart, isEnd = treeNode.isEnd;
- var mergedKey = getKey4(key2, pos);
- delete restProps.key;
- delete restProps.children;
- return createVNode(MotionTreeNode_default, _objectSpread2(_objectSpread2({}, restProps), {}, {
- "eventKey": mergedKey,
- "title": title,
- "active": !!activeItem && key2 === activeItem.key,
- "data": treeNode.data,
- "isStart": isStart,
- "isEnd": isEnd,
- "motion": motion,
- "motionNodes": key2 === MOTION_KEY ? transitionRange.value : null,
- "motionType": motionType.value,
- "onMotionStart": onListChangeStart,
- "onMotionEnd": onMotionEnd,
- "onMousemove": onActiveChange
- }), null);
- }
- })]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tree/DropIndicator.js
- function DropIndicator(_ref) {
- var dropPosition = _ref.dropPosition, dropLevelOffset = _ref.dropLevelOffset, indent = _ref.indent;
- var style = {
- pointerEvents: "none",
- position: "absolute",
- right: 0,
- backgroundColor: "red",
- height: "".concat(2, "px")
- };
- switch (dropPosition) {
- case -1:
- style.top = 0;
- style.left = "".concat(-dropLevelOffset * indent, "px");
- break;
- case 1:
- style.bottom = 0;
- style.left = "".concat(-dropLevelOffset * indent, "px");
- break;
- case 0:
- style.bottom = 0;
- style.left = "".concat(indent);
- break;
- }
- return createVNode("div", {
- "style": style
- }, null);
- }
- // node_modules/ant-design-vue/es/vc-tree/Tree.js
- var MAX_RETRY_TIMES = 10;
- var Tree_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Tree",
- inheritAttrs: false,
- slots: ["checkable", "title", "icon", "titleRender"],
- props: initDefaultProps_default(treeProps(), {
- prefixCls: "vc-tree",
- showLine: false,
- showIcon: true,
- selectable: true,
- multiple: false,
- checkable: false,
- disabled: false,
- checkStrictly: false,
- draggable: false,
- defaultExpandParent: true,
- autoExpandParent: false,
- defaultExpandAll: false,
- defaultExpandedKeys: [],
- defaultCheckedKeys: [],
- defaultSelectedKeys: [],
- dropIndicatorRender: DropIndicator,
- allowDrop: function allowDrop() {
- return true;
- }
- }),
- setup: function setup195(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, expose = _ref.expose;
- var destroyed = ref(false);
- var delayedDragEnterLogic = {};
- var indent = ref();
- var selectedKeys = shallowRef([]);
- var checkedKeys = shallowRef([]);
- var halfCheckedKeys = shallowRef([]);
- var loadedKeys = shallowRef([]);
- var loadingKeys = shallowRef([]);
- var expandedKeys = shallowRef([]);
- var loadingRetryTimes = {};
- var dragState = reactive({
- draggingNodeKey: null,
- dragChildrenKeys: [],
- // dropTargetKey is the key of abstract-drop-node
- // the abstract-drop-node is the real drop node when drag and drop
- // not the DOM drag over node
- dropTargetKey: null,
- dropPosition: null,
- dropContainerKey: null,
- dropLevelOffset: null,
- dropTargetPos: null,
- dropAllowed: true,
- // the abstract-drag-over-node
- // if mouse is on the bottom of top dom node or no the top of the bottom dom node
- // abstract-drag-over-node is the top node
- dragOverNodeKey: null
- });
- var treeData = shallowRef([]);
- watch([function() {
- return props5.treeData;
- }, function() {
- return props5.children;
- }], function() {
- treeData.value = props5.treeData !== void 0 ? toRaw(props5.treeData).slice() : convertTreeToData(toRaw(props5.children));
- }, {
- immediate: true,
- deep: true
- });
- var keyEntities = shallowRef({});
- var focused = ref(false);
- var activeKey = ref(null);
- var listChanging = ref(false);
- var fieldNames = computed(function() {
- return fillFieldNames3(props5.fieldNames);
- });
- var listRef = ref();
- var dragStartMousePosition = null;
- var dragNode = null;
- var currentMouseOverDroppableNodeKey = null;
- var treeNodeRequiredProps = computed(function() {
- return {
- expandedKeysSet: expandedKeysSet.value,
- selectedKeysSet: selectedKeysSet.value,
- loadedKeysSet: loadedKeysSet.value,
- loadingKeysSet: loadingKeysSet.value,
- checkedKeysSet: checkedKeysSet.value,
- halfCheckedKeysSet: halfCheckedKeysSet.value,
- dragOverNodeKey: dragState.dragOverNodeKey,
- dropPosition: dragState.dropPosition,
- keyEntities: keyEntities.value
- };
- });
- var expandedKeysSet = computed(function() {
- return new Set(expandedKeys.value);
- });
- var selectedKeysSet = computed(function() {
- return new Set(selectedKeys.value);
- });
- var loadedKeysSet = computed(function() {
- return new Set(loadedKeys.value);
- });
- var loadingKeysSet = computed(function() {
- return new Set(loadingKeys.value);
- });
- var checkedKeysSet = computed(function() {
- return new Set(checkedKeys.value);
- });
- var halfCheckedKeysSet = computed(function() {
- return new Set(halfCheckedKeys.value);
- });
- watchEffect(function() {
- if (treeData.value) {
- var entitiesMap = convertDataToEntities(treeData.value, {
- fieldNames: fieldNames.value
- });
- keyEntities.value = _objectSpread2(_defineProperty({}, MOTION_KEY, MotionEntity), entitiesMap.keyEntities);
- }
- });
- var init = false;
- watch(
- [function() {
- return props5.expandedKeys;
- }, function() {
- return props5.autoExpandParent;
- }, keyEntities],
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- function(_ref2, _ref3) {
- var _ref4 = _slicedToArray(_ref2, 2), _newKeys = _ref4[0], newAutoExpandParent = _ref4[1];
- var _ref5 = _slicedToArray(_ref3, 2), _oldKeys = _ref5[0], oldAutoExpandParent = _ref5[1];
- var keys2 = expandedKeys.value;
- if (props5.expandedKeys !== void 0 || init && newAutoExpandParent !== oldAutoExpandParent) {
- keys2 = props5.autoExpandParent || !init && props5.defaultExpandParent ? conductExpandParent(props5.expandedKeys, keyEntities.value) : props5.expandedKeys;
- } else if (!init && props5.defaultExpandAll) {
- var cloneKeyEntities = _objectSpread2({}, keyEntities.value);
- delete cloneKeyEntities[MOTION_KEY];
- keys2 = Object.keys(cloneKeyEntities).map(function(key2) {
- return cloneKeyEntities[key2].key;
- });
- } else if (!init && props5.defaultExpandedKeys) {
- keys2 = props5.autoExpandParent || props5.defaultExpandParent ? conductExpandParent(props5.defaultExpandedKeys, keyEntities.value) : props5.defaultExpandedKeys;
- }
- if (keys2) {
- expandedKeys.value = keys2;
- }
- init = true;
- },
- {
- immediate: true
- }
- );
- var flattenNodes = shallowRef([]);
- watchEffect(function() {
- flattenNodes.value = flattenTreeData(treeData.value, expandedKeys.value, fieldNames.value);
- });
- watchEffect(function() {
- if (props5.selectable) {
- if (props5.selectedKeys !== void 0) {
- selectedKeys.value = calcSelectedKeys(props5.selectedKeys, props5);
- } else if (!init && props5.defaultSelectedKeys) {
- selectedKeys.value = calcSelectedKeys(props5.defaultSelectedKeys, props5);
- }
- }
- });
- var _useMaxLevel = useMaxLevel(keyEntities), maxLevel = _useMaxLevel.maxLevel, levelEntities = _useMaxLevel.levelEntities;
- watchEffect(function() {
- if (props5.checkable) {
- var checkedKeyEntity;
- if (props5.checkedKeys !== void 0) {
- checkedKeyEntity = parseCheckedKeys(props5.checkedKeys) || {};
- } else if (!init && props5.defaultCheckedKeys) {
- checkedKeyEntity = parseCheckedKeys(props5.defaultCheckedKeys) || {};
- } else if (treeData.value) {
- checkedKeyEntity = parseCheckedKeys(props5.checkedKeys) || {
- checkedKeys: checkedKeys.value,
- halfCheckedKeys: halfCheckedKeys.value
- };
- }
- if (checkedKeyEntity) {
- var _checkedKeyEntity = checkedKeyEntity, _checkedKeyEntity$che = _checkedKeyEntity.checkedKeys, newCheckedKeys = _checkedKeyEntity$che === void 0 ? [] : _checkedKeyEntity$che, _checkedKeyEntity$hal = _checkedKeyEntity.halfCheckedKeys, newHalfCheckedKeys = _checkedKeyEntity$hal === void 0 ? [] : _checkedKeyEntity$hal;
- if (!props5.checkStrictly) {
- var conductKeys = conductCheck(newCheckedKeys, true, keyEntities.value, maxLevel.value, levelEntities.value);
- newCheckedKeys = conductKeys.checkedKeys;
- newHalfCheckedKeys = conductKeys.halfCheckedKeys;
- }
- checkedKeys.value = newCheckedKeys;
- halfCheckedKeys.value = newHalfCheckedKeys;
- }
- }
- });
- watchEffect(function() {
- if (props5.loadedKeys) {
- loadedKeys.value = props5.loadedKeys;
- }
- });
- var resetDragState = function resetDragState2() {
- _extends(dragState, {
- dragOverNodeKey: null,
- dropPosition: null,
- dropLevelOffset: null,
- dropTargetKey: null,
- dropContainerKey: null,
- dropTargetPos: null,
- dropAllowed: false
- });
- };
- var scrollTo3 = function scrollTo4(scroll) {
- listRef.value.scrollTo(scroll);
- };
- watch(function() {
- return props5.activeKey;
- }, function() {
- if (props5.activeKey !== void 0) {
- activeKey.value = props5.activeKey;
- }
- }, {
- immediate: true
- });
- watch(activeKey, function(val) {
- nextTick(function() {
- if (val !== null) {
- scrollTo3({
- key: val
- });
- }
- });
- }, {
- immediate: true,
- flush: "post"
- });
- var setExpandedKeys = function setExpandedKeys2(keys2) {
- if (props5.expandedKeys === void 0) {
- expandedKeys.value = keys2;
- }
- };
- var cleanDragState = function cleanDragState2() {
- if (dragState.draggingNodeKey !== null) {
- _extends(dragState, {
- draggingNodeKey: null,
- dropPosition: null,
- dropContainerKey: null,
- dropTargetKey: null,
- dropLevelOffset: null,
- dropAllowed: true,
- dragOverNodeKey: null
- });
- }
- dragStartMousePosition = null;
- currentMouseOverDroppableNodeKey = null;
- };
- var onNodeDragEnd = function onNodeDragEnd2(event, node) {
- var onDragend = props5.onDragend;
- dragState.dragOverNodeKey = null;
- cleanDragState();
- onDragend === null || onDragend === void 0 ? void 0 : onDragend({
- event,
- node: node.eventData
- });
- dragNode = null;
- };
- var onWindowDragEnd = function onWindowDragEnd2(event) {
- onNodeDragEnd(event, null, true);
- window.removeEventListener("dragend", onWindowDragEnd2);
- };
- var onNodeDragStart = function onNodeDragStart2(event, node) {
- var onDragstart = props5.onDragstart;
- var eventKey = node.eventKey, eventData = node.eventData;
- dragNode = node;
- dragStartMousePosition = {
- x: event.clientX,
- y: event.clientY
- };
- var newExpandedKeys = arrDel(expandedKeys.value, eventKey);
- dragState.draggingNodeKey = eventKey;
- dragState.dragChildrenKeys = getDragChildrenKeys(eventKey, keyEntities.value);
- indent.value = listRef.value.getIndentWidth();
- setExpandedKeys(newExpandedKeys);
- window.addEventListener("dragend", onWindowDragEnd);
- if (onDragstart) {
- onDragstart({
- event,
- node: eventData
- });
- }
- };
- var onNodeDragEnter = function onNodeDragEnter2(event, node) {
- var onDragenter = props5.onDragenter, onExpand = props5.onExpand, allowDrop2 = props5.allowDrop, direction = props5.direction;
- var pos = node.pos, eventKey = node.eventKey;
- if (currentMouseOverDroppableNodeKey !== eventKey) {
- currentMouseOverDroppableNodeKey = eventKey;
- }
- if (!dragNode) {
- resetDragState();
- return;
- }
- var _calcDropPosition = calcDropPosition(event, dragNode, node, indent.value, dragStartMousePosition, allowDrop2, flattenNodes.value, keyEntities.value, expandedKeysSet.value, direction), dropPosition = _calcDropPosition.dropPosition, dropLevelOffset = _calcDropPosition.dropLevelOffset, dropTargetKey = _calcDropPosition.dropTargetKey, dropContainerKey = _calcDropPosition.dropContainerKey, dropTargetPos = _calcDropPosition.dropTargetPos, dropAllowed = _calcDropPosition.dropAllowed, dragOverNodeKey = _calcDropPosition.dragOverNodeKey;
- if (
- // don't allow drop inside its children
- dragState.dragChildrenKeys.indexOf(dropTargetKey) !== -1 || // don't allow drop when drop is not allowed caculated by calcDropPosition
- !dropAllowed
- ) {
- resetDragState();
- return;
- }
- if (!delayedDragEnterLogic) {
- delayedDragEnterLogic = {};
- }
- Object.keys(delayedDragEnterLogic).forEach(function(key2) {
- clearTimeout(delayedDragEnterLogic[key2]);
- });
- if (dragNode.eventKey !== node.eventKey) {
- delayedDragEnterLogic[pos] = window.setTimeout(function() {
- if (dragState.draggingNodeKey === null)
- return;
- var newExpandedKeys = expandedKeys.value.slice();
- var entity = keyEntities.value[node.eventKey];
- if (entity && (entity.children || []).length) {
- newExpandedKeys = arrAdd(expandedKeys.value, node.eventKey);
- }
- setExpandedKeys(newExpandedKeys);
- if (onExpand) {
- onExpand(newExpandedKeys, {
- node: node.eventData,
- expanded: true,
- nativeEvent: event
- });
- }
- }, 800);
- }
- if (dragNode.eventKey === dropTargetKey && dropLevelOffset === 0) {
- resetDragState();
- return;
- }
- _extends(dragState, {
- dragOverNodeKey,
- dropPosition,
- dropLevelOffset,
- dropTargetKey,
- dropContainerKey,
- dropTargetPos,
- dropAllowed
- });
- if (onDragenter) {
- onDragenter({
- event,
- node: node.eventData,
- expandedKeys: expandedKeys.value
- });
- }
- };
- var onNodeDragOver = function onNodeDragOver2(event, node) {
- var onDragover = props5.onDragover, allowDrop2 = props5.allowDrop, direction = props5.direction;
- if (!dragNode) {
- return;
- }
- var _calcDropPosition2 = calcDropPosition(event, dragNode, node, indent.value, dragStartMousePosition, allowDrop2, flattenNodes.value, keyEntities.value, expandedKeysSet.value, direction), dropPosition = _calcDropPosition2.dropPosition, dropLevelOffset = _calcDropPosition2.dropLevelOffset, dropTargetKey = _calcDropPosition2.dropTargetKey, dropContainerKey = _calcDropPosition2.dropContainerKey, dropAllowed = _calcDropPosition2.dropAllowed, dropTargetPos = _calcDropPosition2.dropTargetPos, dragOverNodeKey = _calcDropPosition2.dragOverNodeKey;
- if (dragState.dragChildrenKeys.indexOf(dropTargetKey) !== -1 || !dropAllowed) {
- return;
- }
- if (dragNode.eventKey === dropTargetKey && dropLevelOffset === 0) {
- if (!(dragState.dropPosition === null && dragState.dropLevelOffset === null && dragState.dropTargetKey === null && dragState.dropContainerKey === null && dragState.dropTargetPos === null && dragState.dropAllowed === false && dragState.dragOverNodeKey === null)) {
- resetDragState();
- }
- } else if (!(dropPosition === dragState.dropPosition && dropLevelOffset === dragState.dropLevelOffset && dropTargetKey === dragState.dropTargetKey && dropContainerKey === dragState.dropContainerKey && dropTargetPos === dragState.dropTargetPos && dropAllowed === dragState.dropAllowed && dragOverNodeKey === dragState.dragOverNodeKey)) {
- _extends(dragState, {
- dropPosition,
- dropLevelOffset,
- dropTargetKey,
- dropContainerKey,
- dropTargetPos,
- dropAllowed,
- dragOverNodeKey
- });
- }
- if (onDragover) {
- onDragover({
- event,
- node: node.eventData
- });
- }
- };
- var onNodeDragLeave = function onNodeDragLeave2(event, node) {
- if (currentMouseOverDroppableNodeKey === node.eventKey && !event.currentTarget.contains(event.relatedTarget)) {
- resetDragState();
- currentMouseOverDroppableNodeKey = null;
- }
- var onDragleave = props5.onDragleave;
- if (onDragleave) {
- onDragleave({
- event,
- node: node.eventData
- });
- }
- };
- var onNodeDrop = function onNodeDrop2(event, _node) {
- var _activeItem$value;
- var outsideTree = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
- var dragChildrenKeys = dragState.dragChildrenKeys, dropPosition = dragState.dropPosition, dropTargetKey = dragState.dropTargetKey, dropTargetPos = dragState.dropTargetPos, dropAllowed = dragState.dropAllowed;
- if (!dropAllowed)
- return;
- var onDrop = props5.onDrop;
- dragState.dragOverNodeKey = null;
- cleanDragState();
- if (dropTargetKey === null)
- return;
- var abstractDropNodeProps = _objectSpread2(_objectSpread2({}, getTreeNodeProps(dropTargetKey, toRaw(treeNodeRequiredProps.value))), {}, {
- active: ((_activeItem$value = activeItem.value) === null || _activeItem$value === void 0 ? void 0 : _activeItem$value.key) === dropTargetKey,
- data: keyEntities.value[dropTargetKey].node
- });
- var dropToChild = dragChildrenKeys.indexOf(dropTargetKey) !== -1;
- warning(!dropToChild, "Can not drop to dragNode's children node. Maybe this is a bug of ant-design-vue. Please report an issue.");
- var posArr = posToArr(dropTargetPos);
- var dropResult = {
- event,
- node: convertNodePropsToEventData(abstractDropNodeProps),
- dragNode: dragNode ? dragNode.eventData : null,
- dragNodesKeys: [dragNode.eventKey].concat(dragChildrenKeys),
- dropToGap: dropPosition !== 0,
- dropPosition: dropPosition + Number(posArr[posArr.length - 1])
- };
- if (!outsideTree) {
- onDrop === null || onDrop === void 0 ? void 0 : onDrop(dropResult);
- }
- dragNode = null;
- };
- var onNodeClick = function onNodeClick2(e3, treeNode) {
- var onClick2 = props5.onClick;
- if (onClick2) {
- onClick2(e3, treeNode);
- }
- };
- var onNodeDoubleClick = function onNodeDoubleClick2(e3, treeNode) {
- var onDblclick = props5.onDblclick;
- if (onDblclick) {
- onDblclick(e3, treeNode);
- }
- };
- var onNodeSelect = function onNodeSelect2(e3, treeNode) {
- var newSelectedKeys = selectedKeys.value;
- var onSelect = props5.onSelect, multiple = props5.multiple;
- var selected = treeNode.selected;
- var key2 = treeNode[fieldNames.value.key];
- var targetSelected = !selected;
- if (!targetSelected) {
- newSelectedKeys = arrDel(newSelectedKeys, key2);
- } else if (!multiple) {
- newSelectedKeys = [key2];
- } else {
- newSelectedKeys = arrAdd(newSelectedKeys, key2);
- }
- var keyEntitiesValue = keyEntities.value;
- var selectedNodes = newSelectedKeys.map(function(selectedKey) {
- var entity = keyEntitiesValue[selectedKey];
- if (!entity)
- return null;
- return entity.node;
- }).filter(function(node) {
- return node;
- });
- if (props5.selectedKeys === void 0) {
- selectedKeys.value = newSelectedKeys;
- }
- if (onSelect) {
- onSelect(newSelectedKeys, {
- event: "select",
- selected: targetSelected,
- node: treeNode,
- selectedNodes,
- nativeEvent: e3
- });
- }
- };
- var onNodeCheck = function onNodeCheck2(e3, treeNode, checked) {
- var checkStrictly = props5.checkStrictly, onCheck = props5.onCheck;
- var key2 = treeNode[fieldNames.value.key];
- var checkedObj;
- var eventObj = {
- event: "check",
- node: treeNode,
- checked,
- nativeEvent: e3
- };
- var keyEntitiesValue = keyEntities.value;
- if (checkStrictly) {
- var newCheckedKeys = checked ? arrAdd(checkedKeys.value, key2) : arrDel(checkedKeys.value, key2);
- var newHalfCheckedKeys = arrDel(halfCheckedKeys.value, key2);
- checkedObj = {
- checked: newCheckedKeys,
- halfChecked: newHalfCheckedKeys
- };
- eventObj.checkedNodes = newCheckedKeys.map(function(checkedKey) {
- return keyEntitiesValue[checkedKey];
- }).filter(function(entity) {
- return entity;
- }).map(function(entity) {
- return entity.node;
- });
- if (props5.checkedKeys === void 0) {
- checkedKeys.value = newCheckedKeys;
- }
- } else {
- var _conductCheck = conductCheck([].concat(_toConsumableArray(checkedKeys.value), [key2]), true, keyEntitiesValue, maxLevel.value, levelEntities.value), _newCheckedKeys = _conductCheck.checkedKeys, _newHalfCheckedKeys = _conductCheck.halfCheckedKeys;
- if (!checked) {
- var keySet = new Set(_newCheckedKeys);
- keySet.delete(key2);
- var _conductCheck2 = conductCheck(Array.from(keySet), {
- checked: false,
- halfCheckedKeys: _newHalfCheckedKeys
- }, keyEntitiesValue, maxLevel.value, levelEntities.value);
- _newCheckedKeys = _conductCheck2.checkedKeys;
- _newHalfCheckedKeys = _conductCheck2.halfCheckedKeys;
- }
- checkedObj = _newCheckedKeys;
- eventObj.checkedNodes = [];
- eventObj.checkedNodesPositions = [];
- eventObj.halfCheckedKeys = _newHalfCheckedKeys;
- _newCheckedKeys.forEach(function(checkedKey) {
- var entity = keyEntitiesValue[checkedKey];
- if (!entity)
- return;
- var node = entity.node, pos = entity.pos;
- eventObj.checkedNodes.push(node);
- eventObj.checkedNodesPositions.push({
- node,
- pos
- });
- });
- if (props5.checkedKeys === void 0) {
- checkedKeys.value = _newCheckedKeys;
- halfCheckedKeys.value = _newHalfCheckedKeys;
- }
- }
- if (onCheck) {
- onCheck(checkedObj, eventObj);
- }
- };
- var onNodeLoad = function onNodeLoad2(treeNode) {
- var key2 = treeNode[fieldNames.value.key];
- var loadPromise = new Promise(function(resolve, reject) {
- var loadData = props5.loadData, onLoad = props5.onLoad;
- if (!loadData || loadedKeysSet.value.has(key2) || loadingKeysSet.value.has(key2)) {
- return null;
- }
- var promise = loadData(treeNode);
- promise.then(function() {
- var newLoadedKeys = arrAdd(loadedKeys.value, key2);
- var newLoadingKeys = arrDel(loadingKeys.value, key2);
- if (onLoad) {
- onLoad(newLoadedKeys, {
- event: "load",
- node: treeNode
- });
- }
- if (props5.loadedKeys === void 0) {
- loadedKeys.value = newLoadedKeys;
- }
- loadingKeys.value = newLoadingKeys;
- resolve();
- }).catch(function(e3) {
- var newLoadingKeys = arrDel(loadingKeys.value, key2);
- loadingKeys.value = newLoadingKeys;
- loadingRetryTimes[key2] = (loadingRetryTimes[key2] || 0) + 1;
- if (loadingRetryTimes[key2] >= MAX_RETRY_TIMES) {
- warning(false, "Retry for `loadData` many times but still failed. No more retry.");
- var newLoadedKeys = arrAdd(loadedKeys.value, key2);
- if (props5.loadedKeys === void 0) {
- loadedKeys.value = newLoadedKeys;
- }
- resolve();
- }
- reject(e3);
- });
- loadingKeys.value = arrAdd(loadingKeys.value, key2);
- });
- loadPromise.catch(function() {
- });
- return loadPromise;
- };
- var onNodeMouseEnter = function onNodeMouseEnter2(event, node) {
- var onMouseenter2 = props5.onMouseenter;
- if (onMouseenter2) {
- onMouseenter2({
- event,
- node
- });
- }
- };
- var onNodeMouseLeave = function onNodeMouseLeave2(event, node) {
- var onMouseleave2 = props5.onMouseleave;
- if (onMouseleave2) {
- onMouseleave2({
- event,
- node
- });
- }
- };
- var onNodeContextMenu = function onNodeContextMenu2(event, node) {
- var onRightClick = props5.onRightClick;
- if (onRightClick) {
- event.preventDefault();
- onRightClick({
- event,
- node
- });
- }
- };
- var onFocus2 = function onFocus3(e3) {
- var onFocus4 = props5.onFocus;
- focused.value = true;
- if (onFocus4) {
- onFocus4(e3);
- }
- };
- var onBlur2 = function onBlur3(e3) {
- var onBlur4 = props5.onBlur;
- focused.value = false;
- onActiveChange(null);
- if (onBlur4) {
- onBlur4(e3);
- }
- };
- var onNodeExpand = function onNodeExpand2(e3, treeNode) {
- var newExpandedKeys = expandedKeys.value;
- var onExpand = props5.onExpand, loadData = props5.loadData;
- var expanded = treeNode.expanded;
- var key2 = treeNode[fieldNames.value.key];
- if (listChanging.value) {
- return;
- }
- var index3 = newExpandedKeys.indexOf(key2);
- var targetExpanded = !expanded;
- warning(expanded && index3 !== -1 || !expanded && index3 === -1, "Expand state not sync with index check");
- if (targetExpanded) {
- newExpandedKeys = arrAdd(newExpandedKeys, key2);
- } else {
- newExpandedKeys = arrDel(newExpandedKeys, key2);
- }
- setExpandedKeys(newExpandedKeys);
- if (onExpand) {
- onExpand(newExpandedKeys, {
- node: treeNode,
- expanded: targetExpanded,
- nativeEvent: e3
- });
- }
- if (targetExpanded && loadData) {
- var loadPromise = onNodeLoad(treeNode);
- if (loadPromise) {
- loadPromise.then(function() {
- }).catch(function(e4) {
- var expandedKeysToRestore = arrDel(expandedKeys.value, key2);
- setExpandedKeys(expandedKeysToRestore);
- Promise.reject(e4);
- });
- }
- }
- };
- var onListChangeStart = function onListChangeStart2() {
- listChanging.value = true;
- };
- var onListChangeEnd = function onListChangeEnd2() {
- setTimeout(function() {
- listChanging.value = false;
- });
- };
- var onActiveChange = function onActiveChange2(newActiveKey) {
- var onActiveChange3 = props5.onActiveChange;
- if (activeKey.value === newActiveKey) {
- return;
- }
- if (props5.activeKey !== void 0) {
- activeKey.value = newActiveKey;
- }
- if (newActiveKey !== null) {
- scrollTo3({
- key: newActiveKey
- });
- }
- if (onActiveChange3) {
- onActiveChange3(newActiveKey);
- }
- };
- var activeItem = computed(function() {
- if (activeKey.value === null) {
- return null;
- }
- return flattenNodes.value.find(function(_ref6) {
- var key2 = _ref6.key;
- return key2 === activeKey.value;
- }) || null;
- });
- var offsetActiveKey = function offsetActiveKey2(offset4) {
- var index3 = flattenNodes.value.findIndex(function(_ref7) {
- var key3 = _ref7.key;
- return key3 === activeKey.value;
- });
- if (index3 === -1 && offset4 < 0) {
- index3 = flattenNodes.value.length;
- }
- index3 = (index3 + offset4 + flattenNodes.value.length) % flattenNodes.value.length;
- var item = flattenNodes.value[index3];
- if (item) {
- var key2 = item.key;
- onActiveChange(key2);
- } else {
- onActiveChange(null);
- }
- };
- var activeItemEventNode = computed(function() {
- return convertNodePropsToEventData(_objectSpread2(_objectSpread2({}, getTreeNodeProps(activeKey.value, treeNodeRequiredProps.value)), {}, {
- data: activeItem.value.data,
- active: true
- }));
- });
- var onKeydown = function onKeydown2(event) {
- var onKeydown3 = props5.onKeydown, checkable = props5.checkable, selectable = props5.selectable;
- switch (event.which) {
- case KeyCode_default.UP: {
- offsetActiveKey(-1);
- event.preventDefault();
- break;
- }
- case KeyCode_default.DOWN: {
- offsetActiveKey(1);
- event.preventDefault();
- break;
- }
- }
- var item = activeItem.value;
- if (item && item.data) {
- var expandable = item.data.isLeaf === false || !!(item.data.children || []).length;
- var eventNode = activeItemEventNode.value;
- switch (event.which) {
- case KeyCode_default.LEFT: {
- if (expandable && expandedKeysSet.value.has(activeKey.value)) {
- onNodeExpand({}, eventNode);
- } else if (item.parent) {
- onActiveChange(item.parent.key);
- }
- event.preventDefault();
- break;
- }
- case KeyCode_default.RIGHT: {
- if (expandable && !expandedKeysSet.value.has(activeKey.value)) {
- onNodeExpand({}, eventNode);
- } else if (item.children && item.children.length) {
- onActiveChange(item.children[0].key);
- }
- event.preventDefault();
- break;
- }
- case KeyCode_default.ENTER:
- case KeyCode_default.SPACE: {
- if (checkable && !eventNode.disabled && eventNode.checkable !== false && !eventNode.disableCheckbox) {
- onNodeCheck({}, eventNode, !checkedKeysSet.value.has(activeKey.value));
- } else if (!checkable && selectable && !eventNode.disabled && eventNode.selectable !== false) {
- onNodeSelect({}, eventNode);
- }
- break;
- }
- }
- }
- if (onKeydown3) {
- onKeydown3(event);
- }
- };
- expose({
- onNodeExpand,
- scrollTo: scrollTo3,
- onKeydown,
- selectedKeys: computed(function() {
- return selectedKeys.value;
- }),
- checkedKeys: computed(function() {
- return checkedKeys.value;
- }),
- halfCheckedKeys: computed(function() {
- return halfCheckedKeys.value;
- }),
- loadedKeys: computed(function() {
- return loadedKeys.value;
- }),
- loadingKeys: computed(function() {
- return loadingKeys.value;
- }),
- expandedKeys: computed(function() {
- return expandedKeys.value;
- })
- });
- onUnmounted(function() {
- window.removeEventListener("dragend", onWindowDragEnd);
- destroyed.value = true;
- });
- useProvideKeysState({
- expandedKeys,
- selectedKeys,
- loadedKeys,
- loadingKeys,
- checkedKeys,
- halfCheckedKeys,
- expandedKeysSet,
- selectedKeysSet,
- loadedKeysSet,
- loadingKeysSet,
- checkedKeysSet,
- halfCheckedKeysSet,
- flattenNodes
- });
- return function() {
- var _classNames;
- var draggingNodeKey = dragState.draggingNodeKey, dropLevelOffset = dragState.dropLevelOffset, dropContainerKey = dragState.dropContainerKey, dropTargetKey = dragState.dropTargetKey, dropPosition = dragState.dropPosition, dragOverNodeKey = dragState.dragOverNodeKey;
- var prefixCls = props5.prefixCls, showLine = props5.showLine, focusable = props5.focusable, _props$tabindex = props5.tabindex, tabindex = _props$tabindex === void 0 ? 0 : _props$tabindex, selectable = props5.selectable, showIcon = props5.showIcon, _props$icon = props5.icon, icon = _props$icon === void 0 ? slots.icon : _props$icon, switcherIcon = props5.switcherIcon, draggable = props5.draggable, checkable = props5.checkable, checkStrictly = props5.checkStrictly, disabled = props5.disabled, motion = props5.motion, loadData = props5.loadData, filterTreeNode = props5.filterTreeNode, height = props5.height, itemHeight = props5.itemHeight, virtual = props5.virtual, dropIndicatorRender2 = props5.dropIndicatorRender, onContextmenu2 = props5.onContextmenu, onScroll = props5.onScroll, direction = props5.direction;
- var className = attrs.class, style = attrs.style;
- var domProps = pickAttrs(_objectSpread2(_objectSpread2({}, props5), attrs), {
- aria: true,
- data: true
- });
- var draggableConfig;
- if (draggable) {
- if (_typeof(draggable) === "object") {
- draggableConfig = draggable;
- } else if (typeof draggable === "function") {
- draggableConfig = {
- nodeDraggable: draggable
- };
- } else {
- draggableConfig = {};
- }
- }
- return createVNode(TreeContext, {
- "value": {
- prefixCls,
- selectable,
- showIcon,
- icon,
- switcherIcon,
- draggable: draggableConfig,
- draggingNodeKey,
- checkable,
- customCheckable: slots.checkable,
- checkStrictly,
- disabled,
- keyEntities: keyEntities.value,
- dropLevelOffset,
- dropContainerKey,
- dropTargetKey,
- dropPosition,
- dragOverNodeKey,
- dragging: draggingNodeKey !== null,
- indent: indent.value,
- direction,
- dropIndicatorRender: dropIndicatorRender2,
- loadData,
- filterTreeNode,
- onNodeClick,
- onNodeDoubleClick,
- onNodeExpand,
- onNodeSelect,
- onNodeCheck,
- onNodeLoad,
- onNodeMouseEnter,
- onNodeMouseLeave,
- onNodeContextMenu,
- onNodeDragStart,
- onNodeDragEnter,
- onNodeDragOver,
- onNodeDragLeave,
- onNodeDragEnd,
- onNodeDrop,
- slots
- }
- }, {
- default: function _default9() {
- return [createVNode("div", {
- "role": "tree",
- "class": classNames_default(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-show-line"), showLine), _defineProperty(_classNames, "".concat(prefixCls, "-focused"), focused.value), _defineProperty(_classNames, "".concat(prefixCls, "-active-focused"), activeKey.value !== null), _classNames))
- }, [createVNode(NodeList_default, _objectSpread2({
- "ref": listRef,
- "prefixCls": prefixCls,
- "style": style,
- "disabled": disabled,
- "selectable": selectable,
- "checkable": !!checkable,
- "motion": motion,
- "height": height,
- "itemHeight": itemHeight,
- "virtual": virtual,
- "focusable": focusable,
- "focused": focused.value,
- "tabindex": tabindex,
- "activeItem": activeItem.value,
- "onFocus": onFocus2,
- "onBlur": onBlur2,
- "onKeydown": onKeydown,
- "onActiveChange": onActiveChange,
- "onListChangeStart": onListChangeStart,
- "onListChangeEnd": onListChangeEnd,
- "onContextmenu": onContextmenu2,
- "onScroll": onScroll
- }, domProps), null)])];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tree/index.js
- var vc_tree_default = Tree_default;
- // node_modules/ant-design-vue/es/tree/utils/iconUtil.js
- function renderSwitcherIcon(prefixCls, switcherIcon, showLine, props5) {
- var isLeaf2 = props5.isLeaf, expanded = props5.expanded, loading = props5.loading;
- var icon = switcherIcon;
- if (loading) {
- return createVNode(LoadingOutlined_default, {
- "class": "".concat(prefixCls, "-switcher-loading-icon")
- }, null);
- }
- var showLeafIcon;
- if (showLine && _typeof(showLine) === "object") {
- showLeafIcon = showLine.showLeafIcon;
- }
- var defaultIcon = null;
- var switcherCls = "".concat(prefixCls, "-switcher-icon");
- if (isLeaf2) {
- if (showLine) {
- if (_typeof(showLine) === "object" && !showLeafIcon) {
- defaultIcon = createVNode("span", {
- "class": "".concat(prefixCls, "-switcher-leaf-line")
- }, null);
- } else {
- defaultIcon = createVNode(FileOutlined_default, {
- "class": "".concat(prefixCls, "-switcher-line-icon")
- }, null);
- }
- }
- return defaultIcon;
- } else {
- defaultIcon = createVNode(CaretDownFilled_default, {
- "class": switcherCls
- }, null);
- if (showLine) {
- defaultIcon = expanded ? createVNode(MinusSquareOutlined_default, {
- "class": "".concat(prefixCls, "-switcher-line-icon")
- }, null) : createVNode(PlusSquareOutlined_default, {
- "class": "".concat(prefixCls, "-switcher-line-icon")
- }, null);
- }
- }
- if (typeof switcherIcon === "function") {
- icon = switcherIcon(_objectSpread2(_objectSpread2({}, props5), {}, {
- defaultIcon,
- switcherCls
- }));
- } else if (isValidElement(icon)) {
- icon = cloneVNode(icon, {
- class: switcherCls
- });
- }
- return icon || defaultIcon;
- }
- // node_modules/ant-design-vue/es/tree/utils/dropIndicator.js
- var offset3 = 4;
- function dropIndicatorRender(props5) {
- var _style;
- var dropPosition = props5.dropPosition, dropLevelOffset = props5.dropLevelOffset, prefixCls = props5.prefixCls, indent = props5.indent, _props$direction = props5.direction, direction = _props$direction === void 0 ? "ltr" : _props$direction;
- var startPosition = direction === "ltr" ? "left" : "right";
- var endPosition = direction === "ltr" ? "right" : "left";
- var style = (_style = {}, _defineProperty(_style, startPosition, "".concat(-dropLevelOffset * indent + offset3, "px")), _defineProperty(_style, endPosition, 0), _style);
- switch (dropPosition) {
- case -1:
- style.top = "".concat(-3, "px");
- break;
- case 1:
- style.bottom = "".concat(-3, "px");
- break;
- default:
- style.bottom = "".concat(-3, "px");
- style[startPosition] = "".concat(indent + offset3, "px");
- break;
- }
- return createVNode("div", {
- "style": style,
- "class": "".concat(prefixCls, "-drop-indicator")
- }, null);
- }
- // node_modules/ant-design-vue/es/tree/Tree.js
- var treeProps3 = function treeProps4() {
- var baseTreeProps = treeProps();
- return _objectSpread2(_objectSpread2({}, baseTreeProps), {}, {
- showLine: {
- type: [Boolean, Object],
- default: void 0
- },
- /** 是否支持多选 */
- multiple: {
- type: Boolean,
- default: void 0
- },
- /** 是否自动展开父节点 */
- autoExpandParent: {
- type: Boolean,
- default: void 0
- },
- /** checkable状态下节点选择完全受控(父子节点选中状态不再关联)*/
- checkStrictly: {
- type: Boolean,
- default: void 0
- },
- /** 是否支持选中 */
- checkable: {
- type: Boolean,
- default: void 0
- },
- /** 是否禁用树 */
- disabled: {
- type: Boolean,
- default: void 0
- },
- /** 默认展开所有树节点 */
- defaultExpandAll: {
- type: Boolean,
- default: void 0
- },
- /** 默认展开对应树节点 */
- defaultExpandParent: {
- type: Boolean,
- default: void 0
- },
- /** 默认展开指定的树节点 */
- defaultExpandedKeys: {
- type: Array
- },
- /** (受控)展开指定的树节点 */
- expandedKeys: {
- type: Array
- },
- /** (受控)选中复选框的树节点 */
- checkedKeys: {
- type: [Array, Object]
- },
- /** 默认选中复选框的树节点 */
- defaultCheckedKeys: {
- type: Array
- },
- /** (受控)设置选中的树节点 */
- selectedKeys: {
- type: Array
- },
- /** 默认选中的树节点 */
- defaultSelectedKeys: {
- type: Array
- },
- selectable: {
- type: Boolean,
- default: void 0
- },
- loadedKeys: {
- type: Array
- },
- draggable: {
- type: Boolean,
- default: void 0
- },
- showIcon: {
- type: Boolean,
- default: void 0
- },
- icon: {
- type: Function
- },
- switcherIcon: vue_types_default.any,
- prefixCls: String,
- /**
- * @default{title,key,children}
- * deprecated, please use `fieldNames` instead
- * 替换treeNode中 title,key,children字段为treeData中对应的字段
- */
- replaceFields: {
- type: Object
- },
- blockNode: {
- type: Boolean,
- default: void 0
- },
- openAnimation: vue_types_default.any,
- onDoubleclick: baseTreeProps.onDblclick,
- "onUpdate:selectedKeys": Function,
- "onUpdate:checkedKeys": Function,
- "onUpdate:expandedKeys": Function
- });
- };
- var Tree_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATree",
- inheritAttrs: false,
- props: initDefaultProps_default(treeProps3(), {
- checkable: false,
- selectable: true,
- showIcon: false,
- blockNode: false
- }),
- slots: ["icon", "title", "switcherIcon", "titleRender"],
- // emits: [
- // 'update:selectedKeys',
- // 'update:checkedKeys',
- // 'update:expandedKeys',
- // 'expand',
- // 'select',
- // 'check',
- // 'doubleclick',
- // 'dblclick',
- // ],
- setup: function setup196(props5, _ref) {
- var attrs = _ref.attrs, expose = _ref.expose, emit = _ref.emit, slots = _ref.slots;
- warning(!(props5.treeData === void 0 && slots.default), "`children` of Tree is deprecated. Please use `treeData` instead.");
- var _useConfigInject = useConfigInject_default("tree", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction, virtual = _useConfigInject.virtual;
- var treeRef = ref();
- var scrollTo3 = function scrollTo4(scroll) {
- var _treeRef$value;
- (_treeRef$value = treeRef.value) === null || _treeRef$value === void 0 ? void 0 : _treeRef$value.scrollTo(scroll);
- };
- expose({
- treeRef,
- onNodeExpand: function onNodeExpand() {
- var _treeRef$value2;
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- (_treeRef$value2 = treeRef.value) === null || _treeRef$value2 === void 0 ? void 0 : _treeRef$value2.onNodeExpand.apply(_treeRef$value2, args);
- },
- scrollTo: scrollTo3,
- selectedKeys: computed(function() {
- var _treeRef$value3;
- return (_treeRef$value3 = treeRef.value) === null || _treeRef$value3 === void 0 ? void 0 : _treeRef$value3.selectedKeys;
- }),
- checkedKeys: computed(function() {
- var _treeRef$value4;
- return (_treeRef$value4 = treeRef.value) === null || _treeRef$value4 === void 0 ? void 0 : _treeRef$value4.checkedKeys;
- }),
- halfCheckedKeys: computed(function() {
- var _treeRef$value5;
- return (_treeRef$value5 = treeRef.value) === null || _treeRef$value5 === void 0 ? void 0 : _treeRef$value5.halfCheckedKeys;
- }),
- loadedKeys: computed(function() {
- var _treeRef$value6;
- return (_treeRef$value6 = treeRef.value) === null || _treeRef$value6 === void 0 ? void 0 : _treeRef$value6.loadedKeys;
- }),
- loadingKeys: computed(function() {
- var _treeRef$value7;
- return (_treeRef$value7 = treeRef.value) === null || _treeRef$value7 === void 0 ? void 0 : _treeRef$value7.loadingKeys;
- }),
- expandedKeys: computed(function() {
- var _treeRef$value8;
- return (_treeRef$value8 = treeRef.value) === null || _treeRef$value8 === void 0 ? void 0 : _treeRef$value8.expandedKeys;
- })
- });
- watchEffect(function() {
- devWarning_default(props5.replaceFields === void 0, "Tree", "`replaceFields` is deprecated, please use fieldNames instead");
- });
- var handleCheck = function handleCheck2(checkedObjOrKeys, eventObj) {
- emit("update:checkedKeys", checkedObjOrKeys);
- emit("check", checkedObjOrKeys, eventObj);
- };
- var handleExpand = function handleExpand2(expandedKeys, eventObj) {
- emit("update:expandedKeys", expandedKeys);
- emit("expand", expandedKeys, eventObj);
- };
- var handleSelect = function handleSelect2(selectedKeys, eventObj) {
- emit("update:selectedKeys", selectedKeys);
- emit("select", selectedKeys, eventObj);
- };
- return function() {
- var _classNames;
- var showIcon = props5.showIcon, showLine = props5.showLine, _props$switcherIcon = props5.switcherIcon, _switcherIcon = _props$switcherIcon === void 0 ? slots.switcherIcon : _props$switcherIcon, _props$icon = props5.icon, icon = _props$icon === void 0 ? slots.icon : _props$icon, blockNode = props5.blockNode, checkable = props5.checkable, selectable = props5.selectable, _props$fieldNames = props5.fieldNames, fieldNames = _props$fieldNames === void 0 ? props5.replaceFields : _props$fieldNames, _props$motion = props5.motion, motion = _props$motion === void 0 ? props5.openAnimation : _props$motion, _props$itemHeight = props5.itemHeight, itemHeight = _props$itemHeight === void 0 ? 28 : _props$itemHeight, onDoubleclick = props5.onDoubleclick, onDblclick = props5.onDblclick;
- var newProps = _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), omit_default(props5, ["onUpdate:checkedKeys", "onUpdate:expandedKeys", "onUpdate:selectedKeys", "onDoubleclick"])), {}, {
- showLine: Boolean(showLine),
- dropIndicatorRender,
- fieldNames,
- icon,
- itemHeight
- });
- var children = slots.default ? filterEmpty(slots.default()) : void 0;
- return createVNode(vc_tree_default, _objectSpread2(_objectSpread2({}, newProps), {}, {
- "virtual": virtual.value,
- "motion": motion,
- "ref": treeRef,
- "prefixCls": prefixCls.value,
- "class": classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-icon-hide"), !showIcon), _defineProperty(_classNames, "".concat(prefixCls.value, "-block-node"), blockNode), _defineProperty(_classNames, "".concat(prefixCls.value, "-unselectable"), !selectable), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _classNames), attrs.class),
- "direction": direction.value,
- "checkable": checkable,
- "selectable": selectable,
- "switcherIcon": function switcherIcon(nodeProps) {
- return renderSwitcherIcon(prefixCls.value, _switcherIcon, showLine, nodeProps);
- },
- "onCheck": handleCheck,
- "onExpand": handleExpand,
- "onSelect": handleSelect,
- "onDblclick": onDblclick || onDoubleclick,
- "children": children
- }), _objectSpread2(_objectSpread2({}, slots), {}, {
- checkable: function checkable2() {
- return createVNode("span", {
- "class": "".concat(prefixCls.value, "-checkbox-inner")
- }, null);
- }
- }));
- };
- }
- });
- // node_modules/ant-design-vue/es/tree/utils/dictUtil.js
- var Record;
- (function(Record2) {
- Record2[Record2["None"] = 0] = "None";
- Record2[Record2["Start"] = 1] = "Start";
- Record2[Record2["End"] = 2] = "End";
- })(Record || (Record = {}));
- function traverseNodesKey(treeData, fieldNames, callback) {
- function processNode(dataNode) {
- var key2 = dataNode[fieldNames.key];
- var children = dataNode[fieldNames.children];
- if (callback(key2, dataNode) !== false) {
- traverseNodesKey(children || [], fieldNames, callback);
- }
- }
- treeData.forEach(processNode);
- }
- function calcRangeKeys(_ref) {
- var treeData = _ref.treeData, expandedKeys = _ref.expandedKeys, startKey = _ref.startKey, endKey = _ref.endKey, _ref$fieldNames = _ref.fieldNames, fieldNames = _ref$fieldNames === void 0 ? {
- title: "title",
- key: "key",
- children: "children"
- } : _ref$fieldNames;
- var keys2 = [];
- var record = Record.None;
- if (startKey && startKey === endKey) {
- return [startKey];
- }
- if (!startKey || !endKey) {
- return [];
- }
- function matchKey(key2) {
- return key2 === startKey || key2 === endKey;
- }
- traverseNodesKey(treeData, fieldNames, function(key2) {
- if (record === Record.End) {
- return false;
- }
- if (matchKey(key2)) {
- keys2.push(key2);
- if (record === Record.None) {
- record = Record.Start;
- } else if (record === Record.Start) {
- record = Record.End;
- return false;
- }
- } else if (record === Record.Start) {
- keys2.push(key2);
- }
- if (expandedKeys.indexOf(key2) === -1) {
- return false;
- }
- return true;
- });
- return keys2;
- }
- function convertDirectoryKeysToNodes(treeData, keys2, fieldNames) {
- var restKeys = _toConsumableArray(keys2);
- var nodes = [];
- traverseNodesKey(treeData, fieldNames, function(key2, node) {
- var index3 = restKeys.indexOf(key2);
- if (index3 !== -1) {
- nodes.push(node);
- restKeys.splice(index3, 1);
- }
- return !!restKeys.length;
- });
- return nodes;
- }
- // node_modules/ant-design-vue/es/tree/DirectoryTree.js
- var _excluded61 = ["icon", "blockNode"];
- var directoryTreeProps = function directoryTreeProps2() {
- return _objectSpread2(_objectSpread2({}, treeProps3()), {}, {
- expandAction: {
- type: [Boolean, String]
- }
- });
- };
- function getIcon(props5) {
- var isLeaf2 = props5.isLeaf, expanded = props5.expanded;
- if (isLeaf2) {
- return createVNode(FileOutlined_default, null, null);
- }
- return expanded ? createVNode(FolderOpenOutlined_default, null, null) : createVNode(FolderOutlined_default, null, null);
- }
- var DirectoryTree_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ADirectoryTree",
- inheritAttrs: false,
- props: initDefaultProps_default(directoryTreeProps(), {
- showIcon: true,
- expandAction: "click"
- }),
- slots: ["icon", "title", "switcherIcon", "titleRender"],
- // emits: [
- // 'update:selectedKeys',
- // 'update:checkedKeys',
- // 'update:expandedKeys',
- // 'expand',
- // 'select',
- // 'check',
- // 'doubleclick',
- // 'dblclick',
- // 'click',
- // ],
- setup: function setup197(props5, _ref) {
- var _slots$default;
- var attrs = _ref.attrs, slots = _ref.slots, emit = _ref.emit, expose = _ref.expose;
- var treeData = ref(props5.treeData || convertTreeToData(filterEmpty((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots))));
- watch(function() {
- return props5.treeData;
- }, function() {
- treeData.value = props5.treeData;
- });
- onUpdated(function() {
- nextTick(function() {
- if (props5.treeData === void 0 && slots.default) {
- var _slots$default2;
- treeData.value = convertTreeToData(filterEmpty((_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)));
- }
- });
- });
- var lastSelectedKey = ref();
- var cachedSelectedKeys = ref();
- var fieldNames = computed(function() {
- return fillFieldNames3(props5.fieldNames);
- });
- var treeRef = ref();
- var scrollTo3 = function scrollTo4(scroll) {
- var _treeRef$value;
- (_treeRef$value = treeRef.value) === null || _treeRef$value === void 0 ? void 0 : _treeRef$value.scrollTo(scroll);
- };
- expose({
- scrollTo: scrollTo3,
- selectedKeys: computed(function() {
- var _treeRef$value2;
- return (_treeRef$value2 = treeRef.value) === null || _treeRef$value2 === void 0 ? void 0 : _treeRef$value2.selectedKeys;
- }),
- checkedKeys: computed(function() {
- var _treeRef$value3;
- return (_treeRef$value3 = treeRef.value) === null || _treeRef$value3 === void 0 ? void 0 : _treeRef$value3.checkedKeys;
- }),
- halfCheckedKeys: computed(function() {
- var _treeRef$value4;
- return (_treeRef$value4 = treeRef.value) === null || _treeRef$value4 === void 0 ? void 0 : _treeRef$value4.halfCheckedKeys;
- }),
- loadedKeys: computed(function() {
- var _treeRef$value5;
- return (_treeRef$value5 = treeRef.value) === null || _treeRef$value5 === void 0 ? void 0 : _treeRef$value5.loadedKeys;
- }),
- loadingKeys: computed(function() {
- var _treeRef$value6;
- return (_treeRef$value6 = treeRef.value) === null || _treeRef$value6 === void 0 ? void 0 : _treeRef$value6.loadingKeys;
- }),
- expandedKeys: computed(function() {
- var _treeRef$value7;
- return (_treeRef$value7 = treeRef.value) === null || _treeRef$value7 === void 0 ? void 0 : _treeRef$value7.expandedKeys;
- })
- });
- var getInitExpandedKeys = function getInitExpandedKeys2() {
- var _convertDataToEntitie = convertDataToEntities(treeData.value, {
- fieldNames: fieldNames.value
- }), keyEntities = _convertDataToEntitie.keyEntities;
- var initExpandedKeys;
- if (props5.defaultExpandAll) {
- initExpandedKeys = Object.keys(keyEntities);
- } else if (props5.defaultExpandParent) {
- initExpandedKeys = conductExpandParent(props5.expandedKeys || props5.defaultExpandedKeys || [], keyEntities);
- } else {
- initExpandedKeys = props5.expandedKeys || props5.defaultExpandedKeys;
- }
- return initExpandedKeys;
- };
- var selectedKeys = ref(props5.selectedKeys || props5.defaultSelectedKeys || []);
- var expandedKeys = ref(getInitExpandedKeys());
- watch(function() {
- return props5.selectedKeys;
- }, function() {
- if (props5.selectedKeys !== void 0) {
- selectedKeys.value = props5.selectedKeys;
- }
- }, {
- immediate: true
- });
- watch(function() {
- return props5.expandedKeys;
- }, function() {
- if (props5.expandedKeys !== void 0) {
- expandedKeys.value = props5.expandedKeys;
- }
- }, {
- immediate: true
- });
- var expandFolderNode = function expandFolderNode2(event, node) {
- var isLeaf2 = node.isLeaf;
- if (isLeaf2 || event.shiftKey || event.metaKey || event.ctrlKey) {
- return;
- }
- treeRef.value.onNodeExpand(event, node);
- };
- var onDebounceExpand = debounce_default(expandFolderNode, 200, {
- leading: true
- });
- var onExpand = function onExpand2(keys2, info) {
- if (props5.expandedKeys === void 0) {
- expandedKeys.value = keys2;
- }
- emit("update:expandedKeys", keys2);
- emit("expand", keys2, info);
- };
- var onClick2 = function onClick3(event, node) {
- var expandAction = props5.expandAction;
- if (expandAction === "click") {
- onDebounceExpand(event, node);
- }
- emit("click", event, node);
- };
- var onDoubleClick = function onDoubleClick2(event, node) {
- var expandAction = props5.expandAction;
- if (expandAction === "dblclick" || expandAction === "doubleclick") {
- onDebounceExpand(event, node);
- }
- emit("doubleclick", event, node);
- emit("dblclick", event, node);
- };
- var onSelect = function onSelect2(keys2, event) {
- var multiple = props5.multiple;
- var node = event.node, nativeEvent = event.nativeEvent;
- var key2 = node[fieldNames.value.key];
- var newEvent = _objectSpread2(_objectSpread2({}, event), {}, {
- selected: true
- // Directory selected always true
- });
- var ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey);
- var shiftPick = nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.shiftKey;
- var newSelectedKeys;
- if (multiple && ctrlPick) {
- newSelectedKeys = keys2;
- lastSelectedKey.value = key2;
- cachedSelectedKeys.value = newSelectedKeys;
- newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData.value, newSelectedKeys, fieldNames.value);
- } else if (multiple && shiftPick) {
- newSelectedKeys = Array.from(new Set([].concat(_toConsumableArray(cachedSelectedKeys.value || []), _toConsumableArray(calcRangeKeys({
- treeData: treeData.value,
- expandedKeys: expandedKeys.value,
- startKey: key2,
- endKey: lastSelectedKey.value,
- fieldNames: fieldNames.value
- })))));
- newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData.value, newSelectedKeys, fieldNames.value);
- } else {
- newSelectedKeys = [key2];
- lastSelectedKey.value = key2;
- cachedSelectedKeys.value = newSelectedKeys;
- newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData.value, newSelectedKeys, fieldNames.value);
- }
- emit("update:selectedKeys", newSelectedKeys);
- emit("select", newSelectedKeys, newEvent);
- if (props5.selectedKeys === void 0) {
- selectedKeys.value = newSelectedKeys;
- }
- };
- var onCheck = function onCheck2(checkedObjOrKeys, eventObj) {
- emit("update:checkedKeys", checkedObjOrKeys);
- emit("check", checkedObjOrKeys, eventObj);
- };
- var _useConfigInject = useConfigInject_default("tree", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- return function() {
- var connectClassName = classNames_default("".concat(prefixCls.value, "-directory"), _defineProperty({}, "".concat(prefixCls.value, "-directory-rtl"), direction.value === "rtl"), attrs.class);
- var _props$icon = props5.icon, icon = _props$icon === void 0 ? slots.icon : _props$icon, _props$blockNode = props5.blockNode, blockNode = _props$blockNode === void 0 ? true : _props$blockNode, otherProps = _objectWithoutProperties(props5, _excluded61);
- return createVNode(Tree_default2, _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), {}, {
- "icon": icon || getIcon,
- "ref": treeRef,
- "blockNode": blockNode
- }, otherProps), {}, {
- "prefixCls": prefixCls.value,
- "class": connectClassName,
- "expandedKeys": expandedKeys.value,
- "selectedKeys": selectedKeys.value,
- "onSelect": onSelect,
- "onClick": onClick2,
- "onDblclick": onDoubleClick,
- "onExpand": onExpand,
- "onCheck": onCheck
- }), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/tree/index.js
- var TreeNode = TreeNode_default;
- var tree_default = _extends(Tree_default2, {
- DirectoryTree: DirectoryTree_default,
- TreeNode,
- install: function install7(app) {
- app.component(Tree_default2.name, Tree_default2);
- app.component(TreeNode.name, TreeNode);
- app.component(DirectoryTree_default.name, DirectoryTree_default);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/table/hooks/useFilter/FilterDropdown.js
- var SubMenu = menu_default.SubMenu;
- var MenuItem = menu_default.Item;
- function hasSubMenu(filters) {
- return filters.some(function(_ref) {
- var children = _ref.children;
- return children && children.length > 0;
- });
- }
- function searchValueMatched(searchValue, text) {
- if (typeof text === "string" || typeof text === "number") {
- return text === null || text === void 0 ? void 0 : text.toString().toLowerCase().includes(searchValue.trim().toLowerCase());
- }
- return false;
- }
- function renderFilterItems(_ref2) {
- var filters = _ref2.filters, prefixCls = _ref2.prefixCls, filteredKeys = _ref2.filteredKeys, filterMultiple = _ref2.filterMultiple, searchValue = _ref2.searchValue, filterSearch = _ref2.filterSearch;
- return filters.map(function(filter, index3) {
- var key2 = String(filter.value);
- if (filter.children) {
- return createVNode(SubMenu, {
- "key": key2 || index3,
- "title": filter.text,
- "popupClassName": "".concat(prefixCls, "-dropdown-submenu")
- }, {
- default: function _default9() {
- return [renderFilterItems({
- filters: filter.children,
- prefixCls,
- filteredKeys,
- filterMultiple,
- searchValue,
- filterSearch
- })];
- }
- });
- }
- var Component = filterMultiple ? checkbox_default : radio_default;
- var item = createVNode(MenuItem, {
- "key": filter.value !== void 0 ? key2 : index3
- }, {
- default: function _default9() {
- return [createVNode(Component, {
- "checked": filteredKeys.includes(key2)
- }, null), createVNode("span", null, [filter.text])];
- }
- });
- if (searchValue.trim()) {
- if (typeof filterSearch === "function") {
- return filterSearch(searchValue, filter) ? item : void 0;
- }
- return searchValueMatched(searchValue, filter.text) ? item : void 0;
- }
- return item;
- });
- }
- var FilterDropdown_default = defineComponent({
- name: "FilterDropdown",
- props: ["tablePrefixCls", "prefixCls", "dropdownPrefixCls", "column", "filterState", "filterMultiple", "filterMode", "filterSearch", "columnKey", "triggerFilter", "locale", "getPopupContainer"],
- setup: function setup198(props5, _ref3) {
- var slots = _ref3.slots;
- var contextSlots = useInjectSlots();
- var filterMode = computed(function() {
- var _props$filterMode;
- return (_props$filterMode = props5.filterMode) !== null && _props$filterMode !== void 0 ? _props$filterMode : "menu";
- });
- var filterSearch = computed(function() {
- var _props$filterSearch;
- return (_props$filterSearch = props5.filterSearch) !== null && _props$filterSearch !== void 0 ? _props$filterSearch : false;
- });
- var filterDropdownVisible = computed(function() {
- return props5.column.filterDropdownVisible;
- });
- var visible = ref(false);
- var filtered = computed(function() {
- var _props$filterState$fi;
- return !!(props5.filterState && ((_props$filterState$fi = props5.filterState.filteredKeys) !== null && _props$filterState$fi !== void 0 && _props$filterState$fi.length || props5.filterState.forceFiltered));
- });
- var filterFlattenKeys = computed(function() {
- var _props$column;
- return flattenKeys((_props$column = props5.column) === null || _props$column === void 0 ? void 0 : _props$column.filters);
- });
- var filterDropdownRef = computed(function() {
- var _props$column2 = props5.column, filterDropdown = _props$column2.filterDropdown, _props$column2$slots = _props$column2.slots, slots2 = _props$column2$slots === void 0 ? {} : _props$column2$slots, customFilterDropdown = _props$column2.customFilterDropdown;
- return filterDropdown || slots2.filterDropdown && contextSlots.value[slots2.filterDropdown] || customFilterDropdown && contextSlots.value.customFilterDropdown;
- });
- var filterIconRef = computed(function() {
- var _props$column3 = props5.column, filterIcon = _props$column3.filterIcon, _props$column3$slots = _props$column3.slots, slots2 = _props$column3$slots === void 0 ? {} : _props$column3$slots;
- return filterIcon || slots2.filterIcon && contextSlots.value[slots2.filterIcon] || contextSlots.value.customFilterIcon;
- });
- var triggerVisible = function triggerVisible2(newVisible) {
- var _props$column$onFilte, _props$column4;
- visible.value = newVisible;
- (_props$column$onFilte = (_props$column4 = props5.column).onFilterDropdownVisibleChange) === null || _props$column$onFilte === void 0 ? void 0 : _props$column$onFilte.call(_props$column4, newVisible);
- };
- var mergedVisible = computed(function() {
- return typeof filterDropdownVisible.value === "boolean" ? filterDropdownVisible.value : visible.value;
- });
- var propFilteredKeys = computed(function() {
- var _props$filterState;
- return (_props$filterState = props5.filterState) === null || _props$filterState === void 0 ? void 0 : _props$filterState.filteredKeys;
- });
- var filteredKeys = shallowRef([]);
- var onSelectKeys = function onSelectKeys2(_ref4) {
- var selectedKeys = _ref4.selectedKeys;
- filteredKeys.value = selectedKeys;
- };
- var onCheck = function onCheck2(keys2, _ref5) {
- var node = _ref5.node, checked = _ref5.checked;
- if (!props5.filterMultiple) {
- onSelectKeys({
- selectedKeys: checked && node.key ? [node.key] : []
- });
- } else {
- onSelectKeys({
- selectedKeys: keys2
- });
- }
- };
- watch(propFilteredKeys, function() {
- if (!visible.value) {
- return;
- }
- onSelectKeys({
- selectedKeys: propFilteredKeys.value || []
- });
- }, {
- immediate: true
- });
- var openKeys = shallowRef([]);
- var openRef = ref();
- var onOpenChange = function onOpenChange2(keys2) {
- openRef.value = setTimeout(function() {
- openKeys.value = keys2;
- });
- };
- var onMenuClick = function onMenuClick2() {
- clearTimeout(openRef.value);
- };
- onBeforeUnmount(function() {
- clearTimeout(openRef.value);
- });
- var searchValue = ref("");
- var onSearch = function onSearch2(e3) {
- var value = e3.target.value;
- searchValue.value = value;
- };
- watch(visible, function() {
- if (!visible.value) {
- searchValue.value = "";
- }
- });
- var internalTriggerFilter = function internalTriggerFilter2(keys2) {
- var column = props5.column, columnKey = props5.columnKey, filterState = props5.filterState;
- var mergedKeys = keys2 && keys2.length ? keys2 : null;
- if (mergedKeys === null && (!filterState || !filterState.filteredKeys)) {
- return null;
- }
- if (isEqual_default(mergedKeys, filterState === null || filterState === void 0 ? void 0 : filterState.filteredKeys)) {
- return null;
- }
- props5.triggerFilter({
- column,
- key: columnKey,
- filteredKeys: mergedKeys
- });
- };
- var onConfirm = function onConfirm2() {
- triggerVisible(false);
- internalTriggerFilter(filteredKeys.value);
- };
- var onReset = function onReset2() {
- var _ref6 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
- confirm: false,
- closeDropdown: false
- }, confirm3 = _ref6.confirm, closeDropdown = _ref6.closeDropdown;
- if (confirm3) {
- internalTriggerFilter([]);
- }
- if (closeDropdown) {
- triggerVisible(false);
- }
- searchValue.value = "";
- filteredKeys.value = [];
- };
- var doFilter = function doFilter2() {
- var _ref7 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
- closeDropdown: true
- }, closeDropdown = _ref7.closeDropdown;
- if (closeDropdown) {
- triggerVisible(false);
- }
- internalTriggerFilter(filteredKeys.value);
- };
- var onVisibleChange = function onVisibleChange2(newVisible) {
- if (newVisible && propFilteredKeys.value !== void 0) {
- filteredKeys.value = propFilteredKeys.value || [];
- }
- triggerVisible(newVisible);
- if (!newVisible && !filterDropdownRef.value) {
- onConfirm();
- }
- };
- var _useConfigInject = useConfigInject_default("", props5), direction = _useConfigInject.direction;
- var onCheckAll = function onCheckAll2(e3) {
- if (e3.target.checked) {
- var allFilterKeys = filterFlattenKeys.value;
- filteredKeys.value = allFilterKeys;
- } else {
- filteredKeys.value = [];
- }
- };
- var getTreeData = function getTreeData2(_ref8) {
- var filters = _ref8.filters;
- return (filters || []).map(function(filter, index3) {
- var key2 = String(filter.value);
- var item = {
- title: filter.text,
- key: filter.value !== void 0 ? key2 : index3
- };
- if (filter.children) {
- item.children = getTreeData2({
- filters: filter.children
- });
- }
- return item;
- });
- };
- var treeData = computed(function() {
- return getTreeData({
- filters: props5.column.filters
- });
- });
- var dropdownMenuClass = computed(function() {
- return classNames_default(_defineProperty({}, "".concat(props5.dropdownPrefixCls, "-menu-without-submenu"), !hasSubMenu(props5.column.filters || [])));
- });
- var getFilterComponent = function getFilterComponent2() {
- var selectedKeys = filteredKeys.value;
- var column = props5.column, locale4 = props5.locale, tablePrefixCls = props5.tablePrefixCls, filterMultiple = props5.filterMultiple, dropdownPrefixCls = props5.dropdownPrefixCls, getPopupContainer = props5.getPopupContainer, prefixCls = props5.prefixCls;
- if ((column.filters || []).length === 0) {
- return createVNode(empty_default2, {
- "image": empty_default2.PRESENTED_IMAGE_SIMPLE,
- "description": locale4.filterEmptyText,
- "imageStyle": {
- height: 24
- },
- "style": {
- margin: 0,
- padding: "16px 0"
- }
- }, null);
- }
- if (filterMode.value === "tree") {
- return createVNode(Fragment, null, [createVNode(FilterSearch_default, {
- "filterSearch": filterSearch.value,
- "value": searchValue.value,
- "onChange": onSearch,
- "tablePrefixCls": tablePrefixCls,
- "locale": locale4
- }, null), createVNode("div", {
- "class": "".concat(tablePrefixCls, "-filter-dropdown-tree")
- }, [filterMultiple ? createVNode(checkbox_default, {
- "class": "".concat(tablePrefixCls, "-filter-dropdown-checkall"),
- "onChange": onCheckAll,
- "checked": selectedKeys.length === filterFlattenKeys.value.length,
- "indeterminate": selectedKeys.length > 0 && selectedKeys.length < filterFlattenKeys.value.length
- }, {
- default: function _default9() {
- return [locale4.filterCheckall];
- }
- }) : null, createVNode(tree_default, {
- "checkable": true,
- "selectable": false,
- "blockNode": true,
- "multiple": filterMultiple,
- "checkStrictly": !filterMultiple,
- "class": "".concat(dropdownPrefixCls, "-menu"),
- "onCheck": onCheck,
- "checkedKeys": selectedKeys,
- "selectedKeys": selectedKeys,
- "showIcon": false,
- "treeData": treeData.value,
- "autoExpandParent": true,
- "defaultExpandAll": true,
- "filterTreeNode": searchValue.value.trim() ? function(node) {
- return searchValueMatched(searchValue.value, node.title);
- } : void 0
- }, null)])]);
- }
- return createVNode(Fragment, null, [createVNode(FilterSearch_default, {
- "filterSearch": filterSearch.value,
- "value": searchValue.value,
- "onChange": onSearch,
- "tablePrefixCls": tablePrefixCls,
- "locale": locale4
- }, null), createVNode(menu_default, {
- "multiple": filterMultiple,
- "prefixCls": "".concat(dropdownPrefixCls, "-menu"),
- "class": dropdownMenuClass.value,
- "onClick": onMenuClick,
- "onSelect": onSelectKeys,
- "onDeselect": onSelectKeys,
- "selectedKeys": selectedKeys,
- "getPopupContainer": getPopupContainer,
- "openKeys": openKeys.value,
- "onOpenChange": onOpenChange
- }, {
- default: function _default9() {
- return renderFilterItems({
- filters: column.filters || [],
- filterSearch: filterSearch.value,
- prefixCls,
- filteredKeys: filteredKeys.value,
- filterMultiple,
- searchValue: searchValue.value
- });
- }
- })]);
- };
- return function() {
- var _slots$default;
- var tablePrefixCls = props5.tablePrefixCls, prefixCls = props5.prefixCls, column = props5.column, dropdownPrefixCls = props5.dropdownPrefixCls, locale4 = props5.locale, getPopupContainer = props5.getPopupContainer;
- var dropdownContent;
- if (typeof filterDropdownRef.value === "function") {
- dropdownContent = filterDropdownRef.value({
- prefixCls: "".concat(dropdownPrefixCls, "-custom"),
- setSelectedKeys: function setSelectedKeys(selectedKeys2) {
- return onSelectKeys({
- selectedKeys: selectedKeys2
- });
- },
- selectedKeys: filteredKeys.value,
- confirm: doFilter,
- clearFilters: onReset,
- filters: column.filters,
- visible: mergedVisible.value,
- column: column.__originColumn__
- });
- } else if (filterDropdownRef.value) {
- dropdownContent = filterDropdownRef.value;
- } else {
- var selectedKeys = filteredKeys.value;
- dropdownContent = createVNode(Fragment, null, [getFilterComponent(), createVNode("div", {
- "class": "".concat(prefixCls, "-dropdown-btns")
- }, [createVNode(button_default2, {
- "type": "link",
- "size": "small",
- "disabled": selectedKeys.length === 0,
- "onClick": function onClick2() {
- return onReset();
- }
- }, {
- default: function _default9() {
- return [locale4.filterReset];
- }
- }), createVNode(button_default2, {
- "type": "primary",
- "size": "small",
- "onClick": onConfirm
- }, {
- default: function _default9() {
- return [locale4.filterConfirm];
- }
- })])]);
- }
- var menu = createVNode(FilterWrapper_default, {
- "class": "".concat(prefixCls, "-dropdown")
- }, {
- default: function _default9() {
- return [dropdownContent];
- }
- });
- var filterIcon;
- if (typeof filterIconRef.value === "function") {
- filterIcon = filterIconRef.value({
- filtered: filtered.value,
- column: column.__originColumn__
- });
- } else if (filterIconRef.value) {
- filterIcon = filterIconRef.value;
- } else {
- filterIcon = createVNode(FilterFilled_default, null, null);
- }
- return createVNode("div", {
- "class": "".concat(prefixCls, "-column")
- }, [createVNode("span", {
- "class": "".concat(tablePrefixCls, "-column-title")
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]), createVNode(dropdown_default2, {
- "overlay": menu,
- "trigger": ["click"],
- "visible": mergedVisible.value,
- "onVisibleChange": onVisibleChange,
- "getPopupContainer": getPopupContainer,
- "placement": direction.value === "rtl" ? "bottomLeft" : "bottomRight"
- }, {
- default: function _default9() {
- return [createVNode("span", {
- "role": "button",
- "tabindex": -1,
- "class": classNames_default("".concat(prefixCls, "-trigger"), {
- active: filtered.value
- }),
- "onClick": function onClick2(e3) {
- e3.stopPropagation();
- }
- }, [filterIcon])];
- }
- })]);
- };
- }
- });
- // node_modules/ant-design-vue/es/table/hooks/useFilter/index.js
- function collectFilterStates(columns, init, pos) {
- var filterStates = [];
- (columns || []).forEach(function(column, index3) {
- var _column$slots;
- var columnPos = getColumnPos(index3, pos);
- var hasFilterDropdown = column.filterDropdown || (column === null || column === void 0 ? void 0 : (_column$slots = column.slots) === null || _column$slots === void 0 ? void 0 : _column$slots.filterDropdown) || column.customFilterDropdown;
- if (column.filters || hasFilterDropdown || "onFilter" in column) {
- if ("filteredValue" in column) {
- var filteredValues = column.filteredValue;
- if (!hasFilterDropdown) {
- var _filteredValues$map, _filteredValues;
- filteredValues = (_filteredValues$map = (_filteredValues = filteredValues) === null || _filteredValues === void 0 ? void 0 : _filteredValues.map(String)) !== null && _filteredValues$map !== void 0 ? _filteredValues$map : filteredValues;
- }
- filterStates.push({
- column,
- key: getColumnKey(column, columnPos),
- filteredKeys: filteredValues,
- forceFiltered: column.filtered
- });
- } else {
- filterStates.push({
- column,
- key: getColumnKey(column, columnPos),
- filteredKeys: init && column.defaultFilteredValue ? column.defaultFilteredValue : void 0,
- forceFiltered: column.filtered
- });
- }
- }
- if ("children" in column) {
- filterStates = [].concat(_toConsumableArray(filterStates), _toConsumableArray(collectFilterStates(column.children, init, columnPos)));
- }
- });
- return filterStates;
- }
- function injectFilter(prefixCls, dropdownPrefixCls, columns, filterStates, triggerFilter, getPopupContainer, locale4, pos) {
- return columns.map(function(column, index3) {
- var _column$slots2;
- var columnPos = getColumnPos(index3, pos);
- var _column$filterMultipl = column.filterMultiple, filterMultiple = _column$filterMultipl === void 0 ? true : _column$filterMultipl, filterMode = column.filterMode, filterSearch = column.filterSearch;
- var newColumn = column;
- var hasFilterDropdown = column.filterDropdown || (column === null || column === void 0 ? void 0 : (_column$slots2 = column.slots) === null || _column$slots2 === void 0 ? void 0 : _column$slots2.filterDropdown) || column.customFilterDropdown;
- if (newColumn.filters || hasFilterDropdown) {
- var columnKey = getColumnKey(newColumn, columnPos);
- var filterState = filterStates.find(function(_ref) {
- var key2 = _ref.key;
- return columnKey === key2;
- });
- newColumn = _objectSpread2(_objectSpread2({}, newColumn), {}, {
- title: function title(renderProps) {
- return createVNode(FilterDropdown_default, {
- "tablePrefixCls": prefixCls,
- "prefixCls": "".concat(prefixCls, "-filter"),
- "dropdownPrefixCls": dropdownPrefixCls,
- "column": newColumn,
- "columnKey": columnKey,
- "filterState": filterState,
- "filterMultiple": filterMultiple,
- "filterMode": filterMode,
- "filterSearch": filterSearch,
- "triggerFilter": triggerFilter,
- "locale": locale4,
- "getPopupContainer": getPopupContainer
- }, {
- default: function _default9() {
- return [renderColumnTitle(column.title, renderProps)];
- }
- });
- }
- });
- }
- if ("children" in newColumn) {
- newColumn = _objectSpread2(_objectSpread2({}, newColumn), {}, {
- children: injectFilter(prefixCls, dropdownPrefixCls, newColumn.children, filterStates, triggerFilter, getPopupContainer, locale4, columnPos)
- });
- }
- return newColumn;
- });
- }
- function flattenKeys(filters) {
- var keys2 = [];
- (filters || []).forEach(function(_ref2) {
- var value = _ref2.value, children = _ref2.children;
- keys2.push(value);
- if (children) {
- keys2 = [].concat(_toConsumableArray(keys2), _toConsumableArray(flattenKeys(children)));
- }
- });
- return keys2;
- }
- function generateFilterInfo(filterStates) {
- var currentFilters = {};
- filterStates.forEach(function(_ref3) {
- var _column$slots3;
- var key2 = _ref3.key, filteredKeys = _ref3.filteredKeys, column = _ref3.column;
- var hasFilterDropdown = column.filterDropdown || (column === null || column === void 0 ? void 0 : (_column$slots3 = column.slots) === null || _column$slots3 === void 0 ? void 0 : _column$slots3.filterDropdown) || column.customFilterDropdown;
- var filters = column.filters;
- if (hasFilterDropdown) {
- currentFilters[key2] = filteredKeys || null;
- } else if (Array.isArray(filteredKeys)) {
- var keys2 = flattenKeys(filters);
- currentFilters[key2] = keys2.filter(function(originKey) {
- return filteredKeys.includes(String(originKey));
- });
- } else {
- currentFilters[key2] = null;
- }
- });
- return currentFilters;
- }
- function getFilterData(data8, filterStates) {
- return filterStates.reduce(function(currentData, filterState) {
- var _filterState$column = filterState.column, onFilter = _filterState$column.onFilter, filters = _filterState$column.filters, filteredKeys = filterState.filteredKeys;
- if (onFilter && filteredKeys && filteredKeys.length) {
- return currentData.filter(function(record) {
- return filteredKeys.some(function(key2) {
- var keys2 = flattenKeys(filters);
- var keyIndex = keys2.findIndex(function(k2) {
- return String(k2) === String(key2);
- });
- var realKey = keyIndex !== -1 ? keys2[keyIndex] : key2;
- return onFilter(realKey, record);
- });
- });
- }
- return currentData;
- }, data8);
- }
- function useFilter(_ref4) {
- var prefixCls = _ref4.prefixCls, dropdownPrefixCls = _ref4.dropdownPrefixCls, mergedColumns = _ref4.mergedColumns, locale4 = _ref4.locale, onFilterChange = _ref4.onFilterChange, getPopupContainer = _ref4.getPopupContainer;
- var _useState = useState(collectFilterStates(mergedColumns.value, true)), _useState2 = _slicedToArray(_useState, 2), filterStates = _useState2[0], setFilterStates = _useState2[1];
- var mergedFilterStates = computed(function() {
- var collectedStates = collectFilterStates(mergedColumns.value, false);
- var filteredKeysIsNotControlled = collectedStates.every(function(_ref5) {
- var filteredKeys = _ref5.filteredKeys;
- return filteredKeys === void 0;
- });
- if (filteredKeysIsNotControlled) {
- return filterStates.value;
- }
- var filteredKeysIsAllControlled = collectedStates.every(function(_ref6) {
- var filteredKeys = _ref6.filteredKeys;
- return filteredKeys !== void 0;
- });
- devWarning_default(filteredKeysIsNotControlled || filteredKeysIsAllControlled, "Table", "`FilteredKeys` should all be controlled or not controlled.");
- return collectedStates;
- });
- var filters = computed(function() {
- return generateFilterInfo(mergedFilterStates.value);
- });
- var triggerFilter = function triggerFilter2(filterState) {
- var newFilterStates = mergedFilterStates.value.filter(function(_ref7) {
- var key2 = _ref7.key;
- return key2 !== filterState.key;
- });
- newFilterStates.push(filterState);
- setFilterStates(newFilterStates);
- onFilterChange(generateFilterInfo(newFilterStates), newFilterStates);
- };
- var transformColumns = function transformColumns2(innerColumns) {
- return injectFilter(prefixCls.value, dropdownPrefixCls.value, innerColumns, mergedFilterStates.value, triggerFilter, getPopupContainer.value, locale4.value);
- };
- return [transformColumns, mergedFilterStates, filters];
- }
- var useFilter_default = useFilter;
- // node_modules/ant-design-vue/es/table/hooks/useTitleColumns.js
- function fillTitle(columns, columnTitleProps) {
- return columns.map(function(column) {
- var cloneColumn = _objectSpread2({}, column);
- cloneColumn.title = renderColumnTitle(cloneColumn.title, columnTitleProps);
- if ("children" in cloneColumn) {
- cloneColumn.children = fillTitle(cloneColumn.children, columnTitleProps);
- }
- return cloneColumn;
- });
- }
- function useTitleColumns(columnTitleProps) {
- var filledColumns = function filledColumns2(columns) {
- return fillTitle(columns, columnTitleProps.value);
- };
- return [filledColumns];
- }
- // node_modules/ant-design-vue/es/table/ExpandIcon.js
- function renderExpandIcon2(locale4) {
- return function expandIcon(_ref) {
- var _classNames;
- var prefixCls = _ref.prefixCls, onExpand = _ref.onExpand, record = _ref.record, expanded = _ref.expanded, expandable = _ref.expandable;
- var iconPrefix = "".concat(prefixCls, "-row-expand-icon");
- return createVNode("button", {
- "type": "button",
- "onClick": function onClick2(e3) {
- onExpand(record, e3);
- e3.stopPropagation();
- },
- "class": classNames_default(iconPrefix, (_classNames = {}, _defineProperty(_classNames, "".concat(iconPrefix, "-spaced"), !expandable), _defineProperty(_classNames, "".concat(iconPrefix, "-expanded"), expandable && expanded), _defineProperty(_classNames, "".concat(iconPrefix, "-collapsed"), expandable && !expanded), _classNames)),
- "aria-label": expanded ? locale4.collapse : locale4.expand
- }, null);
- };
- }
- var ExpandIcon_default = renderExpandIcon2;
- // node_modules/ant-design-vue/es/table/hooks/useColumns.js
- function fillSlots(columns, contextSlots) {
- var $slots = contextSlots.value;
- return columns.map(function(column) {
- var _column$slots;
- if (column === SELECTION_COLUMN || column === EXPAND_COLUMN)
- return column;
- var cloneColumn = _objectSpread2({}, column);
- var _cloneColumn$slots = cloneColumn.slots, slots = _cloneColumn$slots === void 0 ? {} : _cloneColumn$slots;
- cloneColumn.__originColumn__ = column;
- devWarning_default(!("slots" in cloneColumn), "Table", "`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead.");
- Object.keys(slots).forEach(function(key2) {
- var name = slots[key2];
- if (cloneColumn[key2] === void 0 && $slots[name]) {
- cloneColumn[key2] = $slots[name];
- }
- });
- if (contextSlots.value.headerCell && !((_column$slots = column.slots) !== null && _column$slots !== void 0 && _column$slots.title)) {
- cloneColumn.title = renderSlot(contextSlots.value, "headerCell", {
- title: column.title,
- column
- }, function() {
- return [column.title];
- });
- }
- if ("children" in cloneColumn) {
- cloneColumn.children = fillSlots(cloneColumn.children, contextSlots);
- }
- return cloneColumn;
- });
- }
- function useColumns2(contextSlots) {
- var filledColumns = function filledColumns2(columns) {
- return fillSlots(columns, contextSlots);
- };
- return [filledColumns];
- }
- // node_modules/ant-design-vue/es/table/Table.js
- var EMPTY_LIST3 = [];
- var tableProps = function tableProps2() {
- return {
- prefixCls: {
- type: String,
- default: void 0
- },
- columns: {
- type: Array,
- default: void 0
- },
- rowKey: {
- type: [String, Function],
- default: void 0
- },
- tableLayout: {
- type: String,
- default: void 0
- },
- rowClassName: {
- type: [String, Function],
- default: void 0
- },
- title: {
- type: Function,
- default: void 0
- },
- footer: {
- type: Function,
- default: void 0
- },
- id: {
- type: String,
- default: void 0
- },
- showHeader: {
- type: Boolean,
- default: void 0
- },
- components: {
- type: Object,
- default: void 0
- },
- customRow: {
- type: Function,
- default: void 0
- },
- customHeaderRow: {
- type: Function,
- default: void 0
- },
- direction: {
- type: String,
- default: void 0
- },
- expandFixed: {
- type: [Boolean, String],
- default: void 0
- },
- expandColumnWidth: {
- type: Number,
- default: void 0
- },
- expandedRowKeys: {
- type: Array,
- default: void 0
- },
- defaultExpandedRowKeys: {
- type: Array,
- default: void 0
- },
- expandedRowRender: {
- type: Function,
- default: void 0
- },
- expandRowByClick: {
- type: Boolean,
- default: void 0
- },
- expandIcon: {
- type: Function,
- default: void 0
- },
- onExpand: {
- type: Function,
- default: void 0
- },
- onExpandedRowsChange: {
- type: Function,
- default: void 0
- },
- "onUpdate:expandedRowKeys": {
- type: Function,
- default: void 0
- },
- defaultExpandAllRows: {
- type: Boolean,
- default: void 0
- },
- indentSize: {
- type: Number,
- default: void 0
- },
- /** @deprecated Please use `EXPAND_COLUMN` in `columns` directly */
- expandIconColumnIndex: {
- type: Number,
- default: void 0
- },
- showExpandColumn: {
- type: Boolean,
- default: void 0
- },
- expandedRowClassName: {
- type: Function,
- default: void 0
- },
- childrenColumnName: {
- type: String,
- default: void 0
- },
- rowExpandable: {
- type: Function,
- default: void 0
- },
- sticky: {
- type: [Boolean, Object],
- default: void 0
- },
- dropdownPrefixCls: String,
- dataSource: {
- type: Array,
- default: void 0
- },
- pagination: {
- type: [Boolean, Object],
- default: void 0
- },
- loading: {
- type: [Boolean, Object],
- default: void 0
- },
- size: {
- type: String,
- default: void 0
- },
- bordered: Boolean,
- locale: {
- type: Object,
- default: void 0
- },
- onChange: {
- type: Function,
- default: void 0
- },
- onResizeColumn: {
- type: Function,
- default: void 0
- },
- rowSelection: {
- type: Object,
- default: void 0
- },
- getPopupContainer: {
- type: Function,
- default: void 0
- },
- scroll: {
- type: Object,
- default: void 0
- },
- sortDirections: {
- type: Array,
- default: void 0
- },
- showSorterTooltip: {
- type: [Boolean, Object],
- default: true
- },
- contextSlots: {
- type: Object
- },
- transformCellText: {
- type: Function
- }
- };
- };
- var InteralTable = defineComponent({
- name: "InteralTable",
- inheritAttrs: false,
- props: initDefaultProps_default(tableProps(), {
- rowKey: "key"
- }),
- // emits: ['expandedRowsChange', 'change', 'expand'],
- slots: ["emptyText", "expandIcon", "title", "footer", "summary", "expandedRowRender", "bodyCell", "headerCell", "customFilterIcon", "customFilterDropdown"],
- setup: function setup199(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, expose = _ref.expose, emit = _ref.emit;
- devWarning_default(!(typeof props5.rowKey === "function" && props5.rowKey.length > 1), "Table", "`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");
- useProvideSlots(computed(function() {
- return props5.contextSlots;
- }));
- useProvideTableContext({
- onResizeColumn: function onResizeColumn(w2, col) {
- emit("resizeColumn", w2, col);
- }
- });
- var screens2 = useBreakpoint_default();
- var mergedColumns = computed(function() {
- var matched = new Set(Object.keys(screens2.value).filter(function(m2) {
- return screens2.value[m2];
- }));
- return props5.columns.filter(function(c2) {
- return !c2.responsive || c2.responsive.some(function(r3) {
- return matched.has(r3);
- });
- });
- });
- var _useConfigInject = useConfigInject_default("table", props5), mergedSize = _useConfigInject.size, renderEmpty2 = _useConfigInject.renderEmpty, direction = _useConfigInject.direction, prefixCls = _useConfigInject.prefixCls, configProvider = _useConfigInject.configProvider;
- var transformCellText = computed(function() {
- return props5.transformCellText || configProvider.transformCellText;
- });
- var _useLocaleReceiver = useLocaleReceiver("Table", en_US_default6.Table, toRef(props5, "locale")), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), tableLocale = _useLocaleReceiver2[0];
- var rawData = computed(function() {
- return props5.dataSource || EMPTY_LIST3;
- });
- var dropdownPrefixCls = computed(function() {
- return configProvider.getPrefixCls("dropdown", props5.dropdownPrefixCls);
- });
- var childrenColumnName = computed(function() {
- return props5.childrenColumnName || "children";
- });
- var expandType = computed(function() {
- if (rawData.value.some(function(item) {
- return item === null || item === void 0 ? void 0 : item[childrenColumnName.value];
- })) {
- return "nest";
- }
- if (props5.expandedRowRender) {
- return "row";
- }
- return null;
- });
- var internalRefs = reactive({
- body: null
- });
- var updateInternalRefs = function updateInternalRefs2(refs) {
- _extends(internalRefs, refs);
- };
- var getRowKey = computed(function() {
- if (typeof props5.rowKey === "function") {
- return props5.rowKey;
- }
- return function(record) {
- return record === null || record === void 0 ? void 0 : record[props5.rowKey];
- };
- });
- var _useLazyKVMap = useLazyKVMap(rawData, childrenColumnName, getRowKey), _useLazyKVMap2 = _slicedToArray(_useLazyKVMap, 1), getRecordByKey = _useLazyKVMap2[0];
- var changeEventInfo = {};
- var triggerOnChange = function triggerOnChange2(info, action) {
- var reset = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
- var pagination = props5.pagination, scroll = props5.scroll, onChange3 = props5.onChange;
- var changeInfo = _objectSpread2(_objectSpread2({}, changeEventInfo), info);
- if (reset) {
- changeEventInfo.resetPagination();
- if (changeInfo.pagination.current) {
- changeInfo.pagination.current = 1;
- }
- if (pagination && pagination.onChange) {
- pagination.onChange(1, changeInfo.pagination.pageSize);
- }
- }
- if (scroll && scroll.scrollToFirstRowOnChange !== false && internalRefs.body) {
- scrollTo(0, {
- getContainer: function getContainer5() {
- return internalRefs.body;
- }
- });
- }
- onChange3 === null || onChange3 === void 0 ? void 0 : onChange3(changeInfo.pagination, changeInfo.filters, changeInfo.sorter, {
- currentDataSource: getFilterData(getSortData(rawData.value, changeInfo.sorterStates, childrenColumnName.value), changeInfo.filterStates),
- action
- });
- };
- var onSorterChange = function onSorterChange2(sorter, sorterStates) {
- triggerOnChange({
- sorter,
- sorterStates
- }, "sort", false);
- };
- var _useSorter = useFilterSorter({
- prefixCls,
- mergedColumns,
- onSorterChange,
- sortDirections: computed(function() {
- return props5.sortDirections || ["ascend", "descend"];
- }),
- tableLocale,
- showSorterTooltip: toRef(props5, "showSorterTooltip")
- }), _useSorter2 = _slicedToArray(_useSorter, 4), transformSorterColumns = _useSorter2[0], sortStates = _useSorter2[1], sorterTitleProps = _useSorter2[2], sorters = _useSorter2[3];
- var sortedData = computed(function() {
- return getSortData(rawData.value, sortStates.value, childrenColumnName.value);
- });
- var onFilterChange = function onFilterChange2(filters2, filterStates2) {
- triggerOnChange({
- filters: filters2,
- filterStates: filterStates2
- }, "filter", true);
- };
- var _useFilter = useFilter_default({
- prefixCls,
- locale: tableLocale,
- dropdownPrefixCls,
- mergedColumns,
- onFilterChange,
- getPopupContainer: toRef(props5, "getPopupContainer")
- }), _useFilter2 = _slicedToArray(_useFilter, 3), transformFilterColumns = _useFilter2[0], filterStates = _useFilter2[1], filters = _useFilter2[2];
- var mergedData = computed(function() {
- return getFilterData(sortedData.value, filterStates.value);
- });
- var _useColumns = useColumns2(toRef(props5, "contextSlots")), _useColumns2 = _slicedToArray(_useColumns, 1), transformBasicColumns = _useColumns2[0];
- var columnTitleProps = computed(function() {
- return _objectSpread2({}, sorterTitleProps.value);
- });
- var _useTitleColumns = useTitleColumns(columnTitleProps), _useTitleColumns2 = _slicedToArray(_useTitleColumns, 1), transformTitleColumns = _useTitleColumns2[0];
- var onPaginationChange = function onPaginationChange2(current2, pageSize2) {
- triggerOnChange({
- pagination: _objectSpread2(_objectSpread2({}, changeEventInfo.pagination), {}, {
- current: current2,
- pageSize: pageSize2
- })
- }, "paginate");
- };
- var _usePagination = usePagination(computed(function() {
- return mergedData.value.length;
- }), toRef(props5, "pagination"), onPaginationChange), _usePagination2 = _slicedToArray(_usePagination, 2), mergedPagination = _usePagination2[0], resetPagination = _usePagination2[1];
- watchEffect(function() {
- changeEventInfo.sorter = sorters.value;
- changeEventInfo.sorterStates = sortStates.value;
- changeEventInfo.filters = filters.value;
- changeEventInfo.filterStates = filterStates.value;
- changeEventInfo.pagination = props5.pagination === false ? {} : getPaginationParam(props5.pagination, mergedPagination.value);
- changeEventInfo.resetPagination = resetPagination;
- });
- var pageData = computed(function() {
- if (props5.pagination === false || !mergedPagination.value.pageSize) {
- return mergedData.value;
- }
- var _mergedPagination$val = mergedPagination.value, _mergedPagination$val2 = _mergedPagination$val.current, current2 = _mergedPagination$val2 === void 0 ? 1 : _mergedPagination$val2, total2 = _mergedPagination$val.total, _mergedPagination$val3 = _mergedPagination$val.pageSize, pageSize2 = _mergedPagination$val3 === void 0 ? DEFAULT_PAGE_SIZE : _mergedPagination$val3;
- devWarning_default(current2 > 0, "Table", "`current` should be positive number.");
- if (mergedData.value.length < total2) {
- if (mergedData.value.length > pageSize2) {
- return mergedData.value.slice((current2 - 1) * pageSize2, current2 * pageSize2);
- }
- return mergedData.value;
- }
- return mergedData.value.slice((current2 - 1) * pageSize2, current2 * pageSize2);
- });
- watchEffect(function() {
- nextTick(function() {
- var _mergedPagination$val4 = mergedPagination.value, total2 = _mergedPagination$val4.total, _mergedPagination$val5 = _mergedPagination$val4.pageSize, pageSize2 = _mergedPagination$val5 === void 0 ? DEFAULT_PAGE_SIZE : _mergedPagination$val5;
- if (mergedData.value.length < total2) {
- if (mergedData.value.length > pageSize2) {
- devWarning_default(false, "Table", "`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.");
- }
- }
- });
- }, {
- flush: "post"
- });
- var expandIconColumnIndex = computed(function() {
- if (props5.showExpandColumn === false)
- return -1;
- if (expandType.value === "nest" && props5.expandIconColumnIndex === void 0) {
- return props5.rowSelection ? 1 : 0;
- } else if (props5.expandIconColumnIndex > 0 && props5.rowSelection) {
- return props5.expandIconColumnIndex - 1;
- }
- return props5.expandIconColumnIndex;
- });
- var rowSelection = ref();
- watch(function() {
- return props5.rowSelection;
- }, function() {
- rowSelection.value = props5.rowSelection ? _objectSpread2({}, props5.rowSelection) : props5.rowSelection;
- }, {
- deep: true,
- immediate: true
- });
- var _useSelection = useSelection(rowSelection, {
- prefixCls,
- data: mergedData,
- pageData,
- getRowKey,
- getRecordByKey,
- expandType,
- childrenColumnName,
- locale: tableLocale,
- getPopupContainer: computed(function() {
- return props5.getPopupContainer;
- })
- }), _useSelection2 = _slicedToArray(_useSelection, 2), transformSelectionColumns = _useSelection2[0], selectedKeySet = _useSelection2[1];
- var internalRowClassName = function internalRowClassName2(record, index3, indent) {
- var mergedRowClassName;
- var rowClassName = props5.rowClassName;
- if (typeof rowClassName === "function") {
- mergedRowClassName = classNames_default(rowClassName(record, index3, indent));
- } else {
- mergedRowClassName = classNames_default(rowClassName);
- }
- return classNames_default(_defineProperty({}, "".concat(prefixCls.value, "-row-selected"), selectedKeySet.value.has(getRowKey.value(record, index3))), mergedRowClassName);
- };
- expose({
- selectedKeySet
- });
- var indentSize = computed(function() {
- return typeof props5.indentSize === "number" ? props5.indentSize : 15;
- });
- var transformColumns = function transformColumns2(innerColumns) {
- var res = transformTitleColumns(transformSelectionColumns(transformFilterColumns(transformSorterColumns(transformBasicColumns(innerColumns)))));
- return res;
- };
- return function() {
- var _mergedPagination$val6, _classNames3;
- var _props$expandIcon = props5.expandIcon, expandIcon = _props$expandIcon === void 0 ? slots.expandIcon || ExpandIcon_default(tableLocale.value) : _props$expandIcon, pagination = props5.pagination, loading = props5.loading, bordered = props5.bordered;
- var topPaginationNode;
- var bottomPaginationNode;
- if (pagination !== false && (_mergedPagination$val6 = mergedPagination.value) !== null && _mergedPagination$val6 !== void 0 && _mergedPagination$val6.total) {
- var paginationSize;
- if (mergedPagination.value.size) {
- paginationSize = mergedPagination.value.size;
- } else {
- paginationSize = mergedSize.value === "small" || mergedSize.value === "middle" ? "small" : void 0;
- }
- var renderPagination = function renderPagination2(position2) {
- return createVNode(pagination_default, _objectSpread2(_objectSpread2({}, mergedPagination.value), {}, {
- "class": ["".concat(prefixCls.value, "-pagination ").concat(prefixCls.value, "-pagination-").concat(position2), mergedPagination.value.class],
- "size": paginationSize
- }), null);
- };
- var defaultPosition = direction.value === "rtl" ? "left" : "right";
- var position = mergedPagination.value.position;
- if (position !== null && Array.isArray(position)) {
- var topPos = position.find(function(p) {
- return p.indexOf("top") !== -1;
- });
- var bottomPos = position.find(function(p) {
- return p.indexOf("bottom") !== -1;
- });
- var isDisable = position.every(function(p) {
- return "".concat(p) === "none";
- });
- if (!topPos && !bottomPos && !isDisable) {
- bottomPaginationNode = renderPagination(defaultPosition);
- }
- if (topPos) {
- topPaginationNode = renderPagination(topPos.toLowerCase().replace("top", ""));
- }
- if (bottomPos) {
- bottomPaginationNode = renderPagination(bottomPos.toLowerCase().replace("bottom", ""));
- }
- } else {
- bottomPaginationNode = renderPagination(defaultPosition);
- }
- }
- var spinProps3;
- if (typeof loading === "boolean") {
- spinProps3 = {
- spinning: loading
- };
- } else if (_typeof(loading) === "object") {
- spinProps3 = _objectSpread2({
- spinning: true
- }, loading);
- }
- var wrapperClassNames = classNames_default("".concat(prefixCls.value, "-wrapper"), _defineProperty({}, "".concat(prefixCls.value, "-wrapper-rtl"), direction.value === "rtl"), attrs.class);
- var tableProps3 = omit_default(props5, ["columns"]);
- return createVNode("div", {
- "class": wrapperClassNames,
- "style": attrs.style
- }, [createVNode(spin_default, _objectSpread2({
- "spinning": false
- }, spinProps3), {
- default: function _default9() {
- return [topPaginationNode, createVNode(vc_table_default, _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), tableProps3), {}, {
- "expandedRowKeys": props5.expandedRowKeys,
- "defaultExpandedRowKeys": props5.defaultExpandedRowKeys,
- "expandIconColumnIndex": expandIconColumnIndex.value,
- "indentSize": indentSize.value,
- "expandIcon": expandIcon,
- "columns": mergedColumns.value,
- "direction": direction.value,
- "prefixCls": prefixCls.value,
- "class": classNames_default((_classNames3 = {}, _defineProperty(_classNames3, "".concat(prefixCls.value, "-middle"), mergedSize.value === "middle"), _defineProperty(_classNames3, "".concat(prefixCls.value, "-small"), mergedSize.value === "small"), _defineProperty(_classNames3, "".concat(prefixCls.value, "-bordered"), bordered), _defineProperty(_classNames3, "".concat(prefixCls.value, "-empty"), rawData.value.length === 0), _classNames3)),
- "data": pageData.value,
- "rowKey": getRowKey.value,
- "rowClassName": internalRowClassName,
- "internalHooks": INTERNAL_HOOKS,
- "internalRefs": internalRefs,
- "onUpdateInternalRefs": updateInternalRefs,
- "transformColumns": transformColumns,
- "transformCellText": transformCellText.value
- }), _objectSpread2(_objectSpread2({}, slots), {}, {
- emptyText: function emptyText() {
- var _slots$emptyText, _props$locale;
- return ((_slots$emptyText = slots.emptyText) === null || _slots$emptyText === void 0 ? void 0 : _slots$emptyText.call(slots)) || ((_props$locale = props5.locale) === null || _props$locale === void 0 ? void 0 : _props$locale.emptyText) || renderEmpty2.value("Table");
- }
- })), bottomPaginationNode];
- }
- })]);
- };
- }
- });
- var Table = defineComponent({
- name: "ATable",
- inheritAttrs: false,
- setup: function setup200(_props, _ref2) {
- var attrs = _ref2.attrs, slots = _ref2.slots, expose = _ref2.expose;
- var table = ref();
- expose({
- table
- });
- return function() {
- var _slots$default;
- var props5 = attrs;
- var columns = props5.columns || convertChildrenToColumns((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- return createVNode(InteralTable, _objectSpread2(_objectSpread2({
- "ref": table
- }, attrs), {}, {
- "columns": columns || [],
- "expandedRowRender": slots.expandedRowRender,
- "contextSlots": _objectSpread2({}, slots)
- }), slots);
- };
- }
- });
- var Table_default2 = Table;
- // node_modules/ant-design-vue/es/table/Column.js
- var Column_default2 = defineComponent({
- name: "ATableColumn",
- slots: ["title", "filterIcon"],
- render: function render10() {
- return null;
- }
- });
- // node_modules/ant-design-vue/es/table/ColumnGroup.js
- var ColumnGroup_default2 = defineComponent({
- name: "ATableColumnGroup",
- slots: ["title"],
- __ANT_TABLE_COLUMN_GROUP: true,
- render: function render11() {
- return null;
- }
- });
- // node_modules/ant-design-vue/es/table/index.js
- var TableSummaryRow = Row_default3;
- var TableSummaryCell = Cell_default3;
- var TableSummary = _extends(FooterComponents, {
- Cell: TableSummaryCell,
- Row: TableSummaryRow,
- name: "ATableSummary"
- });
- var table_default = _extends(Table_default2, {
- SELECTION_ALL,
- SELECTION_INVERT,
- SELECTION_NONE,
- SELECTION_COLUMN,
- EXPAND_COLUMN,
- Column: Column_default2,
- ColumnGroup: ColumnGroup_default2,
- Summary: TableSummary,
- install: function install8(app) {
- app.component(TableSummary.name, TableSummary);
- app.component(TableSummaryCell.name, TableSummaryCell);
- app.component(TableSummaryRow.name, TableSummaryRow);
- app.component(Table_default2.name, Table_default2);
- app.component(Column_default2.name, Column_default2);
- app.component(ColumnGroup_default2.name, ColumnGroup_default2);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/transfer/search.js
- var transferSearchProps = {
- prefixCls: String,
- placeholder: String,
- value: String,
- handleClear: Function,
- disabled: {
- type: Boolean,
- default: void 0
- },
- onChange: Function
- };
- var search_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Search",
- inheritAttrs: false,
- props: initDefaultProps_default(transferSearchProps, {
- placeholder: ""
- }),
- emits: ["change"],
- setup: function setup201(props5, _ref) {
- var emit = _ref.emit;
- var handleChange2 = function handleChange3(e3) {
- emit("change", e3);
- if (e3.target.value === "") {
- var _props$handleClear;
- (_props$handleClear = props5.handleClear) === null || _props$handleClear === void 0 ? void 0 : _props$handleClear.call(props5);
- }
- };
- return function() {
- var placeholder = props5.placeholder, value = props5.value, prefixCls = props5.prefixCls, disabled = props5.disabled;
- return createVNode(input_default, {
- "placeholder": placeholder,
- "class": prefixCls,
- "value": value,
- "onChange": handleChange2,
- "disabled": disabled,
- "allowClear": true
- }, {
- prefix: function prefix() {
- return createVNode(SearchOutlined_default, null, null);
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/transfer/ListItem.js
- function noop13() {
- }
- var transferListItemProps = {
- renderedText: vue_types_default.any,
- renderedEl: vue_types_default.any,
- item: vue_types_default.any,
- checked: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- disabled: {
- type: Boolean,
- default: void 0
- },
- showRemove: {
- type: Boolean,
- default: void 0
- },
- onClick: Function,
- onRemove: Function
- };
- var ListItem_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ListItem",
- inheritAttrs: false,
- props: transferListItemProps,
- emits: ["click", "remove"],
- setup: function setup202(props5, _ref) {
- var emit = _ref.emit;
- return function() {
- var _classNames;
- var renderedText = props5.renderedText, renderedEl = props5.renderedEl, item = props5.item, checked = props5.checked, disabled = props5.disabled, prefixCls = props5.prefixCls, showRemove = props5.showRemove;
- var className = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-content-item"), true), _defineProperty(_classNames, "".concat(prefixCls, "-content-item-disabled"), disabled || item.disabled), _classNames));
- var title;
- if (typeof renderedText === "string" || typeof renderedText === "number") {
- title = String(renderedText);
- }
- return createVNode(LocaleReceiver_default, {
- "componentName": "Transfer",
- "defaultLocale": default_default.Transfer
- }, {
- default: function _default9(transferLocale) {
- var labelNode = createVNode("span", {
- "class": "".concat(prefixCls, "-content-item-text")
- }, [renderedEl]);
- if (showRemove) {
- return createVNode("li", {
- "class": className,
- "title": title
- }, [labelNode, createVNode(transButton_default, {
- "disabled": disabled || item.disabled,
- "class": "".concat(prefixCls, "-content-item-remove"),
- "aria-label": transferLocale.remove,
- "onClick": function onClick2() {
- emit("remove", item);
- }
- }, {
- default: function _default10() {
- return [createVNode(DeleteOutlined_default, null, null)];
- }
- })]);
- }
- return createVNode("li", {
- "class": className,
- "title": title,
- "onClick": disabled || item.disabled ? noop13 : function() {
- emit("click", item);
- }
- }, [createVNode(checkbox_default, {
- "class": "".concat(prefixCls, "-checkbox"),
- "checked": checked,
- "disabled": disabled || item.disabled
- }, null), labelNode]);
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/transfer/ListBody.js
- var transferListBodyProps = {
- prefixCls: String,
- filteredRenderItems: vue_types_default.array.def([]),
- selectedKeys: vue_types_default.array,
- disabled: {
- type: Boolean,
- default: void 0
- },
- showRemove: {
- type: Boolean,
- default: void 0
- },
- pagination: vue_types_default.any,
- onItemSelect: Function,
- onScroll: Function,
- onItemRemove: Function
- };
- function parsePagination(pagination) {
- if (!pagination) {
- return null;
- }
- var defaultPagination = {
- pageSize: 10
- };
- if (_typeof(pagination) === "object") {
- return _objectSpread2(_objectSpread2({}, defaultPagination), pagination);
- }
- return defaultPagination;
- }
- var ListBody = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ListBody",
- inheritAttrs: false,
- props: transferListBodyProps,
- emits: ["itemSelect", "itemRemove", "scroll"],
- setup: function setup203(props5, _ref) {
- var emit = _ref.emit, expose = _ref.expose;
- var current2 = ref(1);
- var handleItemSelect = function handleItemSelect2(item) {
- var selectedKeys = props5.selectedKeys;
- var checked = selectedKeys.indexOf(item.key) >= 0;
- emit("itemSelect", item.key, !checked);
- };
- var handleItemRemove = function handleItemRemove2(item) {
- emit("itemRemove", [item.key]);
- };
- var handleScroll = function handleScroll2(e3) {
- emit("scroll", e3);
- };
- var mergedPagination = computed(function() {
- return parsePagination(props5.pagination);
- });
- watch([mergedPagination, function() {
- return props5.filteredRenderItems;
- }], function() {
- if (mergedPagination.value) {
- var maxPageCount = Math.ceil(props5.filteredRenderItems.length / mergedPagination.value.pageSize);
- if (current2.value > maxPageCount) {
- current2.value = maxPageCount;
- }
- }
- }, {
- immediate: true
- });
- var items = computed(function() {
- var filteredRenderItems = props5.filteredRenderItems;
- var displayItems = filteredRenderItems;
- if (mergedPagination.value) {
- displayItems = filteredRenderItems.slice((current2.value - 1) * mergedPagination.value.pageSize, current2.value * mergedPagination.value.pageSize);
- }
- return displayItems;
- });
- var onPageChange = function onPageChange2(cur) {
- current2.value = cur;
- };
- expose({
- items
- });
- return function() {
- var prefixCls = props5.prefixCls, filteredRenderItems = props5.filteredRenderItems, selectedKeys = props5.selectedKeys, globalDisabled = props5.disabled, showRemove = props5.showRemove;
- var paginationNode = null;
- if (mergedPagination.value) {
- paginationNode = createVNode(pagination_default, {
- "simple": true,
- "size": "small",
- "disabled": globalDisabled,
- "class": "".concat(prefixCls, "-pagination"),
- "total": filteredRenderItems.length,
- "pageSize": mergedPagination.value.pageSize,
- "current": current2.value,
- "onChange": onPageChange
- }, null);
- }
- var itemsList = items.value.map(function(_ref2) {
- var renderedEl = _ref2.renderedEl, renderedText = _ref2.renderedText, item = _ref2.item;
- var disabled = item.disabled;
- var checked = selectedKeys.indexOf(item.key) >= 0;
- return createVNode(ListItem_default, {
- "disabled": globalDisabled || disabled,
- "key": item.key,
- "item": item,
- "renderedText": renderedText,
- "renderedEl": renderedEl,
- "checked": checked,
- "prefixCls": prefixCls,
- "onClick": handleItemSelect,
- "onRemove": handleItemRemove,
- "showRemove": showRemove
- }, null);
- });
- return createVNode(Fragment, null, [createVNode("ul", {
- "class": classNames_default("".concat(prefixCls, "-content"), _defineProperty({}, "".concat(prefixCls, "-content-show-remove"), showRemove)),
- "onScroll": handleScroll
- }, [itemsList]), paginationNode]);
- };
- }
- });
- var ListBody_default = ListBody;
- // node_modules/ant-design-vue/es/transfer/list.js
- var defaultRender3 = function defaultRender4() {
- return null;
- };
- function isRenderResultPlainObject(result) {
- return result && !isValidElement(result) && Object.prototype.toString.call(result) === "[object Object]";
- }
- function getEnabledItemKeys(items) {
- return items.filter(function(data8) {
- return !data8.disabled;
- }).map(function(data8) {
- return data8.key;
- });
- }
- var transferListProps = {
- prefixCls: String,
- dataSource: {
- type: Array,
- default: []
- },
- filter: String,
- filterOption: Function,
- checkedKeys: vue_types_default.arrayOf(vue_types_default.string),
- handleFilter: Function,
- handleClear: Function,
- renderItem: Function,
- showSearch: {
- type: Boolean,
- default: false
- },
- searchPlaceholder: String,
- notFoundContent: vue_types_default.any,
- itemUnit: String,
- itemsUnit: String,
- renderList: vue_types_default.any,
- disabled: {
- type: Boolean,
- default: void 0
- },
- direction: String,
- showSelectAll: {
- type: Boolean,
- default: void 0
- },
- remove: String,
- selectAll: String,
- selectCurrent: String,
- selectInvert: String,
- removeAll: String,
- removeCurrent: String,
- selectAllLabel: vue_types_default.any,
- showRemove: {
- type: Boolean,
- default: void 0
- },
- pagination: vue_types_default.any,
- onItemSelect: Function,
- onItemSelectAll: Function,
- onItemRemove: Function,
- onScroll: Function
- };
- var list_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "TransferList",
- inheritAttrs: false,
- props: transferListProps,
- // emits: ['scroll', 'itemSelectAll', 'itemRemove', 'itemSelect'],
- slots: ["footer", "titleText"],
- setup: function setup204(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots;
- var filterValue = ref("");
- var transferNode = ref();
- var defaultListBodyRef = ref();
- var renderListBody = function renderListBody2(renderList, props6) {
- var bodyContent = renderList ? renderList(props6) : null;
- var customize = !!bodyContent && filterEmpty(bodyContent).length > 0;
- if (!customize) {
- bodyContent = createVNode(ListBody_default, _objectSpread2(_objectSpread2({}, props6), {}, {
- "ref": defaultListBodyRef
- }), null);
- }
- return {
- customize,
- bodyContent
- };
- };
- var renderItemHtml = function renderItemHtml2(item) {
- var _props$renderItem = props5.renderItem, renderItem = _props$renderItem === void 0 ? defaultRender3 : _props$renderItem;
- var renderResult = renderItem(item);
- var isRenderResultPlain = isRenderResultPlainObject(renderResult);
- return {
- renderedText: isRenderResultPlain ? renderResult.value : renderResult,
- renderedEl: isRenderResultPlain ? renderResult.label : renderResult,
- item
- };
- };
- var filteredItems = ref([]);
- var filteredRenderItems = ref([]);
- watchEffect(function() {
- var fItems = [];
- var fRenderItems = [];
- props5.dataSource.forEach(function(item) {
- var renderedItem = renderItemHtml(item);
- var renderedText = renderedItem.renderedText;
- if (filterValue.value && filterValue.value.trim() && !matchFilter(renderedText, item)) {
- return null;
- }
- fItems.push(item);
- fRenderItems.push(renderedItem);
- });
- filteredItems.value = fItems;
- filteredRenderItems.value = fRenderItems;
- });
- var checkStatus = computed(function() {
- var checkedKeys = props5.checkedKeys;
- if (checkedKeys.length === 0) {
- return "none";
- }
- if (filteredItems.value.every(function(item) {
- return checkedKeys.indexOf(item.key) >= 0 || !!item.disabled;
- })) {
- return "all";
- }
- return "part";
- });
- var enabledItemKeys = computed(function() {
- return getEnabledItemKeys(filteredItems.value);
- });
- var getNewSelectKeys = function getNewSelectKeys2(keys2, unCheckedKeys) {
- return Array.from(new Set([].concat(_toConsumableArray(keys2), _toConsumableArray(props5.checkedKeys)))).filter(function(key2) {
- return unCheckedKeys.indexOf(key2) === -1;
- });
- };
- var getCheckBox = function getCheckBox2(_ref2) {
- var disabled = _ref2.disabled, prefixCls = _ref2.prefixCls;
- var checkedAll = checkStatus.value === "all";
- var checkAllCheckbox = createVNode(checkbox_default, {
- "disabled": disabled,
- "checked": checkedAll,
- "indeterminate": checkStatus.value === "part",
- "class": "".concat(prefixCls, "-checkbox"),
- "onChange": function onChange3() {
- var keys2 = enabledItemKeys.value;
- props5.onItemSelectAll(getNewSelectKeys(!checkedAll ? keys2 : [], checkedAll ? props5.checkedKeys : []));
- }
- }, null);
- return checkAllCheckbox;
- };
- var handleFilter = function handleFilter2(e3) {
- var _props$handleFilter;
- var filter = e3.target.value;
- filterValue.value = filter;
- (_props$handleFilter = props5.handleFilter) === null || _props$handleFilter === void 0 ? void 0 : _props$handleFilter.call(props5, e3);
- };
- var handleClear = function handleClear2(e3) {
- var _props$handleClear;
- filterValue.value = "";
- (_props$handleClear = props5.handleClear) === null || _props$handleClear === void 0 ? void 0 : _props$handleClear.call(props5, e3);
- };
- var matchFilter = function matchFilter2(text, item) {
- var filterOption3 = props5.filterOption;
- if (filterOption3) {
- return filterOption3(filterValue.value, item);
- }
- return text.indexOf(filterValue.value) >= 0;
- };
- var getSelectAllLabel = function getSelectAllLabel2(selectedCount, totalCount) {
- var itemsUnit = props5.itemsUnit, itemUnit = props5.itemUnit, selectAllLabel = props5.selectAllLabel;
- if (selectAllLabel) {
- return typeof selectAllLabel === "function" ? selectAllLabel({
- selectedCount,
- totalCount
- }) : selectAllLabel;
- }
- var unit = totalCount > 1 ? itemsUnit : itemUnit;
- return createVNode(Fragment, null, [(selectedCount > 0 ? "".concat(selectedCount, "/") : "") + totalCount, createTextVNode(" "), unit]);
- };
- var getListBody = function getListBody2(prefixCls, searchPlaceholder, checkedKeys, renderList, showSearch, disabled) {
- var search = showSearch ? createVNode("div", {
- "class": "".concat(prefixCls, "-body-search-wrapper")
- }, [createVNode(search_default, {
- "prefixCls": "".concat(prefixCls, "-search"),
- "onChange": handleFilter,
- "handleClear": handleClear,
- "placeholder": searchPlaceholder,
- "value": filterValue.value,
- "disabled": disabled
- }, null)]) : null;
- var bodyNode;
- var _splitAttrs = splitAttrs(attrs), onEvents = _splitAttrs.onEvents;
- var _renderListBody = renderListBody(renderList, _objectSpread2(_objectSpread2({}, props5), {}, {
- filteredItems: filteredItems.value,
- filteredRenderItems: filteredRenderItems.value,
- selectedKeys: checkedKeys
- }, onEvents)), bodyContent = _renderListBody.bodyContent, customize = _renderListBody.customize;
- if (customize) {
- bodyNode = createVNode("div", {
- "class": "".concat(prefixCls, "-body-customize-wrapper")
- }, [bodyContent]);
- } else {
- bodyNode = filteredItems.value.length ? bodyContent : createVNode("div", {
- "class": "".concat(prefixCls, "-body-not-found")
- }, [props5.notFoundContent]);
- }
- return createVNode("div", {
- "class": showSearch ? "".concat(prefixCls, "-body ").concat(prefixCls, "-body-with-search") : "".concat(prefixCls, "-body"),
- "ref": transferNode
- }, [search, bodyNode]);
- };
- return function() {
- var _slots$footer, _classNames, _slots$titleText;
- var prefixCls = props5.prefixCls, checkedKeys = props5.checkedKeys, disabled = props5.disabled, showSearch = props5.showSearch, searchPlaceholder = props5.searchPlaceholder, selectAll = props5.selectAll, selectCurrent = props5.selectCurrent, selectInvert = props5.selectInvert, removeAll = props5.removeAll, removeCurrent = props5.removeCurrent, renderList = props5.renderList, onItemSelectAll = props5.onItemSelectAll, onItemRemove = props5.onItemRemove, _props$showSelectAll = props5.showSelectAll, showSelectAll = _props$showSelectAll === void 0 ? true : _props$showSelectAll, showRemove = props5.showRemove, pagination = props5.pagination;
- var footerDom = (_slots$footer = slots.footer) === null || _slots$footer === void 0 ? void 0 : _slots$footer.call(slots, _objectSpread2({}, props5));
- var listCls = classNames_default(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-with-pagination"), !!pagination), _defineProperty(_classNames, "".concat(prefixCls, "-with-footer"), !!footerDom), _classNames));
- var listBody = getListBody(prefixCls, searchPlaceholder, checkedKeys, renderList, showSearch, disabled);
- var listFooter = footerDom ? createVNode("div", {
- "class": "".concat(prefixCls, "-footer")
- }, [footerDom]) : null;
- var checkAllCheckbox = !showRemove && !pagination && getCheckBox({
- disabled,
- prefixCls
- });
- var menu = null;
- if (showRemove) {
- menu = createVNode(menu_default, null, {
- default: function _default9() {
- return [pagination && createVNode(menu_default.Item, {
- "key": "removeCurrent",
- "onClick": function onClick2() {
- var pageKeys = getEnabledItemKeys((defaultListBodyRef.value.items || []).map(function(entity) {
- return entity.item;
- }));
- onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(pageKeys);
- }
- }, {
- default: function _default10() {
- return [removeCurrent];
- }
- }), createVNode(menu_default.Item, {
- "key": "removeAll",
- "onClick": function onClick2() {
- onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(enabledItemKeys.value);
- }
- }, {
- default: function _default10() {
- return [removeAll];
- }
- })];
- }
- });
- } else {
- menu = createVNode(menu_default, null, {
- default: function _default9() {
- return [createVNode(menu_default.Item, {
- "key": "selectAll",
- "onClick": function onClick2() {
- var keys2 = enabledItemKeys.value;
- onItemSelectAll(getNewSelectKeys(keys2, []));
- }
- }, {
- default: function _default10() {
- return [selectAll];
- }
- }), pagination && createVNode(menu_default.Item, {
- "onClick": function onClick2() {
- var pageKeys = getEnabledItemKeys((defaultListBodyRef.value.items || []).map(function(entity) {
- return entity.item;
- }));
- onItemSelectAll(getNewSelectKeys(pageKeys, []));
- }
- }, {
- default: function _default10() {
- return [selectCurrent];
- }
- }), createVNode(menu_default.Item, {
- "key": "selectInvert",
- "onClick": function onClick2() {
- var availableKeys;
- if (pagination) {
- availableKeys = getEnabledItemKeys((defaultListBodyRef.value.items || []).map(function(entity) {
- return entity.item;
- }));
- } else {
- availableKeys = enabledItemKeys.value;
- }
- var checkedKeySet = new Set(checkedKeys);
- var newCheckedKeys = [];
- var newUnCheckedKeys = [];
- availableKeys.forEach(function(key2) {
- if (checkedKeySet.has(key2)) {
- newUnCheckedKeys.push(key2);
- } else {
- newCheckedKeys.push(key2);
- }
- });
- onItemSelectAll(getNewSelectKeys(newCheckedKeys, newUnCheckedKeys));
- }
- }, {
- default: function _default10() {
- return [selectInvert];
- }
- })];
- }
- });
- }
- var dropdown = createVNode(dropdown_default2, {
- "class": "".concat(prefixCls, "-header-dropdown"),
- "overlay": menu,
- "disabled": disabled
- }, {
- default: function _default9() {
- return [createVNode(DownOutlined_default, null, null)];
- }
- });
- return createVNode("div", {
- "class": listCls,
- "style": attrs.style
- }, [createVNode("div", {
- "class": "".concat(prefixCls, "-header")
- }, [showSelectAll ? createVNode(Fragment, null, [checkAllCheckbox, dropdown]) : null, createVNode("span", {
- "class": "".concat(prefixCls, "-header-selected")
- }, [createVNode("span", null, [getSelectAllLabel(checkedKeys.length, filteredItems.value.length)]), createVNode("span", {
- "class": "".concat(prefixCls, "-header-title")
- }, [(_slots$titleText = slots.titleText) === null || _slots$titleText === void 0 ? void 0 : _slots$titleText.call(slots)])])]), listBody, listFooter]);
- };
- }
- });
- // node_modules/ant-design-vue/es/transfer/operation.js
- function noop14() {
- }
- var Operation = function Operation2(props5) {
- var disabled = props5.disabled, _props$moveToLeft = props5.moveToLeft, moveToLeft = _props$moveToLeft === void 0 ? noop14 : _props$moveToLeft, _props$moveToRight = props5.moveToRight, moveToRight = _props$moveToRight === void 0 ? noop14 : _props$moveToRight, _props$leftArrowText = props5.leftArrowText, leftArrowText = _props$leftArrowText === void 0 ? "" : _props$leftArrowText, _props$rightArrowText = props5.rightArrowText, rightArrowText = _props$rightArrowText === void 0 ? "" : _props$rightArrowText, leftActive = props5.leftActive, rightActive = props5.rightActive, className = props5.class, style = props5.style, direction = props5.direction, oneWay = props5.oneWay;
- return createVNode("div", {
- "class": className,
- "style": style
- }, [createVNode(button_default2, {
- "type": "primary",
- "size": "small",
- "disabled": disabled || !rightActive,
- "onClick": moveToRight,
- "icon": direction !== "rtl" ? createVNode(RightOutlined_default, null, null) : createVNode(LeftOutlined_default, null, null)
- }, {
- default: function _default9() {
- return [rightArrowText];
- }
- }), !oneWay && createVNode(button_default2, {
- "type": "primary",
- "size": "small",
- "disabled": disabled || !leftActive,
- "onClick": moveToLeft,
- "icon": direction !== "rtl" ? createVNode(LeftOutlined_default, null, null) : createVNode(RightOutlined_default, null, null)
- }, {
- default: function _default9() {
- return [leftArrowText];
- }
- })]);
- };
- Operation.displayName = "Operation";
- Operation.inheritAttrs = false;
- var operation_default = Operation;
- // node_modules/ant-design-vue/es/transfer/index.js
- var transferProps = function transferProps2() {
- return {
- id: String,
- prefixCls: String,
- dataSource: {
- type: Array,
- default: []
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- targetKeys: {
- type: Array,
- default: void 0
- },
- selectedKeys: {
- type: Array,
- default: void 0
- },
- render: {
- type: Function
- },
- listStyle: {
- type: [Function, Object],
- default: function _default9() {
- return {};
- }
- },
- operationStyle: {
- type: Object,
- default: void 0
- },
- titles: {
- type: Array
- },
- operations: {
- type: Array
- },
- showSearch: {
- type: Boolean,
- default: false
- },
- filterOption: {
- type: Function
- },
- searchPlaceholder: String,
- notFoundContent: vue_types_default.any,
- locale: {
- type: Object,
- default: function _default9() {
- return {};
- }
- },
- rowKey: {
- type: Function
- },
- showSelectAll: {
- type: Boolean,
- default: void 0
- },
- selectAllLabels: {
- type: Array
- },
- children: {
- type: Function
- },
- oneWay: {
- type: Boolean,
- default: void 0
- },
- pagination: {
- type: [Object, Boolean],
- default: void 0
- },
- onChange: Function,
- onSelectChange: Function,
- onSearch: Function,
- onScroll: Function,
- "onUpdate:targetKeys": Function,
- "onUpdate:selectedKeys": Function
- };
- };
- var Transfer = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATransfer",
- inheritAttrs: false,
- props: transferProps(),
- slots: ["leftTitle", "rightTitle", "children", "render", "notFoundContent", "leftSelectAllLabel", "rightSelectAllLabel", "footer"],
- // emits: ['update:targetKeys', 'update:selectedKeys', 'change', 'search', 'scroll', 'selectChange'],
- setup: function setup205(props5, _ref) {
- var emit = _ref.emit, attrs = _ref.attrs, slots = _ref.slots, expose = _ref.expose;
- var _useConfigInject = useConfigInject_default("transfer", props5), configProvider = _useConfigInject.configProvider, prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var sourceSelectedKeys = ref([]);
- var targetSelectedKeys = ref([]);
- var formItemContext = useInjectFormItemContext();
- watch(function() {
- return props5.selectedKeys;
- }, function() {
- var _props$selectedKeys, _props$selectedKeys2;
- sourceSelectedKeys.value = ((_props$selectedKeys = props5.selectedKeys) === null || _props$selectedKeys === void 0 ? void 0 : _props$selectedKeys.filter(function(key2) {
- return props5.targetKeys.indexOf(key2) === -1;
- })) || [];
- targetSelectedKeys.value = ((_props$selectedKeys2 = props5.selectedKeys) === null || _props$selectedKeys2 === void 0 ? void 0 : _props$selectedKeys2.filter(function(key2) {
- return props5.targetKeys.indexOf(key2) > -1;
- })) || [];
- }, {
- immediate: true
- });
- var getLocale = function getLocale2(transferLocale, renderEmpty2) {
- var oldLocale = {
- notFoundContent: renderEmpty2("Transfer")
- };
- var notFoundContent = getPropsSlot(slots, props5, "notFoundContent");
- if (notFoundContent) {
- oldLocale.notFoundContent = notFoundContent;
- }
- if (props5.searchPlaceholder !== void 0) {
- oldLocale.searchPlaceholder = props5.searchPlaceholder;
- }
- return _objectSpread2(_objectSpread2(_objectSpread2({}, transferLocale), oldLocale), props5.locale);
- };
- var moveTo2 = function moveTo3(direction2) {
- var _props$targetKeys = props5.targetKeys, targetKeys = _props$targetKeys === void 0 ? [] : _props$targetKeys, _props$dataSource = props5.dataSource, dataSource = _props$dataSource === void 0 ? [] : _props$dataSource;
- var moveKeys = direction2 === "right" ? sourceSelectedKeys.value : targetSelectedKeys.value;
- var newMoveKeys = moveKeys.filter(function(key2) {
- return !dataSource.some(function(data8) {
- return !!(key2 === data8.key && data8.disabled);
- });
- });
- var newTargetKeys = direction2 === "right" ? newMoveKeys.concat(targetKeys) : targetKeys.filter(function(targetKey) {
- return newMoveKeys.indexOf(targetKey) === -1;
- });
- var oppositeDirection = direction2 === "right" ? "left" : "right";
- direction2 === "right" ? sourceSelectedKeys.value = [] : targetSelectedKeys.value = [];
- emit("update:targetKeys", newTargetKeys);
- handleSelectChange(oppositeDirection, []);
- emit("change", newTargetKeys, direction2, newMoveKeys);
- formItemContext.onFieldChange();
- };
- var moveToLeft = function moveToLeft2() {
- moveTo2("left");
- };
- var moveToRight = function moveToRight2() {
- moveTo2("right");
- };
- var onItemSelectAll = function onItemSelectAll2(direction2, selectedKeys) {
- handleSelectChange(direction2, selectedKeys);
- };
- var onLeftItemSelectAll = function onLeftItemSelectAll2(selectedKeys) {
- return onItemSelectAll("left", selectedKeys);
- };
- var onRightItemSelectAll = function onRightItemSelectAll2(selectedKeys) {
- return onItemSelectAll("right", selectedKeys);
- };
- var handleSelectChange = function handleSelectChange2(direction2, holder) {
- if (direction2 === "left") {
- if (!props5.selectedKeys) {
- sourceSelectedKeys.value = holder;
- }
- emit("update:selectedKeys", [].concat(_toConsumableArray(holder), _toConsumableArray(targetSelectedKeys.value)));
- emit("selectChange", holder, toRaw(targetSelectedKeys.value));
- } else {
- if (!props5.selectedKeys) {
- targetSelectedKeys.value = holder;
- }
- emit("update:selectedKeys", [].concat(_toConsumableArray(holder), _toConsumableArray(sourceSelectedKeys.value)));
- emit("selectChange", toRaw(sourceSelectedKeys.value), holder);
- }
- };
- var handleFilter = function handleFilter2(direction2, e3) {
- var value = e3.target.value;
- emit("search", direction2, value);
- };
- var handleLeftFilter = function handleLeftFilter2(e3) {
- handleFilter("left", e3);
- };
- var handleRightFilter = function handleRightFilter2(e3) {
- handleFilter("right", e3);
- };
- var handleClear = function handleClear2(direction2) {
- emit("search", direction2, "");
- };
- var handleLeftClear = function handleLeftClear2() {
- handleClear("left");
- };
- var handleRightClear = function handleRightClear2() {
- handleClear("right");
- };
- var onItemSelect = function onItemSelect2(direction2, selectedKey, checked) {
- var holder = direction2 === "left" ? _toConsumableArray(sourceSelectedKeys.value) : _toConsumableArray(targetSelectedKeys.value);
- var index3 = holder.indexOf(selectedKey);
- if (index3 > -1) {
- holder.splice(index3, 1);
- }
- if (checked) {
- holder.push(selectedKey);
- }
- handleSelectChange(direction2, holder);
- };
- var onLeftItemSelect = function onLeftItemSelect2(selectedKey, checked) {
- return onItemSelect("left", selectedKey, checked);
- };
- var onRightItemSelect = function onRightItemSelect2(selectedKey, checked) {
- return onItemSelect("right", selectedKey, checked);
- };
- var onRightItemRemove = function onRightItemRemove2(targetedKeys) {
- var _props$targetKeys2 = props5.targetKeys, targetKeys = _props$targetKeys2 === void 0 ? [] : _props$targetKeys2;
- var newTargetKeys = targetKeys.filter(function(key2) {
- return !targetedKeys.includes(key2);
- });
- emit("update:targetKeys", newTargetKeys);
- emit("change", newTargetKeys, "left", _toConsumableArray(targetedKeys));
- };
- var handleScroll = function handleScroll2(direction2, e3) {
- emit("scroll", direction2, e3);
- };
- var handleLeftScroll = function handleLeftScroll2(e3) {
- handleScroll("left", e3);
- };
- var handleRightScroll = function handleRightScroll2(e3) {
- handleScroll("right", e3);
- };
- var handleListStyle = function handleListStyle2(listStyle, direction2) {
- if (typeof listStyle === "function") {
- return listStyle({
- direction: direction2
- });
- }
- return listStyle;
- };
- var leftDataSource = ref([]);
- var rightDataSource = ref([]);
- watchEffect(function() {
- var dataSource = props5.dataSource, rowKey = props5.rowKey, _props$targetKeys3 = props5.targetKeys, targetKeys = _props$targetKeys3 === void 0 ? [] : _props$targetKeys3;
- var ld = [];
- var rd = new Array(targetKeys.length);
- dataSource.forEach(function(record) {
- if (rowKey) {
- record.key = rowKey(record);
- }
- var indexOfKey = targetKeys.indexOf(record.key);
- if (indexOfKey !== -1) {
- rd[indexOfKey] = record;
- } else {
- ld.push(record);
- }
- });
- leftDataSource.value = ld;
- rightDataSource.value = rd;
- });
- expose({
- handleSelectChange
- });
- var renderTransfer = function renderTransfer2(transferLocale) {
- var _classNames, _ref2, _ref3, _slots$leftTitle, _ref4, _ref5, _slots$rightTitle;
- var disabled = props5.disabled, _props$operations = props5.operations, operations = _props$operations === void 0 ? [] : _props$operations, showSearch = props5.showSearch, listStyle = props5.listStyle, operationStyle = props5.operationStyle, filterOption3 = props5.filterOption, showSelectAll = props5.showSelectAll, _props$selectAllLabel = props5.selectAllLabels, selectAllLabels = _props$selectAllLabel === void 0 ? [] : _props$selectAllLabel, oneWay = props5.oneWay, pagination = props5.pagination, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id;
- var className = attrs.class, style = attrs.style;
- var children = slots.children;
- var mergedPagination = !children && pagination;
- var renderEmpty2 = configProvider.renderEmpty;
- var locale4 = getLocale(transferLocale, renderEmpty2);
- var footer = slots.footer;
- var renderItem = props5.render || slots.render;
- var leftActive = targetSelectedKeys.value.length > 0;
- var rightActive = sourceSelectedKeys.value.length > 0;
- var cls = classNames_default(prefixCls.value, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls.value, "-customize-list"), !!children), _classNames));
- var titles = props5.titles;
- var leftTitle = (_ref2 = (_ref3 = titles && titles[0]) !== null && _ref3 !== void 0 ? _ref3 : (_slots$leftTitle = slots.leftTitle) === null || _slots$leftTitle === void 0 ? void 0 : _slots$leftTitle.call(slots)) !== null && _ref2 !== void 0 ? _ref2 : (locale4.titles || ["", ""])[0];
- var rightTitle = (_ref4 = (_ref5 = titles && titles[1]) !== null && _ref5 !== void 0 ? _ref5 : (_slots$rightTitle = slots.rightTitle) === null || _slots$rightTitle === void 0 ? void 0 : _slots$rightTitle.call(slots)) !== null && _ref4 !== void 0 ? _ref4 : (locale4.titles || ["", ""])[1];
- return createVNode("div", {
- "class": cls,
- "style": style,
- "id": id
- }, [createVNode(list_default2, _objectSpread2({
- "key": "leftList",
- "prefixCls": "".concat(prefixCls.value, "-list"),
- "dataSource": leftDataSource.value,
- "filterOption": filterOption3,
- "style": handleListStyle(listStyle, "left"),
- "checkedKeys": sourceSelectedKeys.value,
- "handleFilter": handleLeftFilter,
- "handleClear": handleLeftClear,
- "onItemSelect": onLeftItemSelect,
- "onItemSelectAll": onLeftItemSelectAll,
- "renderItem": renderItem,
- "showSearch": showSearch,
- "renderList": children,
- "onScroll": handleLeftScroll,
- "disabled": disabled,
- "direction": direction.value === "rtl" ? "right" : "left",
- "showSelectAll": showSelectAll,
- "selectAllLabel": selectAllLabels[0] || slots.leftSelectAllLabel,
- "pagination": mergedPagination
- }, locale4), {
- titleText: function titleText() {
- return leftTitle;
- },
- footer
- }), createVNode(operation_default, {
- "key": "operation",
- "class": "".concat(prefixCls.value, "-operation"),
- "rightActive": rightActive,
- "rightArrowText": operations[0],
- "moveToRight": moveToRight,
- "leftActive": leftActive,
- "leftArrowText": operations[1],
- "moveToLeft": moveToLeft,
- "style": operationStyle,
- "disabled": disabled,
- "direction": direction.value,
- "oneWay": oneWay
- }, null), createVNode(list_default2, _objectSpread2({
- "key": "rightList",
- "prefixCls": "".concat(prefixCls.value, "-list"),
- "dataSource": rightDataSource.value,
- "filterOption": filterOption3,
- "style": handleListStyle(listStyle, "right"),
- "checkedKeys": targetSelectedKeys.value,
- "handleFilter": handleRightFilter,
- "handleClear": handleRightClear,
- "onItemSelect": onRightItemSelect,
- "onItemSelectAll": onRightItemSelectAll,
- "onItemRemove": onRightItemRemove,
- "renderItem": renderItem,
- "showSearch": showSearch,
- "renderList": children,
- "onScroll": handleRightScroll,
- "disabled": disabled,
- "direction": direction.value === "rtl" ? "left" : "right",
- "showSelectAll": showSelectAll,
- "selectAllLabel": selectAllLabels[1] || slots.rightSelectAllLabel,
- "showRemove": oneWay,
- "pagination": mergedPagination
- }, locale4), {
- titleText: function titleText() {
- return rightTitle;
- },
- footer
- })]);
- };
- return function() {
- return createVNode(LocaleReceiver_default, {
- "componentName": "Transfer",
- "defaultLocale": default_default2.Transfer,
- "children": renderTransfer
- }, null);
- };
- }
- });
- var transfer_default = withInstall(Transfer);
- // node_modules/ant-design-vue/es/vc-tree-select/utils/valueUtil.js
- function toArray8(value) {
- if (Array.isArray(value)) {
- return value;
- }
- return value !== void 0 ? [value] : [];
- }
- function fillFieldNames4(fieldNames) {
- var _ref = fieldNames || {}, label = _ref.label, value = _ref.value, children = _ref.children;
- var mergedValue = value || "value";
- return {
- _title: label ? [label] : ["title", "label"],
- value: mergedValue,
- key: mergedValue,
- children: children || "children"
- };
- }
- function isCheckDisabled2(node) {
- return node.disabled || node.disableCheckbox || node.checkable === false;
- }
- function getAllKeys2(treeData, fieldNames) {
- var keys2 = [];
- function dig(list) {
- list.forEach(function(item) {
- keys2.push(item[fieldNames.value]);
- var children = item[fieldNames.children];
- if (children) {
- dig(children);
- }
- });
- }
- dig(treeData);
- return keys2;
- }
- function isNil(val) {
- return val === null || val === void 0;
- }
- // node_modules/ant-design-vue/es/vc-tree-select/TreeSelectContext.js
- var TreeSelectContextPropsKey = Symbol("TreeSelectContextPropsKey");
- function useProvideSelectContext(props5) {
- return provide(TreeSelectContextPropsKey, props5);
- }
- function useInjectSelectContext() {
- return inject(TreeSelectContextPropsKey, {});
- }
- // node_modules/ant-design-vue/es/vc-tree-select/OptionList.js
- var HIDDEN_STYLE3 = {
- width: 0,
- height: 0,
- display: "flex",
- overflow: "hidden",
- opacity: 0,
- border: 0,
- padding: 0,
- margin: 0
- };
- var OptionList_default3 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "OptionList",
- inheritAttrs: false,
- slots: ["notFoundContent", "menuItemSelectedIcon"],
- setup: function setup206(_2, _ref) {
- var slots = _ref.slots, expose = _ref.expose;
- var baseProps4 = useBaseProps();
- var legacyContext = useInjectLegacySelectContext();
- var context2 = useInjectSelectContext();
- var treeRef = ref();
- var memoTreeData = useMemo(function() {
- return context2.treeData;
- }, [function() {
- return baseProps4.open;
- }, function() {
- return context2.treeData;
- }], function(next2) {
- return next2[0];
- });
- var mergedCheckedKeys = computed(function() {
- var checkable = legacyContext.checkable, halfCheckedKeys = legacyContext.halfCheckedKeys, checkedKeys = legacyContext.checkedKeys;
- if (!checkable) {
- return null;
- }
- return {
- checked: checkedKeys,
- halfChecked: halfCheckedKeys
- };
- });
- watch(function() {
- return baseProps4.open;
- }, function() {
- nextTick(function() {
- if (baseProps4.open && !baseProps4.multiple && legacyContext.checkedKeys.length) {
- var _treeRef$value;
- (_treeRef$value = treeRef.value) === null || _treeRef$value === void 0 ? void 0 : _treeRef$value.scrollTo({
- key: legacyContext.checkedKeys[0]
- });
- }
- });
- }, {
- immediate: true,
- flush: "post"
- });
- var lowerSearchValue = computed(function() {
- return String(baseProps4.searchValue).toLowerCase();
- });
- var filterTreeNode = function filterTreeNode2(treeNode) {
- if (!lowerSearchValue.value) {
- return false;
- }
- return String(treeNode[legacyContext.treeNodeFilterProp]).toLowerCase().includes(lowerSearchValue.value);
- };
- var expandedKeys = shallowRef(legacyContext.treeDefaultExpandedKeys);
- var searchExpandedKeys = shallowRef(null);
- watch(function() {
- return baseProps4.searchValue;
- }, function() {
- if (baseProps4.searchValue) {
- searchExpandedKeys.value = getAllKeys2(toRaw(context2.treeData), toRaw(context2.fieldNames));
- }
- }, {
- immediate: true
- });
- var mergedExpandedKeys = computed(function() {
- if (legacyContext.treeExpandedKeys) {
- return legacyContext.treeExpandedKeys.slice();
- }
- return baseProps4.searchValue ? searchExpandedKeys.value : expandedKeys.value;
- });
- var onInternalExpand = function onInternalExpand2(keys2) {
- var _legacyContext$onTree;
- expandedKeys.value = keys2;
- searchExpandedKeys.value = keys2;
- (_legacyContext$onTree = legacyContext.onTreeExpand) === null || _legacyContext$onTree === void 0 ? void 0 : _legacyContext$onTree.call(legacyContext, keys2);
- };
- var onListMouseDown = function onListMouseDown2(event) {
- event.preventDefault();
- };
- var onInternalSelect = function onInternalSelect2(_3, _ref2) {
- var _context$onSelect;
- var node = _ref2.node;
- var checkable = legacyContext.checkable, checkedKeys = legacyContext.checkedKeys;
- if (checkable && isCheckDisabled2(node)) {
- return;
- }
- (_context$onSelect = context2.onSelect) === null || _context$onSelect === void 0 ? void 0 : _context$onSelect.call(context2, node.key, {
- selected: !checkedKeys.includes(node.key)
- });
- if (!baseProps4.multiple) {
- var _baseProps$toggleOpen;
- (_baseProps$toggleOpen = baseProps4.toggleOpen) === null || _baseProps$toggleOpen === void 0 ? void 0 : _baseProps$toggleOpen.call(baseProps4, false);
- }
- };
- var activeKey = ref(null);
- var activeEntity = computed(function() {
- return legacyContext.keyEntities[activeKey.value];
- });
- var setActiveKey = function setActiveKey2(key2) {
- activeKey.value = key2;
- };
- expose({
- scrollTo: function scrollTo3() {
- var _treeRef$value2, _treeRef$value2$scrol;
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- return (_treeRef$value2 = treeRef.value) === null || _treeRef$value2 === void 0 ? void 0 : (_treeRef$value2$scrol = _treeRef$value2.scrollTo) === null || _treeRef$value2$scrol === void 0 ? void 0 : _treeRef$value2$scrol.call.apply(_treeRef$value2$scrol, [_treeRef$value2].concat(args));
- },
- onKeydown: function onKeydown(event) {
- var _treeRef$value3;
- var which = event.which;
- switch (which) {
- case KeyCode_default.UP:
- case KeyCode_default.DOWN:
- case KeyCode_default.LEFT:
- case KeyCode_default.RIGHT:
- (_treeRef$value3 = treeRef.value) === null || _treeRef$value3 === void 0 ? void 0 : _treeRef$value3.onKeydown(event);
- break;
- case KeyCode_default.ENTER: {
- if (activeEntity.value) {
- var _ref3 = activeEntity.value.node || {}, selectable = _ref3.selectable, value = _ref3.value;
- if (selectable !== false) {
- onInternalSelect(null, {
- node: {
- key: activeKey.value
- },
- selected: !legacyContext.checkedKeys.includes(value)
- });
- }
- }
- break;
- }
- case KeyCode_default.ESC: {
- baseProps4.toggleOpen(false);
- }
- }
- },
- onKeyup: function onKeyup() {
- }
- });
- return function() {
- var _slots$notFoundConten;
- var prefixCls = baseProps4.prefixCls, multiple = baseProps4.multiple, searchValue = baseProps4.searchValue, open2 = baseProps4.open, _baseProps$notFoundCo = baseProps4.notFoundContent, notFoundContent = _baseProps$notFoundCo === void 0 ? (_slots$notFoundConten = slots.notFoundContent) === null || _slots$notFoundConten === void 0 ? void 0 : _slots$notFoundConten.call(slots) : _baseProps$notFoundCo;
- var listHeight = context2.listHeight, listItemHeight = context2.listItemHeight, virtual = context2.virtual;
- var checkable = legacyContext.checkable, treeDefaultExpandAll = legacyContext.treeDefaultExpandAll, treeIcon = legacyContext.treeIcon, showTreeIcon = legacyContext.showTreeIcon, switcherIcon = legacyContext.switcherIcon, treeLine = legacyContext.treeLine, loadData = legacyContext.loadData, treeLoadedKeys = legacyContext.treeLoadedKeys, treeMotion = legacyContext.treeMotion, onTreeLoad = legacyContext.onTreeLoad, checkedKeys = legacyContext.checkedKeys;
- if (memoTreeData.value.length === 0) {
- return createVNode("div", {
- "role": "listbox",
- "class": "".concat(prefixCls, "-empty"),
- "onMousedown": onListMouseDown
- }, [notFoundContent]);
- }
- var treeProps5 = {
- fieldNames: context2.fieldNames
- };
- if (treeLoadedKeys) {
- treeProps5.loadedKeys = treeLoadedKeys;
- }
- if (mergedExpandedKeys.value) {
- treeProps5.expandedKeys = mergedExpandedKeys.value;
- }
- return createVNode("div", {
- "onMousedown": onListMouseDown
- }, [activeEntity.value && open2 && createVNode("span", {
- "style": HIDDEN_STYLE3,
- "aria-live": "assertive"
- }, [activeEntity.value.node.value]), createVNode(Tree_default, _objectSpread2(_objectSpread2({
- "ref": treeRef,
- "focusable": false,
- "prefixCls": "".concat(prefixCls, "-tree"),
- "treeData": memoTreeData.value,
- "height": listHeight,
- "itemHeight": listItemHeight,
- "virtual": virtual,
- "multiple": multiple,
- "icon": treeIcon,
- "showIcon": showTreeIcon,
- "switcherIcon": switcherIcon,
- "showLine": treeLine,
- "loadData": searchValue ? null : loadData,
- "motion": treeMotion,
- "activeKey": activeKey.value,
- "checkable": checkable,
- "checkStrictly": true,
- "checkedKeys": mergedCheckedKeys.value,
- "selectedKeys": !checkable ? checkedKeys : [],
- "defaultExpandAll": treeDefaultExpandAll
- }, treeProps5), {}, {
- "onActiveChange": setActiveKey,
- "onSelect": onInternalSelect,
- "onCheck": onInternalSelect,
- "onExpand": onInternalExpand,
- "onLoad": onTreeLoad,
- "filterTreeNode": filterTreeNode
- }), _objectSpread2(_objectSpread2({}, slots), {}, {
- checkable: legacyContext.customSlots.treeCheckable
- }))]);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tree-select/utils/strategyUtil.js
- var SHOW_ALL = "SHOW_ALL";
- var SHOW_PARENT2 = "SHOW_PARENT";
- var SHOW_CHILD2 = "SHOW_CHILD";
- function formatStrategyValues2(values, strategy, keyEntities, fieldNames) {
- var valueSet = new Set(values);
- if (strategy === SHOW_CHILD2) {
- return values.filter(function(key2) {
- var entity = keyEntities[key2];
- if (entity && entity.children && entity.children.some(function(_ref) {
- var node = _ref.node;
- return valueSet.has(node[fieldNames.value]);
- }) && entity.children.every(function(_ref2) {
- var node = _ref2.node;
- return isCheckDisabled2(node) || valueSet.has(node[fieldNames.value]);
- })) {
- return false;
- }
- return true;
- });
- }
- if (strategy === SHOW_PARENT2) {
- return values.filter(function(key2) {
- var entity = keyEntities[key2];
- var parent2 = entity ? entity.parent : null;
- if (parent2 && !isCheckDisabled2(parent2.node) && valueSet.has(parent2.key)) {
- return false;
- }
- return true;
- });
- }
- return values;
- }
- // node_modules/ant-design-vue/es/vc-tree-select/TreeNode.js
- var TreeNode2 = function TreeNode3() {
- return null;
- };
- TreeNode2.inheritAttrs = false;
- TreeNode2.displayName = "ATreeSelectNode";
- TreeNode2.isTreeSelectNode = true;
- var TreeNode_default2 = TreeNode2;
- // node_modules/ant-design-vue/es/vc-tree-select/utils/legacyUtil.js
- var _excluded62 = ["title", "switcherIcon"];
- function isTreeSelectNode(node) {
- return node && node.type && node.type.isTreeSelectNode;
- }
- function convertChildrenToData2(rootNodes) {
- function dig() {
- var treeNodes = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
- return filterEmpty(treeNodes).map(function(treeNode) {
- var _slots$title, _slots$switcherIcon, _slots$default;
- if (!isTreeSelectNode(treeNode)) {
- warning(!treeNode, "TreeSelect/TreeSelectNode can only accept TreeSelectNode as children.");
- return null;
- }
- var slots = treeNode.children || {};
- var key2 = treeNode.key;
- var props5 = {};
- for (var _i = 0, _Object$entries = Object.entries(treeNode.props); _i < _Object$entries.length; _i++) {
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), k2 = _Object$entries$_i[0], v2 = _Object$entries$_i[1];
- props5[camelize(k2)] = v2;
- }
- var isLeaf2 = props5.isLeaf, checkable = props5.checkable, selectable = props5.selectable, disabled = props5.disabled, disableCheckbox = props5.disableCheckbox;
- var newProps = {
- isLeaf: isLeaf2 || isLeaf2 === "" || void 0,
- checkable: checkable || checkable === "" || void 0,
- selectable: selectable || selectable === "" || void 0,
- disabled: disabled || disabled === "" || void 0,
- disableCheckbox: disableCheckbox || disableCheckbox === "" || void 0
- };
- var slotsProps = _objectSpread2(_objectSpread2({}, props5), newProps);
- var _props$title = props5.title, title = _props$title === void 0 ? (_slots$title = slots.title) === null || _slots$title === void 0 ? void 0 : _slots$title.call(slots, slotsProps) : _props$title, _props$switcherIcon = props5.switcherIcon, switcherIcon = _props$switcherIcon === void 0 ? (_slots$switcherIcon = slots.switcherIcon) === null || _slots$switcherIcon === void 0 ? void 0 : _slots$switcherIcon.call(slots, slotsProps) : _props$switcherIcon, rest = _objectWithoutProperties(props5, _excluded62);
- var children = (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
- var dataNode = _objectSpread2(_objectSpread2({}, rest), {}, {
- title,
- switcherIcon,
- key: key2,
- isLeaf: isLeaf2
- }, newProps);
- var parsedChildren = dig(children);
- if (parsedChildren.length) {
- dataNode.children = parsedChildren;
- }
- return dataNode;
- });
- }
- return dig(rootNodes);
- }
- function fillLegacyProps(dataNode) {
- if (!dataNode) {
- return dataNode;
- }
- var cloneNode = _objectSpread2({}, dataNode);
- if (!("props" in cloneNode)) {
- Object.defineProperty(cloneNode, "props", {
- get: function get3() {
- warning(false, "New `vc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access.");
- return cloneNode;
- }
- });
- }
- return cloneNode;
- }
- function fillAdditionalInfo(extra, triggerValue, checkedValues, treeData, showPosition, fieldNames) {
- var triggerNode = null;
- var nodeList = null;
- function generateMap() {
- function dig(list) {
- var level = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0";
- var parentIncluded = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
- return list.map(function(option, index3) {
- var pos = "".concat(level, "-").concat(index3);
- var value = option[fieldNames.value];
- var included = checkedValues.includes(value);
- var children = dig(option[fieldNames.children] || [], pos, included);
- var node = createVNode(TreeNode_default2, option, {
- default: function _default9() {
- return [children.map(function(child) {
- return child.node;
- })];
- }
- });
- if (triggerValue === value) {
- triggerNode = node;
- }
- if (included) {
- var checkedNode = {
- pos,
- node,
- children
- };
- if (!parentIncluded) {
- nodeList.push(checkedNode);
- }
- return checkedNode;
- }
- return null;
- }).filter(function(node) {
- return node;
- });
- }
- if (!nodeList) {
- nodeList = [];
- dig(treeData);
- nodeList.sort(function(_ref, _ref2) {
- var val1 = _ref.node.props.value;
- var val2 = _ref2.node.props.value;
- var index1 = checkedValues.indexOf(val1);
- var index22 = checkedValues.indexOf(val2);
- return index1 - index22;
- });
- }
- }
- Object.defineProperty(extra, "triggerNode", {
- get: function get3() {
- warning(false, "`triggerNode` is deprecated. Please consider decoupling data with node.");
- generateMap();
- return triggerNode;
- }
- });
- Object.defineProperty(extra, "allCheckedNodes", {
- get: function get3() {
- warning(false, "`allCheckedNodes` is deprecated. Please consider decoupling data with node.");
- generateMap();
- if (showPosition) {
- return nodeList;
- }
- return nodeList.map(function(_ref3) {
- var node = _ref3.node;
- return node;
- });
- }
- });
- }
- // node_modules/ant-design-vue/es/vc-tree-select/hooks/useTreeData.js
- function parseSimpleTreeData(treeData, _ref) {
- var id = _ref.id, pId = _ref.pId, rootPId = _ref.rootPId;
- var keyNodes = {};
- var rootNodeList = [];
- var nodeList = treeData.map(function(node) {
- var clone2 = _objectSpread2({}, node);
- var key2 = clone2[id];
- keyNodes[key2] = clone2;
- clone2.key = clone2.key || key2;
- return clone2;
- });
- nodeList.forEach(function(node) {
- var parentKey = node[pId];
- var parent2 = keyNodes[parentKey];
- if (parent2) {
- parent2.children = parent2.children || [];
- parent2.children.push(node);
- }
- if (parentKey === rootPId || !parent2 && rootPId === null) {
- rootNodeList.push(node);
- }
- });
- return rootNodeList;
- }
- function useTreeData(treeData, children, simpleMode) {
- var mergedTreeData = shallowRef();
- watch([simpleMode, treeData, children], function() {
- var simpleModeValue = simpleMode.value;
- if (treeData.value) {
- mergedTreeData.value = simpleMode.value ? parseSimpleTreeData(toRaw(treeData.value), _objectSpread2({
- id: "id",
- pId: "pId",
- rootPId: null
- }, simpleModeValue !== true ? simpleModeValue : {})) : toRaw(treeData.value).slice();
- } else {
- mergedTreeData.value = convertChildrenToData2(toRaw(children.value));
- }
- }, {
- immediate: true,
- deep: true
- });
- return mergedTreeData;
- }
- // node_modules/ant-design-vue/es/vc-tree-select/hooks/useCache.js
- var useCache_default2 = function(values) {
- var cacheRef = shallowRef({
- valueLabels: /* @__PURE__ */ new Map()
- });
- var mergedValues = shallowRef();
- watch(values, function() {
- mergedValues.value = toRaw(values.value);
- }, {
- immediate: true
- });
- var newFilledValues = computed(function() {
- var valueLabels = cacheRef.value.valueLabels;
- var valueLabelsCache = /* @__PURE__ */ new Map();
- var filledValues = mergedValues.value.map(function(item) {
- var _item$label;
- var value = item.value;
- var mergedLabel = (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : valueLabels.get(value);
- valueLabelsCache.set(value, mergedLabel);
- return _objectSpread2(_objectSpread2({}, item), {}, {
- label: mergedLabel
- });
- });
- cacheRef.value.valueLabels = valueLabelsCache;
- return filledValues;
- });
- return [newFilledValues];
- };
- // node_modules/ant-design-vue/es/vc-tree-select/hooks/useDataEntities.js
- var useDataEntities_default = function(treeData, fieldNames) {
- var valueEntities = shallowRef(/* @__PURE__ */ new Map());
- var keyEntities = shallowRef({});
- watchEffect(function() {
- var fieldNamesValue = fieldNames.value;
- var collection = convertDataToEntities(treeData.value, {
- fieldNames: fieldNamesValue,
- initWrapper: function initWrapper(wrapper) {
- return _objectSpread2(_objectSpread2({}, wrapper), {}, {
- valueEntities: /* @__PURE__ */ new Map()
- });
- },
- processEntity: function processEntity(entity, wrapper) {
- var val = entity.node[fieldNamesValue.value];
- if (true) {
- var key2 = entity.node.key;
- warning(!isNil(val), "TreeNode `value` is invalidate: undefined");
- warning(!wrapper.valueEntities.has(val), "Same `value` exist in the tree: ".concat(val));
- warning(!key2 || String(key2) === String(val), "`key` or `value` with TreeNode must be the same or you can remove one of them. key: ".concat(key2, ", value: ").concat(val, "."));
- }
- wrapper.valueEntities.set(val, entity);
- }
- });
- valueEntities.value = collection.valueEntities;
- keyEntities.value = collection.keyEntities;
- });
- return {
- valueEntities,
- keyEntities
- };
- };
- // node_modules/ant-design-vue/es/vc-tree-select/hooks/useCheckedKeys.js
- var useCheckedKeys_default = function(rawLabeledValues, rawHalfCheckedValues, treeConduction, keyEntities, maxLevel, levelEntities) {
- var newRawCheckedValues = shallowRef([]);
- var newRawHalfCheckedValues = shallowRef([]);
- watchEffect(function() {
- var checkedKeys = rawLabeledValues.value.map(function(_ref) {
- var value = _ref.value;
- return value;
- });
- var halfCheckedKeys = rawHalfCheckedValues.value.map(function(_ref2) {
- var value = _ref2.value;
- return value;
- });
- var missingValues = checkedKeys.filter(function(key2) {
- return !keyEntities.value[key2];
- });
- if (treeConduction.value) {
- var _conductCheck = conductCheck(checkedKeys, true, keyEntities.value, maxLevel.value, levelEntities.value);
- checkedKeys = _conductCheck.checkedKeys;
- halfCheckedKeys = _conductCheck.halfCheckedKeys;
- }
- newRawCheckedValues.value = Array.from(new Set([].concat(_toConsumableArray(missingValues), _toConsumableArray(checkedKeys))));
- newRawHalfCheckedValues.value = halfCheckedKeys;
- });
- return [newRawCheckedValues, newRawHalfCheckedValues];
- };
- // node_modules/ant-design-vue/es/vc-tree-select/hooks/useFilterTreeData.js
- var useFilterTreeData_default = function(treeData, searchValue, _ref) {
- var treeNodeFilterProp = _ref.treeNodeFilterProp, filterTreeNode = _ref.filterTreeNode, fieldNames = _ref.fieldNames;
- return computed(function() {
- var fieldChildren = fieldNames.value.children;
- var searchValueVal = searchValue.value;
- var treeNodeFilterPropValue = treeNodeFilterProp === null || treeNodeFilterProp === void 0 ? void 0 : treeNodeFilterProp.value;
- if (!searchValueVal || filterTreeNode.value === false) {
- return treeData.value;
- }
- var filterOptionFunc;
- if (typeof filterTreeNode.value === "function") {
- filterOptionFunc = filterTreeNode.value;
- } else {
- var upperStr = searchValueVal.toUpperCase();
- filterOptionFunc = function filterOptionFunc2(_2, dataNode) {
- var value = dataNode[treeNodeFilterPropValue];
- return String(value).toUpperCase().includes(upperStr);
- };
- }
- function dig(list) {
- var keepAll = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
- var res = [];
- for (var index3 = 0, len = list.length; index3 < len; index3++) {
- var dataNode = list[index3];
- var children = dataNode[fieldChildren];
- var match3 = keepAll || filterOptionFunc(searchValueVal, fillLegacyProps(dataNode));
- var childList = dig(children || [], match3);
- if (match3 || childList.length) {
- res.push(_objectSpread2(_objectSpread2({}, dataNode), {}, _defineProperty({}, fieldChildren, childList)));
- }
- }
- return res;
- }
- return dig(treeData.value);
- });
- };
- // node_modules/ant-design-vue/es/vc-tree-select/utils/warningPropsUtil.js
- function warningProps2(props5) {
- var searchPlaceholder = props5.searchPlaceholder, treeCheckStrictly = props5.treeCheckStrictly, treeCheckable = props5.treeCheckable, labelInValue = props5.labelInValue, value = props5.value, multiple = props5.multiple;
- warning(!searchPlaceholder, "`searchPlaceholder` has been removed, please use `placeholder` instead");
- if (treeCheckStrictly && labelInValue === false) {
- warning(false, "`treeCheckStrictly` will force set `labelInValue` to `true`.");
- }
- if (labelInValue || treeCheckStrictly) {
- warning(toArray8(value).every(function(val) {
- return val && _typeof(val) === "object" && "value" in val;
- }), "Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead.");
- }
- if (treeCheckStrictly || multiple || treeCheckable) {
- warning(!value || Array.isArray(value), "`value` should be an array when `TreeSelect` is checkable or multiple.");
- } else {
- warning(!Array.isArray(value), "`value` should not be array when `TreeSelect` is single mode.");
- }
- }
- var warningPropsUtil_default2 = warningProps2;
- // node_modules/ant-design-vue/es/vc-tree-select/TreeSelect.js
- function treeSelectProps() {
- return _objectSpread2(_objectSpread2({}, omit_default(baseSelectPropsWithoutPrivate(), ["mode"])), {}, {
- prefixCls: String,
- id: String,
- value: {
- type: [String, Number, Object, Array]
- },
- defaultValue: {
- type: [String, Number, Object, Array]
- },
- onChange: {
- type: Function
- },
- searchValue: String,
- /** @deprecated Use `searchValue` instead */
- inputValue: String,
- onSearch: {
- type: Function
- },
- autoClearSearchValue: {
- type: Boolean,
- default: void 0
- },
- filterTreeNode: {
- type: [Boolean, Function],
- default: void 0
- },
- treeNodeFilterProp: String,
- // >>> Select
- onSelect: Function,
- onDeselect: Function,
- showCheckedStrategy: {
- type: String
- },
- treeNodeLabelProp: String,
- fieldNames: {
- type: Object
- },
- // >>> Mode
- multiple: {
- type: Boolean,
- default: void 0
- },
- treeCheckable: {
- type: Boolean,
- default: void 0
- },
- treeCheckStrictly: {
- type: Boolean,
- default: void 0
- },
- labelInValue: {
- type: Boolean,
- default: void 0
- },
- // >>> Data
- treeData: {
- type: Array
- },
- treeDataSimpleMode: {
- type: [Boolean, Object],
- default: void 0
- },
- loadData: {
- type: Function
- },
- treeLoadedKeys: {
- type: Array
- },
- onTreeLoad: {
- type: Function
- },
- // >>> Expanded
- treeDefaultExpandAll: {
- type: Boolean,
- default: void 0
- },
- treeExpandedKeys: {
- type: Array
- },
- treeDefaultExpandedKeys: {
- type: Array
- },
- onTreeExpand: {
- type: Function
- },
- // >>> Options
- virtual: {
- type: Boolean,
- default: void 0
- },
- listHeight: Number,
- listItemHeight: Number,
- onDropdownVisibleChange: {
- type: Function
- },
- // >>> Tree
- treeLine: {
- type: [Boolean, Object],
- default: void 0
- },
- treeIcon: vue_types_default.any,
- showTreeIcon: {
- type: Boolean,
- default: void 0
- },
- switcherIcon: vue_types_default.any,
- treeMotion: vue_types_default.any,
- children: Array,
- showArrow: {
- type: Boolean,
- default: void 0
- },
- showSearch: {
- type: Boolean,
- default: void 0
- },
- open: {
- type: Boolean,
- default: void 0
- },
- defaultOpen: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- placeholder: vue_types_default.any,
- maxTagPlaceholder: {
- type: Function
- },
- dropdownPopupAlign: vue_types_default.any,
- customSlots: Object
- });
- }
- function isRawValue2(value) {
- return !value || _typeof(value) !== "object";
- }
- var TreeSelect_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "TreeSelect",
- inheritAttrs: false,
- props: initDefaultProps_default(treeSelectProps(), {
- treeNodeFilterProp: "value",
- autoClearSearchValue: true,
- showCheckedStrategy: SHOW_CHILD2,
- listHeight: 200,
- listItemHeight: 20,
- prefixCls: "vc-tree-select"
- }),
- setup: function setup207(props5, _ref) {
- var attrs = _ref.attrs, expose = _ref.expose, slots = _ref.slots;
- var mergedId = useId(toRef(props5, "id"));
- var treeConduction = computed(function() {
- return props5.treeCheckable && !props5.treeCheckStrictly;
- });
- var mergedCheckable = computed(function() {
- return props5.treeCheckable || props5.treeCheckStrictly;
- });
- var mergedLabelInValue = computed(function() {
- return props5.treeCheckStrictly || props5.labelInValue;
- });
- var mergedMultiple = computed(function() {
- return mergedCheckable.value || props5.multiple;
- });
- if (true) {
- watchEffect(function() {
- warningPropsUtil_default2(props5);
- });
- }
- var mergedFieldNames = computed(function() {
- return fillFieldNames4(props5.fieldNames);
- });
- var _useMergedState = useMergedState("", {
- value: computed(function() {
- return props5.searchValue !== void 0 ? props5.searchValue : props5.inputValue;
- }),
- postState: function postState(search) {
- return search || "";
- }
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedSearchValue = _useMergedState2[0], setSearchValue = _useMergedState2[1];
- var onInternalSearch = function onInternalSearch2(searchText) {
- var _props$onSearch;
- setSearchValue(searchText);
- (_props$onSearch = props5.onSearch) === null || _props$onSearch === void 0 ? void 0 : _props$onSearch.call(props5, searchText);
- };
- var mergedTreeData = useTreeData(toRef(props5, "treeData"), toRef(props5, "children"), toRef(props5, "treeDataSimpleMode"));
- var _useDataEntities = useDataEntities_default(mergedTreeData, mergedFieldNames), keyEntities = _useDataEntities.keyEntities, valueEntities = _useDataEntities.valueEntities;
- var splitRawValues = function splitRawValues2(newRawValues) {
- var missingRawValues = [];
- var existRawValues = [];
- newRawValues.forEach(function(val) {
- if (valueEntities.value.has(val)) {
- existRawValues.push(val);
- } else {
- missingRawValues.push(val);
- }
- });
- return {
- missingRawValues,
- existRawValues
- };
- };
- var filteredTreeData = useFilterTreeData_default(mergedTreeData, mergedSearchValue, {
- fieldNames: mergedFieldNames,
- treeNodeFilterProp: toRef(props5, "treeNodeFilterProp"),
- filterTreeNode: toRef(props5, "filterTreeNode")
- });
- var getLabel = function getLabel2(item) {
- if (item) {
- if (props5.treeNodeLabelProp) {
- return item[props5.treeNodeLabelProp];
- }
- var titleList = mergedFieldNames.value._title;
- for (var i3 = 0; i3 < titleList.length; i3 += 1) {
- var title = item[titleList[i3]];
- if (title !== void 0) {
- return title;
- }
- }
- }
- };
- var toLabeledValues = function toLabeledValues2(draftValues) {
- var values = toArray8(draftValues);
- return values.map(function(val) {
- if (isRawValue2(val)) {
- return {
- value: val
- };
- }
- return val;
- });
- };
- var convert2LabelValues = function convert2LabelValues2(draftValues) {
- var values = toLabeledValues(draftValues);
- return values.map(function(item) {
- var rawLabel = item.label;
- var rawValue = item.value, rawHalfChecked = item.halfChecked;
- var rawDisabled;
- var entity = valueEntities.value.get(rawValue);
- if (entity) {
- var _rawLabel;
- rawLabel = (_rawLabel = rawLabel) !== null && _rawLabel !== void 0 ? _rawLabel : getLabel(entity.node);
- rawDisabled = entity.node.disabled;
- }
- return {
- label: rawLabel,
- value: rawValue,
- halfChecked: rawHalfChecked,
- disabled: rawDisabled
- };
- });
- };
- var _useMergedState3 = useMergedState(props5.defaultValue, {
- value: toRef(props5, "value")
- }), _useMergedState4 = _slicedToArray(_useMergedState3, 2), internalValue = _useMergedState4[0], setInternalValue = _useMergedState4[1];
- var rawMixedLabeledValues = computed(function() {
- return toLabeledValues(internalValue.value);
- });
- var rawLabeledValues = shallowRef([]);
- var rawHalfLabeledValues = shallowRef([]);
- watchEffect(function() {
- var fullCheckValues = [];
- var halfCheckValues = [];
- rawMixedLabeledValues.value.forEach(function(item) {
- if (item.halfChecked) {
- halfCheckValues.push(item);
- } else {
- fullCheckValues.push(item);
- }
- });
- rawLabeledValues.value = fullCheckValues;
- rawHalfLabeledValues.value = halfCheckValues;
- });
- var rawValues = computed(function() {
- return rawLabeledValues.value.map(function(item) {
- return item.value;
- });
- });
- var _useMaxLevel = useMaxLevel(keyEntities), maxLevel = _useMaxLevel.maxLevel, levelEntities = _useMaxLevel.levelEntities;
- var _useCheckedKeys = useCheckedKeys_default(rawLabeledValues, rawHalfLabeledValues, treeConduction, keyEntities, maxLevel, levelEntities), _useCheckedKeys2 = _slicedToArray(_useCheckedKeys, 2), rawCheckedValues = _useCheckedKeys2[0], rawHalfCheckedValues = _useCheckedKeys2[1];
- var displayValues = computed(function() {
- var displayKeys = formatStrategyValues2(rawCheckedValues.value, props5.showCheckedStrategy, keyEntities.value, mergedFieldNames.value);
- var values = displayKeys.map(function(key2) {
- var _keyEntities$value$ke, _keyEntities$value$ke2, _keyEntities$value$ke3;
- return (_keyEntities$value$ke = (_keyEntities$value$ke2 = keyEntities.value[key2]) === null || _keyEntities$value$ke2 === void 0 ? void 0 : (_keyEntities$value$ke3 = _keyEntities$value$ke2.node) === null || _keyEntities$value$ke3 === void 0 ? void 0 : _keyEntities$value$ke3[mergedFieldNames.value.value]) !== null && _keyEntities$value$ke !== void 0 ? _keyEntities$value$ke : key2;
- });
- var labeledValues = values.map(function(val) {
- var targetItem = rawLabeledValues.value.find(function(item) {
- return item.value === val;
- });
- return {
- value: val,
- label: targetItem === null || targetItem === void 0 ? void 0 : targetItem.label
- };
- });
- var rawDisplayValues = convert2LabelValues(labeledValues);
- var firstVal = rawDisplayValues[0];
- if (!mergedMultiple.value && firstVal && isNil(firstVal.value) && isNil(firstVal.label)) {
- return [];
- }
- return rawDisplayValues.map(function(item) {
- var _item$label;
- return _objectSpread2(_objectSpread2({}, item), {}, {
- label: (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : item.value
- });
- });
- });
- var _useCache = useCache_default2(displayValues), _useCache2 = _slicedToArray(_useCache, 1), cachedDisplayValues = _useCache2[0];
- var triggerChange = function triggerChange2(newRawValues, extra, source) {
- var labeledValues = convert2LabelValues(newRawValues);
- setInternalValue(labeledValues);
- if (props5.autoClearSearchValue) {
- setSearchValue("");
- }
- if (props5.onChange) {
- var eventValues = newRawValues;
- if (treeConduction.value) {
- var formattedKeyList = formatStrategyValues2(newRawValues, props5.showCheckedStrategy, keyEntities.value, mergedFieldNames.value);
- eventValues = formattedKeyList.map(function(key2) {
- var entity = valueEntities.value.get(key2);
- return entity ? entity.node[mergedFieldNames.value.value] : key2;
- });
- }
- var _ref2 = extra || {
- triggerValue: void 0,
- selected: void 0
- }, triggerValue = _ref2.triggerValue, selected = _ref2.selected;
- var returnRawValues = eventValues;
- if (props5.treeCheckStrictly) {
- var halfValues = rawHalfLabeledValues.value.filter(function(item) {
- return !eventValues.includes(item.value);
- });
- returnRawValues = [].concat(_toConsumableArray(returnRawValues), _toConsumableArray(halfValues));
- }
- var returnLabeledValues = convert2LabelValues(returnRawValues);
- var additionalInfo = {
- // [Legacy] Always return as array contains label & value
- preValue: rawLabeledValues.value,
- triggerValue
- };
- var showPosition = true;
- if (props5.treeCheckStrictly || source === "selection" && !selected) {
- showPosition = false;
- }
- fillAdditionalInfo(additionalInfo, triggerValue, newRawValues, mergedTreeData.value, showPosition, mergedFieldNames.value);
- if (mergedCheckable.value) {
- additionalInfo.checked = selected;
- } else {
- additionalInfo.selected = selected;
- }
- var returnValues = mergedLabelInValue.value ? returnLabeledValues : returnLabeledValues.map(function(item) {
- return item.value;
- });
- props5.onChange(mergedMultiple.value ? returnValues : returnValues[0], mergedLabelInValue.value ? null : returnLabeledValues.map(function(item) {
- return item.label;
- }), additionalInfo);
- }
- };
- var onOptionSelect = function onOptionSelect2(selectedKey, _ref3) {
- var _node$mergedFieldName;
- var selected = _ref3.selected, source = _ref3.source;
- var keyEntitiesValue = toRaw(keyEntities.value);
- var valueEntitiesValue = toRaw(valueEntities.value);
- var entity = keyEntitiesValue[selectedKey];
- var node = entity === null || entity === void 0 ? void 0 : entity.node;
- var selectedValue = (_node$mergedFieldName = node === null || node === void 0 ? void 0 : node[mergedFieldNames.value.value]) !== null && _node$mergedFieldName !== void 0 ? _node$mergedFieldName : selectedKey;
- if (!mergedMultiple.value) {
- triggerChange([selectedValue], {
- selected: true,
- triggerValue: selectedValue
- }, "option");
- } else {
- var newRawValues = selected ? [].concat(_toConsumableArray(rawValues.value), [selectedValue]) : rawCheckedValues.value.filter(function(v2) {
- return v2 !== selectedValue;
- });
- if (treeConduction.value) {
- var _splitRawValues = splitRawValues(newRawValues), missingRawValues = _splitRawValues.missingRawValues, existRawValues = _splitRawValues.existRawValues;
- var keyList = existRawValues.map(function(val) {
- return valueEntitiesValue.get(val).key;
- });
- var checkedKeys;
- if (selected) {
- var _conductCheck = conductCheck(keyList, true, keyEntitiesValue, maxLevel.value, levelEntities.value);
- checkedKeys = _conductCheck.checkedKeys;
- } else {
- var _conductCheck2 = conductCheck(keyList, {
- checked: false,
- halfCheckedKeys: rawHalfCheckedValues.value
- }, keyEntitiesValue, maxLevel.value, levelEntities.value);
- checkedKeys = _conductCheck2.checkedKeys;
- }
- newRawValues = [].concat(_toConsumableArray(missingRawValues), _toConsumableArray(checkedKeys.map(function(key2) {
- return keyEntitiesValue[key2].node[mergedFieldNames.value.value];
- })));
- }
- triggerChange(newRawValues, {
- selected,
- triggerValue: selectedValue
- }, source || "option");
- }
- if (selected || !mergedMultiple.value) {
- var _props$onSelect;
- (_props$onSelect = props5.onSelect) === null || _props$onSelect === void 0 ? void 0 : _props$onSelect.call(props5, selectedValue, fillLegacyProps(node));
- } else {
- var _props$onDeselect;
- (_props$onDeselect = props5.onDeselect) === null || _props$onDeselect === void 0 ? void 0 : _props$onDeselect.call(props5, selectedValue, fillLegacyProps(node));
- }
- };
- var onInternalDropdownVisibleChange = function onInternalDropdownVisibleChange2(open2) {
- if (props5.onDropdownVisibleChange) {
- var legacyParam = {};
- Object.defineProperty(legacyParam, "documentClickClose", {
- get: function get3() {
- warning(false, "Second param of `onDropdownVisibleChange` has been removed.");
- return false;
- }
- });
- props5.onDropdownVisibleChange(open2, legacyParam);
- }
- };
- var onDisplayValuesChange = function onDisplayValuesChange2(newValues, info) {
- var newRawValues = newValues.map(function(item) {
- return item.value;
- });
- if (info.type === "clear") {
- triggerChange(newRawValues, {}, "selection");
- return;
- }
- if (info.values.length) {
- onOptionSelect(info.values[0].value, {
- selected: false,
- source: "selection"
- });
- }
- };
- var _toRefs = toRefs(props5), treeNodeFilterProp = _toRefs.treeNodeFilterProp, loadData = _toRefs.loadData, treeLoadedKeys = _toRefs.treeLoadedKeys, onTreeLoad = _toRefs.onTreeLoad, treeDefaultExpandAll = _toRefs.treeDefaultExpandAll, treeExpandedKeys = _toRefs.treeExpandedKeys, treeDefaultExpandedKeys = _toRefs.treeDefaultExpandedKeys, onTreeExpand = _toRefs.onTreeExpand, virtual = _toRefs.virtual, listHeight = _toRefs.listHeight, listItemHeight = _toRefs.listItemHeight, treeLine = _toRefs.treeLine, treeIcon = _toRefs.treeIcon, showTreeIcon = _toRefs.showTreeIcon, switcherIcon = _toRefs.switcherIcon, treeMotion = _toRefs.treeMotion, customSlots = _toRefs.customSlots;
- toRaw;
- useProvideLegacySelectContext(toReactive({
- checkable: mergedCheckable,
- loadData,
- treeLoadedKeys,
- onTreeLoad,
- checkedKeys: rawCheckedValues,
- halfCheckedKeys: rawHalfCheckedValues,
- treeDefaultExpandAll,
- treeExpandedKeys,
- treeDefaultExpandedKeys,
- onTreeExpand,
- treeIcon,
- treeMotion,
- showTreeIcon,
- switcherIcon,
- treeLine,
- treeNodeFilterProp,
- keyEntities,
- customSlots
- }));
- useProvideSelectContext(toReactive({
- virtual,
- listHeight,
- listItemHeight,
- treeData: filteredTreeData,
- fieldNames: mergedFieldNames,
- onSelect: onOptionSelect
- }));
- var selectRef = ref();
- expose({
- focus: function focus() {
- var _selectRef$value;
- (_selectRef$value = selectRef.value) === null || _selectRef$value === void 0 ? void 0 : _selectRef$value.focus();
- },
- blur: function blur() {
- var _selectRef$value2;
- (_selectRef$value2 = selectRef.value) === null || _selectRef$value2 === void 0 ? void 0 : _selectRef$value2.blur();
- },
- scrollTo: function scrollTo3(arg) {
- var _selectRef$value3;
- (_selectRef$value3 = selectRef.value) === null || _selectRef$value3 === void 0 ? void 0 : _selectRef$value3.scrollTo(arg);
- }
- });
- return function() {
- var _props$dropdownMatchS;
- var restProps = omit_default(props5, [
- "id",
- "prefixCls",
- // Value
- "value",
- "defaultValue",
- "onChange",
- "onSelect",
- "onDeselect",
- // Search
- "searchValue",
- "inputValue",
- "onSearch",
- "autoClearSearchValue",
- "filterTreeNode",
- "treeNodeFilterProp",
- // Selector
- "showCheckedStrategy",
- "treeNodeLabelProp",
- // Mode
- "multiple",
- "treeCheckable",
- "treeCheckStrictly",
- "labelInValue",
- // FieldNames
- "fieldNames",
- // Data
- "treeDataSimpleMode",
- "treeData",
- "children",
- "loadData",
- "treeLoadedKeys",
- "onTreeLoad",
- // Expanded
- "treeDefaultExpandAll",
- "treeExpandedKeys",
- "treeDefaultExpandedKeys",
- "onTreeExpand",
- // Options
- "virtual",
- "listHeight",
- "listItemHeight",
- "onDropdownVisibleChange",
- // Tree
- "treeLine",
- "treeIcon",
- "showTreeIcon",
- "switcherIcon",
- "treeMotion"
- ]);
- return createVNode(BaseSelect_default, _objectSpread2(_objectSpread2(_objectSpread2({
- "ref": selectRef
- }, attrs), restProps), {}, {
- "id": mergedId,
- "prefixCls": props5.prefixCls,
- "mode": mergedMultiple.value ? "multiple" : void 0,
- "displayValues": cachedDisplayValues.value,
- "onDisplayValuesChange": onDisplayValuesChange,
- "searchValue": mergedSearchValue.value,
- "onSearch": onInternalSearch,
- "OptionList": OptionList_default3,
- "emptyOptions": !mergedTreeData.value.length,
- "onDropdownVisibleChange": onInternalDropdownVisibleChange,
- "tagRender": props5.tagRender || slots.tagRender,
- "dropdownMatchSelectWidth": (_props$dropdownMatchS = props5.dropdownMatchSelectWidth) !== null && _props$dropdownMatchS !== void 0 ? _props$dropdownMatchS : true
- }), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-tree-select/index.js
- var vc_tree_select_default = TreeSelect_default;
- // node_modules/ant-design-vue/es/tree-select/index.js
- var getTransitionName4 = function getTransitionName5(rootPrefixCls, motion, transitionName2) {
- if (transitionName2 !== void 0) {
- return transitionName2;
- }
- return "".concat(rootPrefixCls, "-").concat(motion);
- };
- function treeSelectProps2() {
- return _objectSpread2(_objectSpread2({}, omit_default(treeSelectProps(), ["showTreeIcon", "treeMotion", "inputIcon", "getInputElement", "treeLine", "customSlots"])), {}, {
- suffixIcon: vue_types_default.any,
- size: {
- type: String
- },
- bordered: {
- type: Boolean,
- default: void 0
- },
- treeLine: {
- type: [Boolean, Object],
- default: void 0
- },
- replaceFields: {
- type: Object
- },
- "onUpdate:value": {
- type: Function
- },
- "onUpdate:treeExpandedKeys": {
- type: Function
- },
- "onUpdate:searchValue": {
- type: Function
- }
- });
- }
- var TreeSelect = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATreeSelect",
- inheritAttrs: false,
- props: initDefaultProps_default(treeSelectProps2(), {
- choiceTransitionName: "",
- listHeight: 256,
- treeIcon: false,
- listItemHeight: 26,
- bordered: true
- }),
- slots: ["title", "titleRender", "placeholder", "maxTagPlaceholder", "treeIcon", "switcherIcon", "notFoundContent"],
- setup: function setup208(props5, _ref) {
- var attrs = _ref.attrs, slots = _ref.slots, expose = _ref.expose, emit = _ref.emit;
- warning(!(props5.treeData === void 0 && slots.default), "`children` of TreeSelect is deprecated. Please use `treeData` instead.");
- watchEffect(function() {
- devWarning_default(props5.multiple !== false || !props5.treeCheckable, "TreeSelect", "`multiple` will always be `true` when `treeCheckable` is true");
- devWarning_default(props5.replaceFields === void 0, "TreeSelect", "`replaceFields` is deprecated, please use fieldNames instead");
- });
- var formItemContext = useInjectFormItemContext();
- var _useConfigInject = useConfigInject_default("select", props5), prefixCls = _useConfigInject.prefixCls, renderEmpty2 = _useConfigInject.renderEmpty, direction = _useConfigInject.direction, virtual = _useConfigInject.virtual, dropdownMatchSelectWidth = _useConfigInject.dropdownMatchSelectWidth, size = _useConfigInject.size, getPopupContainer = _useConfigInject.getPopupContainer, getPrefixCls2 = _useConfigInject.getPrefixCls;
- var rootPrefixCls = computed(function() {
- return getPrefixCls2();
- });
- var transitionName2 = computed(function() {
- return getTransitionName4(rootPrefixCls.value, "slide-up", props5.transitionName);
- });
- var choiceTransitionName = computed(function() {
- return getTransitionName4(rootPrefixCls.value, "", props5.choiceTransitionName);
- });
- var treePrefixCls = computed(function() {
- return getPrefixCls2("select-tree", props5.prefixCls);
- });
- var treeSelectPrefixCls = computed(function() {
- return getPrefixCls2("tree-select", props5.prefixCls);
- });
- var mergedDropdownClassName = computed(function() {
- return classNames_default(props5.dropdownClassName, "".concat(treeSelectPrefixCls.value, "-dropdown"), _defineProperty({}, "".concat(treeSelectPrefixCls.value, "-dropdown-rtl"), direction.value === "rtl"));
- });
- var isMultiple2 = computed(function() {
- return !!(props5.treeCheckable || props5.multiple);
- });
- var treeSelectRef = ref();
- expose({
- focus: function focus() {
- var _treeSelectRef$value$, _treeSelectRef$value;
- (_treeSelectRef$value$ = (_treeSelectRef$value = treeSelectRef.value).focus) === null || _treeSelectRef$value$ === void 0 ? void 0 : _treeSelectRef$value$.call(_treeSelectRef$value);
- },
- blur: function blur() {
- var _treeSelectRef$value$2, _treeSelectRef$value2;
- (_treeSelectRef$value$2 = (_treeSelectRef$value2 = treeSelectRef.value).blur) === null || _treeSelectRef$value$2 === void 0 ? void 0 : _treeSelectRef$value$2.call(_treeSelectRef$value2);
- }
- });
- var handleChange2 = function handleChange3() {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- emit("update:value", args[0]);
- emit.apply(void 0, ["change"].concat(args));
- formItemContext.onFieldChange();
- };
- var handleTreeExpand = function handleTreeExpand2(keys2) {
- emit("update:treeExpandedKeys", keys2);
- emit("treeExpand", keys2);
- };
- var handleSearch = function handleSearch2(value) {
- emit("update:searchValue", value);
- emit("search", value);
- };
- var handleBlur = function handleBlur2(e3) {
- emit("blur", e3);
- formItemContext.onFieldBlur();
- };
- return function() {
- var _slots$notFoundConten, _slots$switcherIcon, _classNames2;
- var _props$notFoundConten = props5.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? (_slots$notFoundConten = slots.notFoundContent) === null || _slots$notFoundConten === void 0 ? void 0 : _slots$notFoundConten.call(slots) : _props$notFoundConten, customizePrefixCls = props5.prefixCls, bordered = props5.bordered, listHeight = props5.listHeight, listItemHeight = props5.listItemHeight, multiple = props5.multiple, treeIcon = props5.treeIcon, treeLine = props5.treeLine, _props$switcherIcon = props5.switcherIcon, _switcherIcon = _props$switcherIcon === void 0 ? (_slots$switcherIcon = slots.switcherIcon) === null || _slots$switcherIcon === void 0 ? void 0 : _slots$switcherIcon.call(slots) : _props$switcherIcon, _props$fieldNames = props5.fieldNames, fieldNames = _props$fieldNames === void 0 ? props5.replaceFields : _props$fieldNames, _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id;
- var _getIcons = getIcons(_objectSpread2(_objectSpread2({}, props5), {}, {
- multiple: isMultiple2.value,
- prefixCls: prefixCls.value
- }), slots), suffixIcon = _getIcons.suffixIcon, removeIcon = _getIcons.removeIcon, clearIcon = _getIcons.clearIcon;
- var mergedNotFound;
- if (notFoundContent !== void 0) {
- mergedNotFound = notFoundContent;
- } else {
- mergedNotFound = renderEmpty2.value("Select");
- }
- var selectProps4 = omit_default(props5, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"]);
- var mergedClassName = classNames_default(!customizePrefixCls && treeSelectPrefixCls.value, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls.value, "-lg"), size.value === "large"), _defineProperty(_classNames2, "".concat(prefixCls.value, "-sm"), size.value === "small"), _defineProperty(_classNames2, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _defineProperty(_classNames2, "".concat(prefixCls.value, "-borderless"), !bordered), _classNames2), attrs.class);
- var otherProps = {};
- if (props5.treeData === void 0 && slots.default) {
- otherProps.children = flattenChildren(slots.default());
- }
- return createVNode(vc_tree_select_default, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, attrs), selectProps4), {}, {
- "virtual": virtual.value,
- "dropdownMatchSelectWidth": dropdownMatchSelectWidth.value,
- "id": id,
- "fieldNames": fieldNames,
- "ref": treeSelectRef,
- "prefixCls": prefixCls.value,
- "class": mergedClassName,
- "listHeight": listHeight,
- "listItemHeight": listItemHeight,
- "treeLine": !!treeLine,
- "inputIcon": suffixIcon,
- "multiple": multiple,
- "removeIcon": removeIcon,
- "clearIcon": clearIcon,
- "switcherIcon": function switcherIcon(nodeProps) {
- return renderSwitcherIcon(treePrefixCls.value, _switcherIcon, treeLine, nodeProps);
- },
- "showTreeIcon": treeIcon,
- "notFoundContent": mergedNotFound,
- "getPopupContainer": getPopupContainer.value,
- "treeMotion": null,
- "dropdownClassName": mergedDropdownClassName.value,
- "choiceTransitionName": choiceTransitionName.value,
- "onChange": handleChange2,
- "onBlur": handleBlur,
- "onSearch": handleSearch,
- "onTreeExpand": handleTreeExpand
- }, otherProps), {}, {
- "transitionName": transitionName2.value,
- "customSlots": _objectSpread2(_objectSpread2({}, slots), {}, {
- treeCheckable: function treeCheckable() {
- return createVNode("span", {
- "class": "".concat(prefixCls.value, "-tree-checkbox-inner")
- }, null);
- }
- }),
- "maxTagPlaceholder": props5.maxTagPlaceholder || slots.maxTagPlaceholder
- }), _objectSpread2(_objectSpread2({}, slots), {}, {
- treeCheckable: function treeCheckable() {
- return createVNode("span", {
- "class": "".concat(prefixCls.value, "-tree-checkbox-inner")
- }, null);
- }
- }));
- };
- }
- });
- var TreeSelectNode = TreeNode_default2;
- var tree_select_default = _extends(TreeSelect, {
- TreeNode: TreeNode_default2,
- SHOW_ALL,
- SHOW_PARENT: SHOW_PARENT2,
- SHOW_CHILD: SHOW_CHILD2,
- install: function install9(app) {
- app.component(TreeSelect.name, TreeSelect);
- app.component(TreeSelectNode.displayName, TreeSelectNode);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/time-picker/time-picker.js
- var timePickerProps = function timePickerProps2() {
- return {
- format: String,
- showNow: {
- type: Boolean,
- default: void 0
- },
- showHour: {
- type: Boolean,
- default: void 0
- },
- showMinute: {
- type: Boolean,
- default: void 0
- },
- showSecond: {
- type: Boolean,
- default: void 0
- },
- use12Hours: {
- type: Boolean,
- default: void 0
- },
- hourStep: Number,
- minuteStep: Number,
- secondStep: Number,
- hideDisabledOptions: {
- type: Boolean,
- default: void 0
- },
- popupClassName: String
- };
- };
- function createTimePicker(generateConfig2) {
- var DatePicker2 = generatePicker_default(generateConfig2, _objectSpread2(_objectSpread2({}, timePickerProps()), {}, {
- order: {
- type: Boolean,
- default: true
- }
- }));
- var InternalTimePicker = DatePicker2.TimePicker, InternalRangePicker = DatePicker2.RangePicker;
- var TimePicker3 = defineComponent({
- name: "ATimePicker",
- inheritAttrs: false,
- props: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, commonProps()), datePickerProps()), timePickerProps()), {}, {
- addon: {
- type: Function
- }
- }),
- slot: ["addon", "renderExtraFooter", "suffixIcon", "clearIcon"],
- setup: function setup220(props5, _ref) {
- var slots = _ref.slots, expose = _ref.expose, emit = _ref.emit, attrs = _ref.attrs;
- var formItemContext = useInjectFormItemContext();
- devWarning_default(!(slots.addon || props5.addon), "TimePicker", "`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");
- var pickerRef = ref();
- expose({
- focus: function focus() {
- var _pickerRef$value;
- (_pickerRef$value = pickerRef.value) === null || _pickerRef$value === void 0 ? void 0 : _pickerRef$value.focus();
- },
- blur: function blur() {
- var _pickerRef$value2;
- (_pickerRef$value2 = pickerRef.value) === null || _pickerRef$value2 === void 0 ? void 0 : _pickerRef$value2.blur();
- }
- });
- var onChange3 = function onChange4(value, dateString) {
- emit("update:value", value);
- emit("change", value, dateString);
- formItemContext.onFieldChange();
- };
- var onOpenChange = function onOpenChange2(open2) {
- emit("update:open", open2);
- emit("openChange", open2);
- };
- var onFocus2 = function onFocus3(e3) {
- emit("focus", e3);
- };
- var onBlur2 = function onBlur3(e3) {
- emit("blur", e3);
- formItemContext.onFieldBlur();
- };
- var onOk = function onOk2(value) {
- emit("ok", value);
- };
- return function() {
- var _props$id = props5.id, id = _props$id === void 0 ? formItemContext.id.value : _props$id;
- return createVNode(InternalTimePicker, _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), omit_default(props5, ["onUpdate:value", "onUpdate:open"])), {}, {
- "id": id,
- "dropdownClassName": props5.popupClassName,
- "mode": void 0,
- "ref": pickerRef,
- "renderExtraFooter": props5.addon || slots.addon || props5.renderExtraFooter || slots.renderExtraFooter,
- "onChange": onChange3,
- "onOpenChange": onOpenChange,
- "onFocus": onFocus2,
- "onBlur": onBlur2,
- "onOk": onOk
- }), slots);
- };
- }
- });
- var TimeRangePicker2 = defineComponent({
- name: "ATimeRangePicker",
- inheritAttrs: false,
- props: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, commonProps()), rangePickerProps()), timePickerProps()), {}, {
- order: {
- type: Boolean,
- default: true
- }
- }),
- slot: ["renderExtraFooter", "suffixIcon", "clearIcon"],
- setup: function setup220(props5, _ref2) {
- var slots = _ref2.slots, expose = _ref2.expose, emit = _ref2.emit, attrs = _ref2.attrs;
- var pickerRef = ref();
- var formItemContext = useInjectFormItemContext();
- expose({
- focus: function focus() {
- var _pickerRef$value3;
- (_pickerRef$value3 = pickerRef.value) === null || _pickerRef$value3 === void 0 ? void 0 : _pickerRef$value3.focus();
- },
- blur: function blur() {
- var _pickerRef$value4;
- (_pickerRef$value4 = pickerRef.value) === null || _pickerRef$value4 === void 0 ? void 0 : _pickerRef$value4.blur();
- }
- });
- var onChange3 = function onChange4(values, dateStrings) {
- emit("update:value", values);
- emit("change", values, dateStrings);
- formItemContext.onFieldChange();
- };
- var onOpenChange = function onOpenChange2(open2) {
- emit("update:open", open2);
- emit("openChange", open2);
- };
- var onFocus2 = function onFocus3(e3) {
- emit("focus", e3);
- };
- var onBlur2 = function onBlur3(e3) {
- emit("blur", e3);
- formItemContext.onFieldBlur();
- };
- var onPanelChange = function onPanelChange2(values, modes) {
- emit("panelChange", values, modes);
- };
- var onOk = function onOk2(values) {
- emit("ok", values);
- };
- var onCalendarChange = function onCalendarChange2(values, dateStrings, info) {
- emit("calendarChange", values, dateStrings, info);
- };
- return function() {
- var _props$id2 = props5.id, id = _props$id2 === void 0 ? formItemContext.id.value : _props$id2;
- return createVNode(InternalRangePicker, _objectSpread2(_objectSpread2(_objectSpread2({}, attrs), omit_default(props5, ["onUpdate:open", "onUpdate:value"])), {}, {
- "id": id,
- "dropdownClassName": props5.popupClassName,
- "picker": "time",
- "mode": void 0,
- "ref": pickerRef,
- "onChange": onChange3,
- "onOpenChange": onOpenChange,
- "onFocus": onFocus2,
- "onBlur": onBlur2,
- "onPanelChange": onPanelChange,
- "onOk": onOk,
- "onCalendarChange": onCalendarChange
- }), slots);
- };
- }
- });
- return {
- TimePicker: TimePicker3,
- TimeRangePicker: TimeRangePicker2
- };
- }
- var time_picker_default = createTimePicker;
- // node_modules/ant-design-vue/es/time-picker/dayjs.js
- var _createTimePicker = time_picker_default(dayjs_default);
- var TimePicker2 = _createTimePicker.TimePicker;
- var TimeRangePicker = _createTimePicker.TimeRangePicker;
- var dayjs_default4 = _extends(TimePicker2, {
- TimePicker: TimePicker2,
- TimeRangePicker,
- install: function install10(app) {
- app.component(TimePicker2.name, TimePicker2);
- app.component(TimeRangePicker.name, TimeRangePicker);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/time-picker/index.js
- var time_picker_default2 = dayjs_default4;
- // node_modules/ant-design-vue/es/timeline/TimelineItem.js
- var timelineItemProps = function timelineItemProps2() {
- return {
- prefixCls: String,
- color: String,
- dot: vue_types_default.any,
- pending: {
- type: Boolean,
- default: void 0
- },
- position: vue_types_default.oneOf(tuple("left", "right", "")).def(""),
- label: vue_types_default.any
- };
- };
- var TimelineItem_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATimelineItem",
- props: initDefaultProps_default(timelineItemProps(), {
- color: "blue",
- pending: false
- }),
- slots: ["dot", "label"],
- setup: function setup209(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("timeline", props5), prefixCls = _useConfigInject.prefixCls;
- return function() {
- var _slots$label, _slots$dot, _classNames, _classNames2, _slots$default;
- var _props$color = props5.color, color = _props$color === void 0 ? "" : _props$color, pending = props5.pending, _props$label = props5.label, label = _props$label === void 0 ? (_slots$label = slots.label) === null || _slots$label === void 0 ? void 0 : _slots$label.call(slots) : _props$label, _props$dot = props5.dot, dot = _props$dot === void 0 ? (_slots$dot = slots.dot) === null || _slots$dot === void 0 ? void 0 : _slots$dot.call(slots) : _props$dot;
- var itemClassName = classNames_default((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-item"), true), _defineProperty(_classNames, "".concat(prefixCls.value, "-item-pending"), pending), _classNames));
- var dotClassName = classNames_default((_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls.value, "-item-head"), true), _defineProperty(_classNames2, "".concat(prefixCls.value, "-item-head-custom"), dot), _defineProperty(_classNames2, "".concat(prefixCls.value, "-item-head-").concat(color), true), _classNames2));
- var customColor = /blue|red|green|gray/.test(color || "") ? void 0 : color;
- return createVNode("li", {
- "class": itemClassName
- }, [label && createVNode("div", {
- "class": "".concat(prefixCls.value, "-item-label")
- }, [label]), createVNode("div", {
- "class": "".concat(prefixCls.value, "-item-tail")
- }, null), createVNode("div", {
- "class": dotClassName,
- "style": {
- borderColor: customColor,
- color: customColor
- }
- }, [dot]), createVNode("div", {
- "class": "".concat(prefixCls.value, "-item-content")
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)])]);
- };
- }
- });
- // node_modules/ant-design-vue/es/timeline/Timeline.js
- var timelineProps = function timelineProps2() {
- return {
- prefixCls: String,
- /** 指定最后一个幽灵节点是否存在或内容 */
- pending: vue_types_default.any,
- pendingDot: vue_types_default.any,
- reverse: {
- type: Boolean,
- default: void 0
- },
- mode: vue_types_default.oneOf(tuple("left", "alternate", "right", ""))
- };
- };
- var Timeline_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ATimeline",
- props: initDefaultProps_default(timelineProps(), {
- reverse: false,
- mode: ""
- }),
- slots: ["pending", "pendingDot"],
- setup: function setup210(props5, _ref) {
- var slots = _ref.slots;
- var _useConfigInject = useConfigInject_default("timeline", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var getPositionCls = function getPositionCls2(ele, idx) {
- var eleProps = ele.props || {};
- if (props5.mode === "alternate") {
- if (eleProps.position === "right")
- return "".concat(prefixCls.value, "-item-right");
- if (eleProps.position === "left")
- return "".concat(prefixCls.value, "-item-left");
- return idx % 2 === 0 ? "".concat(prefixCls.value, "-item-left") : "".concat(prefixCls.value, "-item-right");
- }
- if (props5.mode === "left")
- return "".concat(prefixCls.value, "-item-left");
- if (props5.mode === "right")
- return "".concat(prefixCls.value, "-item-right");
- if (eleProps.position === "right")
- return "".concat(prefixCls.value, "-item-right");
- return "";
- };
- return function() {
- var _slots$pending, _slots$pendingDot, _slots$default, _classNames;
- var _props$pending = props5.pending, pending = _props$pending === void 0 ? (_slots$pending = slots.pending) === null || _slots$pending === void 0 ? void 0 : _slots$pending.call(slots) : _props$pending, _props$pendingDot = props5.pendingDot, pendingDot = _props$pendingDot === void 0 ? (_slots$pendingDot = slots.pendingDot) === null || _slots$pendingDot === void 0 ? void 0 : _slots$pendingDot.call(slots) : _props$pendingDot, reverse = props5.reverse, mode = props5.mode;
- var pendingNode = typeof pending === "boolean" ? null : pending;
- var children = filterEmpty((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots));
- var pendingItem = pending ? createVNode(TimelineItem_default, {
- "pending": !!pending,
- "dot": pendingDot || createVNode(LoadingOutlined_default, null, null)
- }, {
- default: function _default9() {
- return [pendingNode];
- }
- }) : null;
- if (pendingItem) {
- children.push(pendingItem);
- }
- var timeLineItems = reverse ? children.reverse() : children;
- var itemsCount = timeLineItems.length;
- var lastCls = "".concat(prefixCls.value, "-item-last");
- var items = timeLineItems.map(function(ele, idx) {
- var pendingClass = idx === itemsCount - 2 ? lastCls : "";
- var readyClass = idx === itemsCount - 1 ? lastCls : "";
- return cloneVNode(ele, {
- class: classNames_default([!reverse && !!pending ? pendingClass : readyClass, getPositionCls(ele, idx)])
- });
- });
- var hasLabelItem = timeLineItems.some(function(item) {
- var _item$props, _item$children;
- return !!((_item$props = item.props) !== null && _item$props !== void 0 && _item$props.label || (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.label);
- });
- var classString = classNames_default(prefixCls.value, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-pending"), !!pending), _defineProperty(_classNames, "".concat(prefixCls.value, "-reverse"), !!reverse), _defineProperty(_classNames, "".concat(prefixCls.value, "-").concat(mode), !!mode && !hasLabelItem), _defineProperty(_classNames, "".concat(prefixCls.value, "-label"), hasLabelItem), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _classNames));
- return createVNode("ul", {
- "class": classString
- }, [items]);
- };
- }
- });
- // node_modules/ant-design-vue/es/timeline/index.js
- Timeline_default.Item = TimelineItem_default;
- Timeline_default.install = function(app) {
- app.component(Timeline_default.name, Timeline_default);
- app.component(TimelineItem_default.name, TimelineItem_default);
- return app;
- };
- var timeline_default = Timeline_default;
- // node_modules/ant-design-vue/es/typography/Editable.js
- var editableProps = function editableProps2() {
- return {
- prefixCls: String,
- value: String,
- maxlength: Number,
- autoSize: {
- type: [Boolean, Object]
- },
- onSave: Function,
- onCancel: Function,
- onEnd: Function,
- onChange: Function,
- originContent: String,
- direction: String
- };
- };
- var Editable = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Editable",
- props: editableProps(),
- // emits: ['save', 'cancel', 'end', 'change'],
- setup: function setup211(props5, _ref) {
- var emit = _ref.emit, slots = _ref.slots;
- var state = reactive({
- current: props5.value || "",
- lastKeyCode: void 0,
- inComposition: false,
- cancelFlag: false
- });
- watch(function() {
- return props5.value;
- }, function(current2) {
- state.current = current2;
- });
- var textArea = ref();
- onMounted(function() {
- if (textArea.value) {
- var _textArea$value;
- var resizableTextArea = (_textArea$value = textArea.value) === null || _textArea$value === void 0 ? void 0 : _textArea$value.resizableTextArea;
- var innerTextArea = resizableTextArea === null || resizableTextArea === void 0 ? void 0 : resizableTextArea.textArea;
- innerTextArea.focus();
- var length = innerTextArea.value.length;
- innerTextArea.setSelectionRange(length, length);
- }
- });
- function saveTextAreaRef(node) {
- textArea.value = node;
- }
- function onChange3(_ref2) {
- var value = _ref2.target.value;
- state.current = value.replace(/[\r\n]/g, "");
- emit("change", state.current);
- }
- function onCompositionStart2() {
- state.inComposition = true;
- }
- function onCompositionEnd2() {
- state.inComposition = false;
- }
- function onKeyDown(e3) {
- var keyCode = e3.keyCode;
- if (keyCode === KeyCode_default.ENTER) {
- e3.preventDefault();
- }
- if (state.inComposition)
- return;
- state.lastKeyCode = keyCode;
- }
- function onKeyUp(e3) {
- var keyCode = e3.keyCode, ctrlKey = e3.ctrlKey, altKey = e3.altKey, metaKey = e3.metaKey, shiftKey = e3.shiftKey;
- if (state.lastKeyCode === keyCode && !state.inComposition && !ctrlKey && !altKey && !metaKey && !shiftKey) {
- if (keyCode === KeyCode_default.ENTER) {
- confirmChange();
- emit("end");
- } else if (keyCode === KeyCode_default.ESC) {
- state.current = props5.originContent;
- emit("cancel");
- }
- }
- }
- function onBlur2() {
- confirmChange();
- }
- function confirmChange() {
- emit("save", state.current.trim());
- }
- var textAreaClassName = computed(function() {
- var _ref3;
- return _ref3 = {}, _defineProperty(_ref3, "".concat(props5.prefixCls), true), _defineProperty(_ref3, "".concat(props5.prefixCls, "-edit-content"), true), _defineProperty(_ref3, "".concat(props5.prefixCls, "-rtl"), props5.direction === "rtl"), _ref3;
- });
- return function() {
- return createVNode("div", {
- "class": textAreaClassName.value
- }, [createVNode(TextArea_default, {
- "ref": saveTextAreaRef,
- "maxlength": props5.maxlength,
- "value": state.current,
- "onChange": onChange3,
- "onKeydown": onKeyDown,
- "onKeyup": onKeyUp,
- "onCompositionstart": onCompositionStart2,
- "onCompositionend": onCompositionEnd2,
- "onBlur": onBlur2,
- "rows": 1,
- "autoSize": props5.autoSize === void 0 || props5.autoSize
- }, null), slots.enterIcon ? slots.enterIcon({
- className: "".concat(props5.prefixCls, "-edit-content-confirm")
- }) : createVNode(EnterOutlined_default, {
- "class": "".concat(props5.prefixCls, "-edit-content-confirm")
- }, null)]);
- };
- }
- });
- var Editable_default = Editable;
- // node_modules/ant-design-vue/es/typography/util.js
- var TEXT_NODE = 3;
- var COMMENT_NODE = 8;
- var ellipsisContainer;
- var wrapperStyle = {
- padding: 0,
- margin: 0,
- display: "inline",
- lineHeight: "inherit"
- };
- function styleToString(style) {
- var styleNames = Array.prototype.slice.apply(style);
- return styleNames.map(function(name) {
- return "".concat(name, ": ").concat(style.getPropertyValue(name), ";");
- }).join("");
- }
- function resetDomStyles(target, origin) {
- target.setAttribute("aria-hidden", "true");
- var originStyle = window.getComputedStyle(origin);
- var originCSS = styleToString(originStyle);
- target.setAttribute("style", originCSS);
- target.style.position = "fixed";
- target.style.left = "0";
- target.style.height = "auto";
- target.style.minHeight = "auto";
- target.style.maxHeight = "auto";
- target.style.paddingTop = "0";
- target.style.paddingBottom = "0";
- target.style.borderTopWidth = "0";
- target.style.borderBottomWidth = "0";
- target.style.top = "-999999px";
- target.style.zIndex = "-1000";
- target.style.textOverflow = "clip";
- target.style.whiteSpace = "normal";
- target.style.webkitLineClamp = "none";
- }
- function getRealLineHeight(originElement) {
- var heightContainer = document.createElement("div");
- resetDomStyles(heightContainer, originElement);
- heightContainer.appendChild(document.createTextNode("text"));
- document.body.appendChild(heightContainer);
- var realHeight = heightContainer.getBoundingClientRect().height;
- document.body.removeChild(heightContainer);
- return realHeight;
- }
- var util_default = function(originElement, option, content, fixedContent, ellipsisStr) {
- if (!ellipsisContainer) {
- ellipsisContainer = document.createElement("div");
- ellipsisContainer.setAttribute("aria-hidden", "true");
- document.body.appendChild(ellipsisContainer);
- }
- var rows = option.rows, _option$suffix = option.suffix, suffix = _option$suffix === void 0 ? "" : _option$suffix;
- var lineHeight = getRealLineHeight(originElement);
- var maxHeight = Math.round(lineHeight * rows * 100) / 100;
- resetDomStyles(ellipsisContainer, originElement);
- var vm = createApp({
- render: function render12() {
- return createVNode("div", {
- "style": wrapperStyle
- }, [createVNode("span", {
- "style": wrapperStyle
- }, [content, suffix]), createVNode("span", {
- "style": wrapperStyle
- }, [fixedContent])]);
- }
- });
- vm.mount(ellipsisContainer);
- function inRange() {
- var currentHeight = Math.round(ellipsisContainer.getBoundingClientRect().height * 100) / 100;
- return currentHeight - 0.1 <= maxHeight;
- }
- if (inRange()) {
- vm.unmount();
- return {
- content,
- text: ellipsisContainer.innerHTML,
- ellipsis: false
- };
- }
- var childNodes = Array.prototype.slice.apply(ellipsisContainer.childNodes[0].childNodes[0].cloneNode(true).childNodes).filter(function(_ref) {
- var nodeType = _ref.nodeType, data8 = _ref.data;
- return nodeType !== COMMENT_NODE && data8 !== "";
- });
- var fixedNodes = Array.prototype.slice.apply(ellipsisContainer.childNodes[0].childNodes[1].cloneNode(true).childNodes);
- vm.unmount();
- var ellipsisChildren = [];
- ellipsisContainer.innerHTML = "";
- var ellipsisContentHolder = document.createElement("span");
- ellipsisContainer.appendChild(ellipsisContentHolder);
- var ellipsisTextNode = document.createTextNode(ellipsisStr + suffix);
- ellipsisContentHolder.appendChild(ellipsisTextNode);
- fixedNodes.forEach(function(childNode) {
- ellipsisContainer.appendChild(childNode);
- });
- function appendChildNode(node) {
- ellipsisContentHolder.insertBefore(node, ellipsisTextNode);
- }
- function measureText(textNode, fullText) {
- var startLoc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
- var endLoc = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : fullText.length;
- var lastSuccessLoc = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
- var midLoc = Math.floor((startLoc + endLoc) / 2);
- var currentText = fullText.slice(0, midLoc);
- textNode.textContent = currentText;
- if (startLoc >= endLoc - 1) {
- for (var step = endLoc; step >= startLoc; step -= 1) {
- var currentStepText = fullText.slice(0, step);
- textNode.textContent = currentStepText;
- if (inRange() || !currentStepText) {
- return step === fullText.length ? {
- finished: false,
- vNode: fullText
- } : {
- finished: true,
- vNode: currentStepText
- };
- }
- }
- }
- if (inRange()) {
- return measureText(textNode, fullText, midLoc, endLoc, midLoc);
- }
- return measureText(textNode, fullText, startLoc, midLoc, lastSuccessLoc);
- }
- function measureNode(childNode) {
- var type4 = childNode.nodeType;
- if (type4 === TEXT_NODE) {
- var fullText = childNode.textContent || "";
- var textNode = document.createTextNode(fullText);
- appendChildNode(textNode);
- return measureText(textNode, fullText);
- }
- return {
- finished: false,
- vNode: null
- };
- }
- childNodes.some(function(childNode) {
- var _measureNode = measureNode(childNode), finished = _measureNode.finished, vNode = _measureNode.vNode;
- if (vNode) {
- ellipsisChildren.push(vNode);
- }
- return finished;
- });
- return {
- content: ellipsisChildren,
- text: ellipsisContainer.innerHTML,
- ellipsis: true
- };
- };
- // node_modules/ant-design-vue/es/typography/Typography.js
- var _excluded63 = ["prefixCls", "class", "direction", "component"];
- var typographyProps = function typographyProps2() {
- return {
- prefixCls: String,
- direction: String,
- // Form Internal use
- component: String
- };
- };
- var Typography = defineComponent({
- name: "ATypography",
- inheritAttrs: false,
- props: typographyProps(),
- setup: function setup212(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _useConfigInject = useConfigInject_default("typography", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- return function() {
- var _slots$default;
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), _prefixCls = _props$attrs.prefixCls, _className = _props$attrs.class, _direction = _props$attrs.direction, _props$attrs$componen = _props$attrs.component, Component = _props$attrs$componen === void 0 ? "article" : _props$attrs$componen, restProps = _objectWithoutProperties(_props$attrs, _excluded63);
- return createVNode(Component, _objectSpread2({
- "class": classNames_default(prefixCls.value, _defineProperty({}, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), attrs.class)
- }, restProps), {
- default: function _default9() {
- return [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)];
- }
- });
- };
- }
- });
- var Typography_default = Typography;
- // node_modules/ant-design-vue/es/_util/copy-to-clipboard/toggle-selection.js
- var deselectCurrent = function deselectCurrent2() {
- var selection = document.getSelection();
- if (!selection.rangeCount) {
- return function() {
- };
- }
- var active = document.activeElement;
- var ranges = [];
- for (var i3 = 0; i3 < selection.rangeCount; i3++) {
- ranges.push(selection.getRangeAt(i3));
- }
- switch (active.tagName.toUpperCase()) {
- case "INPUT":
- case "TEXTAREA":
- active.blur();
- break;
- default:
- active = null;
- break;
- }
- selection.removeAllRanges();
- return function() {
- selection.type === "Caret" && selection.removeAllRanges();
- if (!selection.rangeCount) {
- ranges.forEach(function(range3) {
- selection.addRange(range3);
- });
- }
- active && active.focus();
- };
- };
- var toggle_selection_default = deselectCurrent;
- // node_modules/ant-design-vue/es/_util/copy-to-clipboard/index.js
- var clipboardToIE11Formatting = {
- "text/plain": "Text",
- "text/html": "Url",
- default: "Text"
- };
- var defaultMessage = "Copy to clipboard: #{key}, Enter";
- function format3(message) {
- var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
- return message.replace(/#{\s*key\s*}/g, copyKey);
- }
- function copy(text, options) {
- var message, reselectPrevious, range3, selection, mark, success = false;
- if (!options) {
- options = {};
- }
- var debug = options.debug || false;
- try {
- reselectPrevious = toggle_selection_default();
- range3 = document.createRange();
- selection = document.getSelection();
- mark = document.createElement("span");
- mark.textContent = text;
- mark.style.all = "unset";
- mark.style.position = "fixed";
- mark.style.top = 0;
- mark.style.clip = "rect(0, 0, 0, 0)";
- mark.style.whiteSpace = "pre";
- mark.style.webkitUserSelect = "text";
- mark.style.MozUserSelect = "text";
- mark.style.msUserSelect = "text";
- mark.style.userSelect = "text";
- mark.addEventListener("copy", function(e3) {
- e3.stopPropagation();
- if (options.format) {
- e3.preventDefault();
- if (typeof e3.clipboardData === "undefined") {
- debug && console.warn("unable to use e.clipboardData");
- debug && console.warn("trying IE specific stuff");
- window.clipboardData.clearData();
- var _format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"];
- window.clipboardData.setData(_format, text);
- } else {
- e3.clipboardData.clearData();
- e3.clipboardData.setData(options.format, text);
- }
- }
- if (options.onCopy) {
- e3.preventDefault();
- options.onCopy(e3.clipboardData);
- }
- });
- document.body.appendChild(mark);
- range3.selectNodeContents(mark);
- selection.addRange(range3);
- var successful = document.execCommand("copy");
- if (!successful) {
- throw new Error("copy command was unsuccessful");
- }
- success = true;
- } catch (err) {
- debug && console.error("unable to copy using execCommand: ", err);
- debug && console.warn("trying IE specific stuff");
- try {
- window.clipboardData.setData(options.format || "text", text);
- options.onCopy && options.onCopy(window.clipboardData);
- success = true;
- } catch (err2) {
- debug && console.error("unable to copy using clipboardData: ", err2);
- debug && console.error("falling back to prompt");
- message = format3("message" in options ? options.message : defaultMessage);
- window.prompt(message, text);
- }
- } finally {
- if (selection) {
- if (typeof selection.removeRange == "function") {
- selection.removeRange(range3);
- } else {
- selection.removeAllRanges();
- }
- }
- if (mark) {
- document.body.removeChild(mark);
- }
- reselectPrevious();
- }
- return success;
- }
- var copy_to_clipboard_default = copy;
- // node_modules/ant-design-vue/es/typography/Base.js
- var _excluded64 = ["type", "disabled", "content", "class", "style"];
- var isLineClampSupport = isStyleSupport("webkitLineClamp");
- var isTextOverflowSupport = isStyleSupport("textOverflow");
- var ELLIPSIS_STR = "...";
- var baseProps2 = function baseProps3() {
- return {
- editable: {
- type: [Boolean, Object],
- default: void 0
- },
- copyable: {
- type: [Boolean, Object],
- default: void 0
- },
- prefixCls: String,
- component: String,
- type: String,
- disabled: {
- type: Boolean,
- default: void 0
- },
- ellipsis: {
- type: [Boolean, Object],
- default: void 0
- },
- code: {
- type: Boolean,
- default: void 0
- },
- mark: {
- type: Boolean,
- default: void 0
- },
- underline: {
- type: Boolean,
- default: void 0
- },
- delete: {
- type: Boolean,
- default: void 0
- },
- strong: {
- type: Boolean,
- default: void 0
- },
- keyboard: {
- type: Boolean,
- default: void 0
- },
- content: String,
- "onUpdate:content": Function
- };
- };
- var Base = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Base",
- inheritAttrs: false,
- props: baseProps2(),
- // emits: ['update:content'],
- setup: function setup213(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, emit = _ref.emit;
- var _useConfigInject = useConfigInject_default("typography", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var state = reactive({
- copied: false,
- ellipsisText: "",
- ellipsisContent: null,
- isEllipsis: false,
- expanded: false,
- clientRendered: false,
- //locale
- expandStr: "",
- copyStr: "",
- copiedStr: "",
- editStr: "",
- copyId: void 0,
- rafId: void 0,
- prevProps: void 0,
- originContent: ""
- });
- var contentRef = ref();
- var editIcon = ref();
- var ellipsis = computed(function() {
- var ellipsis2 = props5.ellipsis;
- if (!ellipsis2)
- return {};
- return _objectSpread2({
- rows: 1,
- expandable: false
- }, _typeof(ellipsis2) === "object" ? ellipsis2 : null);
- });
- onMounted(function() {
- state.clientRendered = true;
- });
- onBeforeUnmount(function() {
- clearTimeout(state.copyId);
- wrapperRaf.cancel(state.rafId);
- });
- watch([function() {
- return ellipsis.value.rows;
- }, function() {
- return props5.content;
- }], function() {
- nextTick(function() {
- resizeOnNextFrame();
- });
- }, {
- flush: "post",
- deep: true,
- immediate: true
- });
- watchEffect(function() {
- if (props5.content === void 0) {
- warning_default2(!props5.editable, "Typography", "When `editable` is enabled, please use `content` instead of children");
- warning_default2(!props5.ellipsis, "Typography", "When `ellipsis` is enabled, please use `content` instead of children");
- }
- });
- function getChildrenText() {
- var _contentRef$value, _contentRef$value$$el;
- return props5.ellipsis || props5.editable ? props5.content : (_contentRef$value = contentRef.value) === null || _contentRef$value === void 0 ? void 0 : (_contentRef$value$$el = _contentRef$value.$el) === null || _contentRef$value$$el === void 0 ? void 0 : _contentRef$value$$el.innerText;
- }
- function onExpandClick(e3) {
- var onExpand = ellipsis.value.onExpand;
- state.expanded = true;
- onExpand === null || onExpand === void 0 ? void 0 : onExpand(e3);
- }
- function onEditClick(e3) {
- e3.preventDefault();
- state.originContent = props5.content;
- triggerEdit(true);
- }
- function onEditChange(value) {
- onContentChange(value);
- triggerEdit(false);
- }
- function onContentChange(value) {
- var onChange3 = editable.value.onChange;
- if (value !== props5.content) {
- emit("update:content", value);
- onChange3 === null || onChange3 === void 0 ? void 0 : onChange3(value);
- }
- }
- function onEditCancel() {
- var _editable$value$onCan, _editable$value;
- (_editable$value$onCan = (_editable$value = editable.value).onCancel) === null || _editable$value$onCan === void 0 ? void 0 : _editable$value$onCan.call(_editable$value);
- triggerEdit(false);
- }
- function onCopyClick(e3) {
- e3.preventDefault();
- e3.stopPropagation();
- var copyable = props5.copyable;
- var copyConfig = _objectSpread2({}, _typeof(copyable) === "object" ? copyable : null);
- if (copyConfig.text === void 0) {
- copyConfig.text = getChildrenText();
- }
- copy_to_clipboard_default(copyConfig.text || "");
- state.copied = true;
- nextTick(function() {
- if (copyConfig.onCopy) {
- copyConfig.onCopy();
- }
- state.copyId = setTimeout(function() {
- state.copied = false;
- }, 3e3);
- });
- }
- var editable = computed(function() {
- var editable2 = props5.editable;
- if (!editable2)
- return {
- editing: false
- };
- return _objectSpread2({}, _typeof(editable2) === "object" ? editable2 : null);
- });
- var _useMergedState = useMergedState(false, {
- value: computed(function() {
- return editable.value.editing;
- })
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), editing = _useMergedState2[0], setEditing = _useMergedState2[1];
- function triggerEdit(edit) {
- var onStart3 = editable.value.onStart;
- if (edit && onStart3) {
- onStart3();
- }
- setEditing(edit);
- }
- watch(editing, function(val) {
- if (!val) {
- var _editIcon$value;
- (_editIcon$value = editIcon.value) === null || _editIcon$value === void 0 ? void 0 : _editIcon$value.focus();
- }
- }, {
- flush: "post"
- });
- function resizeOnNextFrame() {
- wrapperRaf.cancel(state.rafId);
- state.rafId = wrapperRaf(function() {
- syncEllipsis();
- });
- }
- var canUseCSSEllipsis = computed(function() {
- var _ellipsis$value = ellipsis.value, rows = _ellipsis$value.rows, expandable = _ellipsis$value.expandable, suffix = _ellipsis$value.suffix, onEllipsis = _ellipsis$value.onEllipsis, tooltip = _ellipsis$value.tooltip;
- if (suffix || tooltip)
- return false;
- if (props5.editable || props5.copyable || expandable || onEllipsis) {
- return false;
- }
- if (rows === 1) {
- return isTextOverflowSupport;
- }
- return isLineClampSupport;
- });
- var syncEllipsis = function syncEllipsis2() {
- var _contentRef$value2, _contentRef$value3;
- var ellipsisText = state.ellipsisText, isEllipsis = state.isEllipsis;
- var _ellipsis$value2 = ellipsis.value, rows = _ellipsis$value2.rows, suffix = _ellipsis$value2.suffix, onEllipsis = _ellipsis$value2.onEllipsis;
- if (!rows || rows < 0 || !((_contentRef$value2 = contentRef.value) !== null && _contentRef$value2 !== void 0 && _contentRef$value2.$el) || state.expanded || props5.content === void 0)
- return;
- if (canUseCSSEllipsis.value)
- return;
- var _measure = util_default((_contentRef$value3 = contentRef.value) === null || _contentRef$value3 === void 0 ? void 0 : _contentRef$value3.$el, {
- rows,
- suffix
- }, props5.content, renderOperations(true), ELLIPSIS_STR), content = _measure.content, text = _measure.text, ell = _measure.ellipsis;
- if (ellipsisText !== text || state.isEllipsis !== ell) {
- state.ellipsisText = text;
- state.ellipsisContent = content;
- state.isEllipsis = ell;
- if (isEllipsis !== ell && onEllipsis) {
- onEllipsis(ell);
- }
- }
- };
- function wrapperDecorations(_ref2, content) {
- var mark = _ref2.mark, code = _ref2.code, underline = _ref2.underline, del = _ref2.delete, strong = _ref2.strong, keyboard = _ref2.keyboard;
- var currentContent = content;
- function wrap(needed, Tag2) {
- if (!needed)
- return;
- var _currentContent = function() {
- return currentContent;
- }();
- currentContent = createVNode(Tag2, null, {
- default: function _default9() {
- return [_currentContent];
- }
- });
- }
- wrap(strong, "strong");
- wrap(underline, "u");
- wrap(del, "del");
- wrap(code, "code");
- wrap(mark, "mark");
- wrap(keyboard, "kbd");
- return currentContent;
- }
- function renderExpand(forceRender) {
- var _ellipsis$value3 = ellipsis.value, expandable = _ellipsis$value3.expandable, symbol = _ellipsis$value3.symbol;
- if (!expandable)
- return null;
- if (!forceRender && (state.expanded || !state.isEllipsis))
- return null;
- var expandContent = (slots.ellipsisSymbol ? slots.ellipsisSymbol() : symbol) || state.expandStr;
- return createVNode("a", {
- "key": "expand",
- "class": "".concat(prefixCls.value, "-expand"),
- "onClick": onExpandClick,
- "aria-label": state.expandStr
- }, [expandContent]);
- }
- function renderEdit() {
- if (!props5.editable)
- return;
- var _props$editable = props5.editable, tooltip = _props$editable.tooltip, _props$editable$trigg = _props$editable.triggerType, triggerType = _props$editable$trigg === void 0 ? ["icon"] : _props$editable$trigg;
- var icon = slots.editableIcon ? slots.editableIcon() : createVNode(EditOutlined_default, {
- "role": "button"
- }, null);
- var title = slots.editableTooltip ? slots.editableTooltip() : state.editStr;
- var ariaLabel = typeof title === "string" ? title : "";
- return triggerType.indexOf("icon") !== -1 ? createVNode(tooltip_default, {
- "key": "edit",
- "title": tooltip === false ? "" : title
- }, {
- default: function _default9() {
- return [createVNode(transButton_default, {
- "ref": editIcon,
- "class": "".concat(prefixCls.value, "-edit"),
- "onClick": onEditClick,
- "aria-label": ariaLabel
- }, {
- default: function _default10() {
- return [icon];
- }
- })];
- }
- }) : null;
- }
- function renderCopy() {
- if (!props5.copyable)
- return;
- var tooltip = props5.copyable.tooltip;
- var defaultTitle2 = state.copied ? state.copiedStr : state.copyStr;
- var title = slots.copyableTooltip ? slots.copyableTooltip({
- copied: state.copied
- }) : defaultTitle2;
- var ariaLabel = typeof title === "string" ? title : "";
- var defaultIcon = state.copied ? createVNode(CheckOutlined_default, null, null) : createVNode(CopyOutlined_default, null, null);
- var icon = slots.copyableIcon ? slots.copyableIcon({
- copied: !!state.copied
- }) : defaultIcon;
- return createVNode(tooltip_default, {
- "key": "copy",
- "title": tooltip === false ? "" : title
- }, {
- default: function _default9() {
- return [createVNode(transButton_default, {
- "class": ["".concat(prefixCls.value, "-copy"), _defineProperty({}, "".concat(prefixCls.value, "-copy-success"), state.copied)],
- "onClick": onCopyClick,
- "aria-label": ariaLabel
- }, {
- default: function _default10() {
- return [icon];
- }
- })];
- }
- });
- }
- function renderEditInput() {
- var className = attrs.class, style = attrs.style;
- var _editable$value2 = editable.value, maxlength = _editable$value2.maxlength, autoSize = _editable$value2.autoSize, onEnd3 = _editable$value2.onEnd;
- return createVNode(Editable_default, {
- "class": className,
- "style": style,
- "prefixCls": prefixCls.value,
- "value": props5.content,
- "originContent": state.originContent,
- "maxlength": maxlength,
- "autoSize": autoSize,
- "onSave": onEditChange,
- "onChange": onContentChange,
- "onCancel": onEditCancel,
- "onEnd": onEnd3,
- "direction": direction.value
- }, {
- enterIcon: slots.editableEnterIcon
- });
- }
- function renderOperations(forceRenderExpanded) {
- return [renderExpand(forceRenderExpanded), renderEdit(), renderCopy()].filter(function(node) {
- return node;
- });
- }
- return function() {
- var _slots$default;
- var _editable$value$trigg = editable.value.triggerType, triggerType = _editable$value$trigg === void 0 ? ["icon"] : _editable$value$trigg;
- var _children = props5.ellipsis || props5.editable ? props5.content !== void 0 ? props5.content : (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots) : slots.default ? slots.default() : props5.content;
- if (editing.value) {
- return renderEditInput();
- }
- return createVNode(LocaleReceiver_default, {
- "componentName": "Text",
- "children": function children(locale4) {
- var _ref4;
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), type4 = _props$attrs.type, disabled = _props$attrs.disabled, content = _props$attrs.content, className = _props$attrs.class, style = _props$attrs.style, restProps = _objectWithoutProperties(_props$attrs, _excluded64);
- var _ellipsis$value4 = ellipsis.value, rows = _ellipsis$value4.rows, suffix = _ellipsis$value4.suffix, tooltip = _ellipsis$value4.tooltip;
- var edit = locale4.edit, copyStr = locale4.copy, copied = locale4.copied, expand = locale4.expand;
- state.editStr = edit;
- state.copyStr = copyStr;
- state.copiedStr = copied;
- state.expandStr = expand;
- var textProps3 = omit_default(restProps, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard", "onUpdate:content"]);
- var cssEllipsis = canUseCSSEllipsis.value;
- var cssTextOverflow = rows === 1 && cssEllipsis;
- var cssLineClamp = rows && rows > 1 && cssEllipsis;
- var textNode = _children;
- var ariaLabel;
- if (rows && state.isEllipsis && !state.expanded && !cssEllipsis) {
- var _restContent;
- var _title = restProps.title;
- var restContent = _title || "";
- if (!_title && (typeof _children === "string" || typeof _children === "number")) {
- restContent = String(_children);
- }
- restContent = (_restContent = restContent) === null || _restContent === void 0 ? void 0 : _restContent.slice(String(state.ellipsisContent || "").length);
- textNode = createVNode(Fragment, null, [toRaw(state.ellipsisContent), createVNode("span", {
- "title": restContent,
- "aria-hidden": "true"
- }, [ELLIPSIS_STR]), suffix]);
- } else {
- textNode = createVNode(Fragment, null, [_children, suffix]);
- }
- textNode = wrapperDecorations(props5, textNode);
- var showTooltip = tooltip && rows && state.isEllipsis && !state.expanded && !cssEllipsis;
- var title = slots.ellipsisTooltip ? slots.ellipsisTooltip() : tooltip;
- return createVNode(vc_resize_observer_default, {
- "onResize": resizeOnNextFrame,
- "disabled": !rows
- }, {
- default: function _default9() {
- return [createVNode(Typography_default, _objectSpread2({
- "ref": contentRef,
- "class": [(_ref4 = {}, _defineProperty(_ref4, "".concat(prefixCls.value, "-").concat(type4), type4), _defineProperty(_ref4, "".concat(prefixCls.value, "-disabled"), disabled), _defineProperty(_ref4, "".concat(prefixCls.value, "-ellipsis"), rows), _defineProperty(_ref4, "".concat(prefixCls.value, "-single-line"), rows === 1 && !state.isEllipsis), _defineProperty(_ref4, "".concat(prefixCls.value, "-ellipsis-single-line"), cssTextOverflow), _defineProperty(_ref4, "".concat(prefixCls.value, "-ellipsis-multiple-line"), cssLineClamp), _ref4), className],
- "style": _objectSpread2(_objectSpread2({}, style), {}, {
- WebkitLineClamp: cssLineClamp ? rows : void 0
- }),
- "aria-label": ariaLabel,
- "direction": direction.value,
- "onClick": triggerType.indexOf("text") !== -1 ? onEditClick : function() {
- }
- }, textProps3), {
- default: function _default10() {
- return [showTooltip ? createVNode(tooltip_default, {
- "title": tooltip === true ? _children : title
- }, {
- default: function _default11() {
- return [createVNode("span", null, [textNode])];
- }
- }) : textNode, renderOperations()];
- }
- })];
- }
- });
- }
- }, null);
- };
- }
- });
- var Base_default = Base;
- // node_modules/ant-design-vue/es/typography/Link.js
- var _excluded65 = ["ellipsis", "rel"];
- var linkProps = function linkProps2() {
- return omit_default(_objectSpread2(_objectSpread2({}, baseProps2()), {}, {
- ellipsis: {
- type: Boolean,
- default: void 0
- }
- }), ["component"]);
- };
- var Link = function Link2(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _props$attrs = _objectSpread2(_objectSpread2({}, props5), attrs), ellipsis = _props$attrs.ellipsis, rel = _props$attrs.rel, restProps = _objectWithoutProperties(_props$attrs, _excluded65);
- warning_default2(_typeof(ellipsis) !== "object", "Typography.Link", "`ellipsis` only supports boolean value.");
- var mergedProps = _objectSpread2(_objectSpread2({}, restProps), {}, {
- rel: rel === void 0 && restProps.target === "_blank" ? "noopener noreferrer" : rel,
- ellipsis: !!ellipsis,
- component: "a"
- });
- delete mergedProps.navigate;
- return createVNode(Base_default, mergedProps, slots);
- };
- Link.displayName = "ATypographyLink";
- Link.inheritAttrs = false;
- Link.props = linkProps();
- var Link_default = Link;
- // node_modules/ant-design-vue/es/typography/Paragraph.js
- var paragraphProps = function paragraphProps2() {
- return omit_default(baseProps2(), ["component"]);
- };
- var Paragraph = function Paragraph2(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var paragraphProps3 = _objectSpread2(_objectSpread2({}, props5), {}, {
- component: "div"
- }, attrs);
- return createVNode(Base_default, paragraphProps3, slots);
- };
- Paragraph.displayName = "ATypographyParagraph";
- Paragraph.inheritAttrs = false;
- Paragraph.props = paragraphProps();
- var Paragraph_default2 = Paragraph;
- // node_modules/ant-design-vue/es/typography/Text.js
- var textProps = function textProps2() {
- return _objectSpread2(_objectSpread2({}, omit_default(baseProps2(), ["component"])), {}, {
- ellipsis: {
- type: [Boolean, Object],
- default: void 0
- }
- });
- };
- var Text2 = function Text3(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var ellipsis = props5.ellipsis;
- warning_default2(_typeof(ellipsis) !== "object" || !ellipsis || !("expandable" in ellipsis) && !("rows" in ellipsis), "Typography.Text", "`ellipsis` do not support `expandable` or `rows` props.");
- var textProps3 = _objectSpread2(_objectSpread2({}, props5), {}, {
- ellipsis: ellipsis && _typeof(ellipsis) === "object" ? omit_default(ellipsis, ["expandable", "rows"]) : ellipsis,
- component: "span"
- }, attrs);
- return createVNode(Base_default, textProps3, slots);
- };
- Text2.displayName = "ATypographyText";
- Text2.inheritAttrs = false;
- Text2.props = textProps();
- var Text_default = Text2;
- // node_modules/ant-design-vue/es/typography/Title.js
- var _excluded66 = ["level"];
- var TITLE_ELE_LIST = tupleNum(1, 2, 3, 4, 5);
- var titleProps = function titleProps2() {
- return _objectSpread2(_objectSpread2({}, omit_default(baseProps2(), ["component", "strong"])), {}, {
- level: Number
- });
- };
- var Title = function Title2(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var _props$level = props5.level, level = _props$level === void 0 ? 1 : _props$level, restProps = _objectWithoutProperties(props5, _excluded66);
- var component;
- if (TITLE_ELE_LIST.indexOf(level) !== -1) {
- component = "h".concat(level);
- } else {
- warning_default2(false, "Typography", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value.");
- component = "h1";
- }
- var titleProps3 = _objectSpread2(_objectSpread2({}, restProps), {}, {
- component
- }, attrs);
- return createVNode(Base_default, titleProps3, slots);
- };
- Title.displayName = "ATypographyTitle";
- Title.inheritAttrs = false;
- Title.props = titleProps();
- var Title_default2 = Title;
- // node_modules/ant-design-vue/es/typography/index.js
- Typography_default.Text = Text_default;
- Typography_default.Title = Title_default2;
- Typography_default.Paragraph = Paragraph_default2;
- Typography_default.Link = Link_default;
- Typography_default.Base = Base_default;
- Typography_default.install = function(app) {
- app.component(Typography_default.name, Typography_default);
- app.component(Typography_default.Text.displayName, Text_default);
- app.component(Typography_default.Title.displayName, Title_default2);
- app.component(Typography_default.Paragraph.displayName, Paragraph_default2);
- app.component(Typography_default.Link.displayName, Link_default);
- return app;
- };
- var typography_default = Typography_default;
- // node_modules/ant-design-vue/es/upload/Upload.js
- var import_regenerator5 = __toESM(require_regenerator());
- // node_modules/ant-design-vue/es/vc-upload/AjaxUploader.js
- var import_regenerator4 = __toESM(require_regenerator());
- // node_modules/ant-design-vue/es/vc-upload/request.js
- function getError(option, xhr) {
- var msg = "cannot ".concat(option.method, " ").concat(option.action, " ").concat(xhr.status, "'");
- var err = new Error(msg);
- err.status = xhr.status;
- err.method = option.method;
- err.url = option.action;
- return err;
- }
- function getBody(xhr) {
- var text = xhr.responseText || xhr.response;
- if (!text) {
- return text;
- }
- try {
- return JSON.parse(text);
- } catch (e3) {
- return text;
- }
- }
- function upload(option) {
- var xhr = new XMLHttpRequest();
- if (option.onProgress && xhr.upload) {
- xhr.upload.onprogress = function progress(e3) {
- if (e3.total > 0) {
- e3.percent = e3.loaded / e3.total * 100;
- }
- option.onProgress(e3);
- };
- }
- var formData = new FormData();
- if (option.data) {
- Object.keys(option.data).forEach(function(key2) {
- var value = option.data[key2];
- if (Array.isArray(value)) {
- value.forEach(function(item) {
- formData.append("".concat(key2, "[]"), item);
- });
- return;
- }
- formData.append(key2, value);
- });
- }
- if (option.file instanceof Blob) {
- formData.append(option.filename, option.file, option.file.name);
- } else {
- formData.append(option.filename, option.file);
- }
- xhr.onerror = function error(e3) {
- option.onError(e3);
- };
- xhr.onload = function onload() {
- if (xhr.status < 200 || xhr.status >= 300) {
- return option.onError(getError(option, xhr), getBody(xhr));
- }
- return option.onSuccess(getBody(xhr), xhr);
- };
- xhr.open(option.method, option.action, true);
- if (option.withCredentials && "withCredentials" in xhr) {
- xhr.withCredentials = true;
- }
- var headers = option.headers || {};
- if (headers["X-Requested-With"] !== null) {
- xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
- }
- Object.keys(headers).forEach(function(h3) {
- if (headers[h3] !== null) {
- xhr.setRequestHeader(h3, headers[h3]);
- }
- });
- xhr.send(formData);
- return {
- abort: function abort() {
- xhr.abort();
- }
- };
- }
- // node_modules/ant-design-vue/es/vc-upload/uid.js
- var now3 = +/* @__PURE__ */ new Date();
- var index2 = 0;
- function uid() {
- return "vc-upload-".concat(now3, "-").concat(++index2);
- }
- // node_modules/ant-design-vue/es/vc-upload/attr-accept.js
- var attr_accept_default = function(file, acceptedFiles) {
- if (file && acceptedFiles) {
- var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(",");
- var fileName = file.name || "";
- var mimeType = file.type || "";
- var baseMimeType = mimeType.replace(/\/.*$/, "");
- return acceptedFilesArray.some(function(type4) {
- var validType = type4.trim();
- if (/^\*(\/\*)?$/.test(type4)) {
- return true;
- }
- if (validType.charAt(0) === ".") {
- var lowerFileName = fileName.toLowerCase();
- var lowerType = validType.toLowerCase();
- var affixList = [lowerType];
- if (lowerType === ".jpg" || lowerType === ".jpeg") {
- affixList = [".jpg", ".jpeg"];
- }
- return affixList.some(function(affix) {
- return lowerFileName.endsWith(affix);
- });
- }
- if (/\/\*$/.test(validType)) {
- return baseMimeType === validType.replace(/\/.*$/, "");
- }
- if (mimeType === validType) {
- return true;
- }
- if (/^\w+$/.test(validType)) {
- warning(false, "Upload takes an invalidate 'accept' type '".concat(validType, "'.Skip for check."));
- return true;
- }
- return false;
- });
- }
- return true;
- };
- // node_modules/ant-design-vue/es/vc-upload/traverseFileTree.js
- function loopFiles(item, callback) {
- var dirReader = item.createReader();
- var fileList = [];
- function sequence() {
- dirReader.readEntries(function(entries) {
- var entryList = Array.prototype.slice.apply(entries);
- fileList = fileList.concat(entryList);
- var isFinished = !entryList.length;
- if (isFinished) {
- callback(fileList);
- } else {
- sequence();
- }
- });
- }
- sequence();
- }
- var traverseFileTree = function traverseFileTree2(files, callback, isAccepted) {
- var _traverseFileTree = function _traverseFileTree2(item, path2) {
- item.path = path2 || "";
- if (item.isFile) {
- item.file(function(file) {
- if (isAccepted(file)) {
- if (item.fullPath && !file.webkitRelativePath) {
- Object.defineProperties(file, {
- webkitRelativePath: {
- writable: true
- }
- });
- file.webkitRelativePath = item.fullPath.replace(/^\//, "");
- Object.defineProperties(file, {
- webkitRelativePath: {
- writable: false
- }
- });
- }
- callback([file]);
- }
- });
- } else if (item.isDirectory) {
- loopFiles(item, function(entries) {
- entries.forEach(function(entryItem) {
- _traverseFileTree2(entryItem, "".concat(path2).concat(item.name, "/"));
- });
- });
- }
- };
- files.forEach(function(file) {
- _traverseFileTree(file.webkitGetAsEntry());
- });
- };
- var traverseFileTree_default = traverseFileTree;
- // node_modules/ant-design-vue/es/vc-upload/interface.js
- var uploadProps = function uploadProps2() {
- return {
- capture: [Boolean, String],
- multipart: {
- type: Boolean,
- default: void 0
- },
- name: String,
- disabled: {
- type: Boolean,
- default: void 0
- },
- componentTag: String,
- action: [String, Function],
- method: String,
- directory: {
- type: Boolean,
- default: void 0
- },
- data: [Object, Function],
- headers: Object,
- accept: String,
- multiple: {
- type: Boolean,
- default: void 0
- },
- onBatchStart: Function,
- onReject: Function,
- onStart: Function,
- onError: Function,
- onSuccess: Function,
- onProgress: Function,
- beforeUpload: Function,
- customRequest: Function,
- withCredentials: {
- type: Boolean,
- default: void 0
- },
- openFileDialogOnClick: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- id: String,
- onMouseenter: Function,
- onMouseleave: Function,
- onClick: Function
- };
- };
- // node_modules/lodash-es/_arrayAggregator.js
- function arrayAggregator(array4, setter, iteratee, accumulator) {
- var index3 = -1, length = array4 == null ? 0 : array4.length;
- while (++index3 < length) {
- var value = array4[index3];
- setter(accumulator, value, iteratee(value), array4);
- }
- return accumulator;
- }
- var arrayAggregator_default = arrayAggregator;
- // node_modules/lodash-es/_createBaseFor.js
- function createBaseFor(fromRight) {
- return function(object4, iteratee, keysFunc) {
- var index3 = -1, iterable = Object(object4), props5 = keysFunc(object4), length = props5.length;
- while (length--) {
- var key2 = props5[fromRight ? length : ++index3];
- if (iteratee(iterable[key2], key2, iterable) === false) {
- break;
- }
- }
- return object4;
- };
- }
- var createBaseFor_default = createBaseFor;
- // node_modules/lodash-es/_baseFor.js
- var baseFor = createBaseFor_default();
- var baseFor_default = baseFor;
- // node_modules/lodash-es/_baseForOwn.js
- function baseForOwn(object4, iteratee) {
- return object4 && baseFor_default(object4, iteratee, keys_default);
- }
- var baseForOwn_default = baseForOwn;
- // node_modules/lodash-es/_createBaseEach.js
- function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike_default(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length, index3 = fromRight ? length : -1, iterable = Object(collection);
- while (fromRight ? index3-- : ++index3 < length) {
- if (iteratee(iterable[index3], index3, iterable) === false) {
- break;
- }
- }
- return collection;
- };
- }
- var createBaseEach_default = createBaseEach;
- // node_modules/lodash-es/_baseEach.js
- var baseEach = createBaseEach_default(baseForOwn_default);
- var baseEach_default = baseEach;
- // node_modules/lodash-es/_baseAggregator.js
- function baseAggregator(collection, setter, iteratee, accumulator) {
- baseEach_default(collection, function(value, key2, collection2) {
- setter(accumulator, value, iteratee(value), collection2);
- });
- return accumulator;
- }
- var baseAggregator_default = baseAggregator;
- // node_modules/lodash-es/_createAggregator.js
- function createAggregator(setter, initializer) {
- return function(collection, iteratee) {
- var func = isArray_default(collection) ? arrayAggregator_default : baseAggregator_default, accumulator = initializer ? initializer() : {};
- return func(collection, setter, baseIteratee_default(iteratee, 2), accumulator);
- };
- }
- var createAggregator_default = createAggregator;
- // node_modules/lodash-es/partition.js
- var partition = createAggregator_default(function(result, value, key2) {
- result[key2 ? 0 : 1].push(value);
- }, function() {
- return [[], []];
- });
- var partition_default = partition;
- // node_modules/ant-design-vue/es/vc-upload/AjaxUploader.js
- var _excluded67 = ["componentTag", "prefixCls", "disabled", "id", "multiple", "accept", "capture", "directory", "openFileDialogOnClick", "onMouseenter", "onMouseleave"];
- var AjaxUploader_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AjaxUploader",
- inheritAttrs: false,
- props: uploadProps(),
- setup: function setup214(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose;
- var uid2 = ref(uid());
- var reqs = {};
- var fileInput = ref();
- var isMounted = false;
- var processFile = function() {
- var _ref2 = _asyncToGenerator(import_regenerator4.default.mark(function _callee(file, fileList) {
- var beforeUpload, transformedFile, action, mergedAction, data8, mergedData, parsedData, parsedFile, mergedParsedFile;
- return import_regenerator4.default.wrap(function _callee$(_context) {
- while (1)
- switch (_context.prev = _context.next) {
- case 0:
- beforeUpload = props5.beforeUpload;
- transformedFile = file;
- if (!beforeUpload) {
- _context.next = 14;
- break;
- }
- _context.prev = 3;
- _context.next = 6;
- return beforeUpload(file, fileList);
- case 6:
- transformedFile = _context.sent;
- _context.next = 12;
- break;
- case 9:
- _context.prev = 9;
- _context.t0 = _context["catch"](3);
- transformedFile = false;
- case 12:
- if (!(transformedFile === false)) {
- _context.next = 14;
- break;
- }
- return _context.abrupt("return", {
- origin: file,
- parsedFile: null,
- action: null,
- data: null
- });
- case 14:
- action = props5.action;
- if (!(typeof action === "function")) {
- _context.next = 21;
- break;
- }
- _context.next = 18;
- return action(file);
- case 18:
- mergedAction = _context.sent;
- _context.next = 22;
- break;
- case 21:
- mergedAction = action;
- case 22:
- data8 = props5.data;
- if (!(typeof data8 === "function")) {
- _context.next = 29;
- break;
- }
- _context.next = 26;
- return data8(file);
- case 26:
- mergedData = _context.sent;
- _context.next = 30;
- break;
- case 29:
- mergedData = data8;
- case 30:
- parsedData = // string type is from legacy `transformFile`.
- // Not sure if this will work since no related test case works with it
- (_typeof(transformedFile) === "object" || typeof transformedFile === "string") && transformedFile ? transformedFile : file;
- if (parsedData instanceof File) {
- parsedFile = parsedData;
- } else {
- parsedFile = new File([parsedData], file.name, {
- type: file.type
- });
- }
- mergedParsedFile = parsedFile;
- mergedParsedFile.uid = file.uid;
- return _context.abrupt("return", {
- origin: file,
- data: mergedData,
- parsedFile: mergedParsedFile,
- action: mergedAction
- });
- case 35:
- case "end":
- return _context.stop();
- }
- }, _callee, null, [[3, 9]]);
- }));
- return function processFile2(_x, _x2) {
- return _ref2.apply(this, arguments);
- };
- }();
- var post = function post2(_ref3) {
- var data8 = _ref3.data, origin = _ref3.origin, action = _ref3.action, parsedFile = _ref3.parsedFile;
- if (!isMounted) {
- return;
- }
- var onStart3 = props5.onStart, customRequest = props5.customRequest, name = props5.name, headers = props5.headers, withCredentials = props5.withCredentials, method4 = props5.method;
- var uid3 = origin.uid;
- var request = customRequest || upload;
- var requestOption = {
- action,
- filename: name,
- data: data8,
- file: parsedFile,
- headers,
- withCredentials,
- method: method4 || "post",
- onProgress: function onProgress(e3) {
- var onProgress2 = props5.onProgress;
- onProgress2 === null || onProgress2 === void 0 ? void 0 : onProgress2(e3, parsedFile);
- },
- onSuccess: function onSuccess(ret, xhr) {
- var onSuccess2 = props5.onSuccess;
- onSuccess2 === null || onSuccess2 === void 0 ? void 0 : onSuccess2(ret, parsedFile, xhr);
- delete reqs[uid3];
- },
- onError: function onError(err, ret) {
- var onError2 = props5.onError;
- onError2 === null || onError2 === void 0 ? void 0 : onError2(err, ret, parsedFile);
- delete reqs[uid3];
- }
- };
- onStart3(origin);
- reqs[uid3] = request(requestOption);
- };
- var reset = function reset2() {
- uid2.value = uid();
- };
- var abort = function abort2(file) {
- if (file) {
- var _uid = file.uid ? file.uid : file;
- if (reqs[_uid] && reqs[_uid].abort) {
- reqs[_uid].abort();
- }
- delete reqs[_uid];
- } else {
- Object.keys(reqs).forEach(function(uid3) {
- if (reqs[uid3] && reqs[uid3].abort) {
- reqs[uid3].abort();
- }
- delete reqs[uid3];
- });
- }
- };
- onMounted(function() {
- isMounted = true;
- });
- onBeforeUnmount(function() {
- isMounted = false;
- abort();
- });
- var uploadFiles = function uploadFiles2(files) {
- var originFiles = _toConsumableArray(files);
- var postFiles = originFiles.map(function(file) {
- file.uid = uid();
- return processFile(file, originFiles);
- });
- Promise.all(postFiles).then(function(fileList) {
- var onBatchStart = props5.onBatchStart;
- onBatchStart === null || onBatchStart === void 0 ? void 0 : onBatchStart(fileList.map(function(_ref4) {
- var origin = _ref4.origin, parsedFile = _ref4.parsedFile;
- return {
- file: origin,
- parsedFile
- };
- }));
- fileList.filter(function(file) {
- return file.parsedFile !== null;
- }).forEach(function(file) {
- post(file);
- });
- });
- };
- var onChange3 = function onChange4(e3) {
- var accept = props5.accept, directory = props5.directory;
- var files = e3.target.files;
- var acceptedFiles = _toConsumableArray(files).filter(function(file) {
- return !directory || attr_accept_default(file, accept);
- });
- uploadFiles(acceptedFiles);
- reset();
- };
- var onClick2 = function onClick3(e3) {
- var el = fileInput.value;
- if (!el) {
- return;
- }
- var onClick4 = props5.onClick;
- el.click();
- if (onClick4) {
- onClick4(e3);
- }
- };
- var onKeyDown = function onKeyDown2(e3) {
- if (e3.key === "Enter") {
- onClick2(e3);
- }
- };
- var onFileDrop = function onFileDrop2(e3) {
- var multiple = props5.multiple;
- e3.preventDefault();
- if (e3.type === "dragover") {
- return;
- }
- if (props5.directory) {
- traverseFileTree_default(Array.prototype.slice.call(e3.dataTransfer.items), uploadFiles, function(_file) {
- return attr_accept_default(_file, props5.accept);
- });
- } else {
- var files = partition_default(Array.prototype.slice.call(e3.dataTransfer.files), function(file) {
- return attr_accept_default(file, props5.accept);
- });
- var successFiles = files[0];
- var errorFiles = files[1];
- if (multiple === false) {
- successFiles = successFiles.slice(0, 1);
- }
- uploadFiles(successFiles);
- if (errorFiles.length && props5.onReject)
- props5.onReject(errorFiles);
- }
- };
- expose({
- abort
- });
- return function() {
- var _cls, _slots$default;
- var Tag2 = props5.componentTag, prefixCls = props5.prefixCls, disabled = props5.disabled, id = props5.id, multiple = props5.multiple, accept = props5.accept, capture = props5.capture, directory = props5.directory, openFileDialogOnClick = props5.openFileDialogOnClick, onMouseenter2 = props5.onMouseenter, onMouseleave2 = props5.onMouseleave, otherProps = _objectWithoutProperties(props5, _excluded67);
- var cls = (_cls = {}, _defineProperty(_cls, prefixCls, true), _defineProperty(_cls, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_cls, attrs.class, !!attrs.class), _cls);
- var dirProps = directory ? {
- directory: "directory",
- webkitdirectory: "webkitdirectory"
- } : {};
- var events2 = disabled ? {} : {
- onClick: openFileDialogOnClick ? onClick2 : function() {
- },
- onKeydown: openFileDialogOnClick ? onKeyDown : function() {
- },
- onMouseenter: onMouseenter2,
- onMouseleave: onMouseleave2,
- onDrop: onFileDrop,
- onDragover: onFileDrop,
- tabindex: "0"
- };
- return createVNode(Tag2, _objectSpread2(_objectSpread2({}, events2), {}, {
- "class": cls,
- "role": "button",
- "style": attrs.style
- }), {
- default: function _default9() {
- return [createVNode("input", _objectSpread2(_objectSpread2(_objectSpread2({}, pickAttrs(otherProps, {
- aria: true,
- data: true
- })), {}, {
- "id": id,
- "type": "file",
- "ref": fileInput,
- "onClick": function onClick3(e3) {
- return e3.stopPropagation();
- },
- "key": uid2.value,
- "style": {
- display: "none"
- },
- "accept": accept
- }, dirProps), {}, {
- "multiple": multiple,
- "onChange": onChange3
- }, capture != null ? {
- capture
- } : {}), null), (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-upload/Upload.js
- function empty() {
- }
- var Upload_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "Upload",
- inheritAttrs: false,
- props: initDefaultProps_default(uploadProps(), {
- componentTag: "span",
- prefixCls: "rc-upload",
- data: {},
- headers: {},
- name: "file",
- multipart: false,
- onStart: empty,
- onError: empty,
- onSuccess: empty,
- multiple: false,
- beforeUpload: null,
- customRequest: null,
- withCredentials: false,
- openFileDialogOnClick: true
- }),
- setup: function setup215(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose;
- var uploader = ref();
- var abort = function abort2(file) {
- var _uploader$value;
- (_uploader$value = uploader.value) === null || _uploader$value === void 0 ? void 0 : _uploader$value.abort(file);
- };
- expose({
- abort
- });
- return function() {
- return createVNode(AjaxUploader_default, _objectSpread2(_objectSpread2(_objectSpread2({}, props5), attrs), {}, {
- "ref": uploader
- }), slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/vc-upload/index.js
- var vc_upload_default = Upload_default;
- // node_modules/ant-design-vue/es/upload/interface.js
- function uploadProps3() {
- return {
- capture: [Boolean, String],
- type: String,
- name: String,
- defaultFileList: Array,
- fileList: Array,
- action: [String, Function],
- directory: {
- type: Boolean,
- default: void 0
- },
- data: [Object, Function],
- method: String,
- headers: Object,
- showUploadList: {
- type: [Boolean, Object],
- default: void 0
- },
- multiple: {
- type: Boolean,
- default: void 0
- },
- accept: String,
- beforeUpload: Function,
- onChange: Function,
- "onUpdate:fileList": Function,
- onDrop: Function,
- listType: String,
- onPreview: Function,
- onDownload: Function,
- onReject: Function,
- onRemove: Function,
- /** @deprecated Please use `onRemove` directly */
- remove: Function,
- supportServerRender: {
- type: Boolean,
- default: void 0
- },
- disabled: {
- type: Boolean,
- default: void 0
- },
- prefixCls: String,
- customRequest: Function,
- withCredentials: {
- type: Boolean,
- default: void 0
- },
- openFileDialogOnClick: {
- type: Boolean,
- default: void 0
- },
- locale: {
- type: Object,
- default: void 0
- },
- id: String,
- previewFile: Function,
- /** @deprecated Please use `beforeUpload` directly */
- transformFile: Function,
- iconRender: Function,
- isImageUrl: Function,
- progress: Object,
- itemRender: Function,
- /** Config max count of `fileList`. Will replace current one when `maxCount` is 1 */
- maxCount: Number,
- height: [Number, String],
- removeIcon: Function,
- downloadIcon: Function,
- previewIcon: Function
- };
- }
- function uploadListProps() {
- return {
- listType: String,
- onPreview: Function,
- onDownload: Function,
- onRemove: Function,
- items: Array,
- progress: Object,
- prefixCls: String,
- showRemoveIcon: {
- type: Boolean,
- default: void 0
- },
- showDownloadIcon: {
- type: Boolean,
- default: void 0
- },
- showPreviewIcon: {
- type: Boolean,
- default: void 0
- },
- removeIcon: Function,
- downloadIcon: Function,
- previewIcon: Function,
- locale: {
- type: Object,
- default: void 0
- },
- previewFile: Function,
- iconRender: Function,
- isImageUrl: Function,
- appendAction: Function,
- appendActionVisible: {
- type: Boolean,
- default: void 0
- },
- itemRender: Function
- };
- }
- // node_modules/ant-design-vue/es/upload/utils.js
- function file2Obj(file) {
- return _objectSpread2(_objectSpread2({}, file), {}, {
- lastModified: file.lastModified,
- lastModifiedDate: file.lastModifiedDate,
- name: file.name,
- size: file.size,
- type: file.type,
- uid: file.uid,
- percent: 0,
- originFileObj: file
- });
- }
- function updateFileList(file, fileList) {
- var nextFileList = _toConsumableArray(fileList);
- var fileIndex = nextFileList.findIndex(function(_ref) {
- var uid2 = _ref.uid;
- return uid2 === file.uid;
- });
- if (fileIndex === -1) {
- nextFileList.push(file);
- } else {
- nextFileList[fileIndex] = file;
- }
- return nextFileList;
- }
- function getFileItem(file, fileList) {
- var matchKey = file.uid !== void 0 ? "uid" : "name";
- return fileList.filter(function(item) {
- return item[matchKey] === file[matchKey];
- })[0];
- }
- function removeFileItem(file, fileList) {
- var matchKey = file.uid !== void 0 ? "uid" : "name";
- var removed = fileList.filter(function(item) {
- return item[matchKey] !== file[matchKey];
- });
- if (removed.length === fileList.length) {
- return null;
- }
- return removed;
- }
- var extname = function extname2() {
- var url2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
- var temp = url2.split("/");
- var filename = temp[temp.length - 1];
- var filenameWithoutSuffix = filename.split(/#|\?/)[0];
- return (/\.[^./\\]*$/.exec(filenameWithoutSuffix) || [""])[0];
- };
- var isImageFileType = function isImageFileType2(type4) {
- return type4.indexOf("image/") === 0;
- };
- var isImageUrl = function isImageUrl2(file) {
- if (file.type && !file.thumbUrl) {
- return isImageFileType(file.type);
- }
- var url2 = file.thumbUrl || file.url || "";
- var extension = extname(url2);
- if (/^data:image\//.test(url2) || /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(extension)) {
- return true;
- }
- if (/^data:/.test(url2)) {
- return false;
- }
- if (extension) {
- return false;
- }
- return true;
- };
- var MEASURE_SIZE = 200;
- function previewImage(file) {
- return new Promise(function(resolve) {
- if (!file.type || !isImageFileType(file.type)) {
- resolve("");
- return;
- }
- var canvas = document.createElement("canvas");
- canvas.width = MEASURE_SIZE;
- canvas.height = MEASURE_SIZE;
- canvas.style.cssText = "position: fixed; left: 0; top: 0; width: ".concat(MEASURE_SIZE, "px; height: ").concat(MEASURE_SIZE, "px; z-index: 9999; display: none;");
- document.body.appendChild(canvas);
- var ctx = canvas.getContext("2d");
- var img = new Image();
- img.onload = function() {
- var width = img.width, height = img.height;
- var drawWidth = MEASURE_SIZE;
- var drawHeight = MEASURE_SIZE;
- var offsetX = 0;
- var offsetY = 0;
- if (width > height) {
- drawHeight = height * (MEASURE_SIZE / width);
- offsetY = -(drawHeight - drawWidth) / 2;
- } else {
- drawWidth = width * (MEASURE_SIZE / height);
- offsetX = -(drawWidth - drawHeight) / 2;
- }
- ctx.drawImage(img, offsetX, offsetY, drawWidth, drawHeight);
- var dataURL = canvas.toDataURL();
- document.body.removeChild(canvas);
- resolve(dataURL);
- };
- img.src = window.URL.createObjectURL(file);
- });
- }
- // node_modules/ant-design-vue/es/upload/UploadList/ListItem.js
- var listItemProps3 = function listItemProps4() {
- return {
- prefixCls: String,
- locale: {
- type: Object,
- default: void 0
- },
- file: Object,
- items: Array,
- listType: String,
- isImgUrl: Function,
- showRemoveIcon: {
- type: Boolean,
- default: void 0
- },
- showDownloadIcon: {
- type: Boolean,
- default: void 0
- },
- showPreviewIcon: {
- type: Boolean,
- default: void 0
- },
- removeIcon: Function,
- downloadIcon: Function,
- previewIcon: Function,
- iconRender: Function,
- actionIconRender: Function,
- itemRender: Function,
- onPreview: Function,
- onClose: Function,
- onDownload: Function,
- progress: {
- type: Object,
- default: void 0
- }
- };
- };
- var ListItem_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "ListItem",
- inheritAttrs: false,
- props: listItemProps3(),
- setup: function setup216(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- var showProgress = ref(false);
- var progressRafRef = ref();
- onMounted(function() {
- progressRafRef.value = setTimeout(function() {
- showProgress.value = true;
- }, 300);
- });
- onBeforeUnmount(function() {
- clearTimeout(progressRafRef.value);
- });
- var _useConfigInject = useConfigInject_default("upload", props5), rootPrefixCls = _useConfigInject.rootPrefixCls;
- var transitionProps = computed(function() {
- return getTransitionProps("".concat(rootPrefixCls.value, "-fade"));
- });
- return function() {
- var _infoUploadingClass, _listContainerNameCla;
- var prefixCls = props5.prefixCls, locale4 = props5.locale, listType = props5.listType, file = props5.file, items = props5.items, progressProps3 = props5.progress, _props$iconRender = props5.iconRender, iconRender = _props$iconRender === void 0 ? slots.iconRender : _props$iconRender, _props$actionIconRend = props5.actionIconRender, actionIconRender = _props$actionIconRend === void 0 ? slots.actionIconRender : _props$actionIconRend, _props$itemRender = props5.itemRender, itemRender = _props$itemRender === void 0 ? slots.itemRender : _props$itemRender, isImgUrl = props5.isImgUrl, showPreviewIcon = props5.showPreviewIcon, showRemoveIcon = props5.showRemoveIcon, showDownloadIcon = props5.showDownloadIcon, _props$previewIcon = props5.previewIcon, customPreviewIcon = _props$previewIcon === void 0 ? slots.previewIcon : _props$previewIcon, _props$removeIcon = props5.removeIcon, customRemoveIcon = _props$removeIcon === void 0 ? slots.removeIcon : _props$removeIcon, _props$downloadIcon = props5.downloadIcon, customDownloadIcon = _props$downloadIcon === void 0 ? slots.downloadIcon : _props$downloadIcon, onPreview = props5.onPreview, onDownload = props5.onDownload, onClose = props5.onClose;
- var className = attrs.class, style = attrs.style;
- var spanClassName = "".concat(prefixCls, "-span");
- var iconNode = iconRender({
- file
- });
- var icon = createVNode("div", {
- "class": "".concat(prefixCls, "-text-icon")
- }, [iconNode]);
- if (listType === "picture" || listType === "picture-card") {
- if (file.status === "uploading" || !file.thumbUrl && !file.url) {
- var _uploadingClassName;
- var uploadingClassName = (_uploadingClassName = {}, _defineProperty(_uploadingClassName, "".concat(prefixCls, "-list-item-thumbnail"), true), _defineProperty(_uploadingClassName, "".concat(prefixCls, "-list-item-file"), file.status !== "uploading"), _uploadingClassName);
- icon = createVNode("div", {
- "class": uploadingClassName
- }, [iconNode]);
- } else {
- var _aClassName;
- var thumbnail = isImgUrl !== null && isImgUrl !== void 0 && isImgUrl(file) ? createVNode("img", {
- "src": file.thumbUrl || file.url,
- "alt": file.name,
- "class": "".concat(prefixCls, "-list-item-image")
- }, null) : iconNode;
- var aClassName = (_aClassName = {}, _defineProperty(_aClassName, "".concat(prefixCls, "-list-item-thumbnail"), true), _defineProperty(_aClassName, "".concat(prefixCls, "-list-item-file"), isImgUrl && !isImgUrl(file)), _aClassName);
- icon = createVNode("a", {
- "class": aClassName,
- "onClick": function onClick2(e3) {
- return onPreview(file, e3);
- },
- "href": file.url || file.thumbUrl,
- "target": "_blank",
- "rel": "noopener noreferrer"
- }, [thumbnail]);
- }
- }
- var infoUploadingClass = (_infoUploadingClass = {}, _defineProperty(_infoUploadingClass, "".concat(prefixCls, "-list-item"), true), _defineProperty(_infoUploadingClass, "".concat(prefixCls, "-list-item-").concat(file.status), true), _defineProperty(_infoUploadingClass, "".concat(prefixCls, "-list-item-list-type-").concat(listType), true), _infoUploadingClass);
- var linkProps3 = typeof file.linkProps === "string" ? JSON.parse(file.linkProps) : file.linkProps;
- var removeIcon = showRemoveIcon ? actionIconRender({
- customIcon: customRemoveIcon ? customRemoveIcon({
- file
- }) : createVNode(DeleteOutlined_default, null, null),
- callback: function callback() {
- return onClose(file);
- },
- prefixCls,
- title: locale4.removeFile
- }) : null;
- var downloadIcon = showDownloadIcon && file.status === "done" ? actionIconRender({
- customIcon: customDownloadIcon ? customDownloadIcon({
- file
- }) : createVNode(DownloadOutlined_default, null, null),
- callback: function callback() {
- return onDownload(file);
- },
- prefixCls,
- title: locale4.downloadFile
- }) : null;
- var downloadOrDelete = listType !== "picture-card" && createVNode("span", {
- "key": "download-delete",
- "class": ["".concat(prefixCls, "-list-item-card-actions"), {
- picture: listType === "picture"
- }]
- }, [downloadIcon, removeIcon]);
- var listItemNameClass = "".concat(prefixCls, "-list-item-name");
- var preview = file.url ? [createVNode("a", _objectSpread2(_objectSpread2({
- "key": "view",
- "target": "_blank",
- "rel": "noopener noreferrer",
- "class": listItemNameClass,
- "title": file.name
- }, linkProps3), {}, {
- "href": file.url,
- "onClick": function onClick2(e3) {
- return onPreview(file, e3);
- }
- }), [file.name]), downloadOrDelete] : [createVNode("span", {
- "key": "view",
- "class": listItemNameClass,
- "onClick": function onClick2(e3) {
- return onPreview(file, e3);
- },
- "title": file.name
- }, [file.name]), downloadOrDelete];
- var previewStyle = {
- pointerEvents: "none",
- opacity: 0.5
- };
- var previewIcon = showPreviewIcon ? createVNode("a", {
- "href": file.url || file.thumbUrl,
- "target": "_blank",
- "rel": "noopener noreferrer",
- "style": file.url || file.thumbUrl ? void 0 : previewStyle,
- "onClick": function onClick2(e3) {
- return onPreview(file, e3);
- },
- "title": locale4.previewFile
- }, [customPreviewIcon ? customPreviewIcon({
- file
- }) : createVNode(EyeOutlined_default, null, null)]) : null;
- var actions = listType === "picture-card" && file.status !== "uploading" && createVNode("span", {
- "class": "".concat(prefixCls, "-list-item-actions")
- }, [previewIcon, file.status === "done" && downloadIcon, removeIcon]);
- var message;
- if (file.response && typeof file.response === "string") {
- message = file.response;
- } else {
- var _file$error, _file$error2;
- message = ((_file$error = file.error) === null || _file$error === void 0 ? void 0 : _file$error.statusText) || ((_file$error2 = file.error) === null || _file$error2 === void 0 ? void 0 : _file$error2.message) || locale4.uploadError;
- }
- var iconAndPreview = createVNode("span", {
- "class": spanClassName
- }, [icon, preview]);
- var dom = createVNode("div", {
- "class": infoUploadingClass
- }, [createVNode("div", {
- "class": "".concat(prefixCls, "-list-item-info")
- }, [iconAndPreview]), actions, showProgress.value && createVNode(transition_default, transitionProps.value, {
- default: function _default9() {
- return [withDirectives(createVNode("div", {
- "class": "".concat(prefixCls, "-list-item-progress")
- }, ["percent" in file ? createVNode(progress_default2, _objectSpread2(_objectSpread2({}, progressProps3), {}, {
- "type": "line",
- "percent": file.percent
- }), null) : null]), [[vShow, file.status === "uploading"]])];
- }
- })]);
- var listContainerNameClass = (_listContainerNameCla = {}, _defineProperty(_listContainerNameCla, "".concat(prefixCls, "-list-").concat(listType, "-container"), true), _defineProperty(_listContainerNameCla, "".concat(className), !!className), _listContainerNameCla);
- var item = file.status === "error" ? createVNode(tooltip_default, {
- "title": message,
- "getPopupContainer": function getPopupContainer(node) {
- return node.parentNode;
- }
- }, {
- default: function _default9() {
- return [dom];
- }
- }) : dom;
- return createVNode("div", {
- "class": listContainerNameClass,
- "style": style,
- "ref": ref
- }, [itemRender ? itemRender({
- originNode: item,
- file,
- fileList: items,
- actions: {
- download: onDownload.bind(null, file),
- preview: onPreview.bind(null, file),
- remove: onClose.bind(null, file)
- }
- }) : item]);
- };
- }
- });
- // node_modules/ant-design-vue/es/upload/UploadList/index.js
- var HackSlot = function HackSlot2(_2, _ref) {
- var _slots$default;
- var slots = _ref.slots;
- return filterEmpty((_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots))[0];
- };
- var UploadList_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AUploadList",
- props: initDefaultProps_default(uploadListProps(), {
- listType: "text",
- progress: {
- strokeWidth: 2,
- showInfo: false
- },
- showRemoveIcon: true,
- showDownloadIcon: false,
- showPreviewIcon: true,
- previewFile: previewImage,
- isImageUrl,
- items: [],
- appendActionVisible: true
- }),
- setup: function setup217(props5, _ref2) {
- var slots = _ref2.slots, expose = _ref2.expose;
- var motionAppear = ref(false);
- var instance = getCurrentInstance();
- onMounted(function() {
- motionAppear.value == true;
- });
- watchEffect(function() {
- if (props5.listType !== "picture" && props5.listType !== "picture-card") {
- return;
- }
- (props5.items || []).forEach(function(file) {
- if (typeof document === "undefined" || typeof window === "undefined" || !window.FileReader || !window.File || !(file.originFileObj instanceof File || file.originFileObj instanceof Blob) || file.thumbUrl !== void 0) {
- return;
- }
- file.thumbUrl = "";
- if (props5.previewFile) {
- props5.previewFile(file.originFileObj).then(function(previewDataUrl) {
- file.thumbUrl = previewDataUrl || "";
- instance.update();
- });
- }
- });
- });
- var onInternalPreview = function onInternalPreview2(file, e3) {
- if (!props5.onPreview) {
- return;
- }
- e3 === null || e3 === void 0 ? void 0 : e3.preventDefault();
- return props5.onPreview(file);
- };
- var onInternalDownload = function onInternalDownload2(file) {
- if (typeof props5.onDownload === "function") {
- props5.onDownload(file);
- } else if (file.url) {
- window.open(file.url);
- }
- };
- var onInternalClose = function onInternalClose2(file) {
- var _props$onRemove;
- (_props$onRemove = props5.onRemove) === null || _props$onRemove === void 0 ? void 0 : _props$onRemove.call(props5, file);
- };
- var internalIconRender = function internalIconRender2(_ref3) {
- var file = _ref3.file;
- var iconRender = props5.iconRender || slots.iconRender;
- if (iconRender) {
- return iconRender({
- file,
- listType: props5.listType
- });
- }
- var isLoading = file.status === "uploading";
- var fileIcon = props5.isImageUrl && props5.isImageUrl(file) ? createVNode(PictureTwoTone_default, null, null) : createVNode(FileTwoTone_default, null, null);
- var icon = isLoading ? createVNode(LoadingOutlined_default, null, null) : createVNode(PaperClipOutlined_default, null, null);
- if (props5.listType === "picture") {
- icon = isLoading ? createVNode(LoadingOutlined_default, null, null) : fileIcon;
- } else if (props5.listType === "picture-card") {
- icon = isLoading ? props5.locale.uploading : fileIcon;
- }
- return icon;
- };
- var actionIconRender = function actionIconRender2(opt) {
- var customIcon = opt.customIcon, callback = opt.callback, prefixCls2 = opt.prefixCls, title = opt.title;
- var btnProps = {
- type: "text",
- size: "small",
- title,
- onClick: function onClick2() {
- callback();
- },
- class: "".concat(prefixCls2, "-list-item-card-actions-btn")
- };
- if (isValidElement(customIcon)) {
- return createVNode(button_default2, btnProps, {
- icon: function icon() {
- return customIcon;
- }
- });
- }
- return createVNode(button_default2, btnProps, {
- default: function _default9() {
- return [createVNode("span", null, [customIcon])];
- }
- });
- };
- expose({
- handlePreview: onInternalPreview,
- handleDownload: onInternalDownload
- });
- var _useConfigInject = useConfigInject_default("upload", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var listClassNames = computed(function() {
- var _ref4;
- return _ref4 = {}, _defineProperty(_ref4, "".concat(prefixCls.value, "-list"), true), _defineProperty(_ref4, "".concat(prefixCls.value, "-list-").concat(props5.listType), true), _defineProperty(_ref4, "".concat(prefixCls.value, "-list-rtl"), direction.value === "rtl"), _ref4;
- });
- var transitionGroupProps = computed(function() {
- return _objectSpread2(_objectSpread2(_objectSpread2({}, collapseMotion_default("".concat(prefixCls.value, "-").concat(props5.listType === "picture-card" ? "animate-inline" : "animate"))), getTransitionGroupProps("".concat(prefixCls.value, "-").concat(props5.listType === "picture-card" ? "animate-inline" : "animate"))), {}, {
- class: listClassNames.value,
- appear: motionAppear.value
- });
- });
- return function() {
- var listType = props5.listType, locale4 = props5.locale, isImgUrl = props5.isImageUrl, _props$items = props5.items, items = _props$items === void 0 ? [] : _props$items, showPreviewIcon = props5.showPreviewIcon, showRemoveIcon = props5.showRemoveIcon, showDownloadIcon = props5.showDownloadIcon, removeIcon = props5.removeIcon, previewIcon = props5.previewIcon, downloadIcon = props5.downloadIcon, progress = props5.progress, appendAction = props5.appendAction, itemRender = props5.itemRender, appendActionVisible = props5.appendActionVisible;
- var appendActionDom = appendAction === null || appendAction === void 0 ? void 0 : appendAction();
- return createVNode(TransitionGroup, _objectSpread2(_objectSpread2({}, transitionGroupProps.value), {}, {
- "tag": "div"
- }), {
- default: function _default9() {
- return [items.map(function(file) {
- var key2 = file.uid;
- return createVNode(ListItem_default2, {
- "key": key2,
- "locale": locale4,
- "prefixCls": prefixCls.value,
- "file": file,
- "items": items,
- "progress": progress,
- "listType": listType,
- "isImgUrl": isImgUrl,
- "showPreviewIcon": showPreviewIcon,
- "showRemoveIcon": showRemoveIcon,
- "showDownloadIcon": showDownloadIcon,
- "onPreview": onInternalPreview,
- "onDownload": onInternalDownload,
- "onClose": onInternalClose,
- "removeIcon": removeIcon,
- "previewIcon": previewIcon,
- "downloadIcon": downloadIcon,
- "itemRender": itemRender
- }, _objectSpread2(_objectSpread2({}, slots), {}, {
- iconRender: internalIconRender,
- actionIconRender
- }));
- }), appendAction ? withDirectives(createVNode(HackSlot, {
- "key": "__ant_upload_appendAction"
- }, {
- default: function _default10() {
- return appendActionDom;
- }
- }), [[vShow, !!appendActionVisible]]) : null];
- }
- });
- };
- }
- });
- // node_modules/ant-design-vue/es/upload/Upload.js
- var _excluded68 = ["class", "style"];
- var LIST_IGNORE = "__LIST_IGNORE_".concat(Date.now(), "__");
- var Upload_default2 = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AUpload",
- inheritAttrs: false,
- props: initDefaultProps_default(uploadProps3(), {
- type: "select",
- multiple: false,
- action: "",
- data: {},
- accept: "",
- showUploadList: true,
- listType: "text",
- disabled: false,
- supportServerRender: true
- }),
- setup: function setup218(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs, expose = _ref.expose;
- var formItemContext = useInjectFormItemContext();
- var _useMergedState = useMergedState(props5.defaultFileList || [], {
- value: toRef(props5, "fileList"),
- postState: function postState(list) {
- var timestamp = Date.now();
- return (list !== null && list !== void 0 ? list : []).map(function(file, index3) {
- if (!file.uid && !Object.isFrozen(file)) {
- file.uid = "__AUTO__".concat(timestamp, "_").concat(index3, "__");
- }
- return file;
- });
- }
- }), _useMergedState2 = _slicedToArray(_useMergedState, 2), mergedFileList = _useMergedState2[0], setMergedFileList = _useMergedState2[1];
- var dragState = ref("drop");
- var upload2 = ref();
- onMounted(function() {
- devWarning_default(props5.fileList !== void 0 || attrs.value === void 0, "Upload", "`value` is not a valid prop, do you mean `fileList`?");
- devWarning_default(props5.transformFile === void 0, "Upload", "`transformFile` is deprecated. Please use `beforeUpload` directly.");
- devWarning_default(props5.remove === void 0, "Upload", "`remove` props is deprecated. Please use `remove` event.");
- });
- var onInternalChange = function onInternalChange2(file, changedFileList, event) {
- var _props$onUpdateFileL, _props$onChange;
- var cloneList = _toConsumableArray(changedFileList);
- if (props5.maxCount === 1) {
- cloneList = cloneList.slice(-1);
- } else if (props5.maxCount) {
- cloneList = cloneList.slice(0, props5.maxCount);
- }
- setMergedFileList(cloneList);
- var changeInfo = {
- file,
- fileList: cloneList
- };
- if (event) {
- changeInfo.event = event;
- }
- (_props$onUpdateFileL = props5["onUpdate:fileList"]) === null || _props$onUpdateFileL === void 0 ? void 0 : _props$onUpdateFileL.call(props5, changeInfo.fileList);
- (_props$onChange = props5.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props5, changeInfo);
- formItemContext.onFieldChange();
- };
- var mergedBeforeUpload = function() {
- var _ref2 = _asyncToGenerator(import_regenerator5.default.mark(function _callee(file, fileListArgs) {
- var beforeUpload, transformFile, parsedFile, result;
- return import_regenerator5.default.wrap(function _callee$(_context) {
- while (1)
- switch (_context.prev = _context.next) {
- case 0:
- beforeUpload = props5.beforeUpload, transformFile = props5.transformFile;
- parsedFile = file;
- if (!beforeUpload) {
- _context.next = 13;
- break;
- }
- _context.next = 5;
- return beforeUpload(file, fileListArgs);
- case 5:
- result = _context.sent;
- if (!(result === false)) {
- _context.next = 8;
- break;
- }
- return _context.abrupt("return", false);
- case 8:
- delete file[LIST_IGNORE];
- if (!(result === LIST_IGNORE)) {
- _context.next = 12;
- break;
- }
- Object.defineProperty(file, LIST_IGNORE, {
- value: true,
- configurable: true
- });
- return _context.abrupt("return", false);
- case 12:
- if (_typeof(result) === "object" && result) {
- parsedFile = result;
- }
- case 13:
- if (!transformFile) {
- _context.next = 17;
- break;
- }
- _context.next = 16;
- return transformFile(parsedFile);
- case 16:
- parsedFile = _context.sent;
- case 17:
- return _context.abrupt("return", parsedFile);
- case 18:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return function mergedBeforeUpload2(_x, _x2) {
- return _ref2.apply(this, arguments);
- };
- }();
- var onBatchStart = function onBatchStart2(batchFileInfoList) {
- var filteredFileInfoList = batchFileInfoList.filter(function(info) {
- return !info.file[LIST_IGNORE];
- });
- if (!filteredFileInfoList.length) {
- return;
- }
- var objectFileList = filteredFileInfoList.map(function(info) {
- return file2Obj(info.file);
- });
- var newFileList = _toConsumableArray(mergedFileList.value);
- objectFileList.forEach(function(fileObj) {
- newFileList = updateFileList(fileObj, newFileList);
- });
- objectFileList.forEach(function(fileObj, index3) {
- var triggerFileObj = fileObj;
- if (!filteredFileInfoList[index3].parsedFile) {
- var originFileObj = fileObj.originFileObj;
- var clone2;
- try {
- clone2 = new File([originFileObj], originFileObj.name, {
- type: originFileObj.type
- });
- } catch (e3) {
- clone2 = new Blob([originFileObj], {
- type: originFileObj.type
- });
- clone2.name = originFileObj.name;
- clone2.lastModifiedDate = /* @__PURE__ */ new Date();
- clone2.lastModified = (/* @__PURE__ */ new Date()).getTime();
- }
- clone2.uid = fileObj.uid;
- triggerFileObj = clone2;
- } else {
- fileObj.status = "uploading";
- }
- onInternalChange(triggerFileObj, newFileList);
- });
- };
- var onSuccess = function onSuccess2(response, file, xhr) {
- try {
- if (typeof response === "string") {
- response = JSON.parse(response);
- }
- } catch (e3) {
- }
- if (!getFileItem(file, mergedFileList.value)) {
- return;
- }
- var targetItem = file2Obj(file);
- targetItem.status = "done";
- targetItem.percent = 100;
- targetItem.response = response;
- targetItem.xhr = xhr;
- var nextFileList = updateFileList(targetItem, mergedFileList.value);
- onInternalChange(targetItem, nextFileList);
- };
- var onProgress = function onProgress2(e3, file) {
- if (!getFileItem(file, mergedFileList.value)) {
- return;
- }
- var targetItem = file2Obj(file);
- targetItem.status = "uploading";
- targetItem.percent = e3.percent;
- var nextFileList = updateFileList(targetItem, mergedFileList.value);
- onInternalChange(targetItem, nextFileList, e3);
- };
- var onError = function onError2(error, response, file) {
- if (!getFileItem(file, mergedFileList.value)) {
- return;
- }
- var targetItem = file2Obj(file);
- targetItem.error = error;
- targetItem.response = response;
- targetItem.status = "error";
- var nextFileList = updateFileList(targetItem, mergedFileList.value);
- onInternalChange(targetItem, nextFileList);
- };
- var handleRemove = function handleRemove2(file) {
- var currentFile;
- var mergedRemove = props5.onRemove || props5.remove;
- Promise.resolve(typeof mergedRemove === "function" ? mergedRemove(file) : mergedRemove).then(function(ret) {
- if (ret === false) {
- return;
- }
- var removedFileList = removeFileItem(file, mergedFileList.value);
- if (removedFileList) {
- var _mergedFileList$value, _upload$value;
- currentFile = _objectSpread2(_objectSpread2({}, file), {}, {
- status: "removed"
- });
- (_mergedFileList$value = mergedFileList.value) === null || _mergedFileList$value === void 0 ? void 0 : _mergedFileList$value.forEach(function(item) {
- var matchKey = currentFile.uid !== void 0 ? "uid" : "name";
- if (item[matchKey] === currentFile[matchKey] && !Object.isFrozen(item)) {
- item.status = "removed";
- }
- });
- (_upload$value = upload2.value) === null || _upload$value === void 0 ? void 0 : _upload$value.abort(currentFile);
- onInternalChange(currentFile, removedFileList);
- }
- });
- };
- var onFileDrop = function onFileDrop2(e3) {
- dragState.value = e3.type;
- if (e3.type === "drop") {
- var _props$onDrop;
- (_props$onDrop = props5.onDrop) === null || _props$onDrop === void 0 ? void 0 : _props$onDrop.call(props5, e3);
- }
- };
- expose({
- onBatchStart,
- onSuccess,
- onProgress,
- onError,
- fileList: mergedFileList,
- upload: upload2
- });
- var _useConfigInject = useConfigInject_default("upload", props5), prefixCls = _useConfigInject.prefixCls, direction = _useConfigInject.direction;
- var _useLocaleReceiver = useLocaleReceiver("Upload", default_default.Upload, computed(function() {
- return props5.locale;
- })), _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1), locale4 = _useLocaleReceiver2[0];
- var renderUploadList = function renderUploadList2(button, buttonVisible) {
- var removeIcon = props5.removeIcon, previewIcon = props5.previewIcon, downloadIcon = props5.downloadIcon, previewFile = props5.previewFile, onPreview = props5.onPreview, onDownload = props5.onDownload, disabled = props5.disabled, isImageUrl3 = props5.isImageUrl, progress = props5.progress, itemRender = props5.itemRender, iconRender = props5.iconRender, showUploadList = props5.showUploadList;
- var _ref3 = typeof showUploadList === "boolean" ? {} : showUploadList, showDownloadIcon = _ref3.showDownloadIcon, showPreviewIcon = _ref3.showPreviewIcon, showRemoveIcon = _ref3.showRemoveIcon;
- return showUploadList ? createVNode(UploadList_default, {
- "listType": props5.listType,
- "items": mergedFileList.value,
- "previewFile": previewFile,
- "onPreview": onPreview,
- "onDownload": onDownload,
- "onRemove": handleRemove,
- "showRemoveIcon": !disabled && showRemoveIcon,
- "showPreviewIcon": showPreviewIcon,
- "showDownloadIcon": showDownloadIcon,
- "removeIcon": removeIcon,
- "previewIcon": previewIcon,
- "downloadIcon": downloadIcon,
- "iconRender": iconRender,
- "locale": locale4.value,
- "isImageUrl": isImageUrl3,
- "progress": progress,
- "itemRender": itemRender,
- "appendActionVisible": buttonVisible,
- "appendAction": button
- }, _objectSpread2({}, slots)) : button === null || button === void 0 ? void 0 : button();
- };
- return function() {
- var _props$id, _classNames2, _slots$default2;
- var listType = props5.listType, disabled = props5.disabled, type4 = props5.type;
- var className = attrs.class, styleName = attrs.style, transAttrs = _objectWithoutProperties(attrs, _excluded68);
- var rcUploadProps = _objectSpread2(_objectSpread2(_objectSpread2({
- onBatchStart,
- onError,
- onProgress,
- onSuccess
- }, transAttrs), props5), {}, {
- id: (_props$id = props5.id) !== null && _props$id !== void 0 ? _props$id : formItemContext.id.value,
- prefixCls: prefixCls.value,
- beforeUpload: mergedBeforeUpload,
- onChange: void 0
- });
- delete rcUploadProps.remove;
- if (!slots.default || disabled) {
- delete rcUploadProps.id;
- }
- if (type4 === "drag") {
- var _classNames, _slots$default;
- var dragCls = classNames_default(prefixCls.value, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls.value, "-drag"), true), _defineProperty(_classNames, "".concat(prefixCls.value, "-drag-uploading"), mergedFileList.value.some(function(file) {
- return file.status === "uploading";
- })), _defineProperty(_classNames, "".concat(prefixCls.value, "-drag-hover"), dragState.value === "dragover"), _defineProperty(_classNames, "".concat(prefixCls.value, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _classNames), attrs.class);
- return createVNode("span", null, [createVNode("div", {
- "class": dragCls,
- "onDrop": onFileDrop,
- "onDragover": onFileDrop,
- "onDragleave": onFileDrop,
- "style": attrs.style
- }, [createVNode(vc_upload_default, _objectSpread2(_objectSpread2({}, rcUploadProps), {}, {
- "ref": upload2,
- "class": "".concat(prefixCls.value, "-btn")
- }), _objectSpread2({
- default: function _default9() {
- return [createVNode("div", {
- "class": "".concat(prefixCls.value, "-drag-container")
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)])];
- }
- }, slots))]), renderUploadList()]);
- }
- var uploadButtonCls = classNames_default(prefixCls.value, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls.value, "-select"), true), _defineProperty(_classNames2, "".concat(prefixCls.value, "-select-").concat(listType), true), _defineProperty(_classNames2, "".concat(prefixCls.value, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls.value, "-rtl"), direction.value === "rtl"), _classNames2));
- var children = flattenChildren((_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots));
- var renderUploadButton = function renderUploadButton2(uploadButtonStyle) {
- return createVNode("div", {
- "class": uploadButtonCls,
- "style": uploadButtonStyle
- }, [createVNode(vc_upload_default, _objectSpread2(_objectSpread2({}, rcUploadProps), {}, {
- "ref": upload2
- }), slots)]);
- };
- if (listType === "picture-card") {
- return createVNode("span", {
- "class": classNames_default("".concat(prefixCls.value, "-picture-card-wrapper"), attrs.class)
- }, [renderUploadList(renderUploadButton, !!(children && children.length))]);
- }
- return createVNode("span", {
- "class": attrs.class
- }, [renderUploadButton(children && children.length ? void 0 : {
- display: "none"
- }), renderUploadList()]);
- };
- }
- });
- // node_modules/ant-design-vue/es/upload/Dragger.js
- var _excluded69 = ["height"];
- var _excluded214 = ["style"];
- var Dragger_default = defineComponent({
- compatConfig: {
- MODE: 3
- },
- name: "AUploadDragger",
- inheritAttrs: false,
- props: uploadProps3(),
- setup: function setup219(props5, _ref) {
- var slots = _ref.slots, attrs = _ref.attrs;
- return function() {
- var height = props5.height, restProps = _objectWithoutProperties(props5, _excluded69);
- var style = attrs.style, restAttrs = _objectWithoutProperties(attrs, _excluded214);
- var draggerProps = _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), restAttrs), {}, {
- type: "drag",
- style: _objectSpread2(_objectSpread2({}, style), {}, {
- height: typeof height === "number" ? "".concat(height, "px") : height
- })
- });
- return createVNode(Upload_default2, draggerProps, slots);
- };
- }
- });
- // node_modules/ant-design-vue/es/upload/index.js
- var UploadDragger = Dragger_default;
- var upload_default = _extends(Upload_default2, {
- Dragger: Dragger_default,
- LIST_IGNORE,
- install: function install11(app) {
- app.component(Upload_default2.name, Upload_default2);
- app.component(Dragger_default.name, Dragger_default);
- return app;
- }
- });
- // node_modules/ant-design-vue/es/version/version.js
- var version_default = "3.2.19";
- // node_modules/ant-design-vue/es/version/index.js
- var version_default2 = version_default;
- // node_modules/ant-design-vue/es/index.js
- var install12 = function install13(app) {
- Object.keys(components_exports).forEach(function(key2) {
- var component = components_exports[key2];
- if (component.install) {
- app.use(component);
- }
- });
- app.config.globalProperties.$message = message_default;
- app.config.globalProperties.$notification = notification_default;
- app.config.globalProperties.$info = modal_default.info;
- app.config.globalProperties.$success = modal_default.success;
- app.config.globalProperties.$error = modal_default.error;
- app.config.globalProperties.$warning = modal_default.warning;
- app.config.globalProperties.$confirm = modal_default.confirm;
- app.config.globalProperties.$destroyAll = modal_default.destroyAll;
- return app;
- };
- var es_default2 = {
- version: version_default2,
- install: install12
- };
- export {
- affix_default as Affix,
- alert_default as Alert,
- anchor_default as Anchor,
- AnchorLink_default as AnchorLink,
- auto_complete_default as AutoComplete,
- AutoCompleteOptGroup,
- AutoCompleteOption,
- avatar_default as Avatar,
- Group_default as AvatarGroup,
- back_top_default as BackTop,
- badge_default as Badge,
- Ribbon_default as BadgeRibbon,
- breadcrumb_default as Breadcrumb,
- BreadcrumbItem_default as BreadcrumbItem,
- BreadcrumbSeparator_default as BreadcrumbSeparator,
- button_default2 as Button,
- button_group_default as ButtonGroup,
- calendar_default as Calendar,
- card_default as Card,
- Grid_default as CardGrid,
- Meta_default as CardMeta,
- carousel_default as Carousel,
- cascader_default as Cascader,
- CheckableTag_default as CheckableTag,
- checkbox_default as Checkbox,
- Group_default3 as CheckboxGroup,
- col_default as Col,
- collapse_default as Collapse,
- CollapsePanel_default as CollapsePanel,
- comment_default as Comment,
- config_provider_default as ConfigProvider,
- date_picker_default as DatePicker,
- descriptions_default as Descriptions,
- DescriptionsItem,
- DirectoryTree_default as DirectoryTree,
- divider_default as Divider,
- drawer_default as Drawer,
- dropdown_default2 as Dropdown,
- dropdown_button_default as DropdownButton,
- empty_default2 as Empty,
- form_default as Form,
- FormItem_default as FormItem,
- FormItemContext_default as FormItemRest,
- grid_default as Grid,
- image_default as Image,
- PreviewGroup_default2 as ImagePreviewGroup,
- input_default as Input,
- Group_default4 as InputGroup,
- input_number_default as InputNumber,
- Password_default as InputPassword,
- Search_default as InputSearch,
- layout_default2 as Layout,
- LayoutContent,
- LayoutFooter,
- LayoutHeader,
- LayoutSider,
- list_default as List,
- Item_default3 as ListItem,
- ItemMeta_default as ListItemMeta,
- locale_provider_default as LocaleProvider,
- mentions_default as Mentions,
- MentionsOption,
- menu_default as Menu,
- Divider_default as MenuDivider,
- MenuItem_default as MenuItem,
- ItemGroup_default as MenuItemGroup,
- modal_default as Modal,
- MonthPicker,
- page_header_default as PageHeader,
- pagination_default as Pagination,
- popconfirm_default as Popconfirm,
- popover_default as Popover,
- progress_default2 as Progress,
- QuarterPicker,
- radio_default as Radio,
- RadioButton_default as RadioButton,
- Group_default2 as RadioGroup,
- RangePicker,
- rate_default as Rate,
- result_default as Result,
- row_default as Row,
- select_default as Select,
- SelectOptGroup,
- SelectOption,
- skeleton_default as Skeleton,
- Avatar_default2 as SkeletonAvatar,
- Button_default as SkeletonButton,
- Image_default2 as SkeletonImage,
- Input_default3 as SkeletonInput,
- Title_default as SkeletonTitle,
- slider_default2 as Slider,
- space_default as Space,
- spin_default as Spin,
- statistic_default as Statistic,
- StatisticCountdown,
- Step,
- steps_default as Steps,
- SubMenu_default as SubMenu,
- switch_default as Switch,
- TabPane_default as TabPane,
- table_default as Table,
- Column_default2 as TableColumn,
- ColumnGroup_default2 as TableColumnGroup,
- TableSummary,
- TableSummaryCell,
- TableSummaryRow,
- tabs_default as Tabs,
- tag_default as Tag,
- TextArea_default as Textarea,
- time_picker_default2 as TimePicker,
- TimeRangePicker,
- timeline_default as Timeline,
- TimelineItem_default as TimelineItem,
- tooltip_default as Tooltip,
- transfer_default as Transfer,
- tree_default as Tree,
- TreeNode,
- tree_select_default as TreeSelect,
- TreeSelectNode,
- typography_default as Typography,
- Link_default as TypographyLink,
- Paragraph_default2 as TypographyParagraph,
- Text_default as TypographyText,
- Title_default2 as TypographyTitle,
- upload_default as Upload,
- UploadDragger,
- WeekPicker,
- es_default2 as default,
- install12 as install,
- message_default as message,
- notification_default as notification,
- version_default2 as version
- };
- /*! Bundled license information:
- @babel/runtime/helpers/regeneratorRuntime.js:
- (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
- */
- //# sourceMappingURL=ant-design-vue.js.map
|