Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

buefy.js 415KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413
  1. /*! Buefy v0.7.8 | MIT License | github.com/buefy/buefy */
  2. (function webpackUniversalModuleDefinition(root, factory) {
  3. if(typeof exports === 'object' && typeof module === 'object')
  4. module.exports = factory(require("vue"));
  5. else if(typeof define === 'function' && define.amd)
  6. define(["vue"], factory);
  7. else if(typeof exports === 'object')
  8. exports["Buefy"] = factory(require("vue"));
  9. else
  10. root["Buefy"] = factory(root["Vue"]);
  11. })(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_18__) {
  12. return /******/ (function(modules) { // webpackBootstrap
  13. /******/ // The module cache
  14. /******/ var installedModules = {};
  15. /******/
  16. /******/ // The require function
  17. /******/ function __webpack_require__(moduleId) {
  18. /******/
  19. /******/ // Check if module is in cache
  20. /******/ if(installedModules[moduleId]) {
  21. /******/ return installedModules[moduleId].exports;
  22. /******/ }
  23. /******/ // Create a new module (and put it into the cache)
  24. /******/ var module = installedModules[moduleId] = {
  25. /******/ i: moduleId,
  26. /******/ l: false,
  27. /******/ exports: {}
  28. /******/ };
  29. /******/
  30. /******/ // Execute the module function
  31. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  32. /******/
  33. /******/ // Flag the module as loaded
  34. /******/ module.l = true;
  35. /******/
  36. /******/ // Return the exports of the module
  37. /******/ return module.exports;
  38. /******/ }
  39. /******/
  40. /******/
  41. /******/ // expose the modules object (__webpack_modules__)
  42. /******/ __webpack_require__.m = modules;
  43. /******/
  44. /******/ // expose the module cache
  45. /******/ __webpack_require__.c = installedModules;
  46. /******/
  47. /******/ // define getter function for harmony exports
  48. /******/ __webpack_require__.d = function(exports, name, getter) {
  49. /******/ if(!__webpack_require__.o(exports, name)) {
  50. /******/ Object.defineProperty(exports, name, {
  51. /******/ configurable: false,
  52. /******/ enumerable: true,
  53. /******/ get: getter
  54. /******/ });
  55. /******/ }
  56. /******/ };
  57. /******/
  58. /******/ // getDefaultExport function for compatibility with non-harmony modules
  59. /******/ __webpack_require__.n = function(module) {
  60. /******/ var getter = module && module.__esModule ?
  61. /******/ function getDefault() { return module['default']; } :
  62. /******/ function getModuleExports() { return module; };
  63. /******/ __webpack_require__.d(getter, 'a', getter);
  64. /******/ return getter;
  65. /******/ };
  66. /******/
  67. /******/ // Object.prototype.hasOwnProperty.call
  68. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  69. /******/
  70. /******/ // __webpack_public_path__
  71. /******/ __webpack_require__.p = "/";
  72. /******/
  73. /******/ // Load entry module and return exports
  74. /******/ return __webpack_require__(__webpack_require__.s = 70);
  75. /******/ })
  76. /************************************************************************/
  77. /******/ ([
  78. /* 0 */
  79. /***/ (function(module, exports) {
  80. /* globals __VUE_SSR_CONTEXT__ */
  81. // this module is a runtime utility for cleaner component module output and will
  82. // be included in the final webpack user bundle
  83. module.exports = function normalizeComponent (
  84. rawScriptExports,
  85. compiledTemplate,
  86. injectStyles,
  87. scopeId,
  88. moduleIdentifier /* server only */
  89. ) {
  90. var esModule
  91. var scriptExports = rawScriptExports = rawScriptExports || {}
  92. // ES6 modules interop
  93. var type = typeof rawScriptExports.default
  94. if (type === 'object' || type === 'function') {
  95. esModule = rawScriptExports
  96. scriptExports = rawScriptExports.default
  97. }
  98. // Vue.extend constructor export interop
  99. var options = typeof scriptExports === 'function'
  100. ? scriptExports.options
  101. : scriptExports
  102. // render functions
  103. if (compiledTemplate) {
  104. options.render = compiledTemplate.render
  105. options.staticRenderFns = compiledTemplate.staticRenderFns
  106. }
  107. // scopedId
  108. if (scopeId) {
  109. options._scopeId = scopeId
  110. }
  111. var hook
  112. if (moduleIdentifier) { // server build
  113. hook = function (context) {
  114. // 2.3 injection
  115. context =
  116. context || // cached call
  117. (this.$vnode && this.$vnode.ssrContext) || // stateful
  118. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  119. // 2.2 with runInNewContext: true
  120. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  121. context = __VUE_SSR_CONTEXT__
  122. }
  123. // inject component styles
  124. if (injectStyles) {
  125. injectStyles.call(this, context)
  126. }
  127. // register component module identifier for async chunk inferrence
  128. if (context && context._registeredComponents) {
  129. context._registeredComponents.add(moduleIdentifier)
  130. }
  131. }
  132. // used by ssr in case component is cached and beforeCreate
  133. // never gets called
  134. options._ssrRegister = hook
  135. } else if (injectStyles) {
  136. hook = injectStyles
  137. }
  138. if (hook) {
  139. var functional = options.functional
  140. var existing = functional
  141. ? options.render
  142. : options.beforeCreate
  143. if (!functional) {
  144. // inject component registration as beforeCreate hook
  145. options.beforeCreate = existing
  146. ? [].concat(existing, hook)
  147. : [hook]
  148. } else {
  149. // register for functioal component in vue file
  150. options.render = function renderWithStyleInjection (h, context) {
  151. hook.call(context)
  152. return existing(h, context)
  153. }
  154. }
  155. }
  156. return {
  157. esModule: esModule,
  158. exports: scriptExports,
  159. options: options
  160. }
  161. }
  162. /***/ }),
  163. /* 1 */
  164. /***/ (function(module, exports, __webpack_require__) {
  165. "use strict";
  166. exports.__esModule = true;
  167. var _defineProperty = __webpack_require__(102);
  168. var _defineProperty2 = _interopRequireDefault(_defineProperty);
  169. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  170. exports.default = function (obj, key, value) {
  171. if (key in obj) {
  172. (0, _defineProperty2.default)(obj, key, {
  173. value: value,
  174. enumerable: true,
  175. configurable: true,
  176. writable: true
  177. });
  178. } else {
  179. obj[key] = value;
  180. }
  181. return obj;
  182. };
  183. /***/ }),
  184. /* 2 */
  185. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  186. "use strict";
  187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return setOptions; });
  188. var config = {
  189. defaultContainerElement: null,
  190. defaultIconPack: 'mdi',
  191. defaultIconComponent: null,
  192. defaultDialogConfirmText: null,
  193. defaultDialogCancelText: null,
  194. defaultSnackbarDuration: 3500,
  195. defaultSnackbarPosition: null,
  196. defaultToastDuration: 2000,
  197. defaultToastPosition: null,
  198. defaultNotificationDuration: 2000,
  199. defaultNotificationPosition: null,
  200. defaultTooltipType: 'is-primary',
  201. defaultTooltipAnimated: false,
  202. defaultInputAutocomplete: 'on',
  203. defaultDateFormatter: null,
  204. defaultDateParser: null,
  205. defaultDateCreator: null,
  206. defaultDayNames: null,
  207. defaultMonthNames: null,
  208. defaultFirstDayOfWeek: null,
  209. defaultUnselectableDaysOfWeek: null,
  210. defaultTimeFormatter: null,
  211. defaultTimeParser: null,
  212. defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
  213. defaultModalScroll: null,
  214. defaultDatepickerMobileNative: true,
  215. defaultTimepickerMobileNative: true,
  216. defaultNoticeQueue: true,
  217. defaultInputHasCounter: true,
  218. defaultUseHtml5Validation: true,
  219. defaultDropdownMobileModal: true,
  220. defaultFielLabelPosition: null,
  221. defaultDatepickerYearsRange: [-100, 3],
  222. defaultDatepickerNearbyMonthDays: true,
  223. defaultDatepickerNearbySelectableMonthDays: false
  224. };
  225. /* harmony default export */ __webpack_exports__["a"] = (config);
  226. var setOptions = function setOptions(options) {
  227. config = options;
  228. };
  229. /***/ }),
  230. /* 3 */
  231. /***/ (function(module, exports, __webpack_require__) {
  232. var Component = __webpack_require__(0)(
  233. /* script */
  234. __webpack_require__(106),
  235. /* template */
  236. __webpack_require__(107),
  237. /* styles */
  238. null,
  239. /* scopeId */
  240. null,
  241. /* moduleIdentifier (server only) */
  242. null
  243. )
  244. module.exports = Component.exports
  245. /***/ }),
  246. /* 4 */
  247. /***/ (function(module, exports, __webpack_require__) {
  248. var store = __webpack_require__(37)('wks');
  249. var uid = __webpack_require__(26);
  250. var Symbol = __webpack_require__(8).Symbol;
  251. var USE_SYMBOL = typeof Symbol == 'function';
  252. var $exports = module.exports = function (name) {
  253. return store[name] || (store[name] =
  254. USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
  255. };
  256. $exports.store = store;
  257. /***/ }),
  258. /* 5 */
  259. /***/ (function(module, exports, __webpack_require__) {
  260. module.exports = { "default": __webpack_require__(89), __esModule: true };
  261. /***/ }),
  262. /* 6 */
  263. /***/ (function(module, exports) {
  264. var core = module.exports = { version: '2.5.7' };
  265. if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
  266. /***/ }),
  267. /* 7 */
  268. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  269. "use strict";
  270. /* harmony export (immutable) */ __webpack_exports__["a"] = getValueByPath;
  271. /* harmony export (immutable) */ __webpack_exports__["b"] = indexOf;
  272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isMobile; });
  273. /* harmony export (immutable) */ __webpack_exports__["d"] = removeElement;
  274. /* unused harmony export escapeRegExpChars */
  275. /**
  276. * Get value of an object property/path even if it's nested
  277. */
  278. function getValueByPath(obj, path) {
  279. var value = path.split('.').reduce(function (o, i) {
  280. return o[i];
  281. }, obj);
  282. return value;
  283. }
  284. /**
  285. * Extension of indexOf method by equality function if specified
  286. */
  287. function indexOf(array, obj, fn) {
  288. if (!array) return -1;
  289. if (!fn || typeof fn !== 'function') return array.indexOf(obj);
  290. for (var i = 0; i < array.length; i++) {
  291. if (fn(array[i], obj)) {
  292. return i;
  293. }
  294. }
  295. return -1;
  296. }
  297. /**
  298. * Mobile detection
  299. * https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript
  300. */
  301. var isMobile = {
  302. Android: function Android() {
  303. return typeof window !== 'undefined' && window.navigator.userAgent.match(/Android/i);
  304. },
  305. BlackBerry: function BlackBerry() {
  306. return typeof window !== 'undefined' && window.navigator.userAgent.match(/BlackBerry/i);
  307. },
  308. iOS: function iOS() {
  309. return typeof window !== 'undefined' && window.navigator.userAgent.match(/iPhone|iPad|iPod/i);
  310. },
  311. Opera: function Opera() {
  312. return typeof window !== 'undefined' && window.navigator.userAgent.match(/Opera Mini/i);
  313. },
  314. Windows: function Windows() {
  315. return typeof window !== 'undefined' && window.navigator.userAgent.match(/IEMobile/i);
  316. },
  317. any: function any() {
  318. return isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows();
  319. }
  320. };
  321. function removeElement(el) {
  322. if (typeof el.remove !== 'undefined') {
  323. el.remove();
  324. } else if (typeof el.parentNode !== 'undefined') {
  325. el.parentNode.removeChild(el);
  326. }
  327. }
  328. /**
  329. * Escape regex characters
  330. * http://stackoverflow.com/a/6969486
  331. */
  332. function escapeRegExpChars(value) {
  333. if (!value) return value;
  334. // eslint-disable-next-line
  335. return value.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
  336. }
  337. /***/ }),
  338. /* 8 */
  339. /***/ (function(module, exports) {
  340. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  341. var global = module.exports = typeof window != 'undefined' && window.Math == Math
  342. ? window : typeof self != 'undefined' && self.Math == Math ? self
  343. // eslint-disable-next-line no-new-func
  344. : Function('return this')();
  345. if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
  346. /***/ }),
  347. /* 9 */
  348. /***/ (function(module, exports, __webpack_require__) {
  349. var anObject = __webpack_require__(15);
  350. var IE8_DOM_DEFINE = __webpack_require__(47);
  351. var toPrimitive = __webpack_require__(32);
  352. var dP = Object.defineProperty;
  353. exports.f = __webpack_require__(12) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  354. anObject(O);
  355. P = toPrimitive(P, true);
  356. anObject(Attributes);
  357. if (IE8_DOM_DEFINE) try {
  358. return dP(O, P, Attributes);
  359. } catch (e) { /* empty */ }
  360. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  361. if ('value' in Attributes) O[P] = Attributes.value;
  362. return O;
  363. };
  364. /***/ }),
  365. /* 10 */
  366. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  367. "use strict";
  368. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
  369. /* harmony default export */ __webpack_exports__["a"] = ({
  370. props: {
  371. size: String,
  372. expanded: Boolean,
  373. loading: Boolean,
  374. rounded: Boolean,
  375. icon: String,
  376. iconPack: String,
  377. // Native options to use in HTML5 validation
  378. autocomplete: String,
  379. maxlength: [Number, String],
  380. useHtml5Validation: {
  381. type: Boolean,
  382. default: function _default() {
  383. return __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultUseHtml5Validation;
  384. }
  385. },
  386. validationMessage: String
  387. },
  388. data: function data() {
  389. return {
  390. isValid: true,
  391. isFocused: false,
  392. newIconPack: this.iconPack || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultIconPack
  393. };
  394. },
  395. computed: {
  396. /**
  397. * Find parent Field, max 3 levels deep.
  398. */
  399. parentField: function parentField() {
  400. var parent = this.$parent;
  401. for (var i = 0; i < 3; i++) {
  402. if (parent && !parent.$data._isField) {
  403. parent = parent.$parent;
  404. }
  405. }
  406. return parent;
  407. },
  408. /**
  409. * Get the type prop from parent if it's a Field.
  410. */
  411. statusType: function statusType() {
  412. if (!this.parentField) return;
  413. if (!this.parentField.newType) return;
  414. if (typeof this.parentField.newType === 'string') {
  415. return this.parentField.newType;
  416. } else {
  417. for (var key in this.parentField.newType) {
  418. if (this.parentField.newType[key]) {
  419. return key;
  420. }
  421. }
  422. }
  423. },
  424. /**
  425. * Get the message prop from parent if it's a Field.
  426. */
  427. statusMessage: function statusMessage() {
  428. if (!this.parentField) return;
  429. return this.parentField.newMessage;
  430. },
  431. /**
  432. * Fix icon size for inputs, large was too big
  433. */
  434. iconSize: function iconSize() {
  435. switch (this.size) {
  436. case 'is-small':
  437. return this.size;
  438. case 'is-medium':
  439. return;
  440. case 'is-large':
  441. return this.newIconPack === 'mdi' ? 'is-medium' : '';
  442. }
  443. }
  444. },
  445. methods: {
  446. /**
  447. * Focus method that work dynamically depending on the component.
  448. */
  449. focus: function focus() {
  450. var _this = this;
  451. if (this.$data._elementRef === undefined) return;
  452. this.$nextTick(function () {
  453. var el = _this.$el.querySelector(_this.$data._elementRef);
  454. if (el) el.focus();
  455. });
  456. },
  457. onBlur: function onBlur($event) {
  458. this.isFocused = false;
  459. this.$emit('blur', $event);
  460. this.checkHtml5Validity();
  461. },
  462. onFocus: function onFocus($event) {
  463. this.isFocused = true;
  464. this.$emit('focus', $event);
  465. },
  466. /**
  467. * Check HTML5 validation, set isValid property.
  468. * If validation fail, send 'is-danger' type,
  469. * and error message to parent if it's a Field.
  470. */
  471. checkHtml5Validity: function checkHtml5Validity() {
  472. var _this2 = this;
  473. if (!this.useHtml5Validation) return;
  474. if (this.$refs[this.$data._elementRef] === undefined) return;
  475. var el = this.$el.querySelector(this.$data._elementRef);
  476. var type = null;
  477. var message = null;
  478. var isValid = true;
  479. if (!el.checkValidity()) {
  480. type = 'is-danger';
  481. message = this.validationMessage || el.validationMessage;
  482. isValid = false;
  483. }
  484. this.isValid = isValid;
  485. this.$nextTick(function () {
  486. if (_this2.parentField) {
  487. // Set type only if not defined
  488. if (!_this2.parentField.type) {
  489. _this2.parentField.newType = type;
  490. }
  491. // Set message only if not defined
  492. if (!_this2.parentField.message) {
  493. _this2.parentField.newMessage = message;
  494. }
  495. }
  496. });
  497. return this.isValid;
  498. }
  499. }
  500. });
  501. /***/ }),
  502. /* 11 */
  503. /***/ (function(module, exports, __webpack_require__) {
  504. module.exports = { "default": __webpack_require__(71), __esModule: true };
  505. /***/ }),
  506. /* 12 */
  507. /***/ (function(module, exports, __webpack_require__) {
  508. // Thank's IE8 for his funny defineProperty
  509. module.exports = !__webpack_require__(21)(function () {
  510. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  511. });
  512. /***/ }),
  513. /* 13 */
  514. /***/ (function(module, exports) {
  515. var hasOwnProperty = {}.hasOwnProperty;
  516. module.exports = function (it, key) {
  517. return hasOwnProperty.call(it, key);
  518. };
  519. /***/ }),
  520. /* 14 */
  521. /***/ (function(module, exports, __webpack_require__) {
  522. var dP = __webpack_require__(9);
  523. var createDesc = __webpack_require__(22);
  524. module.exports = __webpack_require__(12) ? function (object, key, value) {
  525. return dP.f(object, key, createDesc(1, value));
  526. } : function (object, key, value) {
  527. object[key] = value;
  528. return object;
  529. };
  530. /***/ }),
  531. /* 15 */
  532. /***/ (function(module, exports, __webpack_require__) {
  533. var isObject = __webpack_require__(20);
  534. module.exports = function (it) {
  535. if (!isObject(it)) throw TypeError(it + ' is not an object!');
  536. return it;
  537. };
  538. /***/ }),
  539. /* 16 */
  540. /***/ (function(module, exports, __webpack_require__) {
  541. // to indexed object, toObject with fallback for non-array-like ES3 strings
  542. var IObject = __webpack_require__(50);
  543. var defined = __webpack_require__(34);
  544. module.exports = function (it) {
  545. return IObject(defined(it));
  546. };
  547. /***/ }),
  548. /* 17 */
  549. /***/ (function(module, exports, __webpack_require__) {
  550. var Component = __webpack_require__(0)(
  551. /* script */
  552. __webpack_require__(105),
  553. /* template */
  554. __webpack_require__(108),
  555. /* styles */
  556. null,
  557. /* scopeId */
  558. null,
  559. /* moduleIdentifier (server only) */
  560. null
  561. )
  562. module.exports = Component.exports
  563. /***/ }),
  564. /* 18 */
  565. /***/ (function(module, exports) {
  566. module.exports = __WEBPACK_EXTERNAL_MODULE_18__;
  567. /***/ }),
  568. /* 19 */
  569. /***/ (function(module, exports, __webpack_require__) {
  570. var global = __webpack_require__(8);
  571. var core = __webpack_require__(6);
  572. var ctx = __webpack_require__(46);
  573. var hide = __webpack_require__(14);
  574. var has = __webpack_require__(13);
  575. var PROTOTYPE = 'prototype';
  576. var $export = function (type, name, source) {
  577. var IS_FORCED = type & $export.F;
  578. var IS_GLOBAL = type & $export.G;
  579. var IS_STATIC = type & $export.S;
  580. var IS_PROTO = type & $export.P;
  581. var IS_BIND = type & $export.B;
  582. var IS_WRAP = type & $export.W;
  583. var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  584. var expProto = exports[PROTOTYPE];
  585. var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
  586. var key, own, out;
  587. if (IS_GLOBAL) source = name;
  588. for (key in source) {
  589. // contains in native
  590. own = !IS_FORCED && target && target[key] !== undefined;
  591. if (own && has(exports, key)) continue;
  592. // export native or passed
  593. out = own ? target[key] : source[key];
  594. // prevent global pollution for namespaces
  595. exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
  596. // bind timers to global for call from export context
  597. : IS_BIND && own ? ctx(out, global)
  598. // wrap global constructors for prevent change them in library
  599. : IS_WRAP && target[key] == out ? (function (C) {
  600. var F = function (a, b, c) {
  601. if (this instanceof C) {
  602. switch (arguments.length) {
  603. case 0: return new C();
  604. case 1: return new C(a);
  605. case 2: return new C(a, b);
  606. } return new C(a, b, c);
  607. } return C.apply(this, arguments);
  608. };
  609. F[PROTOTYPE] = C[PROTOTYPE];
  610. return F;
  611. // make static versions for prototype methods
  612. })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
  613. // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
  614. if (IS_PROTO) {
  615. (exports.virtual || (exports.virtual = {}))[key] = out;
  616. // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
  617. if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
  618. }
  619. }
  620. };
  621. // type bitmap
  622. $export.F = 1; // forced
  623. $export.G = 2; // global
  624. $export.S = 4; // static
  625. $export.P = 8; // proto
  626. $export.B = 16; // bind
  627. $export.W = 32; // wrap
  628. $export.U = 64; // safe
  629. $export.R = 128; // real proto method for `library`
  630. module.exports = $export;
  631. /***/ }),
  632. /* 20 */
  633. /***/ (function(module, exports) {
  634. module.exports = function (it) {
  635. return typeof it === 'object' ? it !== null : typeof it === 'function';
  636. };
  637. /***/ }),
  638. /* 21 */
  639. /***/ (function(module, exports) {
  640. module.exports = function (exec) {
  641. try {
  642. return !!exec();
  643. } catch (e) {
  644. return true;
  645. }
  646. };
  647. /***/ }),
  648. /* 22 */
  649. /***/ (function(module, exports) {
  650. module.exports = function (bitmap, value) {
  651. return {
  652. enumerable: !(bitmap & 1),
  653. configurable: !(bitmap & 2),
  654. writable: !(bitmap & 4),
  655. value: value
  656. };
  657. };
  658. /***/ }),
  659. /* 23 */
  660. /***/ (function(module, exports) {
  661. module.exports = {};
  662. /***/ }),
  663. /* 24 */
  664. /***/ (function(module, exports, __webpack_require__) {
  665. // 19.1.2.14 / 15.2.3.14 Object.keys(O)
  666. var $keys = __webpack_require__(49);
  667. var enumBugKeys = __webpack_require__(38);
  668. module.exports = Object.keys || function keys(O) {
  669. return $keys(O, enumBugKeys);
  670. };
  671. /***/ }),
  672. /* 25 */
  673. /***/ (function(module, exports) {
  674. module.exports = true;
  675. /***/ }),
  676. /* 26 */
  677. /***/ (function(module, exports) {
  678. var id = 0;
  679. var px = Math.random();
  680. module.exports = function (key) {
  681. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
  682. };
  683. /***/ }),
  684. /* 27 */
  685. /***/ (function(module, exports) {
  686. exports.f = {}.propertyIsEnumerable;
  687. /***/ }),
  688. /* 28 */
  689. /***/ (function(module, exports, __webpack_require__) {
  690. var Component = __webpack_require__(0)(
  691. /* script */
  692. __webpack_require__(123),
  693. /* template */
  694. __webpack_require__(124),
  695. /* styles */
  696. null,
  697. /* scopeId */
  698. null,
  699. /* moduleIdentifier (server only) */
  700. null
  701. )
  702. module.exports = Component.exports
  703. /***/ }),
  704. /* 29 */
  705. /***/ (function(module, exports, __webpack_require__) {
  706. var Component = __webpack_require__(0)(
  707. /* script */
  708. __webpack_require__(125),
  709. /* template */
  710. __webpack_require__(126),
  711. /* styles */
  712. null,
  713. /* scopeId */
  714. null,
  715. /* moduleIdentifier (server only) */
  716. null
  717. )
  718. module.exports = Component.exports
  719. /***/ }),
  720. /* 30 */
  721. /***/ (function(module, exports, __webpack_require__) {
  722. var Component = __webpack_require__(0)(
  723. /* script */
  724. __webpack_require__(127),
  725. /* template */
  726. __webpack_require__(130),
  727. /* styles */
  728. null,
  729. /* scopeId */
  730. null,
  731. /* moduleIdentifier (server only) */
  732. null
  733. )
  734. module.exports = Component.exports
  735. /***/ }),
  736. /* 31 */
  737. /***/ (function(module, exports, __webpack_require__) {
  738. var Component = __webpack_require__(0)(
  739. /* script */
  740. __webpack_require__(137),
  741. /* template */
  742. __webpack_require__(138),
  743. /* styles */
  744. null,
  745. /* scopeId */
  746. null,
  747. /* moduleIdentifier (server only) */
  748. null
  749. )
  750. module.exports = Component.exports
  751. /***/ }),
  752. /* 32 */
  753. /***/ (function(module, exports, __webpack_require__) {
  754. // 7.1.1 ToPrimitive(input [, PreferredType])
  755. var isObject = __webpack_require__(20);
  756. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  757. // and the second argument - flag - preferred type is a string
  758. module.exports = function (it, S) {
  759. if (!isObject(it)) return it;
  760. var fn, val;
  761. if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  762. if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  763. if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  764. throw TypeError("Can't convert object to primitive value");
  765. };
  766. /***/ }),
  767. /* 33 */
  768. /***/ (function(module, exports) {
  769. var toString = {}.toString;
  770. module.exports = function (it) {
  771. return toString.call(it).slice(8, -1);
  772. };
  773. /***/ }),
  774. /* 34 */
  775. /***/ (function(module, exports) {
  776. // 7.2.1 RequireObjectCoercible(argument)
  777. module.exports = function (it) {
  778. if (it == undefined) throw TypeError("Can't call method on " + it);
  779. return it;
  780. };
  781. /***/ }),
  782. /* 35 */
  783. /***/ (function(module, exports) {
  784. // 7.1.4 ToInteger
  785. var ceil = Math.ceil;
  786. var floor = Math.floor;
  787. module.exports = function (it) {
  788. return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
  789. };
  790. /***/ }),
  791. /* 36 */
  792. /***/ (function(module, exports, __webpack_require__) {
  793. var shared = __webpack_require__(37)('keys');
  794. var uid = __webpack_require__(26);
  795. module.exports = function (key) {
  796. return shared[key] || (shared[key] = uid(key));
  797. };
  798. /***/ }),
  799. /* 37 */
  800. /***/ (function(module, exports, __webpack_require__) {
  801. var core = __webpack_require__(6);
  802. var global = __webpack_require__(8);
  803. var SHARED = '__core-js_shared__';
  804. var store = global[SHARED] || (global[SHARED] = {});
  805. (module.exports = function (key, value) {
  806. return store[key] || (store[key] = value !== undefined ? value : {});
  807. })('versions', []).push({
  808. version: core.version,
  809. mode: __webpack_require__(25) ? 'pure' : 'global',
  810. copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
  811. });
  812. /***/ }),
  813. /* 38 */
  814. /***/ (function(module, exports) {
  815. // IE 8- don't enum bug keys
  816. module.exports = (
  817. 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
  818. ).split(',');
  819. /***/ }),
  820. /* 39 */
  821. /***/ (function(module, exports) {
  822. exports.f = Object.getOwnPropertySymbols;
  823. /***/ }),
  824. /* 40 */
  825. /***/ (function(module, exports, __webpack_require__) {
  826. // 7.1.13 ToObject(argument)
  827. var defined = __webpack_require__(34);
  828. module.exports = function (it) {
  829. return Object(defined(it));
  830. };
  831. /***/ }),
  832. /* 41 */
  833. /***/ (function(module, exports, __webpack_require__) {
  834. "use strict";
  835. var $at = __webpack_require__(81)(true);
  836. // 21.1.3.27 String.prototype[@@iterator]()
  837. __webpack_require__(54)(String, 'String', function (iterated) {
  838. this._t = String(iterated); // target
  839. this._i = 0; // next index
  840. // 21.1.5.2.1 %StringIteratorPrototype%.next()
  841. }, function () {
  842. var O = this._t;
  843. var index = this._i;
  844. var point;
  845. if (index >= O.length) return { value: undefined, done: true };
  846. point = $at(O, index);
  847. this._i += point.length;
  848. return { value: point, done: false };
  849. });
  850. /***/ }),
  851. /* 42 */
  852. /***/ (function(module, exports, __webpack_require__) {
  853. var def = __webpack_require__(9).f;
  854. var has = __webpack_require__(13);
  855. var TAG = __webpack_require__(4)('toStringTag');
  856. module.exports = function (it, tag, stat) {
  857. if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
  858. };
  859. /***/ }),
  860. /* 43 */
  861. /***/ (function(module, exports, __webpack_require__) {
  862. exports.f = __webpack_require__(4);
  863. /***/ }),
  864. /* 44 */
  865. /***/ (function(module, exports, __webpack_require__) {
  866. var global = __webpack_require__(8);
  867. var core = __webpack_require__(6);
  868. var LIBRARY = __webpack_require__(25);
  869. var wksExt = __webpack_require__(43);
  870. var defineProperty = __webpack_require__(9).f;
  871. module.exports = function (name) {
  872. var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
  873. if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
  874. };
  875. /***/ }),
  876. /* 45 */
  877. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  878. "use strict";
  879. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__config__ = __webpack_require__(2);
  880. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__helpers__ = __webpack_require__(7);
  881. /* harmony default export */ __webpack_exports__["a"] = ({
  882. props: {
  883. type: {
  884. type: String,
  885. default: 'is-dark'
  886. },
  887. message: String,
  888. duration: Number,
  889. queue: {
  890. type: Boolean,
  891. default: undefined
  892. },
  893. position: {
  894. type: String,
  895. default: 'is-top',
  896. validator: function validator(value) {
  897. return ['is-top-right', 'is-top', 'is-top-left', 'is-bottom-right', 'is-bottom', 'is-bottom-left'].indexOf(value) > -1;
  898. }
  899. },
  900. container: String
  901. },
  902. data: function data() {
  903. return {
  904. isActive: false,
  905. parentTop: null,
  906. parentBottom: null,
  907. newContainer: this.container || __WEBPACK_IMPORTED_MODULE_0__config__["a" /* default */].defaultContainerElement
  908. };
  909. },
  910. computed: {
  911. correctParent: function correctParent() {
  912. switch (this.position) {
  913. case 'is-top-right':
  914. case 'is-top':
  915. case 'is-top-left':
  916. return this.parentTop;
  917. case 'is-bottom-right':
  918. case 'is-bottom':
  919. case 'is-bottom-left':
  920. return this.parentBottom;
  921. }
  922. },
  923. transition: function transition() {
  924. switch (this.position) {
  925. case 'is-top-right':
  926. case 'is-top':
  927. case 'is-top-left':
  928. return {
  929. enter: 'fadeInDown',
  930. leave: 'fadeOut'
  931. };
  932. case 'is-bottom-right':
  933. case 'is-bottom':
  934. case 'is-bottom-left':
  935. return {
  936. enter: 'fadeInUp',
  937. leave: 'fadeOut'
  938. };
  939. }
  940. }
  941. },
  942. methods: {
  943. shouldQueue: function shouldQueue() {
  944. var queue = this.queue !== undefined ? this.queue : __WEBPACK_IMPORTED_MODULE_0__config__["a" /* default */].defaultNoticeQueue;
  945. if (!queue) return false;
  946. return this.parentTop.childElementCount > 0 || this.parentBottom.childElementCount > 0;
  947. },
  948. close: function close() {
  949. var _this = this;
  950. clearTimeout(this.timer);
  951. this.isActive = false;
  952. // Timeout for the animation complete before destroying
  953. setTimeout(function () {
  954. _this.$destroy();
  955. Object(__WEBPACK_IMPORTED_MODULE_1__helpers__["d" /* removeElement */])(_this.$el);
  956. }, 150);
  957. },
  958. showNotice: function showNotice() {
  959. var _this2 = this;
  960. if (this.shouldQueue()) {
  961. // Call recursively if should queue
  962. setTimeout(function () {
  963. return _this2.showNotice();
  964. }, 250);
  965. return;
  966. }
  967. this.correctParent.insertAdjacentElement('afterbegin', this.$el);
  968. this.isActive = true;
  969. if (!this.indefinite) {
  970. this.timer = setTimeout(function () {
  971. return _this2.close();
  972. }, this.newDuration);
  973. }
  974. },
  975. setupContainer: function setupContainer() {
  976. this.parentTop = document.querySelector('.notices.is-top');
  977. this.parentBottom = document.querySelector('.notices.is-bottom');
  978. if (this.parentTop && this.parentBottom) return;
  979. if (!this.parentTop) {
  980. this.parentTop = document.createElement('div');
  981. this.parentTop.className = 'notices is-top';
  982. }
  983. if (!this.parentBottom) {
  984. this.parentBottom = document.createElement('div');
  985. this.parentBottom.className = 'notices is-bottom';
  986. }
  987. var container = document.querySelector(this.newContainer) || document.body;
  988. container.appendChild(this.parentTop);
  989. container.appendChild(this.parentBottom);
  990. if (this.newContainer) {
  991. this.parentTop.classList.add('has-custom-container');
  992. this.parentBottom.classList.add('has-custom-container');
  993. }
  994. }
  995. },
  996. beforeMount: function beforeMount() {
  997. this.setupContainer();
  998. },
  999. mounted: function mounted() {
  1000. this.showNotice();
  1001. }
  1002. });
  1003. /***/ }),
  1004. /* 46 */
  1005. /***/ (function(module, exports, __webpack_require__) {
  1006. // optional / simple context binding
  1007. var aFunction = __webpack_require__(73);
  1008. module.exports = function (fn, that, length) {
  1009. aFunction(fn);
  1010. if (that === undefined) return fn;
  1011. switch (length) {
  1012. case 1: return function (a) {
  1013. return fn.call(that, a);
  1014. };
  1015. case 2: return function (a, b) {
  1016. return fn.call(that, a, b);
  1017. };
  1018. case 3: return function (a, b, c) {
  1019. return fn.call(that, a, b, c);
  1020. };
  1021. }
  1022. return function (/* ...args */) {
  1023. return fn.apply(that, arguments);
  1024. };
  1025. };
  1026. /***/ }),
  1027. /* 47 */
  1028. /***/ (function(module, exports, __webpack_require__) {
  1029. module.exports = !__webpack_require__(12) && !__webpack_require__(21)(function () {
  1030. return Object.defineProperty(__webpack_require__(48)('div'), 'a', { get: function () { return 7; } }).a != 7;
  1031. });
  1032. /***/ }),
  1033. /* 48 */
  1034. /***/ (function(module, exports, __webpack_require__) {
  1035. var isObject = __webpack_require__(20);
  1036. var document = __webpack_require__(8).document;
  1037. // typeof document.createElement is 'object' in old IE
  1038. var is = isObject(document) && isObject(document.createElement);
  1039. module.exports = function (it) {
  1040. return is ? document.createElement(it) : {};
  1041. };
  1042. /***/ }),
  1043. /* 49 */
  1044. /***/ (function(module, exports, __webpack_require__) {
  1045. var has = __webpack_require__(13);
  1046. var toIObject = __webpack_require__(16);
  1047. var arrayIndexOf = __webpack_require__(75)(false);
  1048. var IE_PROTO = __webpack_require__(36)('IE_PROTO');
  1049. module.exports = function (object, names) {
  1050. var O = toIObject(object);
  1051. var i = 0;
  1052. var result = [];
  1053. var key;
  1054. for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  1055. // Don't enum bug & hidden keys
  1056. while (names.length > i) if (has(O, key = names[i++])) {
  1057. ~arrayIndexOf(result, key) || result.push(key);
  1058. }
  1059. return result;
  1060. };
  1061. /***/ }),
  1062. /* 50 */
  1063. /***/ (function(module, exports, __webpack_require__) {
  1064. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  1065. var cof = __webpack_require__(33);
  1066. // eslint-disable-next-line no-prototype-builtins
  1067. module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  1068. return cof(it) == 'String' ? it.split('') : Object(it);
  1069. };
  1070. /***/ }),
  1071. /* 51 */
  1072. /***/ (function(module, exports, __webpack_require__) {
  1073. // 7.1.15 ToLength
  1074. var toInteger = __webpack_require__(35);
  1075. var min = Math.min;
  1076. module.exports = function (it) {
  1077. return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
  1078. };
  1079. /***/ }),
  1080. /* 52 */
  1081. /***/ (function(module, exports, __webpack_require__) {
  1082. var Component = __webpack_require__(0)(
  1083. /* script */
  1084. __webpack_require__(78),
  1085. /* template */
  1086. __webpack_require__(109),
  1087. /* styles */
  1088. null,
  1089. /* scopeId */
  1090. null,
  1091. /* moduleIdentifier (server only) */
  1092. null
  1093. )
  1094. module.exports = Component.exports
  1095. /***/ }),
  1096. /* 53 */
  1097. /***/ (function(module, exports, __webpack_require__) {
  1098. "use strict";
  1099. exports.__esModule = true;
  1100. var _iterator = __webpack_require__(79);
  1101. var _iterator2 = _interopRequireDefault(_iterator);
  1102. var _symbol = __webpack_require__(5);
  1103. var _symbol2 = _interopRequireDefault(_symbol);
  1104. var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
  1105. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  1106. exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
  1107. return typeof obj === "undefined" ? "undefined" : _typeof(obj);
  1108. } : function (obj) {
  1109. return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
  1110. };
  1111. /***/ }),
  1112. /* 54 */
  1113. /***/ (function(module, exports, __webpack_require__) {
  1114. "use strict";
  1115. var LIBRARY = __webpack_require__(25);
  1116. var $export = __webpack_require__(19);
  1117. var redefine = __webpack_require__(55);
  1118. var hide = __webpack_require__(14);
  1119. var Iterators = __webpack_require__(23);
  1120. var $iterCreate = __webpack_require__(82);
  1121. var setToStringTag = __webpack_require__(42);
  1122. var getPrototypeOf = __webpack_require__(85);
  1123. var ITERATOR = __webpack_require__(4)('iterator');
  1124. var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
  1125. var FF_ITERATOR = '@@iterator';
  1126. var KEYS = 'keys';
  1127. var VALUES = 'values';
  1128. var returnThis = function () { return this; };
  1129. module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  1130. $iterCreate(Constructor, NAME, next);
  1131. var getMethod = function (kind) {
  1132. if (!BUGGY && kind in proto) return proto[kind];
  1133. switch (kind) {
  1134. case KEYS: return function keys() { return new Constructor(this, kind); };
  1135. case VALUES: return function values() { return new Constructor(this, kind); };
  1136. } return function entries() { return new Constructor(this, kind); };
  1137. };
  1138. var TAG = NAME + ' Iterator';
  1139. var DEF_VALUES = DEFAULT == VALUES;
  1140. var VALUES_BUG = false;
  1141. var proto = Base.prototype;
  1142. var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  1143. var $default = $native || getMethod(DEFAULT);
  1144. var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  1145. var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  1146. var methods, key, IteratorPrototype;
  1147. // Fix native
  1148. if ($anyNative) {
  1149. IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
  1150. if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
  1151. // Set @@toStringTag to native iterators
  1152. setToStringTag(IteratorPrototype, TAG, true);
  1153. // fix for some old engines
  1154. if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
  1155. }
  1156. }
  1157. // fix Array#{values, @@iterator}.name in V8 / FF
  1158. if (DEF_VALUES && $native && $native.name !== VALUES) {
  1159. VALUES_BUG = true;
  1160. $default = function values() { return $native.call(this); };
  1161. }
  1162. // Define iterator
  1163. if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
  1164. hide(proto, ITERATOR, $default);
  1165. }
  1166. // Plug for library
  1167. Iterators[NAME] = $default;
  1168. Iterators[TAG] = returnThis;
  1169. if (DEFAULT) {
  1170. methods = {
  1171. values: DEF_VALUES ? $default : getMethod(VALUES),
  1172. keys: IS_SET ? $default : getMethod(KEYS),
  1173. entries: $entries
  1174. };
  1175. if (FORCED) for (key in methods) {
  1176. if (!(key in proto)) redefine(proto, key, methods[key]);
  1177. } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  1178. }
  1179. return methods;
  1180. };
  1181. /***/ }),
  1182. /* 55 */
  1183. /***/ (function(module, exports, __webpack_require__) {
  1184. module.exports = __webpack_require__(14);
  1185. /***/ }),
  1186. /* 56 */
  1187. /***/ (function(module, exports, __webpack_require__) {
  1188. // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
  1189. var anObject = __webpack_require__(15);
  1190. var dPs = __webpack_require__(83);
  1191. var enumBugKeys = __webpack_require__(38);
  1192. var IE_PROTO = __webpack_require__(36)('IE_PROTO');
  1193. var Empty = function () { /* empty */ };
  1194. var PROTOTYPE = 'prototype';
  1195. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1196. var createDict = function () {
  1197. // Thrash, waste and sodomy: IE GC bug
  1198. var iframe = __webpack_require__(48)('iframe');
  1199. var i = enumBugKeys.length;
  1200. var lt = '<';
  1201. var gt = '>';
  1202. var iframeDocument;
  1203. iframe.style.display = 'none';
  1204. __webpack_require__(84).appendChild(iframe);
  1205. iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  1206. // createDict = iframe.contentWindow.Object;
  1207. // html.removeChild(iframe);
  1208. iframeDocument = iframe.contentWindow.document;
  1209. iframeDocument.open();
  1210. iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  1211. iframeDocument.close();
  1212. createDict = iframeDocument.F;
  1213. while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  1214. return createDict();
  1215. };
  1216. module.exports = Object.create || function create(O, Properties) {
  1217. var result;
  1218. if (O !== null) {
  1219. Empty[PROTOTYPE] = anObject(O);
  1220. result = new Empty();
  1221. Empty[PROTOTYPE] = null;
  1222. // add "__proto__" for Object.getPrototypeOf polyfill
  1223. result[IE_PROTO] = O;
  1224. } else result = createDict();
  1225. return Properties === undefined ? result : dPs(result, Properties);
  1226. };
  1227. /***/ }),
  1228. /* 57 */
  1229. /***/ (function(module, exports, __webpack_require__) {
  1230. __webpack_require__(86);
  1231. var global = __webpack_require__(8);
  1232. var hide = __webpack_require__(14);
  1233. var Iterators = __webpack_require__(23);
  1234. var TO_STRING_TAG = __webpack_require__(4)('toStringTag');
  1235. var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
  1236. 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
  1237. 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
  1238. 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
  1239. 'TextTrackList,TouchList').split(',');
  1240. for (var i = 0; i < DOMIterables.length; i++) {
  1241. var NAME = DOMIterables[i];
  1242. var Collection = global[NAME];
  1243. var proto = Collection && Collection.prototype;
  1244. if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
  1245. Iterators[NAME] = Iterators.Array;
  1246. }
  1247. /***/ }),
  1248. /* 58 */
  1249. /***/ (function(module, exports, __webpack_require__) {
  1250. // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
  1251. var $keys = __webpack_require__(49);
  1252. var hiddenKeys = __webpack_require__(38).concat('length', 'prototype');
  1253. exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1254. return $keys(O, hiddenKeys);
  1255. };
  1256. /***/ }),
  1257. /* 59 */
  1258. /***/ (function(module, exports, __webpack_require__) {
  1259. module.exports = { "default": __webpack_require__(99), __esModule: true };
  1260. /***/ }),
  1261. /* 60 */
  1262. /***/ (function(module, exports, __webpack_require__) {
  1263. var classof = __webpack_require__(101);
  1264. var ITERATOR = __webpack_require__(4)('iterator');
  1265. var Iterators = __webpack_require__(23);
  1266. module.exports = __webpack_require__(6).getIteratorMethod = function (it) {
  1267. if (it != undefined) return it[ITERATOR]
  1268. || it['@@iterator']
  1269. || Iterators[classof(it)];
  1270. };
  1271. /***/ }),
  1272. /* 61 */
  1273. /***/ (function(module, exports, __webpack_require__) {
  1274. var Component = __webpack_require__(0)(
  1275. /* script */
  1276. __webpack_require__(113),
  1277. /* template */
  1278. __webpack_require__(114),
  1279. /* styles */
  1280. null,
  1281. /* scopeId */
  1282. null,
  1283. /* moduleIdentifier (server only) */
  1284. null
  1285. )
  1286. module.exports = Component.exports
  1287. /***/ }),
  1288. /* 62 */
  1289. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1290. "use strict";
  1291. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormElementMixin__ = __webpack_require__(10);
  1292. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__helpers__ = __webpack_require__(7);
  1293. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(2);
  1294. var _this = this;
  1295. var AM = 'AM';
  1296. var PM = 'PM';
  1297. var HOUR_FORMAT_24 = '24';
  1298. var HOUR_FORMAT_12 = '12';
  1299. var defaultTimeFormatter = function defaultTimeFormatter(date, vm) {
  1300. var hours = date.getHours();
  1301. var minutes = date.getMinutes();
  1302. var seconds = date.getSeconds();
  1303. var period = '';
  1304. if (vm.hourFormat === HOUR_FORMAT_12) {
  1305. period = ' ' + (hours < 12 ? AM : PM);
  1306. if (hours > 12) {
  1307. hours -= 12;
  1308. } else if (hours === 0) {
  1309. hours = 12;
  1310. }
  1311. }
  1312. return vm.pad(hours) + ':' + vm.pad(minutes) + (vm.enableSeconds ? ':' + vm.pad(seconds) : '') + period;
  1313. };
  1314. var defaultTimeParser = function defaultTimeParser(timeString, vm) {
  1315. if (timeString) {
  1316. var am = false;
  1317. if (vm.hourFormat === HOUR_FORMAT_12) {
  1318. var dateString12 = timeString.split(' ');
  1319. timeString = dateString12[0];
  1320. am = dateString12[1] === AM;
  1321. }
  1322. var time = timeString.split(':');
  1323. var hours = parseInt(time[0], 10);
  1324. var minutes = parseInt(time[1], 10);
  1325. var seconds = vm.enableSeconds ? parseInt(time[2], 10) : 0;
  1326. if (isNaN(hours) || hours < 0 || hours > 23 || vm.hourFormat === HOUR_FORMAT_12 && (hours < 1 || hours > 12) || isNaN(minutes) || minutes < 0 || minutes > 59) {
  1327. return null;
  1328. }
  1329. var d = null;
  1330. if (vm.computedValue && !isNaN(vm.computedValue)) {
  1331. d = new Date(vm.computedValue);
  1332. } else {
  1333. d = new Date();
  1334. d.setMilliseconds(0);
  1335. }
  1336. d.setSeconds(seconds);
  1337. d.setMinutes(minutes);
  1338. if (_this.hourFormat === HOUR_FORMAT_12) {
  1339. if (am && hours === 12) {
  1340. hours = 0;
  1341. } else if (!am && hours !== 12) {
  1342. hours += 12;
  1343. }
  1344. }
  1345. d.setHours(hours);
  1346. return new Date(d.geTime());
  1347. }
  1348. return null;
  1349. };
  1350. /* harmony default export */ __webpack_exports__["a"] = ({
  1351. mixins: [__WEBPACK_IMPORTED_MODULE_0__FormElementMixin__["a" /* default */]],
  1352. inheritAttrs: false,
  1353. props: {
  1354. value: Date,
  1355. inline: Boolean,
  1356. minTime: Date,
  1357. maxTime: Date,
  1358. placeholder: String,
  1359. editable: Boolean,
  1360. disabled: Boolean,
  1361. hourFormat: {
  1362. type: String,
  1363. default: HOUR_FORMAT_24,
  1364. validator: function validator(value) {
  1365. return value === HOUR_FORMAT_24 || value === HOUR_FORMAT_12;
  1366. }
  1367. },
  1368. incrementMinutes: {
  1369. type: Number,
  1370. default: 1
  1371. },
  1372. incrementSeconds: {
  1373. type: Number,
  1374. default: 1
  1375. },
  1376. timeFormatter: {
  1377. type: Function,
  1378. default: function _default(date, vm) {
  1379. if (typeof __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeFormatter === 'function') {
  1380. return __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeFormatter(date);
  1381. } else {
  1382. return defaultTimeFormatter(date, vm);
  1383. }
  1384. }
  1385. },
  1386. timeParser: {
  1387. type: Function,
  1388. default: function _default(date, vm) {
  1389. if (typeof __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeParser === 'function') {
  1390. return __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeParser(date);
  1391. } else {
  1392. return defaultTimeParser(date, vm);
  1393. }
  1394. }
  1395. },
  1396. mobileNative: {
  1397. type: Boolean,
  1398. default: function _default() {
  1399. return __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimepickerMobileNative;
  1400. }
  1401. },
  1402. position: String,
  1403. unselectableTimes: Array,
  1404. openOnFocus: Boolean,
  1405. enableSeconds: Boolean
  1406. },
  1407. data: function data() {
  1408. return {
  1409. dateSelected: this.value,
  1410. hoursSelected: null,
  1411. minutesSelected: null,
  1412. secondsSelected: null,
  1413. meridienSelected: null,
  1414. _elementRef: 'input',
  1415. AM: AM,
  1416. PM: PM,
  1417. HOUR_FORMAT_24: HOUR_FORMAT_24,
  1418. HOUR_FORMAT_12: HOUR_FORMAT_12
  1419. };
  1420. },
  1421. computed: {
  1422. computedValue: {
  1423. get: function get() {
  1424. return this.dateSelected;
  1425. },
  1426. set: function set(value) {
  1427. this.dateSelected = value;
  1428. this.$emit('input', value);
  1429. }
  1430. },
  1431. hours: function hours() {
  1432. var hours = [];
  1433. var numberOfHours = this.isHourFormat24 ? 24 : 12;
  1434. for (var i = 0; i < numberOfHours; i++) {
  1435. var value = i;
  1436. var label = value;
  1437. if (!this.isHourFormat24) {
  1438. value = i + 1;
  1439. label = value;
  1440. if (this.meridienSelected === this.AM) {
  1441. if (value === 12) {
  1442. value = 0;
  1443. }
  1444. } else if (this.meridienSelected === this.PM) {
  1445. if (value !== 12) {
  1446. value += 12;
  1447. }
  1448. }
  1449. }
  1450. hours.push({
  1451. label: this.formatNumber(label),
  1452. value: value
  1453. });
  1454. }
  1455. return hours;
  1456. },
  1457. minutes: function minutes() {
  1458. var minutes = [];
  1459. for (var i = 0; i < 60; i += this.incrementMinutes) {
  1460. minutes.push({
  1461. label: this.formatNumber(i),
  1462. value: i
  1463. });
  1464. }
  1465. return minutes;
  1466. },
  1467. seconds: function seconds() {
  1468. var seconds = [];
  1469. for (var i = 0; i < 60; i += this.incrementSeconds) {
  1470. seconds.push({
  1471. label: this.formatNumber(i),
  1472. value: i
  1473. });
  1474. }
  1475. return seconds;
  1476. },
  1477. meridiens: function meridiens() {
  1478. return [AM, PM];
  1479. },
  1480. isMobile: function isMobile() {
  1481. return this.mobileNative && __WEBPACK_IMPORTED_MODULE_1__helpers__["c" /* isMobile */].any();
  1482. },
  1483. isHourFormat24: function isHourFormat24() {
  1484. return this.hourFormat === HOUR_FORMAT_24;
  1485. }
  1486. },
  1487. watch: {
  1488. hourFormat: function hourFormat() {
  1489. if (this.hoursSelected !== null) {
  1490. this.meridienSelected = this.hoursSelected >= 12 ? PM : AM;
  1491. }
  1492. },
  1493. /**
  1494. * When v-model is changed:
  1495. * 1. Update internal value.
  1496. * 2. If it's invalid, validate again.
  1497. */
  1498. value: {
  1499. handler: function handler(value) {
  1500. this.updateInternalState(value);
  1501. !this.isValid && this.$refs.input.checkHtml5Validity();
  1502. },
  1503. immediate: true
  1504. }
  1505. },
  1506. methods: {
  1507. onMeridienChange: function onMeridienChange(value) {
  1508. if (this.hoursSelected !== null) {
  1509. if (value === PM) {
  1510. this.hoursSelected += 12;
  1511. } else if (value === AM) {
  1512. this.hoursSelected -= 12;
  1513. }
  1514. }
  1515. this.updateDateSelected(this.hoursSelected, this.minutesSelected, this.enableSeconds ? this.secondsSelected : 0, value);
  1516. },
  1517. onHoursChange: function onHoursChange(value) {
  1518. this.updateDateSelected(parseInt(value, 10), this.minutesSelected, this.enableSeconds ? this.secondsSelected : 0, this.meridienSelected);
  1519. },
  1520. onMinutesChange: function onMinutesChange(value) {
  1521. this.updateDateSelected(this.hoursSelected, parseInt(value, 10), this.enableSeconds ? this.secondsSelected : 0, this.meridienSelected);
  1522. },
  1523. onSecondsChange: function onSecondsChange(value) {
  1524. this.updateDateSelected(this.hoursSelected, this.minutesSelected, parseInt(value, 10), this.meridienSelected);
  1525. },
  1526. updateDateSelected: function updateDateSelected(hours, minutes, seconds, meridiens) {
  1527. if (hours != null && minutes != null && (!this.isHourFormat24 && meridiens !== null || this.isHourFormat24)) {
  1528. var time = null;
  1529. if (this.computedValue && !isNaN(this.computedValue)) {
  1530. time = new Date(this.computedValue);
  1531. } else {
  1532. time = new Date();
  1533. time.setMilliseconds(0);
  1534. }
  1535. time.setHours(hours);
  1536. time.setMinutes(minutes);
  1537. time.setSeconds(seconds);
  1538. this.computedValue = new Date(time.getTime());
  1539. }
  1540. },
  1541. updateInternalState: function updateInternalState(value) {
  1542. if (value) {
  1543. this.hoursSelected = value.getHours();
  1544. this.minutesSelected = value.getMinutes();
  1545. this.secondsSelected = value.getSeconds();
  1546. this.meridienSelected = value.getHours() >= 12 ? PM : AM;
  1547. } else {
  1548. this.hoursSelected = null;
  1549. this.minutesSelected = null;
  1550. this.secondsSelected = null;
  1551. this.meridienSelected = AM;
  1552. }
  1553. this.dateSelected = value;
  1554. },
  1555. isHourDisabled: function isHourDisabled(hour) {
  1556. var _this2 = this;
  1557. var disabled = false;
  1558. if (this.minTime) {
  1559. var minHours = this.minTime.getHours();
  1560. disabled = hour < minHours;
  1561. }
  1562. if (this.maxTime) {
  1563. if (!disabled) {
  1564. var maxHours = this.maxTime.getHours();
  1565. disabled = hour > maxHours;
  1566. }
  1567. }
  1568. if (this.unselectableTimes) {
  1569. if (!disabled) {
  1570. var unselectable = this.unselectableTimes.filter(function (time) {
  1571. if (_this2.enableSeconds && _this2.secondsSelected !== null) {
  1572. return time.getHours() === hour && time.getMinutes() === _this2.minutesSelected && time.getSeconds() === _this2.secondsSelected;
  1573. } else if (_this2.minutesSelected !== null) {
  1574. return time.getHours() === hour && time.getMinutes() === _this2.minutesSelected;
  1575. } else {
  1576. return time.getHours() === hour;
  1577. }
  1578. });
  1579. disabled = unselectable.length > 0;
  1580. }
  1581. }
  1582. return disabled;
  1583. },
  1584. isMinuteDisabled: function isMinuteDisabled(minute) {
  1585. var _this3 = this;
  1586. var disabled = false;
  1587. if (this.hoursSelected !== null) {
  1588. if (this.isHourDisabled(this.hoursSelected)) {
  1589. disabled = true;
  1590. } else {
  1591. if (this.minTime) {
  1592. var minHours = this.minTime.getHours();
  1593. var minMinutes = this.minTime.getMinutes();
  1594. disabled = this.hoursSelected === minHours && minute < minMinutes;
  1595. }
  1596. if (this.maxTime) {
  1597. if (!disabled) {
  1598. var maxHours = this.maxTime.getHours();
  1599. var maxMinutes = this.maxTime.getMinutes();
  1600. disabled = this.hoursSelected === maxHours && minute > maxMinutes;
  1601. }
  1602. }
  1603. }
  1604. if (this.unselectableTimes) {
  1605. if (!disabled) {
  1606. var unselectable = this.unselectableTimes.filter(function (time) {
  1607. if (_this3.enableSeconds && _this3.secondsSelected !== null) {
  1608. return time.getHours() === _this3.hoursSelected && time.getMinutes() === minute && time.getSeconds() === _this3.secondsSelected;
  1609. } else {
  1610. return time.getHours() === _this3.hoursSelected && time.getMinutes() === minute;
  1611. }
  1612. });
  1613. disabled = unselectable.length > 0;
  1614. }
  1615. }
  1616. }
  1617. return disabled;
  1618. },
  1619. isSecondDisabled: function isSecondDisabled(second) {
  1620. var _this4 = this;
  1621. var disabled = false;
  1622. if (this.minutesSelected !== null) {
  1623. if (this.isMinuteDisabled(this.minutesSelected)) {
  1624. disabled = true;
  1625. } else {
  1626. if (this.minTime) {
  1627. var minHours = this.minTime.getHours();
  1628. var minMinutes = this.minTime.getMinutes();
  1629. var minSeconds = this.minTime.getSeconds();
  1630. disabled = this.hoursSelected === minHours && this.minutesSelected === minMinutes && second < minSeconds;
  1631. }
  1632. if (this.maxTime) {
  1633. if (!disabled) {
  1634. var maxHours = this.maxTime.getHours();
  1635. var maxMinutes = this.maxTime.getMinutes();
  1636. var maxSeconds = this.maxTime.getSeconds();
  1637. disabled = this.hoursSelected === maxHours && this.minutesSelected === maxMinutes && second > maxSeconds;
  1638. }
  1639. }
  1640. }
  1641. if (this.unselectableTimes) {
  1642. if (!disabled) {
  1643. var unselectable = this.unselectableTimes.filter(function (time) {
  1644. return time.getHours() === _this4.hoursSelected && time.getMinutes() === _this4.minutesSelected && time.getSeconds() === second;
  1645. });
  1646. disabled = unselectable.length > 0;
  1647. }
  1648. }
  1649. }
  1650. return disabled;
  1651. },
  1652. /*
  1653. * Parse string into date
  1654. */
  1655. onChange: function onChange(value) {
  1656. var date = this.timeParser(value, this);
  1657. this.updateInternalState(date);
  1658. if (date && !isNaN(date)) {
  1659. this.computedValue = date;
  1660. } else {
  1661. // Force refresh input value when not valid date
  1662. this.computedValue = null;
  1663. this.$refs.input.newValue = this.computedValue;
  1664. }
  1665. },
  1666. /*
  1667. * Toggle timepicker
  1668. */
  1669. toggle: function toggle(active) {
  1670. if (this.$refs.dropdown) {
  1671. this.$refs.dropdown.isActive = typeof active === 'boolean' ? active : !this.$refs.dropdown.isActive;
  1672. }
  1673. },
  1674. /*
  1675. * Close timepicker
  1676. */
  1677. close: function close() {
  1678. this.toggle(false);
  1679. },
  1680. /*
  1681. * Call default onFocus method and show timepicker
  1682. */
  1683. handleOnFocus: function handleOnFocus() {
  1684. this.onFocus();
  1685. if (this.openOnFocus) {
  1686. this.toggle(true);
  1687. }
  1688. },
  1689. /*
  1690. * Format date into string 'HH-MM-SS'
  1691. */
  1692. formatHHMMSS: function formatHHMMSS(value) {
  1693. var date = new Date(value);
  1694. if (value && !isNaN(date)) {
  1695. var hours = date.getHours();
  1696. var minutes = date.getMinutes();
  1697. var seconds = date.getSeconds();
  1698. return this.formatNumber(hours) + ':' + this.formatNumber(minutes, true) + ':' + this.formatNumber(seconds, true);
  1699. }
  1700. return '';
  1701. },
  1702. /*
  1703. * Parse time from string
  1704. */
  1705. onChangeNativePicker: function onChangeNativePicker(event) {
  1706. var date = event.target.value;
  1707. if (date) {
  1708. var time = null;
  1709. if (this.computedValue && !isNaN(this.computedValue)) {
  1710. time = new Date(this.computedValue);
  1711. } else {
  1712. time = new Date();
  1713. time.setMilliseconds(0);
  1714. }
  1715. var t = date.split(':');
  1716. time.setHours(parseInt(t[0], 10));
  1717. time.setMinutes(parseInt(t[1], 10));
  1718. time.setSeconds(t[2] ? parseInt(t[2], 10) : 0);
  1719. this.computedValue = new Date(time.getTime());
  1720. } else {
  1721. this.computedValue = null;
  1722. }
  1723. },
  1724. formatNumber: function formatNumber(value, isMinute) {
  1725. return this.isHourFormat24 || isMinute ? this.pad(value) : value;
  1726. },
  1727. pad: function pad(value) {
  1728. return (value < 10 ? '0' : '') + value;
  1729. },
  1730. /*
  1731. * Format date into string
  1732. */
  1733. formatValue: function formatValue(date) {
  1734. if (date && !isNaN(date)) {
  1735. return this.timeFormatter(date, this);
  1736. } else {
  1737. return null;
  1738. }
  1739. },
  1740. /**
  1741. * Keypress event that is bound to the document.
  1742. */
  1743. keyPress: function keyPress(event) {
  1744. // Esc key
  1745. if (this.$refs.dropdown && this.$refs.dropdown.isActive && event.keyCode === 27) {
  1746. this.toggle(false);
  1747. }
  1748. }
  1749. },
  1750. created: function created() {
  1751. if (typeof window !== 'undefined') {
  1752. document.addEventListener('keyup', this.keyPress);
  1753. }
  1754. },
  1755. beforeDestroy: function beforeDestroy() {
  1756. if (typeof window !== 'undefined') {
  1757. document.removeEventListener('keyup', this.keyPress);
  1758. }
  1759. }
  1760. });
  1761. /***/ }),
  1762. /* 63 */
  1763. /***/ (function(module, exports, __webpack_require__) {
  1764. var Component = __webpack_require__(0)(
  1765. /* script */
  1766. __webpack_require__(151),
  1767. /* template */
  1768. __webpack_require__(152),
  1769. /* styles */
  1770. null,
  1771. /* scopeId */
  1772. null,
  1773. /* moduleIdentifier (server only) */
  1774. null
  1775. )
  1776. module.exports = Component.exports
  1777. /***/ }),
  1778. /* 64 */
  1779. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1780. "use strict";
  1781. /* unused harmony export isSSR */
  1782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return HTMLElement; });
  1783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return File; });
  1784. // Polyfills for SSR
  1785. var isSSR = typeof window === 'undefined';
  1786. var HTMLElement = isSSR ? Object : window.HTMLElement;
  1787. var File = isSSR ? Object : window.File;
  1788. /***/ }),
  1789. /* 65 */
  1790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1791. "use strict";
  1792. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  1793. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  1794. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon__ = __webpack_require__(3);
  1795. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_icon_Icon__);
  1796. /* harmony default export */ __webpack_exports__["a"] = ({
  1797. components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon___default.a),
  1798. props: {
  1799. active: {
  1800. type: Boolean,
  1801. default: true
  1802. },
  1803. title: String,
  1804. closable: {
  1805. type: Boolean,
  1806. default: true
  1807. },
  1808. message: String,
  1809. type: String,
  1810. hasIcon: Boolean,
  1811. size: String,
  1812. iconPack: String,
  1813. iconSize: String,
  1814. autoClose: {
  1815. type: Boolean,
  1816. default: false
  1817. },
  1818. duration: {
  1819. type: Number,
  1820. default: 2000
  1821. }
  1822. },
  1823. data: function data() {
  1824. return {
  1825. isActive: this.active
  1826. };
  1827. },
  1828. watch: {
  1829. active: function active(value) {
  1830. this.isActive = value;
  1831. },
  1832. isActive: function isActive(value) {
  1833. if (value) {
  1834. this.setAutoClose();
  1835. } else {
  1836. if (this.timer) {
  1837. clearTimeout(this.timer);
  1838. }
  1839. }
  1840. }
  1841. },
  1842. computed: {
  1843. /**
  1844. * Icon name (MDI) based on type.
  1845. */
  1846. icon: function icon() {
  1847. switch (this.type) {
  1848. case 'is-info':
  1849. return 'information';
  1850. case 'is-success':
  1851. return 'check-circle';
  1852. case 'is-warning':
  1853. return 'alert';
  1854. case 'is-danger':
  1855. return 'alert-circle';
  1856. default:
  1857. return null;
  1858. }
  1859. }
  1860. },
  1861. methods: {
  1862. /**
  1863. * Close the Message and emit events.
  1864. */
  1865. close: function close() {
  1866. this.isActive = false;
  1867. this.$emit('close');
  1868. this.$emit('update:active', false);
  1869. },
  1870. /**
  1871. * Set timer to auto close message
  1872. */
  1873. setAutoClose: function setAutoClose() {
  1874. var _this = this;
  1875. if (this.autoClose) {
  1876. this.timer = setTimeout(function () {
  1877. if (_this.isActive) {
  1878. _this.close();
  1879. }
  1880. }, this.duration);
  1881. }
  1882. }
  1883. },
  1884. mounted: function mounted() {
  1885. this.setAutoClose();
  1886. }
  1887. });
  1888. /***/ }),
  1889. /* 66 */
  1890. /***/ (function(module, exports, __webpack_require__) {
  1891. var Component = __webpack_require__(0)(
  1892. /* script */
  1893. __webpack_require__(169),
  1894. /* template */
  1895. __webpack_require__(170),
  1896. /* styles */
  1897. null,
  1898. /* scopeId */
  1899. null,
  1900. /* moduleIdentifier (server only) */
  1901. null
  1902. )
  1903. module.exports = Component.exports
  1904. /***/ }),
  1905. /* 67 */
  1906. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1907. "use strict";
  1908. /* harmony default export */ __webpack_exports__["a"] = ({
  1909. name: 'BSlotComponent',
  1910. props: {
  1911. component: {
  1912. type: Object,
  1913. required: true
  1914. },
  1915. name: {
  1916. type: String,
  1917. default: 'default'
  1918. },
  1919. tag: {
  1920. type: String,
  1921. default: 'div'
  1922. },
  1923. event: {
  1924. type: String,
  1925. default: 'hook:updated'
  1926. }
  1927. },
  1928. methods: {
  1929. refresh: function refresh() {
  1930. this.$forceUpdate();
  1931. },
  1932. isVueComponent: function isVueComponent() {
  1933. return this.component && this.component._isVue;
  1934. }
  1935. },
  1936. created: function created() {
  1937. if (this.isVueComponent()) {
  1938. this.component.$on(this.event, this.refresh);
  1939. }
  1940. },
  1941. beforeDestroy: function beforeDestroy() {
  1942. if (this.isVueComponent()) {
  1943. this.component.$off(this.event, this.refresh);
  1944. }
  1945. },
  1946. render: function render(h) {
  1947. if (this.isVueComponent()) {
  1948. var slots = this.component.$slots[this.name];
  1949. return h(this.tag, {}, slots);
  1950. }
  1951. }
  1952. });
  1953. /***/ }),
  1954. /* 68 */
  1955. /***/ (function(module, exports, __webpack_require__) {
  1956. var Component = __webpack_require__(0)(
  1957. /* script */
  1958. __webpack_require__(201),
  1959. /* template */
  1960. __webpack_require__(202),
  1961. /* styles */
  1962. null,
  1963. /* scopeId */
  1964. null,
  1965. /* moduleIdentifier (server only) */
  1966. null
  1967. )
  1968. module.exports = Component.exports
  1969. /***/ }),
  1970. /* 69 */
  1971. /***/ (function(module, exports, __webpack_require__) {
  1972. var Component = __webpack_require__(0)(
  1973. /* script */
  1974. __webpack_require__(209),
  1975. /* template */
  1976. __webpack_require__(210),
  1977. /* styles */
  1978. null,
  1979. /* scopeId */
  1980. null,
  1981. /* moduleIdentifier (server only) */
  1982. null
  1983. )
  1984. module.exports = Component.exports
  1985. /***/ }),
  1986. /* 70 */
  1987. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1988. "use strict";
  1989. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  1990. var components_namespaceObject = {};
  1991. __webpack_require__.d(components_namespaceObject, "Autocomplete", function() { return autocomplete; });
  1992. __webpack_require__.d(components_namespaceObject, "Button", function() { return components_button; });
  1993. __webpack_require__.d(components_namespaceObject, "Checkbox", function() { return components_checkbox; });
  1994. __webpack_require__.d(components_namespaceObject, "Clockpicker", function() { return clockpicker; });
  1995. __webpack_require__.d(components_namespaceObject, "Collapse", function() { return collapse; });
  1996. __webpack_require__.d(components_namespaceObject, "Datepicker", function() { return datepicker; });
  1997. __webpack_require__.d(components_namespaceObject, "Dialog", function() { return dialog; });
  1998. __webpack_require__.d(components_namespaceObject, "Dropdown", function() { return dropdown; });
  1999. __webpack_require__.d(components_namespaceObject, "Field", function() { return field; });
  2000. __webpack_require__.d(components_namespaceObject, "Icon", function() { return icon; });
  2001. __webpack_require__.d(components_namespaceObject, "Input", function() { return input; });
  2002. __webpack_require__.d(components_namespaceObject, "Loading", function() { return loading; });
  2003. __webpack_require__.d(components_namespaceObject, "Message", function() { return components_message; });
  2004. __webpack_require__.d(components_namespaceObject, "Modal", function() { return modal; });
  2005. __webpack_require__.d(components_namespaceObject, "Notification", function() { return notification; });
  2006. __webpack_require__.d(components_namespaceObject, "Numberinput", function() { return numberinput; });
  2007. __webpack_require__.d(components_namespaceObject, "Pagination", function() { return pagination; });
  2008. __webpack_require__.d(components_namespaceObject, "Radio", function() { return components_radio; });
  2009. __webpack_require__.d(components_namespaceObject, "Select", function() { return components_select; });
  2010. __webpack_require__.d(components_namespaceObject, "Snackbar", function() { return snackbar; });
  2011. __webpack_require__.d(components_namespaceObject, "Steps", function() { return steps; });
  2012. __webpack_require__.d(components_namespaceObject, "Switch", function() { return components_switch; });
  2013. __webpack_require__.d(components_namespaceObject, "Table", function() { return table; });
  2014. __webpack_require__.d(components_namespaceObject, "Tabs", function() { return tabs; });
  2015. __webpack_require__.d(components_namespaceObject, "Tag", function() { return tag; });
  2016. __webpack_require__.d(components_namespaceObject, "Taginput", function() { return taginput; });
  2017. __webpack_require__.d(components_namespaceObject, "Timepicker", function() { return timepicker; });
  2018. __webpack_require__.d(components_namespaceObject, "Toast", function() { return toast; });
  2019. __webpack_require__.d(components_namespaceObject, "Tooltip", function() { return tooltip; });
  2020. __webpack_require__.d(components_namespaceObject, "Upload", function() { return upload; });
  2021. // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/object/assign.js
  2022. var object_assign = __webpack_require__(11);
  2023. var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign);
  2024. // EXTERNAL MODULE: ./src/scss/buefy-build.scss
  2025. var buefy_build = __webpack_require__(77);
  2026. var buefy_build_default = /*#__PURE__*/__webpack_require__.n(buefy_build);
  2027. // EXTERNAL MODULE: ./src/components/autocomplete/Autocomplete.vue
  2028. var Autocomplete = __webpack_require__(52);
  2029. var Autocomplete_default = /*#__PURE__*/__webpack_require__.n(Autocomplete);
  2030. // CONCATENATED MODULE: ./src/utils/plugins.js
  2031. var use = function use(plugin) {
  2032. if (typeof window !== 'undefined' && window.Vue) {
  2033. window.Vue.use(plugin);
  2034. }
  2035. };
  2036. var registerComponent = function registerComponent(Vue, component) {
  2037. Vue.component(component.name, component);
  2038. };
  2039. var registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) {
  2040. Vue.prototype[property] = component;
  2041. };
  2042. // CONCATENATED MODULE: ./src/components/autocomplete/index.js
  2043. var Plugin = {
  2044. install: function install(Vue) {
  2045. registerComponent(Vue, Autocomplete_default.a);
  2046. }
  2047. };
  2048. use(Plugin);
  2049. /* harmony default export */ var autocomplete = (Plugin);
  2050. // EXTERNAL MODULE: ./src/components/button/Button.vue
  2051. var Button = __webpack_require__(110);
  2052. var Button_default = /*#__PURE__*/__webpack_require__.n(Button);
  2053. // CONCATENATED MODULE: ./src/components/button/index.js
  2054. var button_Plugin = {
  2055. install: function install(Vue) {
  2056. registerComponent(Vue, Button_default.a);
  2057. }
  2058. };
  2059. use(button_Plugin);
  2060. /* harmony default export */ var components_button = (button_Plugin);
  2061. // EXTERNAL MODULE: ./src/components/checkbox/Checkbox.vue
  2062. var Checkbox = __webpack_require__(61);
  2063. var Checkbox_default = /*#__PURE__*/__webpack_require__.n(Checkbox);
  2064. // EXTERNAL MODULE: ./src/components/checkbox/CheckboxButton.vue
  2065. var CheckboxButton = __webpack_require__(115);
  2066. var CheckboxButton_default = /*#__PURE__*/__webpack_require__.n(CheckboxButton);
  2067. // CONCATENATED MODULE: ./src/components/checkbox/index.js
  2068. var checkbox_Plugin = {
  2069. install: function install(Vue) {
  2070. registerComponent(Vue, Checkbox_default.a);
  2071. registerComponent(Vue, CheckboxButton_default.a);
  2072. }
  2073. };
  2074. use(checkbox_Plugin);
  2075. /* harmony default export */ var components_checkbox = (checkbox_Plugin);
  2076. // EXTERNAL MODULE: ./src/components/collapse/Collapse.vue
  2077. var Collapse = __webpack_require__(118);
  2078. var Collapse_default = /*#__PURE__*/__webpack_require__.n(Collapse);
  2079. // CONCATENATED MODULE: ./src/components/collapse/index.js
  2080. var collapse_Plugin = {
  2081. install: function install(Vue) {
  2082. registerComponent(Vue, Collapse_default.a);
  2083. }
  2084. };
  2085. use(collapse_Plugin);
  2086. /* harmony default export */ var collapse = (collapse_Plugin);
  2087. // EXTERNAL MODULE: ./src/components/clockpicker/Clockpicker.vue
  2088. var Clockpicker = __webpack_require__(121);
  2089. var Clockpicker_default = /*#__PURE__*/__webpack_require__.n(Clockpicker);
  2090. // CONCATENATED MODULE: ./src/components/clockpicker/index.js
  2091. var clockpicker_Plugin = {
  2092. install: function install(Vue) {
  2093. registerComponent(Vue, Clockpicker_default.a);
  2094. }
  2095. };
  2096. use(clockpicker_Plugin);
  2097. /* harmony default export */ var clockpicker = (clockpicker_Plugin);
  2098. // EXTERNAL MODULE: ./src/components/datepicker/Datepicker.vue
  2099. var Datepicker = __webpack_require__(135);
  2100. var Datepicker_default = /*#__PURE__*/__webpack_require__.n(Datepicker);
  2101. // CONCATENATED MODULE: ./src/components/datepicker/index.js
  2102. var datepicker_Plugin = {
  2103. install: function install(Vue) {
  2104. registerComponent(Vue, Datepicker_default.a);
  2105. }
  2106. };
  2107. use(datepicker_Plugin);
  2108. /* harmony default export */ var datepicker = (datepicker_Plugin);
  2109. // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","amd":"vue","root":"Vue"}
  2110. var external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue__ = __webpack_require__(18);
  2111. var external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default = /*#__PURE__*/__webpack_require__.n(external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue__);
  2112. // EXTERNAL MODULE: ./src/components/dialog/Dialog.vue
  2113. var Dialog = __webpack_require__(149);
  2114. var Dialog_default = /*#__PURE__*/__webpack_require__.n(Dialog);
  2115. // CONCATENATED MODULE: ./src/components/dialog/index.js
  2116. function dialog_open(propsData) {
  2117. var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
  2118. var DialogComponent = vm.extend(Dialog_default.a);
  2119. return new DialogComponent({
  2120. el: document.createElement('div'),
  2121. propsData: propsData
  2122. });
  2123. }
  2124. var DialogProgrammatic = {
  2125. alert: function alert(params) {
  2126. var message = void 0;
  2127. if (typeof params === 'string') message = params;
  2128. var defaultParam = {
  2129. canCancel: false,
  2130. message: message
  2131. };
  2132. var propsData = assign_default()(defaultParam, params);
  2133. return dialog_open(propsData);
  2134. },
  2135. confirm: function confirm(params) {
  2136. var defaultParam = {};
  2137. var propsData = assign_default()(defaultParam, params);
  2138. return dialog_open(propsData);
  2139. },
  2140. prompt: function prompt(params) {
  2141. var defaultParam = {
  2142. hasInput: true,
  2143. confirmText: 'Done'
  2144. };
  2145. var propsData = assign_default()(defaultParam, params);
  2146. return dialog_open(propsData);
  2147. }
  2148. };
  2149. var dialog_Plugin = {
  2150. install: function install(Vue) {
  2151. registerComponent(Vue, Dialog_default.a);
  2152. registerComponentProgrammatic(Vue, '$dialog', DialogProgrammatic);
  2153. }
  2154. };
  2155. use(dialog_Plugin);
  2156. /* harmony default export */ var dialog = (dialog_Plugin);
  2157. // EXTERNAL MODULE: ./src/components/dropdown/Dropdown.vue
  2158. var Dropdown = __webpack_require__(28);
  2159. var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown);
  2160. // EXTERNAL MODULE: ./src/components/dropdown/DropdownItem.vue
  2161. var DropdownItem = __webpack_require__(29);
  2162. var DropdownItem_default = /*#__PURE__*/__webpack_require__.n(DropdownItem);
  2163. // CONCATENATED MODULE: ./src/components/dropdown/index.js
  2164. var dropdown_Plugin = {
  2165. install: function install(Vue) {
  2166. registerComponent(Vue, Dropdown_default.a);
  2167. registerComponent(Vue, DropdownItem_default.a);
  2168. }
  2169. };
  2170. use(dropdown_Plugin);
  2171. /* harmony default export */ var dropdown = (dropdown_Plugin);
  2172. // EXTERNAL MODULE: ./src/components/field/Field.vue
  2173. var Field = __webpack_require__(30);
  2174. var Field_default = /*#__PURE__*/__webpack_require__.n(Field);
  2175. // CONCATENATED MODULE: ./src/components/field/index.js
  2176. var field_Plugin = {
  2177. install: function install(Vue) {
  2178. registerComponent(Vue, Field_default.a);
  2179. }
  2180. };
  2181. use(field_Plugin);
  2182. /* harmony default export */ var field = (field_Plugin);
  2183. // EXTERNAL MODULE: ./src/components/icon/Icon.vue
  2184. var Icon = __webpack_require__(3);
  2185. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon);
  2186. // CONCATENATED MODULE: ./src/components/icon/index.js
  2187. var icon_Plugin = {
  2188. install: function install(Vue) {
  2189. registerComponent(Vue, Icon_default.a);
  2190. }
  2191. };
  2192. use(icon_Plugin);
  2193. /* harmony default export */ var icon = (icon_Plugin);
  2194. // EXTERNAL MODULE: ./src/components/input/Input.vue
  2195. var Input = __webpack_require__(17);
  2196. var Input_default = /*#__PURE__*/__webpack_require__.n(Input);
  2197. // CONCATENATED MODULE: ./src/components/input/index.js
  2198. var input_Plugin = {
  2199. install: function install(Vue) {
  2200. registerComponent(Vue, Input_default.a);
  2201. }
  2202. };
  2203. use(input_Plugin);
  2204. /* harmony default export */ var input = (input_Plugin);
  2205. // EXTERNAL MODULE: ./src/components/loading/Loading.vue
  2206. var Loading = __webpack_require__(154);
  2207. var Loading_default = /*#__PURE__*/__webpack_require__.n(Loading);
  2208. // CONCATENATED MODULE: ./src/components/loading/index.js
  2209. var LoadingProgrammatic = {
  2210. open: function open(params) {
  2211. var defaultParam = {
  2212. programmatic: true
  2213. };
  2214. var propsData = assign_default()(defaultParam, params);
  2215. var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
  2216. var LoadingComponent = vm.extend(Loading_default.a);
  2217. return new LoadingComponent({
  2218. el: document.createElement('div'),
  2219. propsData: propsData
  2220. });
  2221. }
  2222. };
  2223. var loading_Plugin = {
  2224. install: function install(Vue) {
  2225. registerComponent(Vue, Loading_default.a);
  2226. registerComponentProgrammatic(Vue, '$loading', LoadingProgrammatic);
  2227. }
  2228. };
  2229. use(loading_Plugin);
  2230. /* harmony default export */ var loading = (loading_Plugin);
  2231. // EXTERNAL MODULE: ./src/components/message/Message.vue
  2232. var Message = __webpack_require__(157);
  2233. var Message_default = /*#__PURE__*/__webpack_require__.n(Message);
  2234. // CONCATENATED MODULE: ./src/components/message/index.js
  2235. var message_Plugin = {
  2236. install: function install(Vue) {
  2237. registerComponent(Vue, Message_default.a);
  2238. }
  2239. };
  2240. use(message_Plugin);
  2241. /* harmony default export */ var components_message = (message_Plugin);
  2242. // EXTERNAL MODULE: ./src/components/modal/Modal.vue
  2243. var Modal = __webpack_require__(63);
  2244. var Modal_default = /*#__PURE__*/__webpack_require__.n(Modal);
  2245. // CONCATENATED MODULE: ./src/components/modal/index.js
  2246. var ModalProgrammatic = {
  2247. open: function open(params) {
  2248. var content = void 0;
  2249. var parent = void 0;
  2250. if (typeof params === 'string') content = params;
  2251. var defaultParam = {
  2252. programmatic: true,
  2253. content: content
  2254. };
  2255. if (params.parent) {
  2256. parent = params.parent;
  2257. delete params.parent;
  2258. }
  2259. var propsData = assign_default()(defaultParam, params);
  2260. var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
  2261. var ModalComponent = vm.extend(Modal_default.a);
  2262. return new ModalComponent({
  2263. parent: parent,
  2264. el: document.createElement('div'),
  2265. propsData: propsData
  2266. });
  2267. }
  2268. };
  2269. var modal_Plugin = {
  2270. install: function install(Vue) {
  2271. registerComponent(Vue, Modal_default.a);
  2272. registerComponentProgrammatic(Vue, '$modal', ModalProgrammatic);
  2273. }
  2274. };
  2275. use(modal_Plugin);
  2276. /* harmony default export */ var modal = (modal_Plugin);
  2277. // EXTERNAL MODULE: ./src/components/notification/Notification.vue
  2278. var Notification = __webpack_require__(160);
  2279. var Notification_default = /*#__PURE__*/__webpack_require__.n(Notification);
  2280. // EXTERNAL MODULE: ./src/components/notification/NotificationNotice.vue
  2281. var NotificationNotice = __webpack_require__(163);
  2282. var NotificationNotice_default = /*#__PURE__*/__webpack_require__.n(NotificationNotice);
  2283. // EXTERNAL MODULE: ./src/utils/config.js
  2284. var config = __webpack_require__(2);
  2285. // CONCATENATED MODULE: ./src/components/notification/index.js
  2286. var NotificationProgrammatic = {
  2287. open: function open(params) {
  2288. var message = void 0;
  2289. var parent = void 0;
  2290. if (typeof params === 'string') message = params;
  2291. var defaultParam = {
  2292. message: message,
  2293. position: config["a" /* default */].defaultNotificationPosition || 'is-top-right'
  2294. };
  2295. if (params.parent) {
  2296. parent = params.parent;
  2297. delete params.parent;
  2298. }
  2299. var propsData = assign_default()(defaultParam, typeof params === 'string' ? {} : params);
  2300. var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
  2301. var NotificationNoticeComponent = vm.extend(NotificationNotice_default.a);
  2302. return new NotificationNoticeComponent({
  2303. parent: parent,
  2304. el: document.createElement('div'),
  2305. propsData: propsData
  2306. });
  2307. }
  2308. };
  2309. var notification_Plugin = {
  2310. install: function install(Vue) {
  2311. registerComponent(Vue, Notification_default.a);
  2312. registerComponentProgrammatic(Vue, '$notification', NotificationProgrammatic);
  2313. }
  2314. };
  2315. use(notification_Plugin);
  2316. /* harmony default export */ var notification = (notification_Plugin);
  2317. // EXTERNAL MODULE: ./src/components/numberinput/Numberinput.vue
  2318. var Numberinput = __webpack_require__(166);
  2319. var Numberinput_default = /*#__PURE__*/__webpack_require__.n(Numberinput);
  2320. // CONCATENATED MODULE: ./src/components/numberinput/index.js
  2321. var numberinput_Plugin = {
  2322. install: function install(Vue) {
  2323. registerComponent(Vue, Numberinput_default.a);
  2324. }
  2325. };
  2326. use(numberinput_Plugin);
  2327. /* harmony default export */ var numberinput = (numberinput_Plugin);
  2328. // EXTERNAL MODULE: ./src/components/pagination/Pagination.vue
  2329. var Pagination = __webpack_require__(66);
  2330. var Pagination_default = /*#__PURE__*/__webpack_require__.n(Pagination);
  2331. // CONCATENATED MODULE: ./src/components/pagination/index.js
  2332. var pagination_Plugin = {
  2333. install: function install(Vue) {
  2334. registerComponent(Vue, Pagination_default.a);
  2335. }
  2336. };
  2337. use(pagination_Plugin);
  2338. /* harmony default export */ var pagination = (pagination_Plugin);
  2339. // EXTERNAL MODULE: ./src/components/radio/Radio.vue
  2340. var Radio = __webpack_require__(171);
  2341. var Radio_default = /*#__PURE__*/__webpack_require__.n(Radio);
  2342. // EXTERNAL MODULE: ./src/components/radio/RadioButton.vue
  2343. var RadioButton = __webpack_require__(174);
  2344. var RadioButton_default = /*#__PURE__*/__webpack_require__.n(RadioButton);
  2345. // CONCATENATED MODULE: ./src/components/radio/index.js
  2346. var radio_Plugin = {
  2347. install: function install(Vue) {
  2348. registerComponent(Vue, Radio_default.a);
  2349. registerComponent(Vue, RadioButton_default.a);
  2350. }
  2351. };
  2352. use(radio_Plugin);
  2353. /* harmony default export */ var components_radio = (radio_Plugin);
  2354. // EXTERNAL MODULE: ./src/components/select/Select.vue
  2355. var Select = __webpack_require__(31);
  2356. var Select_default = /*#__PURE__*/__webpack_require__.n(Select);
  2357. // CONCATENATED MODULE: ./src/components/select/index.js
  2358. var select_Plugin = {
  2359. install: function install(Vue) {
  2360. registerComponent(Vue, Select_default.a);
  2361. }
  2362. };
  2363. use(select_Plugin);
  2364. /* harmony default export */ var components_select = (select_Plugin);
  2365. // EXTERNAL MODULE: ./src/components/snackbar/Snackbar.vue
  2366. var Snackbar = __webpack_require__(177);
  2367. var Snackbar_default = /*#__PURE__*/__webpack_require__.n(Snackbar);
  2368. // CONCATENATED MODULE: ./src/components/snackbar/index.js
  2369. var SnackbarProgrammatic = {
  2370. open: function open(params) {
  2371. var message = void 0;
  2372. var parent = void 0;
  2373. if (typeof params === 'string') message = params;
  2374. var defaultParam = {
  2375. type: 'is-success',
  2376. position: config["a" /* default */].defaultSnackbarPosition || 'is-bottom-right',
  2377. message: message
  2378. };
  2379. if (params.parent) {
  2380. parent = params.parent;
  2381. delete params.parent;
  2382. }
  2383. var propsData = assign_default()(defaultParam, params);
  2384. var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
  2385. var SnackbarComponent = vm.extend(Snackbar_default.a);
  2386. return new SnackbarComponent({
  2387. parent: parent,
  2388. el: document.createElement('div'),
  2389. propsData: propsData
  2390. });
  2391. }
  2392. };
  2393. var snackbar_Plugin = {
  2394. install: function install(Vue) {
  2395. registerComponentProgrammatic(Vue, '$snackbar', SnackbarProgrammatic);
  2396. }
  2397. };
  2398. use(snackbar_Plugin);
  2399. /* harmony default export */ var snackbar = (snackbar_Plugin);
  2400. // EXTERNAL MODULE: ./src/components/steps/Steps.vue
  2401. var Steps = __webpack_require__(180);
  2402. var Steps_default = /*#__PURE__*/__webpack_require__.n(Steps);
  2403. // EXTERNAL MODULE: ./src/components/steps/StepItem.vue
  2404. var StepItem = __webpack_require__(183);
  2405. var StepItem_default = /*#__PURE__*/__webpack_require__.n(StepItem);
  2406. // CONCATENATED MODULE: ./src/components/steps/index.js
  2407. var steps_Plugin = {
  2408. install: function install(Vue) {
  2409. registerComponent(Vue, Steps_default.a);
  2410. registerComponent(Vue, StepItem_default.a);
  2411. }
  2412. };
  2413. use(steps_Plugin);
  2414. /* harmony default export */ var steps = (steps_Plugin);
  2415. // EXTERNAL MODULE: ./src/components/switch/Switch.vue
  2416. var Switch = __webpack_require__(185);
  2417. var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch);
  2418. // CONCATENATED MODULE: ./src/components/switch/index.js
  2419. var switch_Plugin = {
  2420. install: function install(Vue) {
  2421. registerComponent(Vue, Switch_default.a);
  2422. }
  2423. };
  2424. use(switch_Plugin);
  2425. /* harmony default export */ var components_switch = (switch_Plugin);
  2426. // EXTERNAL MODULE: ./src/components/table/Table.vue
  2427. var Table = __webpack_require__(188);
  2428. var Table_default = /*#__PURE__*/__webpack_require__.n(Table);
  2429. // EXTERNAL MODULE: ./src/components/table/TableColumn.vue
  2430. var TableColumn = __webpack_require__(68);
  2431. var TableColumn_default = /*#__PURE__*/__webpack_require__.n(TableColumn);
  2432. // CONCATENATED MODULE: ./src/components/table/index.js
  2433. var table_Plugin = {
  2434. install: function install(Vue) {
  2435. registerComponent(Vue, Table_default.a);
  2436. registerComponent(Vue, TableColumn_default.a);
  2437. }
  2438. };
  2439. use(table_Plugin);
  2440. /* harmony default export */ var table = (table_Plugin);
  2441. // EXTERNAL MODULE: ./src/components/tabs/Tabs.vue
  2442. var Tabs = __webpack_require__(204);
  2443. var Tabs_default = /*#__PURE__*/__webpack_require__.n(Tabs);
  2444. // EXTERNAL MODULE: ./src/components/tabs/TabItem.vue
  2445. var TabItem = __webpack_require__(207);
  2446. var TabItem_default = /*#__PURE__*/__webpack_require__.n(TabItem);
  2447. // CONCATENATED MODULE: ./src/components/tabs/index.js
  2448. var tabs_Plugin = {
  2449. install: function install(Vue) {
  2450. registerComponent(Vue, Tabs_default.a);
  2451. registerComponent(Vue, TabItem_default.a);
  2452. }
  2453. };
  2454. use(tabs_Plugin);
  2455. /* harmony default export */ var tabs = (tabs_Plugin);
  2456. // EXTERNAL MODULE: ./src/components/tag/Tag.vue
  2457. var Tag = __webpack_require__(69);
  2458. var Tag_default = /*#__PURE__*/__webpack_require__.n(Tag);
  2459. // EXTERNAL MODULE: ./src/components/tag/Taglist.vue
  2460. var Taglist = __webpack_require__(211);
  2461. var Taglist_default = /*#__PURE__*/__webpack_require__.n(Taglist);
  2462. // CONCATENATED MODULE: ./src/components/tag/index.js
  2463. var tag_Plugin = {
  2464. install: function install(Vue) {
  2465. registerComponent(Vue, Tag_default.a);
  2466. registerComponent(Vue, Taglist_default.a);
  2467. }
  2468. };
  2469. use(tag_Plugin);
  2470. /* harmony default export */ var tag = (tag_Plugin);
  2471. // EXTERNAL MODULE: ./src/components/taginput/Taginput.vue
  2472. var Taginput = __webpack_require__(214);
  2473. var Taginput_default = /*#__PURE__*/__webpack_require__.n(Taginput);
  2474. // CONCATENATED MODULE: ./src/components/taginput/index.js
  2475. var taginput_Plugin = {
  2476. install: function install(Vue) {
  2477. registerComponent(Vue, Taginput_default.a);
  2478. }
  2479. };
  2480. use(taginput_Plugin);
  2481. /* harmony default export */ var taginput = (taginput_Plugin);
  2482. // EXTERNAL MODULE: ./src/components/timepicker/Timepicker.vue
  2483. var Timepicker = __webpack_require__(217);
  2484. var Timepicker_default = /*#__PURE__*/__webpack_require__.n(Timepicker);
  2485. // CONCATENATED MODULE: ./src/components/timepicker/index.js
  2486. var timepicker_Plugin = {
  2487. install: function install(Vue) {
  2488. registerComponent(Vue, Timepicker_default.a);
  2489. }
  2490. };
  2491. use(timepicker_Plugin);
  2492. /* harmony default export */ var timepicker = (timepicker_Plugin);
  2493. // EXTERNAL MODULE: ./src/components/toast/Toast.vue
  2494. var Toast = __webpack_require__(220);
  2495. var Toast_default = /*#__PURE__*/__webpack_require__.n(Toast);
  2496. // CONCATENATED MODULE: ./src/components/toast/index.js
  2497. var ToastProgrammatic = {
  2498. open: function open(params) {
  2499. var message = void 0;
  2500. var parent = void 0;
  2501. if (typeof params === 'string') message = params;
  2502. var defaultParam = {
  2503. message: message,
  2504. position: config["a" /* default */].defaultToastPosition || 'is-top'
  2505. };
  2506. if (params.parent) {
  2507. parent = params.parent;
  2508. delete params.parent;
  2509. }
  2510. var propsData = assign_default()(defaultParam, params);
  2511. var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
  2512. var ToastComponent = vm.extend(Toast_default.a);
  2513. return new ToastComponent({
  2514. parent: parent,
  2515. el: document.createElement('div'),
  2516. propsData: propsData
  2517. });
  2518. }
  2519. };
  2520. var toast_Plugin = {
  2521. install: function install(Vue) {
  2522. registerComponentProgrammatic(Vue, '$toast', ToastProgrammatic);
  2523. }
  2524. };
  2525. use(toast_Plugin);
  2526. /* harmony default export */ var toast = (toast_Plugin);
  2527. // EXTERNAL MODULE: ./src/components/tooltip/Tooltip.vue
  2528. var Tooltip = __webpack_require__(223);
  2529. var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip);
  2530. // CONCATENATED MODULE: ./src/components/tooltip/index.js
  2531. var tooltip_Plugin = {
  2532. install: function install(Vue) {
  2533. registerComponent(Vue, Tooltip_default.a);
  2534. }
  2535. };
  2536. use(tooltip_Plugin);
  2537. /* harmony default export */ var tooltip = (tooltip_Plugin);
  2538. // EXTERNAL MODULE: ./src/components/upload/Upload.vue
  2539. var Upload = __webpack_require__(226);
  2540. var Upload_default = /*#__PURE__*/__webpack_require__.n(Upload);
  2541. // CONCATENATED MODULE: ./src/components/upload/index.js
  2542. var upload_Plugin = {
  2543. install: function install(Vue) {
  2544. registerComponent(Vue, Upload_default.a);
  2545. }
  2546. };
  2547. use(upload_Plugin);
  2548. /* harmony default export */ var upload = (upload_Plugin);
  2549. // CONCATENATED MODULE: ./src/components/index.js
  2550. // CONCATENATED MODULE: ./src/index.js
  2551. var Buefy = {
  2552. install: function install(Vue) {
  2553. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2554. // Options
  2555. Object(config["b" /* setOptions */])(assign_default()(config["a" /* default */], options));
  2556. // Components
  2557. for (var componentKey in components_namespaceObject) {
  2558. Vue.use(components_namespaceObject[componentKey]);
  2559. }
  2560. // Config component
  2561. var BuefyProgrammatic = {
  2562. setOptions: function setOptions(options) {
  2563. Object(config["b" /* setOptions */])(assign_default()(config["a" /* default */], options));
  2564. }
  2565. };
  2566. registerComponentProgrammatic(Vue, '$buefy', BuefyProgrammatic);
  2567. }
  2568. };
  2569. use(Buefy);
  2570. /* harmony default export */ var src = __webpack_exports__["default"] = (Buefy);
  2571. /***/ }),
  2572. /* 71 */
  2573. /***/ (function(module, exports, __webpack_require__) {
  2574. __webpack_require__(72);
  2575. module.exports = __webpack_require__(6).Object.assign;
  2576. /***/ }),
  2577. /* 72 */
  2578. /***/ (function(module, exports, __webpack_require__) {
  2579. // 19.1.3.1 Object.assign(target, source)
  2580. var $export = __webpack_require__(19);
  2581. $export($export.S + $export.F, 'Object', { assign: __webpack_require__(74) });
  2582. /***/ }),
  2583. /* 73 */
  2584. /***/ (function(module, exports) {
  2585. module.exports = function (it) {
  2586. if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  2587. return it;
  2588. };
  2589. /***/ }),
  2590. /* 74 */
  2591. /***/ (function(module, exports, __webpack_require__) {
  2592. "use strict";
  2593. // 19.1.2.1 Object.assign(target, source, ...)
  2594. var getKeys = __webpack_require__(24);
  2595. var gOPS = __webpack_require__(39);
  2596. var pIE = __webpack_require__(27);
  2597. var toObject = __webpack_require__(40);
  2598. var IObject = __webpack_require__(50);
  2599. var $assign = Object.assign;
  2600. // should work with symbols and should have deterministic property order (V8 bug)
  2601. module.exports = !$assign || __webpack_require__(21)(function () {
  2602. var A = {};
  2603. var B = {};
  2604. // eslint-disable-next-line no-undef
  2605. var S = Symbol();
  2606. var K = 'abcdefghijklmnopqrst';
  2607. A[S] = 7;
  2608. K.split('').forEach(function (k) { B[k] = k; });
  2609. return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
  2610. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
  2611. var T = toObject(target);
  2612. var aLen = arguments.length;
  2613. var index = 1;
  2614. var getSymbols = gOPS.f;
  2615. var isEnum = pIE.f;
  2616. while (aLen > index) {
  2617. var S = IObject(arguments[index++]);
  2618. var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
  2619. var length = keys.length;
  2620. var j = 0;
  2621. var key;
  2622. while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
  2623. } return T;
  2624. } : $assign;
  2625. /***/ }),
  2626. /* 75 */
  2627. /***/ (function(module, exports, __webpack_require__) {
  2628. // false -> Array#indexOf
  2629. // true -> Array#includes
  2630. var toIObject = __webpack_require__(16);
  2631. var toLength = __webpack_require__(51);
  2632. var toAbsoluteIndex = __webpack_require__(76);
  2633. module.exports = function (IS_INCLUDES) {
  2634. return function ($this, el, fromIndex) {
  2635. var O = toIObject($this);
  2636. var length = toLength(O.length);
  2637. var index = toAbsoluteIndex(fromIndex, length);
  2638. var value;
  2639. // Array#includes uses SameValueZero equality algorithm
  2640. // eslint-disable-next-line no-self-compare
  2641. if (IS_INCLUDES && el != el) while (length > index) {
  2642. value = O[index++];
  2643. // eslint-disable-next-line no-self-compare
  2644. if (value != value) return true;
  2645. // Array#indexOf ignores holes, Array#includes - not
  2646. } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
  2647. if (O[index] === el) return IS_INCLUDES || index || 0;
  2648. } return !IS_INCLUDES && -1;
  2649. };
  2650. };
  2651. /***/ }),
  2652. /* 76 */
  2653. /***/ (function(module, exports, __webpack_require__) {
  2654. var toInteger = __webpack_require__(35);
  2655. var max = Math.max;
  2656. var min = Math.min;
  2657. module.exports = function (index, length) {
  2658. index = toInteger(index);
  2659. return index < 0 ? max(index + length, 0) : min(index, length);
  2660. };
  2661. /***/ }),
  2662. /* 77 */
  2663. /***/ (function(module, exports) {
  2664. // removed by extract-text-webpack-plugin
  2665. /***/ }),
  2666. /* 78 */
  2667. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2668. "use strict";
  2669. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  2670. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(53);
  2671. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
  2672. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator__ = __webpack_require__(59);
  2673. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator__);
  2674. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  2675. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty__);
  2676. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_helpers__ = __webpack_require__(7);
  2677. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_FormElementMixin__ = __webpack_require__(10);
  2678. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__input_Input__ = __webpack_require__(17);
  2679. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__input_Input__);
  2680. //
  2681. //
  2682. //
  2683. //
  2684. //
  2685. //
  2686. //
  2687. //
  2688. //
  2689. //
  2690. //
  2691. //
  2692. //
  2693. //
  2694. //
  2695. //
  2696. //
  2697. //
  2698. //
  2699. //
  2700. //
  2701. //
  2702. //
  2703. //
  2704. //
  2705. //
  2706. //
  2707. //
  2708. //
  2709. //
  2710. //
  2711. //
  2712. //
  2713. //
  2714. //
  2715. //
  2716. //
  2717. //
  2718. //
  2719. //
  2720. //
  2721. //
  2722. //
  2723. //
  2724. //
  2725. //
  2726. //
  2727. //
  2728. //
  2729. //
  2730. //
  2731. //
  2732. //
  2733. //
  2734. //
  2735. //
  2736. //
  2737. //
  2738. //
  2739. //
  2740. //
  2741. //
  2742. //
  2743. //
  2744. //
  2745. //
  2746. //
  2747. //
  2748. //
  2749. /* harmony default export */ __webpack_exports__["default"] = ({
  2750. name: 'BAutocomplete',
  2751. components: __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_5__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_5__input_Input___default.a),
  2752. mixins: [__WEBPACK_IMPORTED_MODULE_4__utils_FormElementMixin__["a" /* default */]],
  2753. inheritAttrs: false,
  2754. props: {
  2755. value: [Number, String],
  2756. data: {
  2757. type: Array,
  2758. default: function _default() {
  2759. return [];
  2760. }
  2761. },
  2762. field: {
  2763. type: String,
  2764. default: 'value'
  2765. },
  2766. keepFirst: Boolean,
  2767. clearOnSelect: Boolean,
  2768. openOnFocus: Boolean,
  2769. customFormatter: Function
  2770. },
  2771. data: function data() {
  2772. return {
  2773. selected: null,
  2774. hovered: null,
  2775. isActive: false,
  2776. newValue: this.value,
  2777. newAutocomplete: this.autocomplete || 'off',
  2778. isListInViewportVertically: true,
  2779. hasFocus: false,
  2780. _isAutocomplete: true,
  2781. _elementRef: 'input'
  2782. };
  2783. },
  2784. computed: {
  2785. /**
  2786. * White-listed items to not close when clicked.
  2787. * Add input, dropdown and all children.
  2788. */
  2789. whiteList: function whiteList() {
  2790. var whiteList = [];
  2791. whiteList.push(this.$refs.input.$el.querySelector('input'));
  2792. whiteList.push(this.$refs.dropdown);
  2793. // Add all chidren from dropdown
  2794. if (this.$refs.dropdown !== undefined) {
  2795. var children = this.$refs.dropdown.querySelectorAll('*');
  2796. var _iteratorNormalCompletion = true;
  2797. var _didIteratorError = false;
  2798. var _iteratorError = undefined;
  2799. try {
  2800. for (var _iterator = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator___default()(children), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  2801. var child = _step.value;
  2802. whiteList.push(child);
  2803. }
  2804. } catch (err) {
  2805. _didIteratorError = true;
  2806. _iteratorError = err;
  2807. } finally {
  2808. try {
  2809. if (!_iteratorNormalCompletion && _iterator.return) {
  2810. _iterator.return();
  2811. }
  2812. } finally {
  2813. if (_didIteratorError) {
  2814. throw _iteratorError;
  2815. }
  2816. }
  2817. }
  2818. }
  2819. return whiteList;
  2820. },
  2821. /**
  2822. * Check if exists default slot
  2823. */
  2824. hasDefaultSlot: function hasDefaultSlot() {
  2825. return !!this.$scopedSlots.default;
  2826. },
  2827. /**
  2828. * Check if exists "empty" slot
  2829. */
  2830. hasEmptySlot: function hasEmptySlot() {
  2831. return !!this.$slots.empty;
  2832. },
  2833. /**
  2834. * Check if exists "header" slot
  2835. */
  2836. hasHeaderSlot: function hasHeaderSlot() {
  2837. return !!this.$slots.header;
  2838. },
  2839. /**
  2840. * Check if exists "footer" slot
  2841. */
  2842. hasFooterSlot: function hasFooterSlot() {
  2843. return !!this.$slots.footer;
  2844. }
  2845. },
  2846. watch: {
  2847. /**
  2848. * When dropdown is toggled, check the visibility to know when
  2849. * to open upwards.
  2850. */
  2851. isActive: function isActive(active) {
  2852. var _this = this;
  2853. if (active) {
  2854. this.calcDropdownInViewportVertical();
  2855. } else {
  2856. this.$nextTick(function () {
  2857. return _this.setHovered(null);
  2858. });
  2859. // Timeout to wait for the animation to finish before recalculating
  2860. setTimeout(function () {
  2861. _this.calcDropdownInViewportVertical();
  2862. }, 100);
  2863. }
  2864. },
  2865. /**
  2866. * When updating input's value
  2867. * 1. Emit changes
  2868. * 2. If value isn't the same as selected, set null
  2869. * 3. Close dropdown if value is clear or else open it
  2870. */
  2871. newValue: function newValue(value) {
  2872. this.$emit('input', value);
  2873. // Check if selected is invalid
  2874. var currentValue = this.getValue(this.selected);
  2875. if (currentValue && currentValue !== value) {
  2876. this.setSelected(null, false);
  2877. }
  2878. // Close dropdown if input is clear or else open it
  2879. if (this.hasFocus && (!this.openOnFocus || value)) {
  2880. this.isActive = !!value;
  2881. }
  2882. },
  2883. /**
  2884. * When v-model is changed:
  2885. * 1. Update internal value.
  2886. * 2. If it's invalid, validate again.
  2887. */
  2888. value: function value(_value) {
  2889. this.newValue = _value;
  2890. !this.isValid && this.$refs.input.checkHtml5Validity();
  2891. },
  2892. /**
  2893. * Select first option if "keep-first
  2894. */
  2895. data: function data(value) {
  2896. // Keep first option always pre-selected
  2897. if (this.keepFirst) {
  2898. this.selectFirstOption(value);
  2899. }
  2900. }
  2901. },
  2902. methods: {
  2903. /**
  2904. * Set which option is currently hovered.
  2905. */
  2906. setHovered: function setHovered(option) {
  2907. if (option === undefined) return;
  2908. this.hovered = option;
  2909. },
  2910. /**
  2911. * Set which option is currently selected, update v-model,
  2912. * update input value and close dropdown.
  2913. */
  2914. setSelected: function setSelected(option) {
  2915. var _this2 = this;
  2916. var closeDropdown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  2917. if (option === undefined) return;
  2918. this.selected = option;
  2919. this.$emit('select', this.selected);
  2920. if (this.selected !== null) {
  2921. this.newValue = this.clearOnSelect ? '' : this.getValue(this.selected);
  2922. }
  2923. closeDropdown && this.$nextTick(function () {
  2924. _this2.isActive = false;
  2925. });
  2926. },
  2927. /**
  2928. * Select first option
  2929. */
  2930. selectFirstOption: function selectFirstOption(options) {
  2931. var _this3 = this;
  2932. this.$nextTick(function () {
  2933. if (options.length) {
  2934. // If has visible data or open on focus, keep updating the hovered
  2935. if (_this3.openOnFocus || _this3.newValue !== '' && _this3.hovered !== options[0]) {
  2936. _this3.setHovered(options[0]);
  2937. }
  2938. } else {
  2939. _this3.setHovered(null);
  2940. }
  2941. });
  2942. },
  2943. /**
  2944. * Enter key listener.
  2945. * Select the hovered option.
  2946. */
  2947. enterPressed: function enterPressed() {
  2948. if (this.hovered === null) return;
  2949. this.setSelected(this.hovered);
  2950. },
  2951. /**
  2952. * Tab key listener.
  2953. * Select hovered option if it exists, close dropdown, then allow
  2954. * native handling to move to next tabbable element.
  2955. */
  2956. tabPressed: function tabPressed() {
  2957. if (this.hovered === null) {
  2958. this.isActive = false;
  2959. return;
  2960. }
  2961. this.setSelected(this.hovered);
  2962. },
  2963. /**
  2964. * Close dropdown if clicked outside.
  2965. */
  2966. clickedOutside: function clickedOutside(event) {
  2967. if (this.whiteList.indexOf(event.target) < 0) this.isActive = false;
  2968. },
  2969. /**
  2970. * Return display text for the input.
  2971. * If object, get value from path, or else just the value.
  2972. */
  2973. getValue: function getValue(option) {
  2974. if (!option) return;
  2975. if (typeof this.customFormatter !== 'undefined') {
  2976. return this.customFormatter(option);
  2977. }
  2978. return (typeof option === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(option)) === 'object' ? Object(__WEBPACK_IMPORTED_MODULE_3__utils_helpers__["a" /* getValueByPath */])(option, this.field) : option;
  2979. },
  2980. /**
  2981. * Calculate if the dropdown is vertically visible when activated,
  2982. * otherwise it is openened upwards.
  2983. */
  2984. calcDropdownInViewportVertical: function calcDropdownInViewportVertical() {
  2985. var _this4 = this;
  2986. this.$nextTick(function () {
  2987. /**
  2988. * this.$refs.dropdown may be undefined
  2989. * when Autocomplete is conditional rendered
  2990. */
  2991. if (_this4.$refs.dropdown === undefined) return;
  2992. var rect = _this4.$refs.dropdown.getBoundingClientRect();
  2993. _this4.isListInViewportVertically = rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight);
  2994. });
  2995. },
  2996. /**
  2997. * Arrows keys listener.
  2998. * If dropdown is active, set hovered option, or else just open.
  2999. */
  3000. keyArrows: function keyArrows(direction) {
  3001. var sum = direction === 'down' ? 1 : -1;
  3002. if (this.isActive) {
  3003. var index = this.data.indexOf(this.hovered) + sum;
  3004. index = index > this.data.length - 1 ? this.data.length : index;
  3005. index = index < 0 ? 0 : index;
  3006. this.setHovered(this.data[index]);
  3007. var list = this.$refs.dropdown.querySelector('.dropdown-content');
  3008. var element = list.querySelectorAll('a.dropdown-item:not(.is-disabled)')[index];
  3009. if (!element) return;
  3010. var visMin = list.scrollTop;
  3011. var visMax = list.scrollTop + list.clientHeight - element.clientHeight;
  3012. if (element.offsetTop < visMin) {
  3013. list.scrollTop = element.offsetTop;
  3014. } else if (element.offsetTop >= visMax) {
  3015. list.scrollTop = element.offsetTop - list.clientHeight + element.clientHeight;
  3016. }
  3017. } else {
  3018. this.isActive = true;
  3019. }
  3020. },
  3021. /**
  3022. * Focus listener.
  3023. * If value is the same as selected, select all text.
  3024. */
  3025. focused: function focused(event) {
  3026. if (this.getValue(this.selected) === this.newValue) {
  3027. this.$el.querySelector('input').select();
  3028. }
  3029. if (this.openOnFocus) {
  3030. this.isActive = true;
  3031. if (this.keepFirst) {
  3032. this.selectFirstOption(this.data);
  3033. }
  3034. }
  3035. this.hasFocus = true;
  3036. this.$emit('focus', event);
  3037. },
  3038. /**
  3039. * Blur listener.
  3040. */
  3041. onBlur: function onBlur(event) {
  3042. this.hasFocus = false;
  3043. this.$emit('blur', event);
  3044. },
  3045. onInput: function onInput(event) {
  3046. var currentValue = this.getValue(this.selected);
  3047. if (currentValue && currentValue === this.newValue) return;
  3048. this.$emit('typing', this.newValue);
  3049. }
  3050. },
  3051. created: function created() {
  3052. if (typeof window !== 'undefined') {
  3053. document.addEventListener('click', this.clickedOutside);
  3054. window.addEventListener('resize', this.calcDropdownInViewportVertical);
  3055. }
  3056. },
  3057. beforeDestroy: function beforeDestroy() {
  3058. if (typeof window !== 'undefined') {
  3059. document.removeEventListener('click', this.clickedOutside);
  3060. window.removeEventListener('resize', this.calcDropdownInViewportVertical);
  3061. }
  3062. }
  3063. });
  3064. /***/ }),
  3065. /* 79 */
  3066. /***/ (function(module, exports, __webpack_require__) {
  3067. module.exports = { "default": __webpack_require__(80), __esModule: true };
  3068. /***/ }),
  3069. /* 80 */
  3070. /***/ (function(module, exports, __webpack_require__) {
  3071. __webpack_require__(41);
  3072. __webpack_require__(57);
  3073. module.exports = __webpack_require__(43).f('iterator');
  3074. /***/ }),
  3075. /* 81 */
  3076. /***/ (function(module, exports, __webpack_require__) {
  3077. var toInteger = __webpack_require__(35);
  3078. var defined = __webpack_require__(34);
  3079. // true -> String#at
  3080. // false -> String#codePointAt
  3081. module.exports = function (TO_STRING) {
  3082. return function (that, pos) {
  3083. var s = String(defined(that));
  3084. var i = toInteger(pos);
  3085. var l = s.length;
  3086. var a, b;
  3087. if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
  3088. a = s.charCodeAt(i);
  3089. return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
  3090. ? TO_STRING ? s.charAt(i) : a
  3091. : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  3092. };
  3093. };
  3094. /***/ }),
  3095. /* 82 */
  3096. /***/ (function(module, exports, __webpack_require__) {
  3097. "use strict";
  3098. var create = __webpack_require__(56);
  3099. var descriptor = __webpack_require__(22);
  3100. var setToStringTag = __webpack_require__(42);
  3101. var IteratorPrototype = {};
  3102. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  3103. __webpack_require__(14)(IteratorPrototype, __webpack_require__(4)('iterator'), function () { return this; });
  3104. module.exports = function (Constructor, NAME, next) {
  3105. Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  3106. setToStringTag(Constructor, NAME + ' Iterator');
  3107. };
  3108. /***/ }),
  3109. /* 83 */
  3110. /***/ (function(module, exports, __webpack_require__) {
  3111. var dP = __webpack_require__(9);
  3112. var anObject = __webpack_require__(15);
  3113. var getKeys = __webpack_require__(24);
  3114. module.exports = __webpack_require__(12) ? Object.defineProperties : function defineProperties(O, Properties) {
  3115. anObject(O);
  3116. var keys = getKeys(Properties);
  3117. var length = keys.length;
  3118. var i = 0;
  3119. var P;
  3120. while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  3121. return O;
  3122. };
  3123. /***/ }),
  3124. /* 84 */
  3125. /***/ (function(module, exports, __webpack_require__) {
  3126. var document = __webpack_require__(8).document;
  3127. module.exports = document && document.documentElement;
  3128. /***/ }),
  3129. /* 85 */
  3130. /***/ (function(module, exports, __webpack_require__) {
  3131. // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
  3132. var has = __webpack_require__(13);
  3133. var toObject = __webpack_require__(40);
  3134. var IE_PROTO = __webpack_require__(36)('IE_PROTO');
  3135. var ObjectProto = Object.prototype;
  3136. module.exports = Object.getPrototypeOf || function (O) {
  3137. O = toObject(O);
  3138. if (has(O, IE_PROTO)) return O[IE_PROTO];
  3139. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  3140. return O.constructor.prototype;
  3141. } return O instanceof Object ? ObjectProto : null;
  3142. };
  3143. /***/ }),
  3144. /* 86 */
  3145. /***/ (function(module, exports, __webpack_require__) {
  3146. "use strict";
  3147. var addToUnscopables = __webpack_require__(87);
  3148. var step = __webpack_require__(88);
  3149. var Iterators = __webpack_require__(23);
  3150. var toIObject = __webpack_require__(16);
  3151. // 22.1.3.4 Array.prototype.entries()
  3152. // 22.1.3.13 Array.prototype.keys()
  3153. // 22.1.3.29 Array.prototype.values()
  3154. // 22.1.3.30 Array.prototype[@@iterator]()
  3155. module.exports = __webpack_require__(54)(Array, 'Array', function (iterated, kind) {
  3156. this._t = toIObject(iterated); // target
  3157. this._i = 0; // next index
  3158. this._k = kind; // kind
  3159. // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
  3160. }, function () {
  3161. var O = this._t;
  3162. var kind = this._k;
  3163. var index = this._i++;
  3164. if (!O || index >= O.length) {
  3165. this._t = undefined;
  3166. return step(1);
  3167. }
  3168. if (kind == 'keys') return step(0, index);
  3169. if (kind == 'values') return step(0, O[index]);
  3170. return step(0, [index, O[index]]);
  3171. }, 'values');
  3172. // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
  3173. Iterators.Arguments = Iterators.Array;
  3174. addToUnscopables('keys');
  3175. addToUnscopables('values');
  3176. addToUnscopables('entries');
  3177. /***/ }),
  3178. /* 87 */
  3179. /***/ (function(module, exports) {
  3180. module.exports = function () { /* empty */ };
  3181. /***/ }),
  3182. /* 88 */
  3183. /***/ (function(module, exports) {
  3184. module.exports = function (done, value) {
  3185. return { value: value, done: !!done };
  3186. };
  3187. /***/ }),
  3188. /* 89 */
  3189. /***/ (function(module, exports, __webpack_require__) {
  3190. __webpack_require__(90);
  3191. __webpack_require__(96);
  3192. __webpack_require__(97);
  3193. __webpack_require__(98);
  3194. module.exports = __webpack_require__(6).Symbol;
  3195. /***/ }),
  3196. /* 90 */
  3197. /***/ (function(module, exports, __webpack_require__) {
  3198. "use strict";
  3199. // ECMAScript 6 symbols shim
  3200. var global = __webpack_require__(8);
  3201. var has = __webpack_require__(13);
  3202. var DESCRIPTORS = __webpack_require__(12);
  3203. var $export = __webpack_require__(19);
  3204. var redefine = __webpack_require__(55);
  3205. var META = __webpack_require__(91).KEY;
  3206. var $fails = __webpack_require__(21);
  3207. var shared = __webpack_require__(37);
  3208. var setToStringTag = __webpack_require__(42);
  3209. var uid = __webpack_require__(26);
  3210. var wks = __webpack_require__(4);
  3211. var wksExt = __webpack_require__(43);
  3212. var wksDefine = __webpack_require__(44);
  3213. var enumKeys = __webpack_require__(92);
  3214. var isArray = __webpack_require__(93);
  3215. var anObject = __webpack_require__(15);
  3216. var isObject = __webpack_require__(20);
  3217. var toIObject = __webpack_require__(16);
  3218. var toPrimitive = __webpack_require__(32);
  3219. var createDesc = __webpack_require__(22);
  3220. var _create = __webpack_require__(56);
  3221. var gOPNExt = __webpack_require__(94);
  3222. var $GOPD = __webpack_require__(95);
  3223. var $DP = __webpack_require__(9);
  3224. var $keys = __webpack_require__(24);
  3225. var gOPD = $GOPD.f;
  3226. var dP = $DP.f;
  3227. var gOPN = gOPNExt.f;
  3228. var $Symbol = global.Symbol;
  3229. var $JSON = global.JSON;
  3230. var _stringify = $JSON && $JSON.stringify;
  3231. var PROTOTYPE = 'prototype';
  3232. var HIDDEN = wks('_hidden');
  3233. var TO_PRIMITIVE = wks('toPrimitive');
  3234. var isEnum = {}.propertyIsEnumerable;
  3235. var SymbolRegistry = shared('symbol-registry');
  3236. var AllSymbols = shared('symbols');
  3237. var OPSymbols = shared('op-symbols');
  3238. var ObjectProto = Object[PROTOTYPE];
  3239. var USE_NATIVE = typeof $Symbol == 'function';
  3240. var QObject = global.QObject;
  3241. // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
  3242. var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
  3243. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  3244. var setSymbolDesc = DESCRIPTORS && $fails(function () {
  3245. return _create(dP({}, 'a', {
  3246. get: function () { return dP(this, 'a', { value: 7 }).a; }
  3247. })).a != 7;
  3248. }) ? function (it, key, D) {
  3249. var protoDesc = gOPD(ObjectProto, key);
  3250. if (protoDesc) delete ObjectProto[key];
  3251. dP(it, key, D);
  3252. if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
  3253. } : dP;
  3254. var wrap = function (tag) {
  3255. var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
  3256. sym._k = tag;
  3257. return sym;
  3258. };
  3259. var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
  3260. return typeof it == 'symbol';
  3261. } : function (it) {
  3262. return it instanceof $Symbol;
  3263. };
  3264. var $defineProperty = function defineProperty(it, key, D) {
  3265. if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
  3266. anObject(it);
  3267. key = toPrimitive(key, true);
  3268. anObject(D);
  3269. if (has(AllSymbols, key)) {
  3270. if (!D.enumerable) {
  3271. if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
  3272. it[HIDDEN][key] = true;
  3273. } else {
  3274. if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
  3275. D = _create(D, { enumerable: createDesc(0, false) });
  3276. } return setSymbolDesc(it, key, D);
  3277. } return dP(it, key, D);
  3278. };
  3279. var $defineProperties = function defineProperties(it, P) {
  3280. anObject(it);
  3281. var keys = enumKeys(P = toIObject(P));
  3282. var i = 0;
  3283. var l = keys.length;
  3284. var key;
  3285. while (l > i) $defineProperty(it, key = keys[i++], P[key]);
  3286. return it;
  3287. };
  3288. var $create = function create(it, P) {
  3289. return P === undefined ? _create(it) : $defineProperties(_create(it), P);
  3290. };
  3291. var $propertyIsEnumerable = function propertyIsEnumerable(key) {
  3292. var E = isEnum.call(this, key = toPrimitive(key, true));
  3293. if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
  3294. return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
  3295. };
  3296. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
  3297. it = toIObject(it);
  3298. key = toPrimitive(key, true);
  3299. if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
  3300. var D = gOPD(it, key);
  3301. if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
  3302. return D;
  3303. };
  3304. var $getOwnPropertyNames = function getOwnPropertyNames(it) {
  3305. var names = gOPN(toIObject(it));
  3306. var result = [];
  3307. var i = 0;
  3308. var key;
  3309. while (names.length > i) {
  3310. if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
  3311. } return result;
  3312. };
  3313. var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
  3314. var IS_OP = it === ObjectProto;
  3315. var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
  3316. var result = [];
  3317. var i = 0;
  3318. var key;
  3319. while (names.length > i) {
  3320. if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
  3321. } return result;
  3322. };
  3323. // 19.4.1.1 Symbol([description])
  3324. if (!USE_NATIVE) {
  3325. $Symbol = function Symbol() {
  3326. if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
  3327. var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
  3328. var $set = function (value) {
  3329. if (this === ObjectProto) $set.call(OPSymbols, value);
  3330. if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
  3331. setSymbolDesc(this, tag, createDesc(1, value));
  3332. };
  3333. if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
  3334. return wrap(tag);
  3335. };
  3336. redefine($Symbol[PROTOTYPE], 'toString', function toString() {
  3337. return this._k;
  3338. });
  3339. $GOPD.f = $getOwnPropertyDescriptor;
  3340. $DP.f = $defineProperty;
  3341. __webpack_require__(58).f = gOPNExt.f = $getOwnPropertyNames;
  3342. __webpack_require__(27).f = $propertyIsEnumerable;
  3343. __webpack_require__(39).f = $getOwnPropertySymbols;
  3344. if (DESCRIPTORS && !__webpack_require__(25)) {
  3345. redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
  3346. }
  3347. wksExt.f = function (name) {
  3348. return wrap(wks(name));
  3349. };
  3350. }
  3351. $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
  3352. for (var es6Symbols = (
  3353. // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
  3354. 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
  3355. ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
  3356. for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
  3357. $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
  3358. // 19.4.2.1 Symbol.for(key)
  3359. 'for': function (key) {
  3360. return has(SymbolRegistry, key += '')
  3361. ? SymbolRegistry[key]
  3362. : SymbolRegistry[key] = $Symbol(key);
  3363. },
  3364. // 19.4.2.5 Symbol.keyFor(sym)
  3365. keyFor: function keyFor(sym) {
  3366. if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
  3367. for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
  3368. },
  3369. useSetter: function () { setter = true; },
  3370. useSimple: function () { setter = false; }
  3371. });
  3372. $export($export.S + $export.F * !USE_NATIVE, 'Object', {
  3373. // 19.1.2.2 Object.create(O [, Properties])
  3374. create: $create,
  3375. // 19.1.2.4 Object.defineProperty(O, P, Attributes)
  3376. defineProperty: $defineProperty,
  3377. // 19.1.2.3 Object.defineProperties(O, Properties)
  3378. defineProperties: $defineProperties,
  3379. // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  3380. getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
  3381. // 19.1.2.7 Object.getOwnPropertyNames(O)
  3382. getOwnPropertyNames: $getOwnPropertyNames,
  3383. // 19.1.2.8 Object.getOwnPropertySymbols(O)
  3384. getOwnPropertySymbols: $getOwnPropertySymbols
  3385. });
  3386. // 24.3.2 JSON.stringify(value [, replacer [, space]])
  3387. $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
  3388. var S = $Symbol();
  3389. // MS Edge converts symbol values to JSON as {}
  3390. // WebKit converts symbol values to JSON as null
  3391. // V8 throws on boxed symbols
  3392. return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
  3393. })), 'JSON', {
  3394. stringify: function stringify(it) {
  3395. var args = [it];
  3396. var i = 1;
  3397. var replacer, $replacer;
  3398. while (arguments.length > i) args.push(arguments[i++]);
  3399. $replacer = replacer = args[1];
  3400. if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
  3401. if (!isArray(replacer)) replacer = function (key, value) {
  3402. if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
  3403. if (!isSymbol(value)) return value;
  3404. };
  3405. args[1] = replacer;
  3406. return _stringify.apply($JSON, args);
  3407. }
  3408. });
  3409. // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
  3410. $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(14)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
  3411. // 19.4.3.5 Symbol.prototype[@@toStringTag]
  3412. setToStringTag($Symbol, 'Symbol');
  3413. // 20.2.1.9 Math[@@toStringTag]
  3414. setToStringTag(Math, 'Math', true);
  3415. // 24.3.3 JSON[@@toStringTag]
  3416. setToStringTag(global.JSON, 'JSON', true);
  3417. /***/ }),
  3418. /* 91 */
  3419. /***/ (function(module, exports, __webpack_require__) {
  3420. var META = __webpack_require__(26)('meta');
  3421. var isObject = __webpack_require__(20);
  3422. var has = __webpack_require__(13);
  3423. var setDesc = __webpack_require__(9).f;
  3424. var id = 0;
  3425. var isExtensible = Object.isExtensible || function () {
  3426. return true;
  3427. };
  3428. var FREEZE = !__webpack_require__(21)(function () {
  3429. return isExtensible(Object.preventExtensions({}));
  3430. });
  3431. var setMeta = function (it) {
  3432. setDesc(it, META, { value: {
  3433. i: 'O' + ++id, // object ID
  3434. w: {} // weak collections IDs
  3435. } });
  3436. };
  3437. var fastKey = function (it, create) {
  3438. // return primitive with prefix
  3439. if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
  3440. if (!has(it, META)) {
  3441. // can't set metadata to uncaught frozen object
  3442. if (!isExtensible(it)) return 'F';
  3443. // not necessary to add metadata
  3444. if (!create) return 'E';
  3445. // add missing metadata
  3446. setMeta(it);
  3447. // return object ID
  3448. } return it[META].i;
  3449. };
  3450. var getWeak = function (it, create) {
  3451. if (!has(it, META)) {
  3452. // can't set metadata to uncaught frozen object
  3453. if (!isExtensible(it)) return true;
  3454. // not necessary to add metadata
  3455. if (!create) return false;
  3456. // add missing metadata
  3457. setMeta(it);
  3458. // return hash weak collections IDs
  3459. } return it[META].w;
  3460. };
  3461. // add metadata on freeze-family methods calling
  3462. var onFreeze = function (it) {
  3463. if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
  3464. return it;
  3465. };
  3466. var meta = module.exports = {
  3467. KEY: META,
  3468. NEED: false,
  3469. fastKey: fastKey,
  3470. getWeak: getWeak,
  3471. onFreeze: onFreeze
  3472. };
  3473. /***/ }),
  3474. /* 92 */
  3475. /***/ (function(module, exports, __webpack_require__) {
  3476. // all enumerable object keys, includes symbols
  3477. var getKeys = __webpack_require__(24);
  3478. var gOPS = __webpack_require__(39);
  3479. var pIE = __webpack_require__(27);
  3480. module.exports = function (it) {
  3481. var result = getKeys(it);
  3482. var getSymbols = gOPS.f;
  3483. if (getSymbols) {
  3484. var symbols = getSymbols(it);
  3485. var isEnum = pIE.f;
  3486. var i = 0;
  3487. var key;
  3488. while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
  3489. } return result;
  3490. };
  3491. /***/ }),
  3492. /* 93 */
  3493. /***/ (function(module, exports, __webpack_require__) {
  3494. // 7.2.2 IsArray(argument)
  3495. var cof = __webpack_require__(33);
  3496. module.exports = Array.isArray || function isArray(arg) {
  3497. return cof(arg) == 'Array';
  3498. };
  3499. /***/ }),
  3500. /* 94 */
  3501. /***/ (function(module, exports, __webpack_require__) {
  3502. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  3503. var toIObject = __webpack_require__(16);
  3504. var gOPN = __webpack_require__(58).f;
  3505. var toString = {}.toString;
  3506. var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  3507. ? Object.getOwnPropertyNames(window) : [];
  3508. var getWindowNames = function (it) {
  3509. try {
  3510. return gOPN(it);
  3511. } catch (e) {
  3512. return windowNames.slice();
  3513. }
  3514. };
  3515. module.exports.f = function getOwnPropertyNames(it) {
  3516. return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
  3517. };
  3518. /***/ }),
  3519. /* 95 */
  3520. /***/ (function(module, exports, __webpack_require__) {
  3521. var pIE = __webpack_require__(27);
  3522. var createDesc = __webpack_require__(22);
  3523. var toIObject = __webpack_require__(16);
  3524. var toPrimitive = __webpack_require__(32);
  3525. var has = __webpack_require__(13);
  3526. var IE8_DOM_DEFINE = __webpack_require__(47);
  3527. var gOPD = Object.getOwnPropertyDescriptor;
  3528. exports.f = __webpack_require__(12) ? gOPD : function getOwnPropertyDescriptor(O, P) {
  3529. O = toIObject(O);
  3530. P = toPrimitive(P, true);
  3531. if (IE8_DOM_DEFINE) try {
  3532. return gOPD(O, P);
  3533. } catch (e) { /* empty */ }
  3534. if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
  3535. };
  3536. /***/ }),
  3537. /* 96 */
  3538. /***/ (function(module, exports) {
  3539. /***/ }),
  3540. /* 97 */
  3541. /***/ (function(module, exports, __webpack_require__) {
  3542. __webpack_require__(44)('asyncIterator');
  3543. /***/ }),
  3544. /* 98 */
  3545. /***/ (function(module, exports, __webpack_require__) {
  3546. __webpack_require__(44)('observable');
  3547. /***/ }),
  3548. /* 99 */
  3549. /***/ (function(module, exports, __webpack_require__) {
  3550. __webpack_require__(57);
  3551. __webpack_require__(41);
  3552. module.exports = __webpack_require__(100);
  3553. /***/ }),
  3554. /* 100 */
  3555. /***/ (function(module, exports, __webpack_require__) {
  3556. var anObject = __webpack_require__(15);
  3557. var get = __webpack_require__(60);
  3558. module.exports = __webpack_require__(6).getIterator = function (it) {
  3559. var iterFn = get(it);
  3560. if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
  3561. return anObject(iterFn.call(it));
  3562. };
  3563. /***/ }),
  3564. /* 101 */
  3565. /***/ (function(module, exports, __webpack_require__) {
  3566. // getting tag from 19.1.3.6 Object.prototype.toString()
  3567. var cof = __webpack_require__(33);
  3568. var TAG = __webpack_require__(4)('toStringTag');
  3569. // ES3 wrong here
  3570. var ARG = cof(function () { return arguments; }()) == 'Arguments';
  3571. // fallback for IE11 Script Access Denied error
  3572. var tryGet = function (it, key) {
  3573. try {
  3574. return it[key];
  3575. } catch (e) { /* empty */ }
  3576. };
  3577. module.exports = function (it) {
  3578. var O, T, B;
  3579. return it === undefined ? 'Undefined' : it === null ? 'Null'
  3580. // @@toStringTag case
  3581. : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
  3582. // builtinTag case
  3583. : ARG ? cof(O)
  3584. // ES3 arguments fallback
  3585. : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
  3586. };
  3587. /***/ }),
  3588. /* 102 */
  3589. /***/ (function(module, exports, __webpack_require__) {
  3590. module.exports = { "default": __webpack_require__(103), __esModule: true };
  3591. /***/ }),
  3592. /* 103 */
  3593. /***/ (function(module, exports, __webpack_require__) {
  3594. __webpack_require__(104);
  3595. var $Object = __webpack_require__(6).Object;
  3596. module.exports = function defineProperty(it, key, desc) {
  3597. return $Object.defineProperty(it, key, desc);
  3598. };
  3599. /***/ }),
  3600. /* 104 */
  3601. /***/ (function(module, exports, __webpack_require__) {
  3602. var $export = __webpack_require__(19);
  3603. // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
  3604. $export($export.S + $export.F * !__webpack_require__(12), 'Object', { defineProperty: __webpack_require__(9).f });
  3605. /***/ }),
  3606. /* 105 */
  3607. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3608. "use strict";
  3609. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3610. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  3611. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  3612. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
  3613. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
  3614. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_config__ = __webpack_require__(2);
  3615. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__ = __webpack_require__(10);
  3616. //
  3617. //
  3618. //
  3619. //
  3620. //
  3621. //
  3622. //
  3623. //
  3624. //
  3625. //
  3626. //
  3627. //
  3628. //
  3629. //
  3630. //
  3631. //
  3632. //
  3633. //
  3634. //
  3635. //
  3636. //
  3637. //
  3638. //
  3639. //
  3640. //
  3641. //
  3642. //
  3643. //
  3644. //
  3645. //
  3646. //
  3647. //
  3648. //
  3649. //
  3650. //
  3651. //
  3652. //
  3653. //
  3654. //
  3655. //
  3656. //
  3657. //
  3658. //
  3659. //
  3660. //
  3661. //
  3662. //
  3663. //
  3664. //
  3665. //
  3666. //
  3667. //
  3668. //
  3669. //
  3670. //
  3671. /* harmony default export */ __webpack_exports__["default"] = ({
  3672. name: 'BInput',
  3673. components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a),
  3674. mixins: [__WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__["a" /* default */]],
  3675. inheritAttrs: false,
  3676. props: {
  3677. value: [Number, String],
  3678. type: {
  3679. type: String,
  3680. default: 'text'
  3681. },
  3682. passwordReveal: Boolean,
  3683. hasCounter: {
  3684. type: Boolean,
  3685. default: function _default() {
  3686. return __WEBPACK_IMPORTED_MODULE_2__utils_config__["a" /* default */].defaultInputHasCounter;
  3687. }
  3688. },
  3689. customClass: {
  3690. type: String,
  3691. default: ''
  3692. }
  3693. },
  3694. data: function data() {
  3695. return {
  3696. newValue: this.value,
  3697. newType: this.type,
  3698. newAutocomplete: this.autocomplete || __WEBPACK_IMPORTED_MODULE_2__utils_config__["a" /* default */].defaultInputAutocomplete,
  3699. isPasswordVisible: false,
  3700. _elementRef: this.type === 'textarea' ? 'textarea' : 'input'
  3701. };
  3702. },
  3703. computed: {
  3704. computedValue: {
  3705. get: function get() {
  3706. return this.newValue;
  3707. },
  3708. set: function set(value) {
  3709. this.newValue = value;
  3710. this.$emit('input', value);
  3711. !this.isValid && this.checkHtml5Validity();
  3712. }
  3713. },
  3714. rootClasses: function rootClasses() {
  3715. return [this.iconPosition, this.size, {
  3716. 'is-expanded': this.expanded,
  3717. 'is-loading': this.loading,
  3718. 'is-clearfix': !this.hasMessage
  3719. }];
  3720. },
  3721. inputClasses: function inputClasses() {
  3722. return [this.statusType, this.size, { 'is-rounded': this.rounded }];
  3723. },
  3724. hasIconRight: function hasIconRight() {
  3725. return this.passwordReveal || this.loading || this.statusType;
  3726. },
  3727. /**
  3728. * Position of the icon or if it's both sides.
  3729. */
  3730. iconPosition: function iconPosition() {
  3731. if (this.icon && this.hasIconRight) {
  3732. return 'has-icons-left has-icons-right';
  3733. } else if (!this.icon && this.hasIconRight) {
  3734. return 'has-icons-right';
  3735. } else if (this.icon) {
  3736. return 'has-icons-left';
  3737. }
  3738. },
  3739. /**
  3740. * Icon name (MDI) based on the type.
  3741. */
  3742. statusTypeIcon: function statusTypeIcon() {
  3743. switch (this.statusType) {
  3744. case 'is-success':
  3745. return 'check';
  3746. case 'is-danger':
  3747. return 'alert-circle';
  3748. case 'is-info':
  3749. return 'information';
  3750. case 'is-warning':
  3751. return 'alert';
  3752. }
  3753. },
  3754. /**
  3755. * Check if have any message prop from parent if it's a Field.
  3756. */
  3757. hasMessage: function hasMessage() {
  3758. return !!this.statusMessage;
  3759. },
  3760. /**
  3761. * Current password-reveal icon name.
  3762. */
  3763. passwordVisibleIcon: function passwordVisibleIcon() {
  3764. return !this.isPasswordVisible ? 'eye' : 'eye-off';
  3765. },
  3766. /**
  3767. * Get value length
  3768. */
  3769. valueLength: function valueLength() {
  3770. if (typeof this.computedValue === 'string') {
  3771. return this.computedValue.length;
  3772. } else if (typeof this.computedValue === 'number') {
  3773. return this.computedValue.toString().length;
  3774. }
  3775. return 0;
  3776. }
  3777. },
  3778. watch: {
  3779. /**
  3780. * When v-model is changed:
  3781. * 1. Set internal value.
  3782. */
  3783. value: function value(_value) {
  3784. this.newValue = _value;
  3785. }
  3786. },
  3787. methods: {
  3788. /**
  3789. * Toggle the visibility of a password-reveal input
  3790. * by changing the type and focus the input right away.
  3791. */
  3792. togglePasswordVisibility: function togglePasswordVisibility() {
  3793. var _this = this;
  3794. this.isPasswordVisible = !this.isPasswordVisible;
  3795. this.newType = this.isPasswordVisible ? 'text' : 'password';
  3796. this.$nextTick(function () {
  3797. _this.$refs.input.focus();
  3798. });
  3799. },
  3800. /**
  3801. * Input's 'input' event listener, 'nextTick' is used to prevent event firing
  3802. * before ui update, helps when using masks (Cleavejs and potentially others).
  3803. */
  3804. onInput: function onInput(event) {
  3805. var _this2 = this;
  3806. this.$nextTick(function () {
  3807. if (event.target) {
  3808. _this2.computedValue = event.target.value;
  3809. }
  3810. });
  3811. }
  3812. }
  3813. });
  3814. /***/ }),
  3815. /* 106 */
  3816. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3817. "use strict";
  3818. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3819. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
  3820. //
  3821. //
  3822. //
  3823. //
  3824. //
  3825. //
  3826. //
  3827. //
  3828. //
  3829. //
  3830. //
  3831. //
  3832. //
  3833. //
  3834. //
  3835. /* harmony default export */ __webpack_exports__["default"] = ({
  3836. name: 'BIcon',
  3837. props: {
  3838. type: [String, Object],
  3839. pack: String,
  3840. icon: String,
  3841. size: String,
  3842. customSize: String,
  3843. customClass: String,
  3844. both: Boolean // This is used internally to show both MDI and FA icon
  3845. },
  3846. computed: {
  3847. /**
  3848. * Internal icon name based on the pack.
  3849. * If pack is 'fa', gets the equivalent FA icon name of the MDI,
  3850. * internal icons are always MDI.
  3851. */
  3852. newIcon: function newIcon() {
  3853. return this.newPack === 'mdi' ? this.newPack + '-' + this.icon : this.addFAPrefix(this.getEquivalentIconOf(this.icon));
  3854. },
  3855. newPack: function newPack() {
  3856. return this.pack || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultIconPack;
  3857. },
  3858. newType: function newType() {
  3859. if (!this.type) return;
  3860. var splitType = [];
  3861. if (typeof this.type === 'string') {
  3862. splitType = this.type.split('-');
  3863. } else {
  3864. for (var key in this.type) {
  3865. if (this.type[key]) {
  3866. splitType = key.split('-');
  3867. break;
  3868. }
  3869. }
  3870. }
  3871. if (splitType.length <= 1) return;
  3872. return 'has-text-' + splitType[1];
  3873. },
  3874. newCustomSize: function newCustomSize() {
  3875. return this.customSize || this.customSizeByPack;
  3876. },
  3877. customSizeByPack: function customSizeByPack() {
  3878. var defaultSize = this.newPack === 'mdi' ? 'mdi-24px' : this.addFAPrefix('lg');
  3879. var mediumSize = this.newPack === 'mdi' ? 'mdi-36px' : this.addFAPrefix('2x');
  3880. var largeSize = this.newPack === 'mdi' ? 'mdi-48px' : this.addFAPrefix('3x');
  3881. switch (this.size) {
  3882. case 'is-small':
  3883. return;
  3884. case 'is-medium':
  3885. return mediumSize;
  3886. case 'is-large':
  3887. return largeSize;
  3888. default:
  3889. return defaultSize;
  3890. }
  3891. },
  3892. useIconComponent: function useIconComponent() {
  3893. return __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultIconComponent;
  3894. }
  3895. },
  3896. methods: {
  3897. addFAPrefix: function addFAPrefix(value) {
  3898. if (this.useIconComponent) {
  3899. return value;
  3900. }
  3901. return 'fa-' + value;
  3902. },
  3903. /**
  3904. * Equivalent FA icon name of the MDI.
  3905. */
  3906. getEquivalentIconOf: function getEquivalentIconOf(value) {
  3907. // Only transform the class if the both prop is set to true
  3908. if (!this.both) {
  3909. return value;
  3910. }
  3911. switch (value) {
  3912. case 'check':
  3913. return 'check';
  3914. case 'information':
  3915. return 'info-circle';
  3916. case 'check-circle':
  3917. return 'check-circle';
  3918. case 'alert':
  3919. return 'exclamation-triangle';
  3920. case 'alert-circle':
  3921. return 'exclamation-circle';
  3922. case 'arrow-up':
  3923. return 'arrow-up';
  3924. case 'chevron-right':
  3925. return 'angle-right';
  3926. case 'chevron-left':
  3927. return 'angle-left';
  3928. case 'chevron-down':
  3929. return 'angle-down';
  3930. case 'eye':
  3931. return 'eye';
  3932. case 'eye-off':
  3933. return 'eye-slash';
  3934. case 'menu-down':
  3935. return 'caret-down';
  3936. case 'menu-up':
  3937. return 'caret-up';
  3938. default:
  3939. return value;
  3940. }
  3941. }
  3942. }
  3943. });
  3944. /***/ }),
  3945. /* 107 */
  3946. /***/ (function(module, exports) {
  3947. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  3948. return _c('span', {
  3949. staticClass: "icon",
  3950. class: [_vm.newType, _vm.size]
  3951. }, [(!_vm.useIconComponent) ? _c('i', {
  3952. class: [_vm.newPack, _vm.newIcon, _vm.newCustomSize, _vm.customClass]
  3953. }) : _c(_vm.useIconComponent, {
  3954. tag: "component",
  3955. class: [_vm.customClass],
  3956. attrs: {
  3957. "icon": [_vm.newPack, _vm.newIcon],
  3958. "size": _vm.newCustomSize
  3959. }
  3960. })], 1)
  3961. },staticRenderFns: []}
  3962. /***/ }),
  3963. /* 108 */
  3964. /***/ (function(module, exports) {
  3965. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  3966. return _c('div', {
  3967. staticClass: "control",
  3968. class: _vm.rootClasses
  3969. }, [(_vm.type !== 'textarea') ? _c('input', _vm._b({
  3970. ref: "input",
  3971. staticClass: "input",
  3972. class: [_vm.inputClasses, _vm.customClass],
  3973. attrs: {
  3974. "type": _vm.newType,
  3975. "autocomplete": _vm.newAutocomplete,
  3976. "maxlength": _vm.maxlength
  3977. },
  3978. domProps: {
  3979. "value": _vm.computedValue
  3980. },
  3981. on: {
  3982. "input": _vm.onInput,
  3983. "blur": _vm.onBlur,
  3984. "focus": _vm.onFocus
  3985. }
  3986. }, 'input', _vm.$attrs, false)) : _c('textarea', _vm._b({
  3987. ref: "textarea",
  3988. staticClass: "textarea",
  3989. class: [_vm.inputClasses, _vm.customClass],
  3990. attrs: {
  3991. "maxlength": _vm.maxlength
  3992. },
  3993. domProps: {
  3994. "value": _vm.computedValue
  3995. },
  3996. on: {
  3997. "input": _vm.onInput,
  3998. "blur": _vm.onBlur,
  3999. "focus": _vm.onFocus
  4000. }
  4001. }, 'textarea', _vm.$attrs, false)), _vm._v(" "), (_vm.icon) ? _c('b-icon', {
  4002. staticClass: "is-left",
  4003. attrs: {
  4004. "icon": _vm.icon,
  4005. "pack": _vm.iconPack,
  4006. "size": _vm.iconSize
  4007. }
  4008. }) : _vm._e(), _vm._v(" "), (!_vm.loading && (_vm.passwordReveal || _vm.statusType)) ? _c('b-icon', {
  4009. staticClass: "is-right",
  4010. class: {
  4011. 'is-clickable': _vm.passwordReveal
  4012. },
  4013. attrs: {
  4014. "icon": _vm.passwordReveal ? _vm.passwordVisibleIcon : _vm.statusTypeIcon,
  4015. "pack": _vm.iconPack,
  4016. "size": _vm.iconSize,
  4017. "type": !_vm.passwordReveal ? _vm.statusType : 'is-primary',
  4018. "both": ""
  4019. },
  4020. nativeOn: {
  4021. "click": function($event) {
  4022. _vm.togglePasswordVisibility($event)
  4023. }
  4024. }
  4025. }) : _vm._e(), _vm._v(" "), (_vm.maxlength && _vm.hasCounter && _vm.type !== 'number') ? _c('small', {
  4026. staticClass: "help counter",
  4027. class: {
  4028. 'is-invisible': !_vm.isFocused
  4029. }
  4030. }, [_vm._v("\n " + _vm._s(_vm.valueLength) + " / " + _vm._s(_vm.maxlength) + "\n ")]) : _vm._e()], 1)
  4031. },staticRenderFns: []}
  4032. /***/ }),
  4033. /* 109 */
  4034. /***/ (function(module, exports) {
  4035. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  4036. return _c('div', {
  4037. staticClass: "autocomplete control",
  4038. class: {
  4039. 'is-expanded': _vm.expanded
  4040. }
  4041. }, [_c('b-input', _vm._b({
  4042. ref: "input",
  4043. attrs: {
  4044. "type": "text",
  4045. "size": _vm.size,
  4046. "loading": _vm.loading,
  4047. "rounded": _vm.rounded,
  4048. "icon": _vm.icon,
  4049. "icon-pack": _vm.iconPack,
  4050. "maxlength": _vm.maxlength,
  4051. "autocomplete": _vm.newAutocomplete,
  4052. "use-html5-validation": _vm.useHtml5Validation
  4053. },
  4054. on: {
  4055. "input": _vm.onInput,
  4056. "focus": _vm.focused,
  4057. "blur": _vm.onBlur
  4058. },
  4059. nativeOn: {
  4060. "keyup": function($event) {
  4061. if (!('button' in $event) && _vm._k($event.keyCode, "esc", 27, $event.key)) { return null; }
  4062. $event.preventDefault();
  4063. _vm.isActive = false
  4064. },
  4065. "keydown": [function($event) {
  4066. if (!('button' in $event) && _vm._k($event.keyCode, "tab", 9, $event.key)) { return null; }
  4067. _vm.tabPressed($event)
  4068. }, function($event) {
  4069. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  4070. $event.preventDefault();
  4071. _vm.enterPressed($event)
  4072. }, function($event) {
  4073. if (!('button' in $event) && _vm._k($event.keyCode, "up", 38, $event.key)) { return null; }
  4074. $event.preventDefault();
  4075. _vm.keyArrows('up')
  4076. }, function($event) {
  4077. if (!('button' in $event) && _vm._k($event.keyCode, "down", 40, $event.key)) { return null; }
  4078. $event.preventDefault();
  4079. _vm.keyArrows('down')
  4080. }]
  4081. },
  4082. model: {
  4083. value: (_vm.newValue),
  4084. callback: function($$v) {
  4085. _vm.newValue = $$v
  4086. },
  4087. expression: "newValue"
  4088. }
  4089. }, 'b-input', _vm.$attrs, false)), _vm._v(" "), _c('transition', {
  4090. attrs: {
  4091. "name": "fade"
  4092. }
  4093. }, [_c('div', {
  4094. directives: [{
  4095. name: "show",
  4096. rawName: "v-show",
  4097. value: (_vm.isActive && (_vm.data.length > 0 || _vm.hasEmptySlot || _vm.hasHeaderSlot)),
  4098. expression: "isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"
  4099. }],
  4100. ref: "dropdown",
  4101. staticClass: "dropdown-menu",
  4102. class: {
  4103. 'is-opened-top': !_vm.isListInViewportVertically
  4104. }
  4105. }, [_c('div', {
  4106. directives: [{
  4107. name: "show",
  4108. rawName: "v-show",
  4109. value: (_vm.isActive),
  4110. expression: "isActive"
  4111. }],
  4112. staticClass: "dropdown-content"
  4113. }, [(_vm.hasHeaderSlot) ? _c('div', {
  4114. staticClass: "dropdown-item"
  4115. }, [_vm._t("header")], 2) : _vm._e(), _vm._v(" "), _vm._l((_vm.data), function(option, index) {
  4116. return _c('a', {
  4117. key: index,
  4118. staticClass: "dropdown-item",
  4119. class: {
  4120. 'is-hovered': option === _vm.hovered
  4121. },
  4122. on: {
  4123. "click": function($event) {
  4124. _vm.setSelected(option)
  4125. }
  4126. }
  4127. }, [(_vm.hasDefaultSlot) ? _vm._t("default", null, {
  4128. option: option,
  4129. index: index
  4130. }) : _c('span', [_vm._v("\n " + _vm._s(_vm.getValue(option, true)) + "\n ")])], 2)
  4131. }), _vm._v(" "), (_vm.data.length === 0 && _vm.hasEmptySlot) ? _c('div', {
  4132. staticClass: "dropdown-item is-disabled"
  4133. }, [_vm._t("empty")], 2) : _vm._e(), _vm._v(" "), (_vm.hasFooterSlot) ? _c('div', {
  4134. staticClass: "dropdown-item"
  4135. }, [_vm._t("footer")], 2) : _vm._e()], 2)])])], 1)
  4136. },staticRenderFns: []}
  4137. /***/ }),
  4138. /* 110 */
  4139. /***/ (function(module, exports, __webpack_require__) {
  4140. var Component = __webpack_require__(0)(
  4141. /* script */
  4142. __webpack_require__(111),
  4143. /* template */
  4144. __webpack_require__(112),
  4145. /* styles */
  4146. null,
  4147. /* scopeId */
  4148. null,
  4149. /* moduleIdentifier (server only) */
  4150. null
  4151. )
  4152. module.exports = Component.exports
  4153. /***/ }),
  4154. /* 111 */
  4155. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4156. "use strict";
  4157. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4158. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  4159. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  4160. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
  4161. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
  4162. //
  4163. //
  4164. //
  4165. //
  4166. //
  4167. //
  4168. //
  4169. //
  4170. //
  4171. //
  4172. //
  4173. //
  4174. //
  4175. //
  4176. //
  4177. //
  4178. //
  4179. //
  4180. //
  4181. //
  4182. //
  4183. //
  4184. //
  4185. //
  4186. //
  4187. //
  4188. //
  4189. //
  4190. //
  4191. //
  4192. //
  4193. //
  4194. //
  4195. //
  4196. //
  4197. //
  4198. //
  4199. /* harmony default export */ __webpack_exports__["default"] = ({
  4200. name: 'BButton',
  4201. components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a),
  4202. props: {
  4203. type: [String, Object],
  4204. size: String,
  4205. label: String,
  4206. iconPack: String,
  4207. iconLeft: String,
  4208. iconRight: String,
  4209. rounded: Boolean,
  4210. loading: Boolean,
  4211. outlined: Boolean,
  4212. inverted: Boolean,
  4213. focused: Boolean,
  4214. active: Boolean,
  4215. hovered: Boolean,
  4216. selected: Boolean,
  4217. nativeType: {
  4218. type: String,
  4219. default: 'button',
  4220. validator: function validator(value) {
  4221. return ['button', 'submit', 'reset'].indexOf(value) >= 0;
  4222. }
  4223. },
  4224. tag: {
  4225. type: String,
  4226. default: 'button',
  4227. validator: function validator(value) {
  4228. return ['button', 'a', 'input', 'router-link', 'nuxt-link', 'n-link', 'NuxtLink', 'NLink'].indexOf(value) >= 0;
  4229. }
  4230. }
  4231. },
  4232. computed: {
  4233. iconSize: function iconSize() {
  4234. if (!this.size || this.size === 'is-medium') {
  4235. return 'is-small';
  4236. } else if (this.size === 'is-large') {
  4237. return 'is-medium';
  4238. }
  4239. return this.size;
  4240. }
  4241. }
  4242. });
  4243. /***/ }),
  4244. /* 112 */
  4245. /***/ (function(module, exports) {
  4246. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  4247. return _c(_vm.tag, _vm._b({
  4248. tag: "component",
  4249. staticClass: "button",
  4250. class: [_vm.size, _vm.type, {
  4251. 'is-rounded': _vm.rounded,
  4252. 'is-loading': _vm.loading,
  4253. 'is-outlined': _vm.outlined,
  4254. 'is-inverted': _vm.inverted,
  4255. 'is-focused': _vm.focused,
  4256. 'is-active': _vm.active,
  4257. 'is-hovered': _vm.hovered,
  4258. 'is-selected': _vm.selected
  4259. }],
  4260. attrs: {
  4261. "type": _vm.nativeType
  4262. },
  4263. on: {
  4264. "click": function($event) {
  4265. _vm.$emit('click', $event)
  4266. }
  4267. }
  4268. }, 'component', _vm.$attrs, false), [(_vm.iconLeft) ? _c('b-icon', {
  4269. attrs: {
  4270. "pack": _vm.iconPack,
  4271. "icon": _vm.iconLeft,
  4272. "size": _vm.iconSize
  4273. }
  4274. }) : _vm._e(), _vm._v(" "), (_vm.label) ? _c('span', [_vm._v(_vm._s(_vm.label))]) : (_vm.$slots.default) ? _c('span', [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), (_vm.iconRight) ? _c('b-icon', {
  4275. attrs: {
  4276. "pack": _vm.iconPack,
  4277. "icon": _vm.iconRight,
  4278. "size": _vm.iconSize
  4279. }
  4280. }) : _vm._e()], 1)
  4281. },staticRenderFns: []}
  4282. /***/ }),
  4283. /* 113 */
  4284. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4285. "use strict";
  4286. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4287. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
  4288. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
  4289. //
  4290. //
  4291. //
  4292. //
  4293. //
  4294. //
  4295. //
  4296. //
  4297. //
  4298. //
  4299. //
  4300. //
  4301. //
  4302. //
  4303. //
  4304. //
  4305. //
  4306. //
  4307. //
  4308. //
  4309. //
  4310. //
  4311. //
  4312. /* harmony default export */ __webpack_exports__["default"] = ({
  4313. name: 'BCheckbox',
  4314. props: {
  4315. value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  4316. nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  4317. indeterminate: Boolean,
  4318. type: String,
  4319. disabled: Boolean,
  4320. required: Boolean,
  4321. name: String,
  4322. size: String,
  4323. trueValue: {
  4324. type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  4325. default: true
  4326. },
  4327. falseValue: {
  4328. type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  4329. default: false
  4330. }
  4331. },
  4332. data: function data() {
  4333. return {
  4334. newValue: this.value
  4335. };
  4336. },
  4337. computed: {
  4338. computedValue: {
  4339. get: function get() {
  4340. return this.newValue;
  4341. },
  4342. set: function set(value) {
  4343. this.newValue = value;
  4344. this.$emit('input', value);
  4345. }
  4346. }
  4347. },
  4348. watch: {
  4349. /**
  4350. * When v-model change, set internal value.
  4351. */
  4352. value: function value(_value) {
  4353. this.newValue = _value;
  4354. }
  4355. }
  4356. });
  4357. /***/ }),
  4358. /* 114 */
  4359. /***/ (function(module, exports) {
  4360. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  4361. return _c('label', {
  4362. ref: "label",
  4363. staticClass: "b-checkbox checkbox",
  4364. class: [_vm.size, {
  4365. 'is-disabled': _vm.disabled
  4366. }],
  4367. attrs: {
  4368. "disabled": _vm.disabled
  4369. },
  4370. on: {
  4371. "keydown": function($event) {
  4372. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  4373. $event.preventDefault();
  4374. _vm.$refs.label.click()
  4375. }
  4376. }
  4377. }, [_c('input', {
  4378. directives: [{
  4379. name: "model",
  4380. rawName: "v-model",
  4381. value: (_vm.computedValue),
  4382. expression: "computedValue"
  4383. }],
  4384. attrs: {
  4385. "type": "checkbox",
  4386. "disabled": _vm.disabled,
  4387. "required": _vm.required,
  4388. "name": _vm.name,
  4389. "true-value": _vm.trueValue,
  4390. "false-value": _vm.falseValue
  4391. },
  4392. domProps: {
  4393. "indeterminate": _vm.indeterminate,
  4394. "value": _vm.nativeValue,
  4395. "checked": Array.isArray(_vm.computedValue) ? _vm._i(_vm.computedValue, _vm.nativeValue) > -1 : _vm._q(_vm.computedValue, _vm.trueValue)
  4396. },
  4397. on: {
  4398. "click": function($event) {
  4399. $event.stopPropagation();
  4400. },
  4401. "change": function($event) {
  4402. var $$a = _vm.computedValue,
  4403. $$el = $event.target,
  4404. $$c = $$el.checked ? (_vm.trueValue) : (_vm.falseValue);
  4405. if (Array.isArray($$a)) {
  4406. var $$v = _vm.nativeValue,
  4407. $$i = _vm._i($$a, $$v);
  4408. if ($$el.checked) {
  4409. $$i < 0 && (_vm.computedValue = $$a.concat([$$v]))
  4410. } else {
  4411. $$i > -1 && (_vm.computedValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
  4412. }
  4413. } else {
  4414. _vm.computedValue = $$c
  4415. }
  4416. }
  4417. }
  4418. }), _vm._v(" "), _c('span', {
  4419. staticClass: "check",
  4420. class: _vm.type
  4421. }), _vm._v(" "), _c('span', {
  4422. staticClass: "control-label"
  4423. }, [_vm._t("default")], 2)])
  4424. },staticRenderFns: []}
  4425. /***/ }),
  4426. /* 115 */
  4427. /***/ (function(module, exports, __webpack_require__) {
  4428. var Component = __webpack_require__(0)(
  4429. /* script */
  4430. __webpack_require__(116),
  4431. /* template */
  4432. __webpack_require__(117),
  4433. /* styles */
  4434. null,
  4435. /* scopeId */
  4436. null,
  4437. /* moduleIdentifier (server only) */
  4438. null
  4439. )
  4440. module.exports = Component.exports
  4441. /***/ }),
  4442. /* 116 */
  4443. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4444. "use strict";
  4445. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4446. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
  4447. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
  4448. //
  4449. //
  4450. //
  4451. //
  4452. //
  4453. //
  4454. //
  4455. //
  4456. //
  4457. //
  4458. //
  4459. //
  4460. //
  4461. //
  4462. //
  4463. //
  4464. //
  4465. //
  4466. //
  4467. //
  4468. //
  4469. //
  4470. //
  4471. //
  4472. //
  4473. //
  4474. /* harmony default export */ __webpack_exports__["default"] = ({
  4475. name: 'BCheckboxButton',
  4476. props: {
  4477. value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  4478. nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  4479. disabled: Boolean,
  4480. required: Boolean,
  4481. name: String,
  4482. size: String,
  4483. type: {
  4484. type: String,
  4485. default: 'is-primary'
  4486. }
  4487. },
  4488. data: function data() {
  4489. return {
  4490. newValue: this.value,
  4491. isFocused: false
  4492. };
  4493. },
  4494. computed: {
  4495. computedValue: {
  4496. get: function get() {
  4497. return this.newValue;
  4498. },
  4499. set: function set(value) {
  4500. this.newValue = value;
  4501. this.$emit('input', value);
  4502. }
  4503. },
  4504. checked: function checked() {
  4505. if (Array.isArray(this.newValue)) {
  4506. return this.newValue.indexOf(this.nativeValue) >= 0;
  4507. }
  4508. return this.newValue === this.nativeValue;
  4509. }
  4510. },
  4511. watch: {
  4512. /**
  4513. * When v-model change, set internal value.
  4514. */
  4515. value: function value(_value) {
  4516. this.newValue = _value;
  4517. }
  4518. }
  4519. });
  4520. /***/ }),
  4521. /* 117 */
  4522. /***/ (function(module, exports) {
  4523. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  4524. return _c('div', {
  4525. staticClass: "control"
  4526. }, [_c('label', {
  4527. ref: "label",
  4528. staticClass: "b-checkbox checkbox button",
  4529. class: [_vm.checked ? _vm.type : null, _vm.size, {
  4530. 'is-disabled': _vm.disabled,
  4531. 'is-focused': _vm.isFocused
  4532. }],
  4533. attrs: {
  4534. "disabled": _vm.disabled
  4535. },
  4536. on: {
  4537. "keydown": function($event) {
  4538. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  4539. $event.preventDefault();
  4540. _vm.$refs.label.click()
  4541. }
  4542. }
  4543. }, [_vm._t("default"), _vm._v(" "), _c('input', {
  4544. directives: [{
  4545. name: "model",
  4546. rawName: "v-model",
  4547. value: (_vm.computedValue),
  4548. expression: "computedValue"
  4549. }],
  4550. attrs: {
  4551. "type": "checkbox",
  4552. "disabled": _vm.disabled,
  4553. "required": _vm.required,
  4554. "name": _vm.name
  4555. },
  4556. domProps: {
  4557. "value": _vm.nativeValue,
  4558. "checked": Array.isArray(_vm.computedValue) ? _vm._i(_vm.computedValue, _vm.nativeValue) > -1 : (_vm.computedValue)
  4559. },
  4560. on: {
  4561. "click": function($event) {
  4562. $event.stopPropagation();
  4563. },
  4564. "focus": function($event) {
  4565. _vm.isFocused = true
  4566. },
  4567. "blur": function($event) {
  4568. _vm.isFocused = false
  4569. },
  4570. "change": function($event) {
  4571. var $$a = _vm.computedValue,
  4572. $$el = $event.target,
  4573. $$c = $$el.checked ? (true) : (false);
  4574. if (Array.isArray($$a)) {
  4575. var $$v = _vm.nativeValue,
  4576. $$i = _vm._i($$a, $$v);
  4577. if ($$el.checked) {
  4578. $$i < 0 && (_vm.computedValue = $$a.concat([$$v]))
  4579. } else {
  4580. $$i > -1 && (_vm.computedValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
  4581. }
  4582. } else {
  4583. _vm.computedValue = $$c
  4584. }
  4585. }
  4586. }
  4587. })], 2)])
  4588. },staticRenderFns: []}
  4589. /***/ }),
  4590. /* 118 */
  4591. /***/ (function(module, exports, __webpack_require__) {
  4592. var Component = __webpack_require__(0)(
  4593. /* script */
  4594. __webpack_require__(119),
  4595. /* template */
  4596. __webpack_require__(120),
  4597. /* styles */
  4598. null,
  4599. /* scopeId */
  4600. null,
  4601. /* moduleIdentifier (server only) */
  4602. null
  4603. )
  4604. module.exports = Component.exports
  4605. /***/ }),
  4606. /* 119 */
  4607. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4608. "use strict";
  4609. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4610. //
  4611. //
  4612. //
  4613. //
  4614. //
  4615. //
  4616. //
  4617. //
  4618. //
  4619. //
  4620. //
  4621. //
  4622. //
  4623. //
  4624. //
  4625. //
  4626. //
  4627. /* harmony default export */ __webpack_exports__["default"] = ({
  4628. name: 'BCollapse',
  4629. props: {
  4630. open: {
  4631. type: Boolean,
  4632. default: true
  4633. },
  4634. animation: {
  4635. type: String,
  4636. default: 'fade'
  4637. },
  4638. ariaId: {
  4639. type: String,
  4640. default: ''
  4641. }
  4642. },
  4643. data: function data() {
  4644. return {
  4645. isOpen: this.open
  4646. };
  4647. },
  4648. watch: {
  4649. open: function open(value) {
  4650. this.isOpen = value;
  4651. }
  4652. },
  4653. methods: {
  4654. /**
  4655. * Toggle and emit events
  4656. */
  4657. toggle: function toggle() {
  4658. this.isOpen = !this.isOpen;
  4659. this.$emit('update:open', this.isOpen);
  4660. this.$emit(this.isOpen ? 'open' : 'close');
  4661. }
  4662. }
  4663. });
  4664. /***/ }),
  4665. /* 120 */
  4666. /***/ (function(module, exports) {
  4667. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  4668. return _c('div', {
  4669. staticClass: "collapse"
  4670. }, [_c('div', {
  4671. staticClass: "collapse-trigger",
  4672. on: {
  4673. "click": _vm.toggle
  4674. }
  4675. }, [_vm._t("trigger", null, {
  4676. open: _vm.isOpen
  4677. })], 2), _vm._v(" "), _c('transition', {
  4678. attrs: {
  4679. "name": _vm.animation
  4680. }
  4681. }, [_c('div', {
  4682. directives: [{
  4683. name: "show",
  4684. rawName: "v-show",
  4685. value: (_vm.isOpen),
  4686. expression: "isOpen"
  4687. }],
  4688. staticClass: "collapse-content",
  4689. attrs: {
  4690. "id": _vm.ariaId,
  4691. "aria-expanded": _vm.isOpen
  4692. }
  4693. }, [_vm._t("default")], 2)])], 1)
  4694. },staticRenderFns: []}
  4695. /***/ }),
  4696. /* 121 */
  4697. /***/ (function(module, exports, __webpack_require__) {
  4698. var Component = __webpack_require__(0)(
  4699. /* script */
  4700. __webpack_require__(122),
  4701. /* template */
  4702. __webpack_require__(134),
  4703. /* styles */
  4704. null,
  4705. /* scopeId */
  4706. null,
  4707. /* moduleIdentifier (server only) */
  4708. null
  4709. )
  4710. module.exports = Component.exports
  4711. /***/ }),
  4712. /* 122 */
  4713. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4714. "use strict";
  4715. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4716. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  4717. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  4718. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__ = __webpack_require__(62);
  4719. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__ = __webpack_require__(28);
  4720. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__);
  4721. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__ = __webpack_require__(29);
  4722. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__);
  4723. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input__ = __webpack_require__(17);
  4724. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__input_Input__);
  4725. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field__ = __webpack_require__(30);
  4726. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__field_Field__);
  4727. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__icon_Icon__ = __webpack_require__(3);
  4728. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__icon_Icon__);
  4729. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace__ = __webpack_require__(131);
  4730. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__ClockpickerFace__);
  4731. var _components;
  4732. //
  4733. //
  4734. //
  4735. //
  4736. //
  4737. //
  4738. //
  4739. //
  4740. //
  4741. //
  4742. //
  4743. //
  4744. //
  4745. //
  4746. //
  4747. //
  4748. //
  4749. //
  4750. //
  4751. //
  4752. //
  4753. //
  4754. //
  4755. //
  4756. //
  4757. //
  4758. //
  4759. //
  4760. //
  4761. //
  4762. //
  4763. //
  4764. //
  4765. //
  4766. //
  4767. //
  4768. //
  4769. //
  4770. //
  4771. //
  4772. //
  4773. //
  4774. //
  4775. //
  4776. //
  4777. //
  4778. //
  4779. //
  4780. //
  4781. //
  4782. //
  4783. //
  4784. //
  4785. //
  4786. //
  4787. //
  4788. //
  4789. //
  4790. //
  4791. //
  4792. //
  4793. //
  4794. //
  4795. //
  4796. //
  4797. //
  4798. //
  4799. //
  4800. //
  4801. //
  4802. //
  4803. //
  4804. //
  4805. //
  4806. //
  4807. //
  4808. //
  4809. //
  4810. //
  4811. //
  4812. //
  4813. //
  4814. //
  4815. //
  4816. //
  4817. //
  4818. //
  4819. //
  4820. //
  4821. //
  4822. //
  4823. //
  4824. //
  4825. //
  4826. //
  4827. //
  4828. //
  4829. //
  4830. //
  4831. //
  4832. //
  4833. //
  4834. //
  4835. //
  4836. //
  4837. //
  4838. //
  4839. //
  4840. //
  4841. //
  4842. //
  4843. //
  4844. //
  4845. //
  4846. //
  4847. //
  4848. //
  4849. //
  4850. //
  4851. //
  4852. //
  4853. //
  4854. //
  4855. //
  4856. //
  4857. //
  4858. //
  4859. //
  4860. var outerPadding = 12;
  4861. /* harmony default export */ __webpack_exports__["default"] = ({
  4862. name: 'BClockpicker',
  4863. components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace___default.a.name, __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_4__input_Input___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_5__field_Field___default.a.name, __WEBPACK_IMPORTED_MODULE_5__field_Field___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_6__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_6__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default.a.name, __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default.a.name, __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default.a), _components),
  4864. mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__["a" /* default */]],
  4865. props: {
  4866. pickerSize: {
  4867. type: Number,
  4868. default: 290
  4869. },
  4870. hourFormat: {
  4871. type: String,
  4872. default: '12',
  4873. validator: function validator(value) {
  4874. return value === '24' || value === '12';
  4875. }
  4876. },
  4877. incrementMinutes: {
  4878. type: Number,
  4879. default: 5
  4880. },
  4881. autoSwitch: {
  4882. type: Boolean,
  4883. default: true
  4884. },
  4885. type: {
  4886. type: String,
  4887. default: 'is-primary'
  4888. }
  4889. },
  4890. data: function data() {
  4891. return {
  4892. isSelectingHour: true,
  4893. isDragging: false,
  4894. _isClockpicker: true
  4895. };
  4896. },
  4897. computed: {
  4898. hoursDisplay: function hoursDisplay() {
  4899. if (this.hoursSelected == null) return '--';
  4900. if (this.isHourFormat24) return this.pad(this.hoursSelected);
  4901. var display = this.hoursSelected;
  4902. if (this.meridienSelected === this.PM) display -= 12;
  4903. if (display === 0) display = 12;
  4904. return display;
  4905. },
  4906. minutesDisplay: function minutesDisplay() {
  4907. return this.minutesSelected == null ? '--' : this.pad(this.minutesSelected);
  4908. },
  4909. minFaceValue: function minFaceValue() {
  4910. return this.isSelectingHour && !this.isHourFormat24 && this.meridienSelected === this.PM ? 12 : 0;
  4911. },
  4912. maxFaceValue: function maxFaceValue() {
  4913. return this.isSelectingHour ? !this.isHourFormat24 && this.meridienSelected === this.AM ? 11 : 23 : 59;
  4914. },
  4915. faceFormatter: function faceFormatter() {
  4916. return this.isSelectingHour && !this.isHourFormat24 ? function (val) {
  4917. return val;
  4918. } : this.formatNumber;
  4919. },
  4920. faceSize: function faceSize() {
  4921. return this.pickerSize - outerPadding * 2;
  4922. },
  4923. faceDisabledValues: function faceDisabledValues() {
  4924. return this.isSelectingHour ? this.isHourDisabled : this.isMinuteDisabled;
  4925. }
  4926. },
  4927. methods: {
  4928. onClockInput: function onClockInput(value) {
  4929. if (this.isSelectingHour) {
  4930. this.hoursSelected = value;
  4931. this.onHoursChange(value);
  4932. } else {
  4933. this.minutesSelected = value;
  4934. this.onMinutesChange(value);
  4935. }
  4936. },
  4937. onClockChange: function onClockChange(value) {
  4938. if (this.autoSwitch && this.isSelectingHour) {
  4939. this.isSelectingHour = !this.isSelectingHour;
  4940. }
  4941. },
  4942. onMeridienClick: function onMeridienClick(value) {
  4943. if (this.meridienSelected !== value) {
  4944. this.meridienSelected = value;
  4945. this.onMeridienChange(value);
  4946. }
  4947. }
  4948. }
  4949. });
  4950. /***/ }),
  4951. /* 123 */
  4952. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4953. "use strict";
  4954. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4955. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__ = __webpack_require__(59);
  4956. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__);
  4957. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol__ = __webpack_require__(5);
  4958. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol__);
  4959. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_config__ = __webpack_require__(2);
  4960. //
  4961. //
  4962. //
  4963. //
  4964. //
  4965. //
  4966. //
  4967. //
  4968. //
  4969. //
  4970. //
  4971. //
  4972. //
  4973. //
  4974. //
  4975. //
  4976. //
  4977. //
  4978. //
  4979. //
  4980. //
  4981. //
  4982. //
  4983. //
  4984. //
  4985. //
  4986. //
  4987. //
  4988. //
  4989. //
  4990. //
  4991. //
  4992. //
  4993. //
  4994. //
  4995. //
  4996. /* harmony default export */ __webpack_exports__["default"] = ({
  4997. name: 'BDropdown',
  4998. props: {
  4999. value: {
  5000. type: [String, Number, Boolean, Object, Array, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol___default.a, Function],
  5001. default: null
  5002. },
  5003. disabled: Boolean,
  5004. hoverable: Boolean,
  5005. inline: Boolean,
  5006. position: {
  5007. type: String,
  5008. validator: function validator(value) {
  5009. return ['is-top-right', 'is-top-left', 'is-bottom-left'].indexOf(value) > -1;
  5010. }
  5011. },
  5012. mobileModal: {
  5013. type: Boolean,
  5014. default: function _default() {
  5015. return __WEBPACK_IMPORTED_MODULE_2__utils_config__["a" /* default */].defaultDropdownMobileModal;
  5016. }
  5017. },
  5018. ariaRole: {
  5019. type: String,
  5020. default: ''
  5021. },
  5022. animation: {
  5023. type: String,
  5024. default: 'fade'
  5025. },
  5026. multiple: Boolean,
  5027. closeOnClick: {
  5028. type: Boolean,
  5029. default: true
  5030. }
  5031. },
  5032. data: function data() {
  5033. return {
  5034. selected: this.value,
  5035. isActive: false,
  5036. isHoverable: this.hoverable,
  5037. _isDropdown: true // Used internally by DropdownItem
  5038. };
  5039. },
  5040. computed: {
  5041. rootClasses: function rootClasses() {
  5042. return [this.position, {
  5043. 'is-disabled': this.disabled,
  5044. 'is-hoverable': this.hoverable,
  5045. 'is-inline': this.inline,
  5046. 'is-active': this.isActive || this.inline,
  5047. 'is-mobile-modal': this.isMobileModal
  5048. }];
  5049. },
  5050. isMobileModal: function isMobileModal() {
  5051. return this.mobileModal && !this.inline && !this.hoverable;
  5052. },
  5053. ariaRoleMenu: function ariaRoleMenu() {
  5054. return this.ariaRole === 'menu' || this.ariaRole === 'list' ? this.ariaRole : null;
  5055. }
  5056. },
  5057. watch: {
  5058. /**
  5059. * When v-model is changed set the new selected item.
  5060. */
  5061. value: function value(_value) {
  5062. this.selected = _value;
  5063. },
  5064. /**
  5065. * Emit event when isActive value is changed.
  5066. */
  5067. isActive: function isActive(value) {
  5068. this.$emit('active-change', value);
  5069. }
  5070. },
  5071. methods: {
  5072. /**
  5073. * Click listener from DropdownItem.
  5074. * 1. Set new selected item.
  5075. * 2. Emit input event to update the user v-model.
  5076. * 3. Close the dropdown.
  5077. */
  5078. selectItem: function selectItem(value) {
  5079. if (this.multiple) {
  5080. if (this.selected) {
  5081. var index = this.selected.indexOf(value);
  5082. if (index === -1) {
  5083. this.selected.push(value);
  5084. } else {
  5085. this.selected.splice(index, 1);
  5086. }
  5087. } else {
  5088. this.selected = [value];
  5089. }
  5090. this.$emit('change', this.selected);
  5091. } else {
  5092. if (this.selected !== value) {
  5093. this.selected = value;
  5094. this.$emit('change', this.selected);
  5095. }
  5096. }
  5097. this.$emit('input', this.selected);
  5098. if (!this.multiple) {
  5099. this.isActive = !this.closeOnClick;
  5100. /*
  5101. * breaking change
  5102. if (this.hoverable && this.closeOnClick) {
  5103. this.isHoverable = false
  5104. // Timeout for the animation complete before destroying
  5105. setTimeout(() => {
  5106. this.isHoverable = true
  5107. }, 250)
  5108. }
  5109. */
  5110. }
  5111. },
  5112. /**
  5113. * White-listed items to not close when clicked.
  5114. */
  5115. isInWhiteList: function isInWhiteList(el) {
  5116. if (el === this.$refs.dropdownMenu) return true;
  5117. if (el === this.$refs.trigger) return true;
  5118. // All chidren from dropdown
  5119. if (this.$refs.dropdownMenu !== undefined) {
  5120. var children = this.$refs.dropdownMenu.querySelectorAll('*');
  5121. var _iteratorNormalCompletion = true;
  5122. var _didIteratorError = false;
  5123. var _iteratorError = undefined;
  5124. try {
  5125. for (var _iterator = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(children), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  5126. var child = _step.value;
  5127. if (el === child) {
  5128. return true;
  5129. }
  5130. }
  5131. } catch (err) {
  5132. _didIteratorError = true;
  5133. _iteratorError = err;
  5134. } finally {
  5135. try {
  5136. if (!_iteratorNormalCompletion && _iterator.return) {
  5137. _iterator.return();
  5138. }
  5139. } finally {
  5140. if (_didIteratorError) {
  5141. throw _iteratorError;
  5142. }
  5143. }
  5144. }
  5145. }
  5146. // All children from trigger
  5147. if (this.$refs.trigger !== undefined) {
  5148. var _children = this.$refs.trigger.querySelectorAll('*');
  5149. var _iteratorNormalCompletion2 = true;
  5150. var _didIteratorError2 = false;
  5151. var _iteratorError2 = undefined;
  5152. try {
  5153. for (var _iterator2 = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(_children), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
  5154. var _child = _step2.value;
  5155. if (el === _child) {
  5156. return true;
  5157. }
  5158. }
  5159. } catch (err) {
  5160. _didIteratorError2 = true;
  5161. _iteratorError2 = err;
  5162. } finally {
  5163. try {
  5164. if (!_iteratorNormalCompletion2 && _iterator2.return) {
  5165. _iterator2.return();
  5166. }
  5167. } finally {
  5168. if (_didIteratorError2) {
  5169. throw _iteratorError2;
  5170. }
  5171. }
  5172. }
  5173. }
  5174. return false;
  5175. },
  5176. /**
  5177. * Close dropdown if clicked outside.
  5178. */
  5179. clickedOutside: function clickedOutside(event) {
  5180. if (this.inline) return;
  5181. if (!this.isInWhiteList(event.target)) this.isActive = false;
  5182. },
  5183. /**
  5184. * Toggle dropdown if it's not disabled.
  5185. */
  5186. toggle: function toggle() {
  5187. var _this = this;
  5188. if (this.disabled) return;
  5189. if (!this.isActive) {
  5190. // if not active, toggle after clickOutside event
  5191. // this fixes toggling programmatic
  5192. this.$nextTick(function () {
  5193. _this.isActive = !_this.isActive;
  5194. });
  5195. } else {
  5196. this.isActive = !this.isActive;
  5197. }
  5198. }
  5199. },
  5200. created: function created() {
  5201. if (typeof window !== 'undefined') {
  5202. document.addEventListener('click', this.clickedOutside);
  5203. }
  5204. },
  5205. beforeDestroy: function beforeDestroy() {
  5206. if (typeof window !== 'undefined') {
  5207. document.removeEventListener('click', this.clickedOutside);
  5208. }
  5209. }
  5210. });
  5211. /***/ }),
  5212. /* 124 */
  5213. /***/ (function(module, exports) {
  5214. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  5215. return _c('div', {
  5216. staticClass: "dropdown",
  5217. class: _vm.rootClasses
  5218. }, [(!_vm.inline) ? _c('div', {
  5219. ref: "trigger",
  5220. staticClass: "dropdown-trigger",
  5221. attrs: {
  5222. "role": "button",
  5223. "aria-haspopup": "true"
  5224. },
  5225. on: {
  5226. "click": _vm.toggle
  5227. }
  5228. }, [_vm._t("trigger")], 2) : _vm._e(), _vm._v(" "), _c('transition', {
  5229. attrs: {
  5230. "name": _vm.animation
  5231. }
  5232. }, [(_vm.isMobileModal) ? _c('div', {
  5233. directives: [{
  5234. name: "show",
  5235. rawName: "v-show",
  5236. value: (_vm.isActive),
  5237. expression: "isActive"
  5238. }],
  5239. staticClass: "background",
  5240. attrs: {
  5241. "aria-hidden": !_vm.isActive
  5242. }
  5243. }) : _vm._e()]), _vm._v(" "), _c('transition', {
  5244. attrs: {
  5245. "name": _vm.animation
  5246. }
  5247. }, [_c('div', {
  5248. directives: [{
  5249. name: "show",
  5250. rawName: "v-show",
  5251. value: ((!_vm.disabled && (_vm.isActive || _vm.isHoverable)) || _vm.inline),
  5252. expression: "(!disabled && (isActive || isHoverable)) || inline"
  5253. }],
  5254. ref: "dropdownMenu",
  5255. staticClass: "dropdown-menu",
  5256. attrs: {
  5257. "aria-hidden": !_vm.isActive
  5258. }
  5259. }, [_c('div', {
  5260. staticClass: "dropdown-content",
  5261. attrs: {
  5262. "role": _vm.ariaRoleMenu
  5263. }
  5264. }, [_vm._t("default")], 2)])])], 1)
  5265. },staticRenderFns: []}
  5266. /***/ }),
  5267. /* 125 */
  5268. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5269. "use strict";
  5270. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5271. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
  5272. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
  5273. //
  5274. //
  5275. //
  5276. //
  5277. //
  5278. //
  5279. //
  5280. //
  5281. //
  5282. //
  5283. //
  5284. //
  5285. //
  5286. //
  5287. //
  5288. //
  5289. //
  5290. //
  5291. //
  5292. //
  5293. //
  5294. /* harmony default export */ __webpack_exports__["default"] = ({
  5295. name: 'BDropdownItem',
  5296. props: {
  5297. value: {
  5298. type: [String, Number, Boolean, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a, Function],
  5299. default: null
  5300. },
  5301. separator: Boolean,
  5302. disabled: Boolean,
  5303. custom: Boolean,
  5304. paddingless: Boolean,
  5305. hasLink: Boolean,
  5306. ariaRole: {
  5307. type: String,
  5308. default: ''
  5309. }
  5310. },
  5311. computed: {
  5312. anchorClasses: function anchorClasses() {
  5313. return {
  5314. 'is-disabled': this.$parent.disabled || this.disabled,
  5315. 'is-paddingless': this.paddingless,
  5316. 'is-active': this.isActive
  5317. };
  5318. },
  5319. itemClasses: function itemClasses() {
  5320. return {
  5321. 'dropdown-item': !this.hasLink,
  5322. 'is-disabled': this.disabled,
  5323. 'is-paddingless': this.paddingless,
  5324. 'is-active': this.isActive,
  5325. 'has-link': this.hasLink
  5326. };
  5327. },
  5328. ariaRoleItem: function ariaRoleItem() {
  5329. return this.ariaRole === 'menuitem' || this.ariaRole === 'listitem' ? this.ariaRole : null;
  5330. },
  5331. /**
  5332. * Check if item can be clickable.
  5333. */
  5334. isClickable: function isClickable() {
  5335. return !this.$parent.disabled && !this.separator && !this.disabled && !this.custom;
  5336. },
  5337. isActive: function isActive() {
  5338. if (this.$parent.selected === null) return false;
  5339. if (this.$parent.multiple) return this.$parent.selected.indexOf(this.value) >= 0;
  5340. return this.value === this.$parent.selected;
  5341. }
  5342. },
  5343. methods: {
  5344. /**
  5345. * Click listener, select the item.
  5346. */
  5347. selectItem: function selectItem() {
  5348. if (!this.isClickable) return;
  5349. this.$parent.selectItem(this.value);
  5350. this.$emit('click');
  5351. }
  5352. },
  5353. created: function created() {
  5354. if (!this.$parent.$data._isDropdown) {
  5355. this.$destroy();
  5356. throw new Error('You should wrap bDropdownItem on a bDropdown');
  5357. }
  5358. }
  5359. });
  5360. /***/ }),
  5361. /* 126 */
  5362. /***/ (function(module, exports) {
  5363. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  5364. return (_vm.separator) ? _c('hr', {
  5365. staticClass: "dropdown-divider"
  5366. }) : (!_vm.custom && !_vm.hasLink) ? _c('a', {
  5367. staticClass: "dropdown-item",
  5368. class: _vm.anchorClasses,
  5369. attrs: {
  5370. "role": _vm.ariaRoleItem,
  5371. "tabindex": "0"
  5372. },
  5373. on: {
  5374. "click": _vm.selectItem
  5375. }
  5376. }, [_vm._t("default")], 2) : _c('div', {
  5377. class: _vm.itemClasses,
  5378. attrs: {
  5379. "role": _vm.ariaRoleItem,
  5380. "tabindex": "0"
  5381. },
  5382. on: {
  5383. "click": _vm.selectItem
  5384. }
  5385. }, [_vm._t("default")], 2)
  5386. },staticRenderFns: []}
  5387. /***/ }),
  5388. /* 127 */
  5389. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5390. "use strict";
  5391. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5392. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  5393. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  5394. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_config__ = __webpack_require__(2);
  5395. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__FieldBody__ = __webpack_require__(128);
  5396. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__FieldBody___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__FieldBody__);
  5397. //
  5398. //
  5399. //
  5400. //
  5401. //
  5402. //
  5403. //
  5404. //
  5405. //
  5406. //
  5407. //
  5408. //
  5409. //
  5410. //
  5411. //
  5412. //
  5413. //
  5414. //
  5415. //
  5416. //
  5417. //
  5418. //
  5419. //
  5420. //
  5421. //
  5422. //
  5423. //
  5424. //
  5425. //
  5426. //
  5427. //
  5428. //
  5429. //
  5430. //
  5431. //
  5432. //
  5433. //
  5434. //
  5435. //
  5436. //
  5437. //
  5438. //
  5439. //
  5440. /* harmony default export */ __webpack_exports__["default"] = ({
  5441. name: 'BField',
  5442. components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_2__FieldBody___default.a.name, __WEBPACK_IMPORTED_MODULE_2__FieldBody___default.a),
  5443. props: {
  5444. type: [String, Object],
  5445. label: String,
  5446. labelFor: String,
  5447. message: [String, Array, Object],
  5448. grouped: Boolean,
  5449. groupMultiline: Boolean,
  5450. position: String,
  5451. expanded: Boolean,
  5452. horizontal: Boolean,
  5453. addons: {
  5454. type: Boolean,
  5455. default: true
  5456. },
  5457. customClass: String,
  5458. labelPosition: {
  5459. type: String,
  5460. default: function _default() {
  5461. return __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultFieldLabelPosition;
  5462. }
  5463. }
  5464. },
  5465. data: function data() {
  5466. return {
  5467. newType: this.type,
  5468. newMessage: this.message,
  5469. fieldLabelSize: null,
  5470. _isField: true // Used internally by Input and Select
  5471. };
  5472. },
  5473. computed: {
  5474. rootClasses: function rootClasses() {
  5475. return [this.newPosition, {
  5476. 'is-expanded': this.expanded,
  5477. 'is-grouped-multiline': this.groupMultiline,
  5478. 'is-horizontal': this.horizontal,
  5479. 'is-floating-in-label': this.hasLabel && !this.horizontal && this.labelPosition === 'inside',
  5480. 'is-floating-label': this.hasLabel && !this.horizontal && this.labelPosition === 'on-border'
  5481. }];
  5482. },
  5483. /**
  5484. * Correct Bulma class for the side of the addon or group.
  5485. *
  5486. * This is not kept like the others (is-small, etc.),
  5487. * because since 'has-addons' is set automatically it
  5488. * doesn't make sense to teach users what addons are exactly.
  5489. */
  5490. newPosition: function newPosition() {
  5491. if (this.position === undefined) return;
  5492. var position = this.position.split('-');
  5493. if (position.length < 1) return;
  5494. var prefix = this.grouped ? 'is-grouped-' : 'has-addons-';
  5495. if (this.position) return prefix + position[1];
  5496. },
  5497. /**
  5498. * Formatted message in case it's an array
  5499. * (each element is separated by <br> tag)
  5500. */
  5501. formattedMessage: function formattedMessage() {
  5502. if (typeof this.newMessage === 'string') {
  5503. return this.newMessage;
  5504. } else {
  5505. var messages = [];
  5506. if (Array.isArray(this.newMessage)) {
  5507. this.newMessage.forEach(function (message) {
  5508. if (typeof message === 'string') {
  5509. messages.push(message);
  5510. } else {
  5511. for (var key in message) {
  5512. if (message[key]) {
  5513. messages.push(key);
  5514. }
  5515. }
  5516. }
  5517. });
  5518. } else {
  5519. for (var key in this.newMessage) {
  5520. if (this.newMessage[key]) {
  5521. messages.push(key);
  5522. }
  5523. }
  5524. }
  5525. return messages.filter(function (m) {
  5526. if (m) return m;
  5527. }).join(' <br> ');
  5528. }
  5529. },
  5530. hasLabel: function hasLabel() {
  5531. return this.label || this.$slots.label;
  5532. }
  5533. },
  5534. watch: {
  5535. /**
  5536. * Set internal type when prop change.
  5537. */
  5538. type: function type(value) {
  5539. this.newType = value;
  5540. },
  5541. /**
  5542. * Set internal message when prop change.
  5543. */
  5544. message: function message(value) {
  5545. this.newMessage = value;
  5546. }
  5547. },
  5548. methods: {
  5549. /**
  5550. * Field has addons if there are more than one slot
  5551. * (element / component) in the Field.
  5552. * Or is grouped when prop is set.
  5553. * Is a method to be called when component re-render.
  5554. */
  5555. fieldType: function fieldType() {
  5556. if (this.grouped) return 'is-grouped';
  5557. var renderedNode = 0;
  5558. if (this.$slots.default) {
  5559. renderedNode = this.$slots.default.reduce(function (i, node) {
  5560. return node.tag ? i + 1 : i;
  5561. }, 0);
  5562. }
  5563. if (renderedNode > 1 && this.addons && !this.horizontal) {
  5564. return 'has-addons';
  5565. }
  5566. }
  5567. },
  5568. mounted: function mounted() {
  5569. if (this.horizontal) {
  5570. // Bulma docs: .is-normal for any .input or .button
  5571. var elements = this.$el.querySelectorAll('.input, .select, .button, .textarea');
  5572. if (elements.length > 0) {
  5573. this.fieldLabelSize = 'is-normal';
  5574. }
  5575. }
  5576. }
  5577. });
  5578. /***/ }),
  5579. /* 128 */
  5580. /***/ (function(module, exports, __webpack_require__) {
  5581. var Component = __webpack_require__(0)(
  5582. /* script */
  5583. __webpack_require__(129),
  5584. /* template */
  5585. null,
  5586. /* styles */
  5587. null,
  5588. /* scopeId */
  5589. null,
  5590. /* moduleIdentifier (server only) */
  5591. null
  5592. )
  5593. module.exports = Component.exports
  5594. /***/ }),
  5595. /* 129 */
  5596. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5597. "use strict";
  5598. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5599. /* harmony default export */ __webpack_exports__["default"] = ({
  5600. name: 'BFieldBody',
  5601. props: {
  5602. message: {
  5603. type: String
  5604. },
  5605. type: {
  5606. type: [String, Object]
  5607. }
  5608. },
  5609. render: function render(createElement) {
  5610. var _this = this;
  5611. return createElement('div', { attrs: { 'class': 'field-body' } }, this.$slots.default.map(function (element) {
  5612. // skip returns and comments
  5613. if (!element.tag) {
  5614. return element;
  5615. }
  5616. if (_this.message) {
  5617. return createElement('b-field', { attrs: { message: _this.message, 'type': _this.type } }, [element]);
  5618. }
  5619. return createElement('b-field', { attrs: { 'type': _this.type } }, [element]);
  5620. }));
  5621. }
  5622. });
  5623. /***/ }),
  5624. /* 130 */
  5625. /***/ (function(module, exports) {
  5626. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  5627. return _c('div', {
  5628. staticClass: "field",
  5629. class: [_vm.rootClasses, _vm.fieldType()]
  5630. }, [(_vm.horizontal) ? _c('div', {
  5631. staticClass: "field-label",
  5632. class: [_vm.customClass, _vm.fieldLabelSize]
  5633. }, [(_vm.hasLabel) ? _c('label', {
  5634. staticClass: "label",
  5635. class: _vm.customClass,
  5636. attrs: {
  5637. "for": _vm.labelFor
  5638. }
  5639. }, [(_vm.$slots.label) ? _vm._t("label") : [_vm._v(_vm._s(_vm.label))]], 2) : _vm._e()]) : [(_vm.hasLabel) ? _c('label', {
  5640. staticClass: "label",
  5641. class: _vm.customClass,
  5642. attrs: {
  5643. "for": _vm.labelFor
  5644. }
  5645. }, [(_vm.$slots.label) ? _vm._t("label") : [_vm._v(_vm._s(_vm.label))]], 2) : _vm._e()], _vm._v(" "), (_vm.horizontal) ? _c('b-field-body', {
  5646. attrs: {
  5647. "message": _vm.newMessage ? _vm.formattedMessage : '',
  5648. "type": _vm.newType
  5649. }
  5650. }, [_vm._t("default")], 2) : [_vm._t("default")], _vm._v(" "), (_vm.newMessage && !_vm.horizontal) ? _c('p', {
  5651. staticClass: "help",
  5652. class: _vm.newType,
  5653. domProps: {
  5654. "innerHTML": _vm._s(_vm.formattedMessage)
  5655. }
  5656. }) : _vm._e()], 2)
  5657. },staticRenderFns: []}
  5658. /***/ }),
  5659. /* 131 */
  5660. /***/ (function(module, exports, __webpack_require__) {
  5661. var Component = __webpack_require__(0)(
  5662. /* script */
  5663. __webpack_require__(132),
  5664. /* template */
  5665. __webpack_require__(133),
  5666. /* styles */
  5667. null,
  5668. /* scopeId */
  5669. null,
  5670. /* moduleIdentifier (server only) */
  5671. null
  5672. )
  5673. module.exports = Component.exports
  5674. /***/ }),
  5675. /* 132 */
  5676. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5677. "use strict";
  5678. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  5679. //
  5680. //
  5681. //
  5682. //
  5683. //
  5684. //
  5685. //
  5686. //
  5687. //
  5688. //
  5689. //
  5690. //
  5691. //
  5692. //
  5693. //
  5694. //
  5695. //
  5696. //
  5697. //
  5698. //
  5699. //
  5700. //
  5701. //
  5702. //
  5703. //
  5704. //
  5705. //
  5706. // These should match the variables in clockpicker.scss
  5707. var indicatorSize = 40;
  5708. var paddingInner = 5;
  5709. /* harmony default export */ __webpack_exports__["default"] = ({
  5710. name: 'BClockpickerFace',
  5711. props: {
  5712. pickerSize: Number,
  5713. min: Number,
  5714. max: Number,
  5715. double: Boolean,
  5716. value: Number,
  5717. faceNumbers: Array,
  5718. disabledValues: Function
  5719. },
  5720. data: function data() {
  5721. return {
  5722. isDragging: false,
  5723. inputValue: this.value,
  5724. prevAngle: 720
  5725. };
  5726. },
  5727. computed: {
  5728. /**
  5729. * How many number indicators are shown on the face
  5730. */
  5731. count: function count() {
  5732. return this.max - this.min + 1;
  5733. },
  5734. /**
  5735. * How many number indicators are shown per ring on the face
  5736. */
  5737. countPerRing: function countPerRing() {
  5738. return this.double ? this.count / 2 : this.count;
  5739. },
  5740. /**
  5741. * Radius of the clock face
  5742. */
  5743. radius: function radius() {
  5744. return this.pickerSize / 2;
  5745. },
  5746. /**
  5747. * Radius of the outer ring of number indicators
  5748. */
  5749. outerRadius: function outerRadius() {
  5750. return this.radius - paddingInner - indicatorSize / 2;
  5751. },
  5752. /**
  5753. * Radius of the inner ring of number indicators
  5754. */
  5755. innerRadius: function innerRadius() {
  5756. return Math.max(this.outerRadius * 0.6, this.outerRadius - paddingInner - indicatorSize);
  5757. // 48px gives enough room for the outer ring of numbers
  5758. },
  5759. /**
  5760. * The angle for each selectable value
  5761. * For hours this ends up being 30 degrees, for minutes 6 degrees
  5762. */
  5763. degreesPerUnit: function degreesPerUnit() {
  5764. return 360 / this.countPerRing;
  5765. },
  5766. /**
  5767. * Used for calculating x/y grid location based on degrees
  5768. */
  5769. degrees: function degrees() {
  5770. return this.degreesPerUnit * Math.PI / 180;
  5771. },
  5772. /**
  5773. * Calculates the angle the clock hand should be rotated for the
  5774. * selected value
  5775. */
  5776. handRotateAngle: function handRotateAngle() {
  5777. var currentAngle = this.prevAngle;
  5778. while (currentAngle < 0) {
  5779. currentAngle += 360;
  5780. }var targetAngle = this.calcHandAngle(this.displayedValue);
  5781. var degreesDiff = this.shortestDistanceDegrees(currentAngle, targetAngle);
  5782. var angle = this.prevAngle + degreesDiff;
  5783. return angle;
  5784. },
  5785. /**
  5786. * Determines how long the selector hand is based on if the
  5787. * selected value is located along the outer or inner ring
  5788. */
  5789. handScale: function handScale() {
  5790. return this.calcHandScale(this.displayedValue);
  5791. },
  5792. handStyle: function handStyle() {
  5793. return {
  5794. transform: 'rotate(' + this.handRotateAngle + 'deg) scaleY(' + this.handScale + ')',
  5795. transition: '.3s cubic-bezier(.25,.8,.50,1)'
  5796. };
  5797. },
  5798. /**
  5799. * The value the hand should be pointing at
  5800. */
  5801. displayedValue: function displayedValue() {
  5802. return this.inputValue == null ? this.min : this.inputValue;
  5803. }
  5804. },
  5805. watch: {
  5806. value: function value(_value) {
  5807. if (_value !== this.inputValue) {
  5808. this.prevAngle = this.handRotateAngle;
  5809. }
  5810. this.inputValue = _value;
  5811. }
  5812. },
  5813. methods: {
  5814. isDisabled: function isDisabled(value) {
  5815. return this.disabledValues && this.disabledValues(value);
  5816. },
  5817. /**
  5818. * Calculates the distance between two points
  5819. */
  5820. euclidean: function euclidean(p0, p1) {
  5821. var dx = p1.x - p0.x;
  5822. var dy = p1.y - p0.y;
  5823. return Math.sqrt(dx * dx + dy * dy);
  5824. },
  5825. shortestDistanceDegrees: function shortestDistanceDegrees(start, stop) {
  5826. var modDiff = (stop - start) % 360;
  5827. var shortestDistance = 180 - Math.abs(Math.abs(modDiff) - 180);
  5828. return (modDiff + 360) % 360 < 180 ? shortestDistance * 1 : shortestDistance * -1;
  5829. },
  5830. /**
  5831. * Calculates the angle of the line from the center point
  5832. * to the given point.
  5833. */
  5834. coordToAngle: function coordToAngle(center, p1) {
  5835. var value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x);
  5836. return Math.abs(value * 180 / Math.PI);
  5837. },
  5838. /**
  5839. * Generates the inline style translate() property for a
  5840. * number indicator, which determines it's location on the
  5841. * clock face
  5842. */
  5843. getNumberTranslate: function getNumberTranslate(value) {
  5844. var _getNumberCoords = this.getNumberCoords(value),
  5845. x = _getNumberCoords.x,
  5846. y = _getNumberCoords.y;
  5847. return 'translate(' + x + 'px, ' + y + 'px)';
  5848. },
  5849. /***
  5850. * Calculates the coordinates on the clock face for a number
  5851. * indicator value
  5852. */
  5853. getNumberCoords: function getNumberCoords(value) {
  5854. var radius = this.isInnerRing(value) ? this.innerRadius : this.outerRadius;
  5855. return {
  5856. x: Math.round(radius * Math.sin((value - this.min) * this.degrees)),
  5857. y: Math.round(-radius * Math.cos((value - this.min) * this.degrees))
  5858. };
  5859. },
  5860. getFaceNumberClasses: function getFaceNumberClasses(num) {
  5861. return {
  5862. 'active': num.value === this.displayedValue,
  5863. 'disabled': this.isDisabled(num.value)
  5864. };
  5865. },
  5866. /**
  5867. * Determines if a value resides on the inner ring
  5868. */
  5869. isInnerRing: function isInnerRing(value) {
  5870. return this.double && value - this.min >= this.countPerRing;
  5871. },
  5872. calcHandAngle: function calcHandAngle(value) {
  5873. var angle = this.degreesPerUnit * (value - this.min);
  5874. if (this.isInnerRing(value)) angle -= 360;
  5875. return angle;
  5876. },
  5877. calcHandScale: function calcHandScale(value) {
  5878. return this.isInnerRing(value) ? this.innerRadius / this.outerRadius : 1;
  5879. },
  5880. onMouseDown: function onMouseDown(e) {
  5881. e.preventDefault();
  5882. this.isDragging = true;
  5883. this.onDragMove(e);
  5884. },
  5885. onMouseUp: function onMouseUp() {
  5886. this.isDragging = false;
  5887. if (!this.isDisabled(this.inputValue)) {
  5888. this.$emit('change', this.inputValue);
  5889. }
  5890. },
  5891. onDragMove: function onDragMove(e) {
  5892. e.preventDefault();
  5893. if (!this.isDragging && e.type !== 'click') return;
  5894. var _$refs$clock$getBound = this.$refs.clock.getBoundingClientRect(),
  5895. width = _$refs$clock$getBound.width,
  5896. top = _$refs$clock$getBound.top,
  5897. left = _$refs$clock$getBound.left;
  5898. var _ref = 'touches' in e ? e.touches[0] : e,
  5899. clientX = _ref.clientX,
  5900. clientY = _ref.clientY;
  5901. var center = { x: width / 2, y: -width / 2 };
  5902. var coords = { x: clientX - left, y: top - clientY };
  5903. var handAngle = Math.round(this.coordToAngle(center, coords) + 360) % 360;
  5904. var insideClick = this.double && this.euclidean(center, coords) < (this.outerRadius + this.innerRadius) / 2 - 16;
  5905. var value = Math.round(handAngle / this.degreesPerUnit) + this.min + (insideClick ? this.countPerRing : 0);
  5906. // Necessary to fix edge case when selecting left part of max value
  5907. if (handAngle >= 360 - this.degreesPerUnit / 2) {
  5908. value = insideClick ? this.max : this.min;
  5909. }
  5910. this.update(value);
  5911. },
  5912. update: function update(value) {
  5913. if (this.inputValue !== value && !this.isDisabled(value)) {
  5914. this.prevAngle = this.handRotateAngle;
  5915. this.inputValue = value;
  5916. this.$emit('input', value);
  5917. }
  5918. }
  5919. }
  5920. });
  5921. /***/ }),
  5922. /* 133 */
  5923. /***/ (function(module, exports) {
  5924. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  5925. return _c('div', {
  5926. staticClass: "b-clockpicker-face",
  5927. on: {
  5928. "mousedown": _vm.onMouseDown,
  5929. "mouseup": _vm.onMouseUp,
  5930. "mousemove": _vm.onDragMove,
  5931. "touchstart": _vm.onMouseDown,
  5932. "touchend": _vm.onMouseUp,
  5933. "touchmove": _vm.onDragMove
  5934. }
  5935. }, [_c('div', {
  5936. ref: "clock",
  5937. staticClass: "b-clockpicker-face-outer-ring"
  5938. }, [_c('div', {
  5939. staticClass: "b-clockpicker-face-hand",
  5940. style: (_vm.handStyle)
  5941. }), _vm._v(" "), _vm._l((_vm.faceNumbers), function(num, index) {
  5942. return _c('span', {
  5943. key: index,
  5944. staticClass: "b-clockpicker-face-number",
  5945. class: _vm.getFaceNumberClasses(num),
  5946. style: ({
  5947. transform: _vm.getNumberTranslate(num.value)
  5948. })
  5949. }, [_c('span', [_vm._v(_vm._s(num.label))])])
  5950. })], 2)])
  5951. },staticRenderFns: []}
  5952. /***/ }),
  5953. /* 134 */
  5954. /***/ (function(module, exports) {
  5955. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  5956. return _c('div', {
  5957. staticClass: "b-clockpicker control",
  5958. class: [_vm.size, _vm.type, {
  5959. 'is-expanded': _vm.expanded
  5960. }]
  5961. }, [(!_vm.isMobile || _vm.inline) ? _c('b-dropdown', {
  5962. ref: "dropdown",
  5963. attrs: {
  5964. "position": _vm.position,
  5965. "disabled": _vm.disabled,
  5966. "inline": _vm.inline
  5967. }
  5968. }, [(!_vm.inline) ? _c('b-input', _vm._b({
  5969. ref: "input",
  5970. attrs: {
  5971. "slot": "trigger",
  5972. "autocomplete": "off",
  5973. "value": _vm.formatValue(_vm.computedValue),
  5974. "placeholder": _vm.placeholder,
  5975. "size": _vm.size,
  5976. "icon": _vm.icon,
  5977. "icon-pack": _vm.iconPack,
  5978. "loading": _vm.loading,
  5979. "disabled": _vm.disabled,
  5980. "readonly": !_vm.editable,
  5981. "rounded": _vm.rounded,
  5982. "use-html5-validation": _vm.useHtml5Validation
  5983. },
  5984. on: {
  5985. "focus": _vm.handleOnFocus,
  5986. "blur": function($event) {
  5987. _vm.onBlur() && _vm.checkHtml5Validity()
  5988. }
  5989. },
  5990. nativeOn: {
  5991. "click": function($event) {
  5992. $event.stopPropagation();
  5993. _vm.toggle(true)
  5994. },
  5995. "keyup": function($event) {
  5996. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  5997. _vm.toggle(true)
  5998. },
  5999. "change": function($event) {
  6000. _vm.onChangeNativePicker($event)
  6001. }
  6002. },
  6003. slot: "trigger"
  6004. }, 'b-input', _vm.$attrs, false)) : _vm._e(), _vm._v(" "), _c('div', {
  6005. staticClass: "card",
  6006. attrs: {
  6007. "disabled": _vm.disabled,
  6008. "custom": ""
  6009. }
  6010. }, [(_vm.inline) ? _c('header', {
  6011. staticClass: "card-header"
  6012. }, [_c('div', {
  6013. staticClass: "b-clockpicker-header card-header-title"
  6014. }, [_c('div', {
  6015. staticClass: "b-clockpicker-time"
  6016. }, [_c('span', {
  6017. staticClass: "b-clockpicker-btn",
  6018. class: {
  6019. active: _vm.isSelectingHour
  6020. },
  6021. on: {
  6022. "click": function($event) {
  6023. _vm.isSelectingHour = true
  6024. }
  6025. }
  6026. }, [_vm._v(_vm._s(_vm.hoursDisplay))]), _vm._v(" "), _c('span', [_vm._v(":")]), _vm._v(" "), _c('span', {
  6027. staticClass: "b-clockpicker-btn",
  6028. class: {
  6029. active: !_vm.isSelectingHour
  6030. },
  6031. on: {
  6032. "click": function($event) {
  6033. _vm.isSelectingHour = false
  6034. }
  6035. }
  6036. }, [_vm._v(_vm._s(_vm.minutesDisplay))])]), _vm._v(" "), (!_vm.isHourFormat24) ? _c('div', {
  6037. staticClass: "b-clockpicker-period"
  6038. }, [_c('div', {
  6039. staticClass: "b-clockpicker-btn",
  6040. class: {
  6041. active: _vm.meridienSelected == _vm.AM
  6042. },
  6043. on: {
  6044. "click": function($event) {
  6045. _vm.onMeridienClick(_vm.AM)
  6046. }
  6047. }
  6048. }, [_vm._v("am")]), _vm._v(" "), _c('div', {
  6049. staticClass: "b-clockpicker-btn",
  6050. class: {
  6051. active: _vm.meridienSelected == _vm.PM
  6052. },
  6053. on: {
  6054. "click": function($event) {
  6055. _vm.onMeridienClick(_vm.PM)
  6056. }
  6057. }
  6058. }, [_vm._v("pm")])]) : _vm._e()])]) : _vm._e(), _vm._v(" "), _c('div', {
  6059. staticClass: "card-content"
  6060. }, [_c('div', {
  6061. staticClass: "b-clockpicker-body",
  6062. style: ({
  6063. width: _vm.faceSize + 'px',
  6064. height: _vm.faceSize + 'px'
  6065. })
  6066. }, [(!_vm.inline) ? _c('div', {
  6067. staticClass: "b-clockpicker-time"
  6068. }, [_c('div', {
  6069. staticClass: "b-clockpicker-btn",
  6070. class: {
  6071. active: _vm.isSelectingHour
  6072. },
  6073. on: {
  6074. "click": function($event) {
  6075. _vm.isSelectingHour = true
  6076. }
  6077. }
  6078. }, [_vm._v("Hours")]), _vm._v(" "), _c('span', {
  6079. staticClass: "b-clockpicker-btn",
  6080. class: {
  6081. active: !_vm.isSelectingHour
  6082. },
  6083. on: {
  6084. "click": function($event) {
  6085. _vm.isSelectingHour = false
  6086. }
  6087. }
  6088. }, [_vm._v("Min")])]) : _vm._e(), _vm._v(" "), (!_vm.isHourFormat24 && !_vm.inline) ? _c('div', {
  6089. staticClass: "b-clockpicker-period"
  6090. }, [_c('div', {
  6091. staticClass: "b-clockpicker-btn",
  6092. class: {
  6093. active: _vm.meridienSelected == _vm.AM
  6094. },
  6095. on: {
  6096. "click": function($event) {
  6097. _vm.onMeridienClick(_vm.AM)
  6098. }
  6099. }
  6100. }, [_vm._v(_vm._s(_vm.AM))]), _vm._v(" "), _c('div', {
  6101. staticClass: "b-clockpicker-btn",
  6102. class: {
  6103. active: _vm.meridienSelected == _vm.PM
  6104. },
  6105. on: {
  6106. "click": function($event) {
  6107. _vm.onMeridienClick(_vm.PM)
  6108. }
  6109. }
  6110. }, [_vm._v(_vm._s(_vm.PM))])]) : _vm._e(), _vm._v(" "), _c('b-clockpicker-face', {
  6111. attrs: {
  6112. "picker-size": _vm.faceSize,
  6113. "min": _vm.minFaceValue,
  6114. "max": _vm.maxFaceValue,
  6115. "face-numbers": _vm.isSelectingHour ? _vm.hours : _vm.minutes,
  6116. "disabled-values": _vm.faceDisabledValues,
  6117. "double": _vm.isSelectingHour && _vm.isHourFormat24,
  6118. "value": _vm.isSelectingHour ? _vm.hoursSelected : _vm.minutesSelected
  6119. },
  6120. on: {
  6121. "input": _vm.onClockInput,
  6122. "change": _vm.onClockChange
  6123. }
  6124. })], 1)]), _vm._v(" "), (_vm.$slots.default !== undefined && _vm.$slots.default.length) ? _c('footer', {
  6125. staticClass: "b-clockpicker-footer card-footer"
  6126. }, [_vm._t("default")], 2) : _vm._e()])], 1) : _c('b-input', _vm._b({
  6127. ref: "input",
  6128. attrs: {
  6129. "type": "time",
  6130. "autocomplete": "off",
  6131. "value": _vm.formatHHMMSS(_vm.computedValue),
  6132. "placeholder": _vm.placeholder,
  6133. "size": _vm.size,
  6134. "icon": _vm.icon,
  6135. "icon-pack": _vm.iconPack,
  6136. "loading": _vm.loading,
  6137. "max": _vm.formatHHMMSS(_vm.maxTime),
  6138. "min": _vm.formatHHMMSS(_vm.minTime),
  6139. "disabled": _vm.disabled,
  6140. "readonly": false,
  6141. "use-html5-validation": _vm.useHtml5Validation
  6142. },
  6143. on: {
  6144. "focus": _vm.handleOnFocus,
  6145. "blur": function($event) {
  6146. _vm.onBlur() && _vm.checkHtml5Validity()
  6147. }
  6148. },
  6149. nativeOn: {
  6150. "click": function($event) {
  6151. $event.stopPropagation();
  6152. _vm.toggle(true)
  6153. },
  6154. "keyup": function($event) {
  6155. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  6156. _vm.toggle(true)
  6157. },
  6158. "change": function($event) {
  6159. _vm.onChangeNativePicker($event)
  6160. }
  6161. }
  6162. }, 'b-input', _vm.$attrs, false))], 1)
  6163. },staticRenderFns: []}
  6164. /***/ }),
  6165. /* 135 */
  6166. /***/ (function(module, exports, __webpack_require__) {
  6167. var Component = __webpack_require__(0)(
  6168. /* script */
  6169. __webpack_require__(136),
  6170. /* template */
  6171. __webpack_require__(148),
  6172. /* styles */
  6173. null,
  6174. /* scopeId */
  6175. null,
  6176. /* moduleIdentifier (server only) */
  6177. null
  6178. )
  6179. module.exports = Component.exports
  6180. /***/ }),
  6181. /* 136 */
  6182. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6183. "use strict";
  6184. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  6185. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  6186. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  6187. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_FormElementMixin__ = __webpack_require__(10);
  6188. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_helpers__ = __webpack_require__(7);
  6189. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_config__ = __webpack_require__(2);
  6190. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown__ = __webpack_require__(28);
  6191. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown__);
  6192. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem__ = __webpack_require__(29);
  6193. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem__);
  6194. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__input_Input__ = __webpack_require__(17);
  6195. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__input_Input__);
  6196. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__field_Field__ = __webpack_require__(30);
  6197. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__field_Field___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__field_Field__);
  6198. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__select_Select__ = __webpack_require__(31);
  6199. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__select_Select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__select_Select__);
  6200. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__icon_Icon__ = __webpack_require__(3);
  6201. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9__icon_Icon__);
  6202. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__DatepickerTable__ = __webpack_require__(139);
  6203. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__DatepickerTable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__DatepickerTable__);
  6204. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__DatepickerMonth__ = __webpack_require__(145);
  6205. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__DatepickerMonth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11__DatepickerMonth__);
  6206. var _components;
  6207. //
  6208. //
  6209. //
  6210. //
  6211. //
  6212. //
  6213. //
  6214. //
  6215. //
  6216. //
  6217. //
  6218. //
  6219. //
  6220. //
  6221. //
  6222. //
  6223. //
  6224. //
  6225. //
  6226. //
  6227. //
  6228. //
  6229. //
  6230. //
  6231. //
  6232. //
  6233. //
  6234. //
  6235. //
  6236. //
  6237. //
  6238. //
  6239. //
  6240. //
  6241. //
  6242. //
  6243. //
  6244. //
  6245. //
  6246. //
  6247. //
  6248. //
  6249. //
  6250. //
  6251. //
  6252. //
  6253. //
  6254. //
  6255. //
  6256. //
  6257. //
  6258. //
  6259. //
  6260. //
  6261. //
  6262. //
  6263. //
  6264. //
  6265. //
  6266. //
  6267. //
  6268. //
  6269. //
  6270. //
  6271. //
  6272. //
  6273. //
  6274. //
  6275. //
  6276. //
  6277. //
  6278. //
  6279. //
  6280. //
  6281. //
  6282. //
  6283. //
  6284. //
  6285. //
  6286. //
  6287. //
  6288. //
  6289. //
  6290. //
  6291. //
  6292. //
  6293. //
  6294. //
  6295. //
  6296. //
  6297. //
  6298. //
  6299. //
  6300. //
  6301. //
  6302. //
  6303. //
  6304. //
  6305. //
  6306. //
  6307. //
  6308. //
  6309. //
  6310. //
  6311. //
  6312. //
  6313. //
  6314. //
  6315. //
  6316. //
  6317. //
  6318. //
  6319. //
  6320. //
  6321. //
  6322. //
  6323. //
  6324. //
  6325. //
  6326. //
  6327. //
  6328. //
  6329. //
  6330. //
  6331. //
  6332. //
  6333. //
  6334. //
  6335. //
  6336. //
  6337. //
  6338. //
  6339. //
  6340. //
  6341. //
  6342. //
  6343. //
  6344. //
  6345. //
  6346. //
  6347. //
  6348. //
  6349. //
  6350. //
  6351. //
  6352. //
  6353. //
  6354. //
  6355. //
  6356. //
  6357. //
  6358. //
  6359. //
  6360. //
  6361. //
  6362. //
  6363. //
  6364. //
  6365. //
  6366. //
  6367. //
  6368. //
  6369. //
  6370. //
  6371. //
  6372. //
  6373. //
  6374. //
  6375. //
  6376. //
  6377. //
  6378. //
  6379. var defaultDateFormatter = function defaultDateFormatter(date, vm) {
  6380. var yyyyMMdd = date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate();
  6381. var d = new Date(yyyyMMdd);
  6382. return !vm.isTypeMonth ? d.toLocaleDateString() : d.toLocaleDateString(undefined, { year: 'numeric', month: '2-digit' });
  6383. };
  6384. var defaultDateParser = function defaultDateParser(date, vm) {
  6385. if (!vm.isTypeMonth) return new Date(Date.parse(date));
  6386. if (date) {
  6387. var s = date.split('/');
  6388. var year = s[0].length === 4 ? s[0] : s[1];
  6389. var month = s[0].length === 2 ? s[0] : s[1];
  6390. if (year && month) {
  6391. return new Date(parseInt(year, 10), parseInt(month - 1, 10), 1, 0, 0, 0, 0);
  6392. }
  6393. }
  6394. return null;
  6395. };
  6396. /* harmony default export */ __webpack_exports__["default"] = ({
  6397. name: 'BDatepicker',
  6398. components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_10__DatepickerTable___default.a.name, __WEBPACK_IMPORTED_MODULE_10__DatepickerTable___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_11__DatepickerMonth___default.a.name, __WEBPACK_IMPORTED_MODULE_11__DatepickerMonth___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_6__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_6__input_Input___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_7__field_Field___default.a.name, __WEBPACK_IMPORTED_MODULE_7__field_Field___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_8__select_Select___default.a.name, __WEBPACK_IMPORTED_MODULE_8__select_Select___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_9__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_9__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown___default.a.name, __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem___default.a.name, __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem___default.a), _components),
  6399. mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_FormElementMixin__["a" /* default */]],
  6400. inheritAttrs: false,
  6401. props: {
  6402. value: Date,
  6403. dayNames: {
  6404. type: Array,
  6405. default: function _default() {
  6406. if (Array.isArray(__WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDayNames)) {
  6407. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDayNames;
  6408. } else {
  6409. return ['Su', 'M', 'Tu', 'W', 'Th', 'F', 'S'];
  6410. }
  6411. }
  6412. },
  6413. monthNames: {
  6414. type: Array,
  6415. default: function _default() {
  6416. if (Array.isArray(__WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultMonthNames)) {
  6417. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultMonthNames;
  6418. } else {
  6419. return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
  6420. }
  6421. }
  6422. },
  6423. firstDayOfWeek: {
  6424. type: Number,
  6425. default: function _default() {
  6426. if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultFirstDayOfWeek === 'number') {
  6427. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultFirstDayOfWeek;
  6428. } else {
  6429. return 0;
  6430. }
  6431. }
  6432. },
  6433. inline: Boolean,
  6434. minDate: Date,
  6435. maxDate: Date,
  6436. focusedDate: Date,
  6437. placeholder: String,
  6438. editable: Boolean,
  6439. disabled: Boolean,
  6440. unselectableDates: Array,
  6441. unselectableDaysOfWeek: {
  6442. type: Array,
  6443. default: function _default() {
  6444. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultUnselectableDaysOfWeek;
  6445. }
  6446. },
  6447. selectableDates: Array,
  6448. dateFormatter: {
  6449. type: Function,
  6450. default: function _default(date, vm) {
  6451. if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateFormatter === 'function') {
  6452. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateFormatter(date);
  6453. } else {
  6454. return defaultDateFormatter(date, vm);
  6455. }
  6456. }
  6457. },
  6458. dateParser: {
  6459. type: Function,
  6460. default: function _default(date, vm) {
  6461. if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateParser === 'function') {
  6462. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateParser(date);
  6463. } else {
  6464. return defaultDateParser(date, vm);
  6465. }
  6466. }
  6467. },
  6468. dateCreator: {
  6469. type: Function,
  6470. default: function _default() {
  6471. if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateCreator === 'function') {
  6472. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateCreator();
  6473. } else {
  6474. return new Date();
  6475. }
  6476. }
  6477. },
  6478. mobileNative: {
  6479. type: Boolean,
  6480. default: function _default() {
  6481. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDatepickerMobileNative;
  6482. }
  6483. },
  6484. position: String,
  6485. events: Array,
  6486. indicators: {
  6487. type: String,
  6488. default: 'dots'
  6489. },
  6490. openOnFocus: Boolean,
  6491. yearsRange: {
  6492. type: Array,
  6493. default: function _default() {
  6494. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDatepickerYearsRange;
  6495. }
  6496. },
  6497. type: {
  6498. type: String,
  6499. validator: function validator(value) {
  6500. return ['month'].indexOf(value) >= 0;
  6501. }
  6502. },
  6503. nearbyMonthDays: {
  6504. type: Boolean,
  6505. default: function _default() {
  6506. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDatepickerNearbyMonthDays;
  6507. }
  6508. },
  6509. nearbySelectableMonthDays: {
  6510. type: Boolean,
  6511. default: function _default() {
  6512. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDatepickerNearbySelectableMonthDays;
  6513. }
  6514. }
  6515. },
  6516. data: function data() {
  6517. var focusedDate = this.value || this.focusedDate || this.dateCreator();
  6518. return {
  6519. dateSelected: this.value,
  6520. focusedDateData: {
  6521. month: focusedDate.getMonth(),
  6522. year: focusedDate.getFullYear()
  6523. },
  6524. _elementRef: 'input',
  6525. _isDatepicker: true
  6526. };
  6527. },
  6528. computed: {
  6529. computedValue: {
  6530. get: function get() {
  6531. return this.dateSelected;
  6532. },
  6533. set: function set(value) {
  6534. this.updateInternalState(value);
  6535. this.togglePicker(false);
  6536. this.$emit('input', value);
  6537. }
  6538. },
  6539. /*
  6540. * Returns an array of years for the year dropdown. If earliest/latest
  6541. * dates are set by props, range of years will fall within those dates.
  6542. */
  6543. listOfYears: function listOfYears() {
  6544. var latestYear = this.focusedDateData.year + this.yearsRange[1];
  6545. if (this.maxDate && this.maxDate.getFullYear() < latestYear) {
  6546. latestYear = this.maxDate.getFullYear();
  6547. }
  6548. var earliestYear = this.focusedDateData.year + this.yearsRange[0];
  6549. if (this.minDate && this.minDate.getFullYear() > earliestYear) {
  6550. earliestYear = this.minDate.getFullYear();
  6551. }
  6552. var arrayOfYears = [];
  6553. for (var i = earliestYear; i <= latestYear; i++) {
  6554. arrayOfYears.push(i);
  6555. }
  6556. return arrayOfYears.reverse();
  6557. },
  6558. showPrev: function showPrev() {
  6559. if (!this.minDate) return false;
  6560. if (this.isTypeMonth) {
  6561. return this.focusedDateData.year <= this.minDate.getFullYear();
  6562. }
  6563. var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month);
  6564. var date = new Date(this.minDate.getFullYear(), this.minDate.getMonth());
  6565. return dateToCheck <= date;
  6566. },
  6567. showNext: function showNext() {
  6568. if (!this.maxDate) return false;
  6569. if (this.isTypeMonth) {
  6570. return this.focusedDateData.year >= this.maxDate.getFullYear();
  6571. }
  6572. var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month);
  6573. var date = new Date(this.maxDate.getFullYear(), this.maxDate.getMonth());
  6574. return dateToCheck >= date;
  6575. },
  6576. isMobile: function isMobile() {
  6577. return this.mobileNative && __WEBPACK_IMPORTED_MODULE_2__utils_helpers__["c" /* isMobile */].any();
  6578. },
  6579. isTypeMonth: function isTypeMonth() {
  6580. return this.type === 'month';
  6581. }
  6582. },
  6583. watch: {
  6584. /**
  6585. * When v-model is changed:
  6586. * 1. Update internal value.
  6587. * 2. If it's invalid, validate again.
  6588. */
  6589. value: function value(_value) {
  6590. this.updateInternalState(_value);
  6591. this.togglePicker(false);
  6592. !this.isValid && this.$refs.input.checkHtml5Validity();
  6593. },
  6594. focusedDate: function focusedDate(value) {
  6595. if (value) {
  6596. this.focusedDateData = {
  6597. month: value.getMonth(),
  6598. year: value.getFullYear()
  6599. };
  6600. }
  6601. },
  6602. /*
  6603. * Emit input event on month and/or year change
  6604. */
  6605. 'focusedDateData.month': function focusedDateDataMonth(value) {
  6606. this.$emit('change-month', value);
  6607. },
  6608. 'focusedDateData.year': function focusedDateDataYear(value) {
  6609. this.$emit('change-year', value);
  6610. }
  6611. },
  6612. methods: {
  6613. /*
  6614. * Parse string into date
  6615. */
  6616. onChange: function onChange(value) {
  6617. var date = this.dateParser(value, this);
  6618. if (date && !isNaN(date)) {
  6619. this.computedValue = date;
  6620. } else {
  6621. // Force refresh input value when not valid date
  6622. this.computedValue = null;
  6623. this.$refs.input.newValue = this.computedValue;
  6624. }
  6625. },
  6626. /*
  6627. * Format date into string
  6628. */
  6629. formatValue: function formatValue(value) {
  6630. if (value && !isNaN(value)) {
  6631. return this.dateFormatter(value, this);
  6632. } else {
  6633. return null;
  6634. }
  6635. },
  6636. /*
  6637. * Either decrement month by 1 if not January or decrement year by 1
  6638. * and set month to 11 (December) or decrement year when 'month'
  6639. */
  6640. prev: function prev() {
  6641. if (this.disabled) return;
  6642. if (this.isTypeMonth) {
  6643. this.focusedDateData.year -= 1;
  6644. } else {
  6645. if (this.focusedDateData.month > 0) {
  6646. this.focusedDateData.month -= 1;
  6647. } else {
  6648. this.focusedDateData.month = 11;
  6649. this.focusedDateData.year -= 1;
  6650. }
  6651. }
  6652. },
  6653. /*
  6654. * Either increment month by 1 if not December or increment year by 1
  6655. * and set month to 0 (January) or increment year when 'month'
  6656. */
  6657. next: function next() {
  6658. if (this.disabled) return;
  6659. if (this.isTypeMonth) {
  6660. this.focusedDateData.year += 1;
  6661. } else {
  6662. if (this.focusedDateData.month < 11) {
  6663. this.focusedDateData.month += 1;
  6664. } else {
  6665. this.focusedDateData.month = 0;
  6666. this.focusedDateData.year += 1;
  6667. }
  6668. }
  6669. },
  6670. formatNative: function formatNative(value) {
  6671. return this.isTypeMonth ? this.formatYYYYMM(value) : this.formatYYYYMMDD(value);
  6672. },
  6673. /*
  6674. * Format date into string 'YYYY-MM-DD'
  6675. */
  6676. formatYYYYMMDD: function formatYYYYMMDD(value) {
  6677. var date = new Date(value);
  6678. if (value && !isNaN(date)) {
  6679. var year = date.getFullYear();
  6680. var month = date.getMonth() + 1;
  6681. var day = date.getDate();
  6682. return year + '-' + ((month < 10 ? '0' : '') + month) + '-' + ((day < 10 ? '0' : '') + day);
  6683. }
  6684. return '';
  6685. },
  6686. /*
  6687. * Format date into string 'YYYY-MM'
  6688. */
  6689. formatYYYYMM: function formatYYYYMM(value) {
  6690. var date = new Date(value);
  6691. if (value && !isNaN(date)) {
  6692. var year = date.getFullYear();
  6693. var month = date.getMonth() + 1;
  6694. return year + '-' + ((month < 10 ? '0' : '') + month);
  6695. }
  6696. return '';
  6697. },
  6698. /*
  6699. * Parse date from string
  6700. */
  6701. onChangeNativePicker: function onChangeNativePicker(event) {
  6702. var date = event.target.value;
  6703. this.computedValue = date ? new Date(date.replace(/-/g, '/')) : null;
  6704. },
  6705. updateInternalState: function updateInternalState(value) {
  6706. var currentDate = !value ? this.dateCreator() : value;
  6707. this.focusedDateData = {
  6708. month: currentDate.getMonth(),
  6709. year: currentDate.getFullYear()
  6710. };
  6711. this.dateSelected = value;
  6712. },
  6713. /*
  6714. * Toggle datepicker
  6715. */
  6716. togglePicker: function togglePicker(active) {
  6717. if (this.$refs.dropdown) {
  6718. this.$refs.dropdown.isActive = typeof active === 'boolean' ? active : !this.$refs.dropdown.isActive;
  6719. }
  6720. },
  6721. /*
  6722. * Call default onFocus method and show datepicker
  6723. */
  6724. handleOnFocus: function handleOnFocus(event) {
  6725. this.onFocus(event);
  6726. if (this.openOnFocus) {
  6727. this.togglePicker(true);
  6728. }
  6729. },
  6730. /*
  6731. * Toggle dropdown
  6732. */
  6733. toggle: function toggle() {
  6734. this.$refs.dropdown.toggle();
  6735. },
  6736. /*
  6737. * Avoid dropdown toggle when is already visible
  6738. */
  6739. onInputClick: function onInputClick(event) {
  6740. if (this.$refs.dropdown.isActive) {
  6741. event.stopPropagation();
  6742. }
  6743. },
  6744. /**
  6745. * Keypress event that is bound to the document.
  6746. */
  6747. keyPress: function keyPress(event) {
  6748. // Esc key
  6749. if (this.$refs.dropdown && this.$refs.dropdown.isActive && event.keyCode === 27) {
  6750. this.togglePicker(false);
  6751. }
  6752. }
  6753. },
  6754. created: function created() {
  6755. if (typeof window !== 'undefined') {
  6756. document.addEventListener('keyup', this.keyPress);
  6757. }
  6758. },
  6759. beforeDestroy: function beforeDestroy() {
  6760. if (typeof window !== 'undefined') {
  6761. document.removeEventListener('keyup', this.keyPress);
  6762. }
  6763. }
  6764. });
  6765. /***/ }),
  6766. /* 137 */
  6767. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6768. "use strict";
  6769. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  6770. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
  6771. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
  6772. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  6773. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
  6774. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon__ = __webpack_require__(3);
  6775. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__icon_Icon__);
  6776. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__ = __webpack_require__(10);
  6777. //
  6778. //
  6779. //
  6780. //
  6781. //
  6782. //
  6783. //
  6784. //
  6785. //
  6786. //
  6787. //
  6788. //
  6789. //
  6790. //
  6791. //
  6792. //
  6793. //
  6794. //
  6795. //
  6796. //
  6797. //
  6798. //
  6799. //
  6800. //
  6801. //
  6802. //
  6803. //
  6804. //
  6805. //
  6806. //
  6807. //
  6808. //
  6809. //
  6810. //
  6811. //
  6812. //
  6813. //
  6814. //
  6815. /* harmony default export */ __webpack_exports__["default"] = ({
  6816. name: 'BSelect',
  6817. components: __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default.a),
  6818. mixins: [__WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__["a" /* default */]],
  6819. inheritAttrs: false,
  6820. props: {
  6821. value: {
  6822. type: [String, Number, Boolean, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a, Function],
  6823. default: null
  6824. },
  6825. placeholder: String,
  6826. multiple: Boolean,
  6827. nativeSize: [String, Number]
  6828. },
  6829. data: function data() {
  6830. return {
  6831. selected: this.value,
  6832. _elementRef: 'select'
  6833. };
  6834. },
  6835. computed: {
  6836. computedValue: {
  6837. get: function get() {
  6838. return this.selected;
  6839. },
  6840. set: function set(value) {
  6841. this.selected = value;
  6842. this.$emit('input', value);
  6843. !this.isValid && this.checkHtml5Validity();
  6844. }
  6845. },
  6846. spanClasses: function spanClasses() {
  6847. return [this.size, this.statusType, {
  6848. 'is-fullwidth': this.expanded,
  6849. 'is-loading': this.loading,
  6850. 'is-multiple': this.multiple,
  6851. 'is-rounded': this.rounded,
  6852. 'is-empty': this.selected === null
  6853. }];
  6854. }
  6855. },
  6856. watch: {
  6857. /**
  6858. * When v-model is changed:
  6859. * 1. Set the selected option.
  6860. * 2. If it's invalid, validate again.
  6861. */
  6862. value: function value(_value) {
  6863. this.selected = _value;
  6864. !this.isValid && this.checkHtml5Validity();
  6865. }
  6866. }
  6867. });
  6868. /***/ }),
  6869. /* 138 */
  6870. /***/ (function(module, exports) {
  6871. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  6872. return _c('div', {
  6873. staticClass: "control",
  6874. class: {
  6875. 'is-expanded': _vm.expanded, 'has-icons-left': _vm.icon
  6876. }
  6877. }, [_c('span', {
  6878. staticClass: "select",
  6879. class: _vm.spanClasses
  6880. }, [_c('select', _vm._b({
  6881. directives: [{
  6882. name: "model",
  6883. rawName: "v-model",
  6884. value: (_vm.computedValue),
  6885. expression: "computedValue"
  6886. }],
  6887. ref: "select",
  6888. attrs: {
  6889. "multiple": _vm.multiple,
  6890. "size": _vm.nativeSize
  6891. },
  6892. on: {
  6893. "blur": function($event) {
  6894. _vm.$emit('blur', $event) && _vm.checkHtml5Validity()
  6895. },
  6896. "focus": function($event) {
  6897. _vm.$emit('focus', $event)
  6898. },
  6899. "change": function($event) {
  6900. var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {
  6901. return o.selected
  6902. }).map(function(o) {
  6903. var val = "_value" in o ? o._value : o.value;
  6904. return val
  6905. });
  6906. _vm.computedValue = $event.target.multiple ? $$selectedVal : $$selectedVal[0]
  6907. }
  6908. }
  6909. }, 'select', _vm.$attrs, false), [(_vm.placeholder) ? [(_vm.computedValue == null) ? _c('option', {
  6910. attrs: {
  6911. "disabled": "",
  6912. "hidden": ""
  6913. },
  6914. domProps: {
  6915. "value": null
  6916. }
  6917. }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")]) : _vm._e()] : _vm._e(), _vm._v(" "), _vm._t("default")], 2)]), _vm._v(" "), (_vm.icon) ? _c('b-icon', {
  6918. staticClass: "is-left",
  6919. attrs: {
  6920. "icon": _vm.icon,
  6921. "pack": _vm.iconPack,
  6922. "size": _vm.iconSize
  6923. }
  6924. }) : _vm._e()], 1)
  6925. },staticRenderFns: []}
  6926. /***/ }),
  6927. /* 139 */
  6928. /***/ (function(module, exports, __webpack_require__) {
  6929. var Component = __webpack_require__(0)(
  6930. /* script */
  6931. __webpack_require__(140),
  6932. /* template */
  6933. __webpack_require__(144),
  6934. /* styles */
  6935. null,
  6936. /* scopeId */
  6937. null,
  6938. /* moduleIdentifier (server only) */
  6939. null
  6940. )
  6941. module.exports = Component.exports
  6942. /***/ }),
  6943. /* 140 */
  6944. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6945. "use strict";
  6946. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  6947. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  6948. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  6949. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow__ = __webpack_require__(141);
  6950. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow__);
  6951. //
  6952. //
  6953. //
  6954. //
  6955. //
  6956. //
  6957. //
  6958. //
  6959. //
  6960. //
  6961. //
  6962. //
  6963. //
  6964. //
  6965. //
  6966. //
  6967. //
  6968. //
  6969. //
  6970. //
  6971. //
  6972. //
  6973. //
  6974. //
  6975. //
  6976. //
  6977. //
  6978. //
  6979. //
  6980. //
  6981. //
  6982. //
  6983. //
  6984. /* harmony default export */ __webpack_exports__["default"] = ({
  6985. name: 'BDatepickerTable',
  6986. components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow___default.a.name, __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow___default.a),
  6987. props: {
  6988. value: Date,
  6989. dayNames: Array,
  6990. monthNames: Array,
  6991. firstDayOfWeek: Number,
  6992. events: Array,
  6993. indicators: String,
  6994. minDate: Date,
  6995. maxDate: Date,
  6996. focused: Object,
  6997. disabled: Boolean,
  6998. dateCreator: Function,
  6999. unselectableDates: Array,
  7000. unselectableDaysOfWeek: Array,
  7001. selectableDates: Array,
  7002. nearbyMonthDays: Boolean,
  7003. nearbySelectableMonthDays: Boolean
  7004. },
  7005. computed: {
  7006. visibleDayNames: function visibleDayNames() {
  7007. var visibleDayNames = [];
  7008. var index = this.firstDayOfWeek;
  7009. while (visibleDayNames.length < this.dayNames.length) {
  7010. var currentDayName = this.dayNames[index % this.dayNames.length];
  7011. visibleDayNames.push(currentDayName);
  7012. index++;
  7013. }
  7014. return visibleDayNames;
  7015. },
  7016. hasEvents: function hasEvents() {
  7017. return this.events && this.events.length;
  7018. },
  7019. /*
  7020. * Return array of all events in the specified month
  7021. */
  7022. eventsInThisMonth: function eventsInThisMonth() {
  7023. if (!this.events) return [];
  7024. var monthEvents = [];
  7025. for (var i = 0; i < this.events.length; i++) {
  7026. var event = this.events[i];
  7027. if (!event.hasOwnProperty('date')) {
  7028. event = { date: event };
  7029. }
  7030. if (!event.hasOwnProperty('type')) {
  7031. event.type = 'is-primary';
  7032. }
  7033. if (event.date.getMonth() === this.focused.month && event.date.getFullYear() === this.focused.year) {
  7034. monthEvents.push(event);
  7035. }
  7036. }
  7037. return monthEvents;
  7038. },
  7039. /*
  7040. * Return array of all weeks in the specified month
  7041. */
  7042. weeksInThisMonth: function weeksInThisMonth() {
  7043. var month = this.focused.month;
  7044. var year = this.focused.year;
  7045. var weeksInThisMonth = [];
  7046. var daysInThisMonth = new Date(year, month + 1, 0).getDate();
  7047. var startingDay = 1;
  7048. while (startingDay <= daysInThisMonth + 6) {
  7049. var newWeek = this.weekBuilder(startingDay, month, year);
  7050. var weekValid = false;
  7051. newWeek.forEach(function (day) {
  7052. if (day.getMonth() === month) {
  7053. weekValid = true;
  7054. }
  7055. });
  7056. if (weekValid) {
  7057. weeksInThisMonth.push(newWeek);
  7058. }
  7059. startingDay += 7;
  7060. }
  7061. return weeksInThisMonth;
  7062. }
  7063. },
  7064. methods: {
  7065. /*
  7066. * Emit input event with selected date as payload for v-model in parent
  7067. */
  7068. updateSelectedDate: function updateSelectedDate(date) {
  7069. this.$emit('input', date);
  7070. },
  7071. /*
  7072. * Return array of all days in the week that the startingDate is within
  7073. */
  7074. weekBuilder: function weekBuilder(startingDate, month, year) {
  7075. var thisMonth = new Date(year, month);
  7076. var thisWeek = [];
  7077. var dayOfWeek = new Date(year, month, startingDate).getDay();
  7078. var end = dayOfWeek >= this.firstDayOfWeek ? dayOfWeek - this.firstDayOfWeek : 7 - this.firstDayOfWeek + dayOfWeek;
  7079. var daysAgo = 1;
  7080. for (var i = 0; i < end; i++) {
  7081. thisWeek.unshift(new Date(thisMonth.getFullYear(), thisMonth.getMonth(), startingDate - daysAgo));
  7082. daysAgo++;
  7083. }
  7084. thisWeek.push(new Date(year, month, startingDate));
  7085. var daysForward = 1;
  7086. while (thisWeek.length < 7) {
  7087. thisWeek.push(new Date(year, month, startingDate + daysForward));
  7088. daysForward++;
  7089. }
  7090. return thisWeek;
  7091. },
  7092. eventsInThisWeek: function eventsInThisWeek(week) {
  7093. return this.eventsInThisMonth.filter(function (event) {
  7094. var stripped = new Date(Date.parse(event.date));
  7095. stripped.setHours(0);
  7096. stripped.setMinutes(0);
  7097. stripped.setSeconds(0);
  7098. stripped.setMilliseconds(0);
  7099. var timed = stripped.getTime();
  7100. return week.some(function (weekDate) {
  7101. return weekDate.getTime() === timed;
  7102. });
  7103. });
  7104. }
  7105. }
  7106. });
  7107. /***/ }),
  7108. /* 141 */
  7109. /***/ (function(module, exports, __webpack_require__) {
  7110. var Component = __webpack_require__(0)(
  7111. /* script */
  7112. __webpack_require__(142),
  7113. /* template */
  7114. __webpack_require__(143),
  7115. /* styles */
  7116. null,
  7117. /* scopeId */
  7118. null,
  7119. /* moduleIdentifier (server only) */
  7120. null
  7121. )
  7122. module.exports = Component.exports
  7123. /***/ }),
  7124. /* 142 */
  7125. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7126. "use strict";
  7127. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  7128. //
  7129. //
  7130. //
  7131. //
  7132. //
  7133. //
  7134. //
  7135. //
  7136. //
  7137. //
  7138. //
  7139. //
  7140. //
  7141. //
  7142. //
  7143. //
  7144. //
  7145. //
  7146. //
  7147. //
  7148. //
  7149. //
  7150. //
  7151. //
  7152. //
  7153. //
  7154. //
  7155. //
  7156. //
  7157. //
  7158. //
  7159. //
  7160. //
  7161. //
  7162. /* harmony default export */ __webpack_exports__["default"] = ({
  7163. name: 'BDatepickerTableRow',
  7164. props: {
  7165. selectedDate: Date,
  7166. week: {
  7167. type: Array,
  7168. required: true
  7169. },
  7170. month: {
  7171. type: Number,
  7172. required: true
  7173. },
  7174. minDate: Date,
  7175. maxDate: Date,
  7176. disabled: Boolean,
  7177. unselectableDates: Array,
  7178. unselectableDaysOfWeek: Array,
  7179. selectableDates: Array,
  7180. events: Array,
  7181. indicators: String,
  7182. dateCreator: Function,
  7183. nearbyMonthDays: Boolean,
  7184. nearbySelectableMonthDays: Boolean
  7185. },
  7186. methods: {
  7187. /*
  7188. * Check that selected day is within earliest/latest params and
  7189. * is within this month
  7190. */
  7191. selectableDate: function selectableDate(day) {
  7192. var validity = [];
  7193. if (this.minDate) {
  7194. validity.push(day >= this.minDate);
  7195. }
  7196. if (this.maxDate) {
  7197. validity.push(day <= this.maxDate);
  7198. }
  7199. if (this.nearbyMonthDays && !this.nearbySelectableMonthDays) {
  7200. validity.push(day.getMonth() === this.month);
  7201. }
  7202. if (this.selectableDates) {
  7203. for (var i = 0; i < this.selectableDates.length; i++) {
  7204. var enabledDate = this.selectableDates[i];
  7205. if (day.getDate() === enabledDate.getDate() && day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) {
  7206. return true;
  7207. } else {
  7208. validity.push(false);
  7209. }
  7210. }
  7211. }
  7212. if (this.unselectableDates) {
  7213. for (var _i = 0; _i < this.unselectableDates.length; _i++) {
  7214. var disabledDate = this.unselectableDates[_i];
  7215. validity.push(day.getDate() !== disabledDate.getDate() || day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth());
  7216. }
  7217. }
  7218. if (this.unselectableDaysOfWeek) {
  7219. for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) {
  7220. var dayOfWeek = this.unselectableDaysOfWeek[_i2];
  7221. validity.push(day.getDay() !== dayOfWeek);
  7222. }
  7223. }
  7224. return validity.indexOf(false) < 0;
  7225. },
  7226. /*
  7227. * Emit select event with chosen date as payload
  7228. */
  7229. emitChosenDate: function emitChosenDate(day) {
  7230. if (this.disabled) return;
  7231. if (this.selectableDate(day)) {
  7232. this.$emit('select', day);
  7233. }
  7234. },
  7235. eventsDateMatch: function eventsDateMatch(day) {
  7236. if (!this.events || !this.events.length) return false;
  7237. var dayEvents = [];
  7238. for (var i = 0; i < this.events.length; i++) {
  7239. if (this.events[i].date.getDay() === day.getDay()) {
  7240. dayEvents.push(this.events[i]);
  7241. }
  7242. }
  7243. if (!dayEvents.length) {
  7244. return false;
  7245. }
  7246. return dayEvents;
  7247. },
  7248. /*
  7249. * Build classObject for cell using validations
  7250. */
  7251. classObject: function classObject(day) {
  7252. function dateMatch(dateOne, dateTwo) {
  7253. // if either date is null or undefined, return false
  7254. if (!dateOne || !dateTwo) {
  7255. return false;
  7256. }
  7257. return dateOne.getDate() === dateTwo.getDate() && dateOne.getFullYear() === dateTwo.getFullYear() && dateOne.getMonth() === dateTwo.getMonth();
  7258. }
  7259. return {
  7260. 'is-selected': dateMatch(day, this.selectedDate),
  7261. 'is-today': dateMatch(day, this.dateCreator()),
  7262. 'is-selectable': this.selectableDate(day) && !this.disabled,
  7263. 'is-unselectable': !this.selectableDate(day) || this.disabled,
  7264. 'is-invisible': !this.nearbyMonthDays && day.getMonth() !== this.month,
  7265. 'is-nearby': this.nearbySelectableMonthDays && day.getMonth() !== this.month
  7266. };
  7267. }
  7268. }
  7269. });
  7270. /***/ }),
  7271. /* 143 */
  7272. /***/ (function(module, exports) {
  7273. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  7274. return _c('div', {
  7275. staticClass: "datepicker-row"
  7276. }, [_vm._l((_vm.week), function(day, index) {
  7277. return [(_vm.selectableDate(day) && !_vm.disabled) ? _c('a', {
  7278. key: index,
  7279. staticClass: "datepicker-cell",
  7280. class: [_vm.classObject(day), {
  7281. 'has-event': _vm.eventsDateMatch(day)
  7282. }, _vm.indicators],
  7283. attrs: {
  7284. "role": "button",
  7285. "href": "#",
  7286. "disabled": _vm.disabled
  7287. },
  7288. on: {
  7289. "click": function($event) {
  7290. $event.preventDefault();
  7291. _vm.emitChosenDate(day)
  7292. },
  7293. "keydown": [function($event) {
  7294. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  7295. $event.preventDefault();
  7296. _vm.emitChosenDate(day)
  7297. }, function($event) {
  7298. if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
  7299. $event.preventDefault();
  7300. _vm.emitChosenDate(day)
  7301. }]
  7302. }
  7303. }, [_vm._v("\n " + _vm._s(day.getDate()) + "\n "), (_vm.eventsDateMatch(day)) ? _c('div', {
  7304. staticClass: "events"
  7305. }, _vm._l((_vm.eventsDateMatch(day)), function(event, index) {
  7306. return _c('div', {
  7307. key: index,
  7308. staticClass: "event",
  7309. class: event.type
  7310. })
  7311. })) : _vm._e()]) : _c('div', {
  7312. key: index,
  7313. staticClass: "datepicker-cell",
  7314. class: _vm.classObject(day)
  7315. }, [_vm._v("\n " + _vm._s(day.getDate()) + "\n ")])]
  7316. })], 2)
  7317. },staticRenderFns: []}
  7318. /***/ }),
  7319. /* 144 */
  7320. /***/ (function(module, exports) {
  7321. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  7322. return _c('section', {
  7323. staticClass: "datepicker-table"
  7324. }, [_c('header', {
  7325. staticClass: "datepicker-header"
  7326. }, _vm._l((_vm.visibleDayNames), function(day, index) {
  7327. return _c('div', {
  7328. key: index,
  7329. staticClass: "datepicker-cell"
  7330. }, [_vm._v("\n " + _vm._s(day) + "\n ")])
  7331. })), _vm._v(" "), _c('div', {
  7332. staticClass: "datepicker-body",
  7333. class: {
  7334. 'has-events': _vm.hasEvents
  7335. }
  7336. }, _vm._l((_vm.weeksInThisMonth), function(week, index) {
  7337. return _c('b-datepicker-table-row', {
  7338. key: index,
  7339. attrs: {
  7340. "selected-date": _vm.value,
  7341. "week": week,
  7342. "month": _vm.focused.month,
  7343. "min-date": _vm.minDate,
  7344. "max-date": _vm.maxDate,
  7345. "disabled": _vm.disabled,
  7346. "unselectable-dates": _vm.unselectableDates,
  7347. "unselectable-days-of-week": _vm.unselectableDaysOfWeek,
  7348. "selectable-dates": _vm.selectableDates,
  7349. "events": _vm.eventsInThisWeek(week),
  7350. "indicators": _vm.indicators,
  7351. "date-creator": _vm.dateCreator,
  7352. "nearby-month-days": _vm.nearbyMonthDays,
  7353. "nearby-selectable-month-days": _vm.nearbySelectableMonthDays
  7354. },
  7355. on: {
  7356. "select": _vm.updateSelectedDate
  7357. }
  7358. })
  7359. }))])
  7360. },staticRenderFns: []}
  7361. /***/ }),
  7362. /* 145 */
  7363. /***/ (function(module, exports, __webpack_require__) {
  7364. var Component = __webpack_require__(0)(
  7365. /* script */
  7366. __webpack_require__(146),
  7367. /* template */
  7368. __webpack_require__(147),
  7369. /* styles */
  7370. null,
  7371. /* scopeId */
  7372. null,
  7373. /* moduleIdentifier (server only) */
  7374. null
  7375. )
  7376. module.exports = Component.exports
  7377. /***/ }),
  7378. /* 146 */
  7379. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7380. "use strict";
  7381. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  7382. //
  7383. //
  7384. //
  7385. //
  7386. //
  7387. //
  7388. //
  7389. //
  7390. //
  7391. //
  7392. //
  7393. //
  7394. //
  7395. //
  7396. //
  7397. //
  7398. //
  7399. //
  7400. //
  7401. //
  7402. //
  7403. //
  7404. //
  7405. //
  7406. //
  7407. //
  7408. //
  7409. //
  7410. //
  7411. //
  7412. //
  7413. //
  7414. //
  7415. //
  7416. //
  7417. //
  7418. //
  7419. //
  7420. //
  7421. //
  7422. //
  7423. //
  7424. /* harmony default export */ __webpack_exports__["default"] = ({
  7425. name: 'BDatepickerMonth',
  7426. props: {
  7427. value: Date,
  7428. monthNames: Array,
  7429. events: Array,
  7430. indicators: String,
  7431. minDate: Date,
  7432. maxDate: Date,
  7433. focused: Object,
  7434. disabled: Boolean,
  7435. dateCreator: Function,
  7436. unselectableDates: Array,
  7437. unselectableDaysOfWeek: Array,
  7438. selectableDates: Array
  7439. },
  7440. computed: {
  7441. hasEvents: function hasEvents() {
  7442. return this.events && this.events.length;
  7443. },
  7444. /*
  7445. * Return array of all events in the specified month
  7446. */
  7447. eventsInThisYear: function eventsInThisYear() {
  7448. if (!this.events) return [];
  7449. var yearEvents = [];
  7450. for (var i = 0; i < this.events.length; i++) {
  7451. var event = this.events[i];
  7452. if (!event.hasOwnProperty('date')) {
  7453. event = { date: event };
  7454. }
  7455. if (!event.hasOwnProperty('type')) {
  7456. event.type = 'is-primary';
  7457. }
  7458. if (event.date.getFullYear() === this.focused.year) {
  7459. yearEvents.push(event);
  7460. }
  7461. }
  7462. return yearEvents;
  7463. },
  7464. monthDates: function monthDates() {
  7465. var year = this.focused.year;
  7466. var months = [];
  7467. for (var i = 0; i < 12; i++) {
  7468. var d = new Date(year, i, 1);
  7469. d.setHours(0, 0, 0, 0);
  7470. months.push(d);
  7471. }
  7472. return months;
  7473. }
  7474. },
  7475. methods: {
  7476. selectableDate: function selectableDate(day) {
  7477. var validity = [];
  7478. if (this.minDate) {
  7479. validity.push(day >= this.minDate);
  7480. }
  7481. if (this.maxDate) {
  7482. validity.push(day <= this.maxDate);
  7483. }
  7484. validity.push(day.getFullYear() === this.focused.year);
  7485. if (this.selectableDates) {
  7486. for (var i = 0; i < this.selectableDates.length; i++) {
  7487. var enabledDate = this.selectableDates[i];
  7488. if (day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) {
  7489. return true;
  7490. } else {
  7491. validity.push(false);
  7492. }
  7493. }
  7494. }
  7495. if (this.unselectableDates) {
  7496. for (var _i = 0; _i < this.unselectableDates.length; _i++) {
  7497. var disabledDate = this.unselectableDates[_i];
  7498. validity.push(day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth());
  7499. }
  7500. }
  7501. if (this.unselectableDaysOfWeek) {
  7502. for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) {
  7503. var dayOfWeek = this.unselectableDaysOfWeek[_i2];
  7504. validity.push(day.getDay() !== dayOfWeek);
  7505. }
  7506. }
  7507. return validity.indexOf(false) < 0;
  7508. },
  7509. eventsDateMatch: function eventsDateMatch(day) {
  7510. if (!this.eventsInThisYear.length) return false;
  7511. var monthEvents = [];
  7512. for (var i = 0; i < this.eventsInThisYear.length; i++) {
  7513. if (this.eventsInThisYear[i].date.getMonth() === day.getMonth()) {
  7514. monthEvents.push(this.events[i]);
  7515. }
  7516. }
  7517. if (!monthEvents.length) {
  7518. return false;
  7519. }
  7520. return monthEvents;
  7521. },
  7522. /*
  7523. * Build classObject for cell using validations
  7524. */
  7525. classObject: function classObject(day) {
  7526. function dateMatch(dateOne, dateTwo) {
  7527. // if either date is null or undefined, return false
  7528. if (!dateOne || !dateTwo) {
  7529. return false;
  7530. }
  7531. return dateOne.getFullYear() === dateTwo.getFullYear() && dateOne.getMonth() === dateTwo.getMonth();
  7532. }
  7533. return {
  7534. 'is-selected': dateMatch(day, this.value),
  7535. 'is-today': dateMatch(day, this.dateCreator()),
  7536. 'is-selectable': this.selectableDate(day) && !this.disabled,
  7537. 'is-unselectable': !this.selectableDate(day) || this.disabled
  7538. };
  7539. },
  7540. /*
  7541. * Emit select event with chosen date as payload
  7542. */
  7543. emitChosenDate: function emitChosenDate(day) {
  7544. if (this.disabled) return;
  7545. if (this.selectableDate(day)) {
  7546. this.$emit('input', day);
  7547. }
  7548. }
  7549. }
  7550. });
  7551. /***/ }),
  7552. /* 147 */
  7553. /***/ (function(module, exports) {
  7554. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  7555. return _c('section', {
  7556. staticClass: "datepicker-table"
  7557. }, [_c('div', {
  7558. staticClass: "datepicker-body",
  7559. class: {
  7560. 'has-events': _vm.hasEvents
  7561. }
  7562. }, [_c('div', {
  7563. staticClass: "datepicker-months"
  7564. }, [_vm._l((_vm.monthDates), function(date, index) {
  7565. return [(_vm.selectableDate(date) && !_vm.disabled) ? _c('a', {
  7566. key: index,
  7567. staticClass: "datepicker-cell",
  7568. class: [
  7569. _vm.classObject(date),
  7570. {
  7571. 'has-event': _vm.eventsDateMatch(date)
  7572. },
  7573. _vm.indicators
  7574. ],
  7575. attrs: {
  7576. "role": "button",
  7577. "href": "#",
  7578. "disabled": _vm.disabled
  7579. },
  7580. on: {
  7581. "click": function($event) {
  7582. $event.preventDefault();
  7583. _vm.emitChosenDate(date)
  7584. },
  7585. "keydown": [function($event) {
  7586. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  7587. $event.preventDefault();
  7588. _vm.emitChosenDate(date)
  7589. }, function($event) {
  7590. if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
  7591. $event.preventDefault();
  7592. _vm.emitChosenDate(date)
  7593. }]
  7594. }
  7595. }, [_vm._v("\n " + _vm._s(_vm.monthNames[date.getMonth()]) + "\n "), (_vm.eventsDateMatch(date)) ? _c('div', {
  7596. staticClass: "events"
  7597. }, _vm._l((_vm.eventsDateMatch(date)), function(event, index) {
  7598. return _c('div', {
  7599. key: index,
  7600. staticClass: "event",
  7601. class: event.type
  7602. })
  7603. })) : _vm._e()]) : _c('div', {
  7604. key: index,
  7605. staticClass: "datepicker-cell",
  7606. class: _vm.classObject(date)
  7607. }, [_vm._v("\n " + _vm._s(_vm.monthNames[date.getMonth()]) + "\n ")])]
  7608. })], 2)])])
  7609. },staticRenderFns: []}
  7610. /***/ }),
  7611. /* 148 */
  7612. /***/ (function(module, exports) {
  7613. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  7614. return _c('div', {
  7615. staticClass: "datepicker control",
  7616. class: [_vm.size, {
  7617. 'is-expanded': _vm.expanded
  7618. }]
  7619. }, [(!_vm.isMobile || _vm.inline) ? _c('b-dropdown', {
  7620. ref: "dropdown",
  7621. attrs: {
  7622. "position": _vm.position,
  7623. "disabled": _vm.disabled,
  7624. "inline": _vm.inline
  7625. }
  7626. }, [(!_vm.inline) ? _c('b-input', _vm._b({
  7627. ref: "input",
  7628. attrs: {
  7629. "slot": "trigger",
  7630. "autocomplete": "off",
  7631. "value": _vm.formatValue(_vm.computedValue),
  7632. "placeholder": _vm.placeholder,
  7633. "size": _vm.size,
  7634. "icon": _vm.icon,
  7635. "icon-pack": _vm.iconPack,
  7636. "rounded": _vm.rounded,
  7637. "loading": _vm.loading,
  7638. "disabled": _vm.disabled,
  7639. "readonly": !_vm.editable,
  7640. "use-html5-validation": _vm.useHtml5Validation
  7641. },
  7642. on: {
  7643. "focus": _vm.handleOnFocus,
  7644. "blur": _vm.onBlur
  7645. },
  7646. nativeOn: {
  7647. "click": function($event) {
  7648. _vm.onInputClick($event)
  7649. },
  7650. "keyup": function($event) {
  7651. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  7652. _vm.togglePicker(true)
  7653. },
  7654. "change": function($event) {
  7655. _vm.onChange($event.target.value)
  7656. }
  7657. },
  7658. slot: "trigger"
  7659. }, 'b-input', _vm.$attrs, false)) : _vm._e(), _vm._v(" "), _c('b-dropdown-item', {
  7660. attrs: {
  7661. "disabled": _vm.disabled,
  7662. "custom": ""
  7663. }
  7664. }, [_c('header', {
  7665. staticClass: "datepicker-header"
  7666. }, [(_vm.$slots.header !== undefined && _vm.$slots.header.length) ? [_vm._t("header")] : _c('div', {
  7667. staticClass: "pagination field is-centered",
  7668. class: _vm.size
  7669. }, [_c('a', {
  7670. directives: [{
  7671. name: "show",
  7672. rawName: "v-show",
  7673. value: (!_vm.showPrev && !_vm.disabled),
  7674. expression: "!showPrev && !disabled"
  7675. }],
  7676. staticClass: "pagination-previous",
  7677. attrs: {
  7678. "role": "button",
  7679. "href": "#",
  7680. "disabled": _vm.disabled
  7681. },
  7682. on: {
  7683. "click": function($event) {
  7684. $event.preventDefault();
  7685. _vm.prev($event)
  7686. },
  7687. "keydown": [function($event) {
  7688. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  7689. $event.preventDefault();
  7690. _vm.prev($event)
  7691. }, function($event) {
  7692. if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
  7693. $event.preventDefault();
  7694. _vm.prev($event)
  7695. }]
  7696. }
  7697. }, [_c('b-icon', {
  7698. attrs: {
  7699. "icon": "chevron-left",
  7700. "pack": _vm.iconPack,
  7701. "both": "",
  7702. "type": "is-primary is-clickable"
  7703. }
  7704. })], 1), _vm._v(" "), _c('a', {
  7705. directives: [{
  7706. name: "show",
  7707. rawName: "v-show",
  7708. value: (!_vm.showNext && !_vm.disabled),
  7709. expression: "!showNext && !disabled"
  7710. }],
  7711. staticClass: "pagination-next",
  7712. attrs: {
  7713. "role": "button",
  7714. "href": "#",
  7715. "disabled": _vm.disabled
  7716. },
  7717. on: {
  7718. "click": function($event) {
  7719. $event.preventDefault();
  7720. _vm.next($event)
  7721. },
  7722. "keydown": [function($event) {
  7723. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  7724. $event.preventDefault();
  7725. _vm.next($event)
  7726. }, function($event) {
  7727. if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
  7728. $event.preventDefault();
  7729. _vm.next($event)
  7730. }]
  7731. }
  7732. }, [_c('b-icon', {
  7733. attrs: {
  7734. "icon": "chevron-right",
  7735. "pack": _vm.iconPack,
  7736. "both": "",
  7737. "type": "is-primary is-clickable"
  7738. }
  7739. })], 1), _vm._v(" "), _c('div', {
  7740. staticClass: "pagination-list"
  7741. }, [_c('b-field', [(!_vm.isTypeMonth) ? _c('b-select', {
  7742. attrs: {
  7743. "disabled": _vm.disabled,
  7744. "size": _vm.size
  7745. },
  7746. model: {
  7747. value: (_vm.focusedDateData.month),
  7748. callback: function($$v) {
  7749. _vm.$set(_vm.focusedDateData, "month", $$v)
  7750. },
  7751. expression: "focusedDateData.month"
  7752. }
  7753. }, _vm._l((_vm.monthNames), function(month, index) {
  7754. return _c('option', {
  7755. key: month,
  7756. domProps: {
  7757. "value": index
  7758. }
  7759. }, [_vm._v("\n " + _vm._s(month) + "\n ")])
  7760. })) : _vm._e(), _vm._v(" "), _c('b-select', {
  7761. attrs: {
  7762. "disabled": _vm.disabled,
  7763. "size": _vm.size
  7764. },
  7765. model: {
  7766. value: (_vm.focusedDateData.year),
  7767. callback: function($$v) {
  7768. _vm.$set(_vm.focusedDateData, "year", $$v)
  7769. },
  7770. expression: "focusedDateData.year"
  7771. }
  7772. }, _vm._l((_vm.listOfYears), function(year) {
  7773. return _c('option', {
  7774. key: year,
  7775. domProps: {
  7776. "value": year
  7777. }
  7778. }, [_vm._v("\n " + _vm._s(year) + "\n ")])
  7779. }))], 1)], 1)])], 2), _vm._v(" "), (!_vm.isTypeMonth) ? _c('div', {
  7780. staticClass: "datepicker-content"
  7781. }, [_c('b-datepicker-table', {
  7782. attrs: {
  7783. "day-names": _vm.dayNames,
  7784. "month-names": _vm.monthNames,
  7785. "first-day-of-week": _vm.firstDayOfWeek,
  7786. "min-date": _vm.minDate,
  7787. "max-date": _vm.maxDate,
  7788. "focused": _vm.focusedDateData,
  7789. "disabled": _vm.disabled,
  7790. "unselectable-dates": _vm.unselectableDates,
  7791. "unselectable-days-of-week": _vm.unselectableDaysOfWeek,
  7792. "selectable-dates": _vm.selectableDates,
  7793. "events": _vm.events,
  7794. "indicators": _vm.indicators,
  7795. "date-creator": _vm.dateCreator,
  7796. "type-month": _vm.isTypeMonth,
  7797. "nearby-month-days": _vm.nearbyMonthDays,
  7798. "nearby-selectable-month-days": _vm.nearbySelectableMonthDays
  7799. },
  7800. on: {
  7801. "close": function($event) {
  7802. _vm.togglePicker(false)
  7803. }
  7804. },
  7805. model: {
  7806. value: (_vm.computedValue),
  7807. callback: function($$v) {
  7808. _vm.computedValue = $$v
  7809. },
  7810. expression: "computedValue"
  7811. }
  7812. })], 1) : _c('div', [_c('b-datepicker-month', {
  7813. attrs: {
  7814. "month-names": _vm.monthNames,
  7815. "min-date": _vm.minDate,
  7816. "max-date": _vm.maxDate,
  7817. "focused": _vm.focusedDateData,
  7818. "disabled": _vm.disabled,
  7819. "unselectable-dates": _vm.unselectableDates,
  7820. "unselectable-days-of-week": _vm.unselectableDaysOfWeek,
  7821. "selectable-dates": _vm.selectableDates,
  7822. "events": _vm.events,
  7823. "indicators": _vm.indicators,
  7824. "date-creator": _vm.dateCreator
  7825. },
  7826. on: {
  7827. "close": function($event) {
  7828. _vm.togglePicker(false)
  7829. }
  7830. },
  7831. model: {
  7832. value: (_vm.computedValue),
  7833. callback: function($$v) {
  7834. _vm.computedValue = $$v
  7835. },
  7836. expression: "computedValue"
  7837. }
  7838. })], 1), _vm._v(" "), (_vm.$slots.default !== undefined && _vm.$slots.default.length) ? _c('footer', {
  7839. staticClass: "datepicker-footer"
  7840. }, [_vm._t("default")], 2) : _vm._e()])], 1) : _c('b-input', _vm._b({
  7841. ref: "input",
  7842. attrs: {
  7843. "type": !_vm.isTypeMonth ? 'date' : 'month',
  7844. "autocomplete": "off",
  7845. "value": _vm.formatNative(_vm.computedValue),
  7846. "placeholder": _vm.placeholder,
  7847. "size": _vm.size,
  7848. "icon": _vm.icon,
  7849. "icon-pack": _vm.iconPack,
  7850. "loading": _vm.loading,
  7851. "max": _vm.formatNative(_vm.maxDate),
  7852. "min": _vm.formatNative(_vm.minDate),
  7853. "disabled": _vm.disabled,
  7854. "readonly": false,
  7855. "use-html5-validation": _vm.useHtml5Validation
  7856. },
  7857. on: {
  7858. "focus": _vm.handleOnFocus,
  7859. "blur": _vm.onBlur
  7860. },
  7861. nativeOn: {
  7862. "change": function($event) {
  7863. _vm.onChangeNativePicker($event)
  7864. }
  7865. }
  7866. }, 'b-input', _vm.$attrs, false))], 1)
  7867. },staticRenderFns: []}
  7868. /***/ }),
  7869. /* 149 */
  7870. /***/ (function(module, exports, __webpack_require__) {
  7871. var Component = __webpack_require__(0)(
  7872. /* script */
  7873. __webpack_require__(150),
  7874. /* template */
  7875. __webpack_require__(153),
  7876. /* styles */
  7877. null,
  7878. /* scopeId */
  7879. null,
  7880. /* moduleIdentifier (server only) */
  7881. null
  7882. )
  7883. module.exports = Component.exports
  7884. /***/ }),
  7885. /* 150 */
  7886. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7887. "use strict";
  7888. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  7889. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  7890. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  7891. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
  7892. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
  7893. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__modal_Modal__ = __webpack_require__(63);
  7894. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__modal_Modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__modal_Modal__);
  7895. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_config__ = __webpack_require__(2);
  7896. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_helpers__ = __webpack_require__(7);
  7897. //
  7898. //
  7899. //
  7900. //
  7901. //
  7902. //
  7903. //
  7904. //
  7905. //
  7906. //
  7907. //
  7908. //
  7909. //
  7910. //
  7911. //
  7912. //
  7913. //
  7914. //
  7915. //
  7916. //
  7917. //
  7918. //
  7919. //
  7920. //
  7921. //
  7922. //
  7923. //
  7924. //
  7925. //
  7926. //
  7927. //
  7928. //
  7929. //
  7930. //
  7931. //
  7932. //
  7933. //
  7934. //
  7935. //
  7936. //
  7937. //
  7938. //
  7939. //
  7940. //
  7941. //
  7942. //
  7943. //
  7944. //
  7945. //
  7946. //
  7947. //
  7948. //
  7949. //
  7950. //
  7951. //
  7952. //
  7953. //
  7954. //
  7955. //
  7956. //
  7957. //
  7958. //
  7959. //
  7960. //
  7961. /* harmony default export */ __webpack_exports__["default"] = ({
  7962. name: 'BDialog',
  7963. components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a),
  7964. extends: __WEBPACK_IMPORTED_MODULE_2__modal_Modal___default.a,
  7965. props: {
  7966. title: String,
  7967. message: String,
  7968. icon: String,
  7969. iconPack: String,
  7970. hasIcon: Boolean,
  7971. type: {
  7972. type: String,
  7973. default: 'is-primary'
  7974. },
  7975. size: String,
  7976. confirmText: {
  7977. type: String,
  7978. default: function _default() {
  7979. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogConfirmText ? __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogConfirmText : 'OK';
  7980. }
  7981. },
  7982. cancelText: {
  7983. type: String,
  7984. default: function _default() {
  7985. return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogCancelText ? __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogCancelText : 'Cancel';
  7986. }
  7987. },
  7988. hasInput: Boolean, // Used internally to know if it's prompt
  7989. inputAttrs: {
  7990. type: Object,
  7991. default: function _default() {
  7992. return {};
  7993. }
  7994. },
  7995. onConfirm: {
  7996. type: Function,
  7997. default: function _default() {}
  7998. },
  7999. focusOn: {
  8000. type: String,
  8001. default: 'confirm'
  8002. }
  8003. },
  8004. data: function data() {
  8005. var prompt = this.hasInput ? this.inputAttrs.value || '' : '';
  8006. return {
  8007. prompt: prompt,
  8008. isActive: false,
  8009. validationMessage: ''
  8010. };
  8011. },
  8012. computed: {
  8013. /**
  8014. * Icon name (MDI) based on the type.
  8015. */
  8016. iconByType: function iconByType() {
  8017. switch (this.type) {
  8018. case 'is-info':
  8019. return 'information';
  8020. case 'is-success':
  8021. return 'check-circle';
  8022. case 'is-warning':
  8023. return 'alert';
  8024. case 'is-danger':
  8025. return 'alert-circle';
  8026. default:
  8027. return null;
  8028. }
  8029. },
  8030. showCancel: function showCancel() {
  8031. return this.cancelOptions.indexOf('button') >= 0;
  8032. }
  8033. },
  8034. methods: {
  8035. /**
  8036. * If it's a prompt Dialog, validate the input.
  8037. * Call the onConfirm prop (function) and close the Dialog.
  8038. */
  8039. confirm: function confirm() {
  8040. var _this = this;
  8041. if (this.$refs.input !== undefined) {
  8042. if (!this.$refs.input.checkValidity()) {
  8043. this.validationMessage = this.$refs.input.validationMessage;
  8044. this.$nextTick(function () {
  8045. return _this.$refs.input.select();
  8046. });
  8047. return;
  8048. }
  8049. }
  8050. this.onConfirm(this.prompt);
  8051. this.close();
  8052. },
  8053. /**
  8054. * Close the Dialog.
  8055. */
  8056. close: function close() {
  8057. var _this2 = this;
  8058. this.isActive = false;
  8059. // Timeout for the animation complete before destroying
  8060. setTimeout(function () {
  8061. _this2.$destroy();
  8062. Object(__WEBPACK_IMPORTED_MODULE_4__utils_helpers__["d" /* removeElement */])(_this2.$el);
  8063. }, 150);
  8064. }
  8065. },
  8066. beforeMount: function beforeMount() {
  8067. var _this3 = this;
  8068. // Insert the Dialog component in body tag
  8069. this.$nextTick(function () {
  8070. document.body.appendChild(_this3.$el);
  8071. });
  8072. },
  8073. mounted: function mounted() {
  8074. var _this4 = this;
  8075. this.isActive = true;
  8076. if (typeof this.inputAttrs.required === 'undefined') {
  8077. this.$set(this.inputAttrs, 'required', true);
  8078. }
  8079. this.$nextTick(function () {
  8080. // Handle which element receives focus
  8081. if (_this4.hasInput) {
  8082. _this4.$refs.input.focus();
  8083. } else if (_this4.focusOn === 'cancel' && _this4.showCancel) {
  8084. _this4.$refs.cancelButton.focus();
  8085. } else {
  8086. _this4.$refs.confirmButton.focus();
  8087. }
  8088. });
  8089. }
  8090. });
  8091. /***/ }),
  8092. /* 151 */
  8093. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8094. "use strict";
  8095. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8096. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_helpers__ = __webpack_require__(7);
  8097. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_config__ = __webpack_require__(2);
  8098. //
  8099. //
  8100. //
  8101. //
  8102. //
  8103. //
  8104. //
  8105. //
  8106. //
  8107. //
  8108. //
  8109. //
  8110. //
  8111. //
  8112. //
  8113. //
  8114. //
  8115. //
  8116. //
  8117. //
  8118. //
  8119. //
  8120. //
  8121. //
  8122. //
  8123. //
  8124. //
  8125. //
  8126. //
  8127. //
  8128. //
  8129. /* harmony default export */ __webpack_exports__["default"] = ({
  8130. name: 'BModal',
  8131. props: {
  8132. active: Boolean,
  8133. component: [Object, Function],
  8134. content: String,
  8135. programmatic: Boolean,
  8136. props: Object,
  8137. events: Object,
  8138. width: {
  8139. type: [String, Number],
  8140. default: 960
  8141. },
  8142. hasModalCard: Boolean,
  8143. animation: {
  8144. type: String,
  8145. default: 'zoom-out'
  8146. },
  8147. canCancel: {
  8148. type: [Array, Boolean],
  8149. default: function _default() {
  8150. return __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalCanCancel;
  8151. }
  8152. },
  8153. onCancel: {
  8154. type: Function,
  8155. default: function _default() {}
  8156. },
  8157. scroll: {
  8158. type: String,
  8159. default: function _default() {
  8160. return __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalScroll ? __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalScroll : 'clip';
  8161. },
  8162. validator: function validator(value) {
  8163. return ['clip', 'keep'].indexOf(value) >= 0;
  8164. }
  8165. },
  8166. fullScreen: Boolean
  8167. },
  8168. data: function data() {
  8169. return {
  8170. isActive: this.active || false,
  8171. savedScrollTop: null,
  8172. newWidth: typeof this.width === 'number' ? this.width + 'px' : this.width
  8173. };
  8174. },
  8175. computed: {
  8176. cancelOptions: function cancelOptions() {
  8177. return typeof this.canCancel === 'boolean' ? this.canCancel ? __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalCanCancel : [] : this.canCancel;
  8178. },
  8179. showX: function showX() {
  8180. return this.cancelOptions.indexOf('x') >= 0;
  8181. },
  8182. customStlye: function customStlye() {
  8183. if (!this.fullScreen) {
  8184. return { maxWidth: this.newWidth };
  8185. }
  8186. return null;
  8187. }
  8188. },
  8189. watch: {
  8190. active: function active(value) {
  8191. this.isActive = value;
  8192. },
  8193. isActive: function isActive() {
  8194. this.handleScroll();
  8195. }
  8196. },
  8197. methods: {
  8198. handleScroll: function handleScroll() {
  8199. if (typeof window === 'undefined') return;
  8200. if (this.scroll === 'clip') {
  8201. if (this.isActive) {
  8202. document.documentElement.classList.add('is-clipped');
  8203. } else {
  8204. document.documentElement.classList.remove('is-clipped');
  8205. }
  8206. return;
  8207. }
  8208. this.savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
  8209. if (this.isActive) {
  8210. document.body.classList.add('is-noscroll');
  8211. } else {
  8212. document.body.classList.remove('is-noscroll');
  8213. }
  8214. if (this.isActive) {
  8215. document.body.style.top = '-' + this.savedScrollTop + 'px';
  8216. return;
  8217. }
  8218. document.documentElement.scrollTop = this.savedScrollTop;
  8219. document.body.style.top = null;
  8220. this.savedScrollTop = null;
  8221. },
  8222. /**
  8223. * Close the Modal if canCancel and call the onCancel prop (function).
  8224. */
  8225. cancel: function cancel(method) {
  8226. if (this.cancelOptions.indexOf(method) < 0) return;
  8227. this.onCancel.apply(null, arguments);
  8228. this.close();
  8229. },
  8230. /**
  8231. * Call the onCancel prop (function).
  8232. * Emit events, and destroy modal if it's programmatic.
  8233. */
  8234. close: function close() {
  8235. var _this = this;
  8236. this.$emit('close');
  8237. this.$emit('update:active', false);
  8238. // Timeout for the animation complete before destroying
  8239. if (this.programmatic) {
  8240. this.isActive = false;
  8241. setTimeout(function () {
  8242. _this.$destroy();
  8243. Object(__WEBPACK_IMPORTED_MODULE_0__utils_helpers__["d" /* removeElement */])(_this.$el);
  8244. }, 150);
  8245. }
  8246. },
  8247. /**
  8248. * Keypress event that is bound to the document.
  8249. */
  8250. keyPress: function keyPress(event) {
  8251. // Esc key
  8252. if (this.isActive && event.keyCode === 27) this.cancel('escape');
  8253. }
  8254. },
  8255. created: function created() {
  8256. if (typeof window !== 'undefined') {
  8257. document.addEventListener('keyup', this.keyPress);
  8258. }
  8259. },
  8260. beforeMount: function beforeMount() {
  8261. // Insert the Modal component in body tag
  8262. // only if it's programmatic
  8263. this.programmatic && document.body.appendChild(this.$el);
  8264. },
  8265. mounted: function mounted() {
  8266. if (this.programmatic) this.isActive = true;else if (this.isActive) this.handleScroll();
  8267. },
  8268. beforeDestroy: function beforeDestroy() {
  8269. if (typeof window !== 'undefined') {
  8270. document.removeEventListener('keyup', this.keyPress);
  8271. // reset scroll
  8272. document.documentElement.classList.remove('is-clipped');
  8273. var savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
  8274. document.body.classList.remove('is-noscroll');
  8275. document.documentElement.scrollTop = savedScrollTop;
  8276. document.body.style.top = null;
  8277. }
  8278. }
  8279. });
  8280. /***/ }),
  8281. /* 152 */
  8282. /***/ (function(module, exports) {
  8283. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  8284. return _c('transition', {
  8285. attrs: {
  8286. "name": _vm.animation
  8287. }
  8288. }, [(_vm.isActive) ? _c('div', {
  8289. staticClass: "modal is-active",
  8290. class: {
  8291. 'is-full-screen': _vm.fullScreen
  8292. }
  8293. }, [_c('div', {
  8294. staticClass: "modal-background",
  8295. on: {
  8296. "click": function($event) {
  8297. _vm.cancel('outside')
  8298. }
  8299. }
  8300. }), _vm._v(" "), _c('div', {
  8301. staticClass: "animation-content",
  8302. class: {
  8303. 'modal-content': !_vm.hasModalCard
  8304. },
  8305. style: (_vm.customStlye)
  8306. }, [(_vm.component) ? _c(_vm.component, _vm._g(_vm._b({
  8307. tag: "component",
  8308. on: {
  8309. "close": _vm.close
  8310. }
  8311. }, 'component', _vm.props, false), _vm.events)) : (_vm.content) ? _c('div', {
  8312. domProps: {
  8313. "innerHTML": _vm._s(_vm.content)
  8314. }
  8315. }) : _vm._t("default")], 2), _vm._v(" "), (_vm.showX) ? _c('button', {
  8316. staticClass: "modal-close is-large",
  8317. attrs: {
  8318. "type": "button"
  8319. },
  8320. on: {
  8321. "click": function($event) {
  8322. _vm.cancel('x')
  8323. }
  8324. }
  8325. }) : _vm._e()]) : _vm._e()])
  8326. },staticRenderFns: []}
  8327. /***/ }),
  8328. /* 153 */
  8329. /***/ (function(module, exports) {
  8330. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  8331. return _c('transition', {
  8332. attrs: {
  8333. "name": _vm.animation
  8334. }
  8335. }, [(_vm.isActive) ? _c('div', {
  8336. staticClass: "dialog modal is-active",
  8337. class: _vm.size
  8338. }, [_c('div', {
  8339. staticClass: "modal-background",
  8340. on: {
  8341. "click": function($event) {
  8342. _vm.cancel('outside')
  8343. }
  8344. }
  8345. }), _vm._v(" "), _c('div', {
  8346. staticClass: "modal-card animation-content"
  8347. }, [(_vm.title) ? _c('header', {
  8348. staticClass: "modal-card-head"
  8349. }, [_c('p', {
  8350. staticClass: "modal-card-title"
  8351. }, [_vm._v(_vm._s(_vm.title))])]) : _vm._e(), _vm._v(" "), _c('section', {
  8352. staticClass: "modal-card-body",
  8353. class: {
  8354. 'is-titleless': !_vm.title, 'is-flex': _vm.hasIcon
  8355. }
  8356. }, [_c('div', {
  8357. staticClass: "media"
  8358. }, [(_vm.hasIcon) ? _c('div', {
  8359. staticClass: "media-left"
  8360. }, [_c('b-icon', {
  8361. attrs: {
  8362. "icon": _vm.icon ? _vm.icon : _vm.iconByType,
  8363. "pack": _vm.iconPack,
  8364. "type": _vm.type,
  8365. "both": !_vm.icon,
  8366. "size": "is-large"
  8367. }
  8368. })], 1) : _vm._e(), _vm._v(" "), _c('div', {
  8369. staticClass: "media-content"
  8370. }, [_c('p', {
  8371. domProps: {
  8372. "innerHTML": _vm._s(_vm.message)
  8373. }
  8374. }), _vm._v(" "), (_vm.hasInput) ? _c('div', {
  8375. staticClass: "field"
  8376. }, [_c('div', {
  8377. staticClass: "control"
  8378. }, [_c('input', _vm._b({
  8379. directives: [{
  8380. name: "model",
  8381. rawName: "v-model",
  8382. value: (_vm.prompt),
  8383. expression: "prompt"
  8384. }],
  8385. ref: "input",
  8386. staticClass: "input",
  8387. class: {
  8388. 'is-danger': _vm.validationMessage
  8389. },
  8390. domProps: {
  8391. "value": (_vm.prompt)
  8392. },
  8393. on: {
  8394. "keyup": function($event) {
  8395. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  8396. _vm.confirm($event)
  8397. },
  8398. "input": function($event) {
  8399. if ($event.target.composing) { return; }
  8400. _vm.prompt = $event.target.value
  8401. }
  8402. }
  8403. }, 'input', _vm.inputAttrs, false))]), _vm._v(" "), _c('p', {
  8404. staticClass: "help is-danger"
  8405. }, [_vm._v(_vm._s(_vm.validationMessage))])]) : _vm._e()])])]), _vm._v(" "), _c('footer', {
  8406. staticClass: "modal-card-foot"
  8407. }, [(_vm.showCancel) ? _c('button', {
  8408. ref: "cancelButton",
  8409. staticClass: "button",
  8410. on: {
  8411. "click": function($event) {
  8412. _vm.cancel('button')
  8413. }
  8414. }
  8415. }, [_vm._v("\n " + _vm._s(_vm.cancelText) + "\n ")]) : _vm._e(), _vm._v(" "), _c('button', {
  8416. ref: "confirmButton",
  8417. staticClass: "button",
  8418. class: _vm.type,
  8419. on: {
  8420. "click": _vm.confirm
  8421. }
  8422. }, [_vm._v("\n " + _vm._s(_vm.confirmText) + "\n ")])])])]) : _vm._e()])
  8423. },staticRenderFns: []}
  8424. /***/ }),
  8425. /* 154 */
  8426. /***/ (function(module, exports, __webpack_require__) {
  8427. var Component = __webpack_require__(0)(
  8428. /* script */
  8429. __webpack_require__(155),
  8430. /* template */
  8431. __webpack_require__(156),
  8432. /* styles */
  8433. null,
  8434. /* scopeId */
  8435. null,
  8436. /* moduleIdentifier (server only) */
  8437. null
  8438. )
  8439. module.exports = Component.exports
  8440. /***/ }),
  8441. /* 155 */
  8442. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8443. "use strict";
  8444. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8445. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_helpers__ = __webpack_require__(7);
  8446. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_ssr__ = __webpack_require__(64);
  8447. //
  8448. //
  8449. //
  8450. //
  8451. //
  8452. //
  8453. //
  8454. //
  8455. //
  8456. //
  8457. //
  8458. //
  8459. //
  8460. //
  8461. /* harmony default export */ __webpack_exports__["default"] = ({
  8462. name: 'BLoading',
  8463. props: {
  8464. active: Boolean,
  8465. programmatic: Boolean,
  8466. container: [Object, Function, __WEBPACK_IMPORTED_MODULE_1__utils_ssr__["b" /* HTMLElement */]],
  8467. isFullPage: {
  8468. type: Boolean,
  8469. default: true
  8470. },
  8471. animation: {
  8472. type: String,
  8473. default: 'fade'
  8474. },
  8475. canCancel: {
  8476. type: Boolean,
  8477. default: false
  8478. },
  8479. onCancel: {
  8480. type: Function,
  8481. default: function _default() {}
  8482. }
  8483. },
  8484. data: function data() {
  8485. return {
  8486. isActive: this.active || false
  8487. };
  8488. },
  8489. watch: {
  8490. active: function active(value) {
  8491. this.isActive = value;
  8492. }
  8493. },
  8494. methods: {
  8495. /**
  8496. * Close the Modal if canCancel.
  8497. */
  8498. cancel: function cancel() {
  8499. if (!this.canCancel || !this.isActive) return;
  8500. this.close();
  8501. },
  8502. /**
  8503. * Emit events, and destroy modal if it's programmatic.
  8504. */
  8505. close: function close() {
  8506. var _this = this;
  8507. this.onCancel.apply(null, arguments);
  8508. this.$emit('close');
  8509. this.$emit('update:active', false);
  8510. // Timeout for the animation complete before destroying
  8511. if (this.programmatic) {
  8512. this.isActive = false;
  8513. setTimeout(function () {
  8514. _this.$destroy();
  8515. Object(__WEBPACK_IMPORTED_MODULE_0__utils_helpers__["d" /* removeElement */])(_this.$el);
  8516. }, 150);
  8517. }
  8518. },
  8519. /**
  8520. * Keypress event that is bound to the document.
  8521. */
  8522. keyPress: function keyPress(event) {
  8523. // Esc key
  8524. if (event.keyCode === 27) this.cancel();
  8525. }
  8526. },
  8527. created: function created() {
  8528. if (typeof window !== 'undefined') {
  8529. document.addEventListener('keyup', this.keyPress);
  8530. }
  8531. },
  8532. beforeMount: function beforeMount() {
  8533. // Insert the Loading component in body tag
  8534. // only if it's programmatic
  8535. if (this.programmatic) {
  8536. if (!this.container) {
  8537. document.body.appendChild(this.$el);
  8538. } else {
  8539. this.isFullPage = false;
  8540. this.container.appendChild(this.$el);
  8541. }
  8542. }
  8543. },
  8544. mounted: function mounted() {
  8545. if (this.programmatic) this.isActive = true;
  8546. },
  8547. beforeDestroy: function beforeDestroy() {
  8548. if (typeof window !== 'undefined') {
  8549. document.removeEventListener('keyup', this.keyPress);
  8550. }
  8551. }
  8552. });
  8553. /***/ }),
  8554. /* 156 */
  8555. /***/ (function(module, exports) {
  8556. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  8557. return _c('transition', {
  8558. attrs: {
  8559. "name": _vm.animation
  8560. }
  8561. }, [(_vm.isActive) ? _c('div', {
  8562. staticClass: "loading-overlay is-active",
  8563. class: {
  8564. 'is-full-page': _vm.isFullPage
  8565. }
  8566. }, [_c('div', {
  8567. staticClass: "loading-background",
  8568. on: {
  8569. "click": _vm.cancel
  8570. }
  8571. }), _vm._v(" "), _vm._t("default", [_c('div', {
  8572. staticClass: "loading-icon"
  8573. })])], 2) : _vm._e()])
  8574. },staticRenderFns: []}
  8575. /***/ }),
  8576. /* 157 */
  8577. /***/ (function(module, exports, __webpack_require__) {
  8578. var Component = __webpack_require__(0)(
  8579. /* script */
  8580. __webpack_require__(158),
  8581. /* template */
  8582. __webpack_require__(159),
  8583. /* styles */
  8584. null,
  8585. /* scopeId */
  8586. null,
  8587. /* moduleIdentifier (server only) */
  8588. null
  8589. )
  8590. module.exports = Component.exports
  8591. /***/ }),
  8592. /* 158 */
  8593. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8594. "use strict";
  8595. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8596. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__ = __webpack_require__(65);
  8597. //
  8598. //
  8599. //
  8600. //
  8601. //
  8602. //
  8603. //
  8604. //
  8605. //
  8606. //
  8607. //
  8608. //
  8609. //
  8610. //
  8611. //
  8612. //
  8613. //
  8614. //
  8615. //
  8616. //
  8617. //
  8618. //
  8619. //
  8620. //
  8621. //
  8622. //
  8623. //
  8624. //
  8625. //
  8626. //
  8627. //
  8628. //
  8629. //
  8630. //
  8631. //
  8632. /* harmony default export */ __webpack_exports__["default"] = ({
  8633. name: 'BMessage',
  8634. mixins: [__WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__["a" /* default */]],
  8635. props: {
  8636. ariaCloseLabel: String
  8637. },
  8638. data: function data() {
  8639. return {
  8640. newIconSize: this.iconSize || this.size || 'is-large'
  8641. };
  8642. }
  8643. });
  8644. /***/ }),
  8645. /* 159 */
  8646. /***/ (function(module, exports) {
  8647. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  8648. return _c('transition', {
  8649. attrs: {
  8650. "name": "fade"
  8651. }
  8652. }, [(_vm.isActive) ? _c('article', {
  8653. staticClass: "message",
  8654. class: [_vm.type, _vm.size]
  8655. }, [(_vm.title) ? _c('header', {
  8656. staticClass: "message-header"
  8657. }, [_c('p', [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), (_vm.closable) ? _c('button', {
  8658. staticClass: "delete",
  8659. attrs: {
  8660. "type": "button",
  8661. "aria-label": _vm.ariaCloseLabel
  8662. },
  8663. on: {
  8664. "click": _vm.close
  8665. }
  8666. }) : _vm._e()]) : _vm._e(), _vm._v(" "), _c('section', {
  8667. staticClass: "message-body"
  8668. }, [_c('div', {
  8669. staticClass: "media"
  8670. }, [(_vm.icon && _vm.hasIcon) ? _c('div', {
  8671. staticClass: "media-left"
  8672. }, [_c('b-icon', {
  8673. class: _vm.type,
  8674. attrs: {
  8675. "icon": _vm.icon,
  8676. "pack": _vm.iconPack,
  8677. "both": "",
  8678. "size": _vm.newIconSize
  8679. }
  8680. })], 1) : _vm._e(), _vm._v(" "), _c('div', {
  8681. staticClass: "media-content"
  8682. }, [_vm._t("default")], 2)])])]) : _vm._e()])
  8683. },staticRenderFns: []}
  8684. /***/ }),
  8685. /* 160 */
  8686. /***/ (function(module, exports, __webpack_require__) {
  8687. var Component = __webpack_require__(0)(
  8688. /* script */
  8689. __webpack_require__(161),
  8690. /* template */
  8691. __webpack_require__(162),
  8692. /* styles */
  8693. null,
  8694. /* scopeId */
  8695. null,
  8696. /* moduleIdentifier (server only) */
  8697. null
  8698. )
  8699. module.exports = Component.exports
  8700. /***/ }),
  8701. /* 161 */
  8702. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8703. "use strict";
  8704. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8705. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__ = __webpack_require__(65);
  8706. //
  8707. //
  8708. //
  8709. //
  8710. //
  8711. //
  8712. //
  8713. //
  8714. //
  8715. //
  8716. //
  8717. //
  8718. //
  8719. //
  8720. //
  8721. //
  8722. //
  8723. //
  8724. //
  8725. //
  8726. //
  8727. //
  8728. //
  8729. //
  8730. //
  8731. //
  8732. //
  8733. //
  8734. //
  8735. //
  8736. //
  8737. //
  8738. //
  8739. //
  8740. /* harmony default export */ __webpack_exports__["default"] = ({
  8741. name: 'BNotification',
  8742. mixins: [__WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__["a" /* default */]],
  8743. props: {
  8744. position: String,
  8745. ariaCloseLabel: String
  8746. }
  8747. });
  8748. /***/ }),
  8749. /* 162 */
  8750. /***/ (function(module, exports) {
  8751. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  8752. return _c('transition', {
  8753. attrs: {
  8754. "name": "fade"
  8755. }
  8756. }, [_c('article', {
  8757. directives: [{
  8758. name: "show",
  8759. rawName: "v-show",
  8760. value: (_vm.isActive),
  8761. expression: "isActive"
  8762. }],
  8763. staticClass: "notification",
  8764. class: [_vm.type, _vm.position]
  8765. }, [(_vm.closable) ? _c('button', {
  8766. staticClass: "delete",
  8767. attrs: {
  8768. "type": "button",
  8769. "aria-label": _vm.ariaCloseLabel
  8770. },
  8771. on: {
  8772. "click": _vm.close
  8773. }
  8774. }) : _vm._e(), _vm._v(" "), _c('div', {
  8775. staticClass: "media"
  8776. }, [(_vm.icon && _vm.hasIcon) ? _c('div', {
  8777. staticClass: "media-left"
  8778. }, [_c('b-icon', {
  8779. attrs: {
  8780. "icon": _vm.icon,
  8781. "pack": _vm.iconPack,
  8782. "both": "",
  8783. "size": "is-large",
  8784. "aria-hidden": ""
  8785. }
  8786. })], 1) : _vm._e(), _vm._v(" "), _c('div', {
  8787. staticClass: "media-content"
  8788. }, [(_vm.message) ? _c('p', {
  8789. staticClass: "text",
  8790. domProps: {
  8791. "innerHTML": _vm._s(_vm.message)
  8792. }
  8793. }) : _vm._t("default")], 2)])])])
  8794. },staticRenderFns: []}
  8795. /***/ }),
  8796. /* 163 */
  8797. /***/ (function(module, exports, __webpack_require__) {
  8798. var Component = __webpack_require__(0)(
  8799. /* script */
  8800. __webpack_require__(164),
  8801. /* template */
  8802. __webpack_require__(165),
  8803. /* styles */
  8804. null,
  8805. /* scopeId */
  8806. null,
  8807. /* moduleIdentifier (server only) */
  8808. null
  8809. )
  8810. module.exports = Component.exports
  8811. /***/ }),
  8812. /* 164 */
  8813. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8814. "use strict";
  8815. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8816. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
  8817. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__ = __webpack_require__(45);
  8818. //
  8819. //
  8820. //
  8821. //
  8822. //
  8823. //
  8824. /* harmony default export */ __webpack_exports__["default"] = ({
  8825. name: 'BNotificationNotice',
  8826. mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__["a" /* default */]],
  8827. props: {
  8828. indefinite: {
  8829. type: Boolean,
  8830. default: false
  8831. }
  8832. },
  8833. data: function data() {
  8834. return {
  8835. newDuration: this.duration || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultNotificationDuration
  8836. };
  8837. }
  8838. });
  8839. /***/ }),
  8840. /* 165 */
  8841. /***/ (function(module, exports) {
  8842. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  8843. return _c('b-notification', _vm._b({
  8844. on: {
  8845. "close": _vm.close
  8846. }
  8847. }, 'b-notification', _vm.$options.propsData, false))
  8848. },staticRenderFns: []}
  8849. /***/ }),
  8850. /* 166 */
  8851. /***/ (function(module, exports, __webpack_require__) {
  8852. var Component = __webpack_require__(0)(
  8853. /* script */
  8854. __webpack_require__(167),
  8855. /* template */
  8856. __webpack_require__(168),
  8857. /* styles */
  8858. null,
  8859. /* scopeId */
  8860. null,
  8861. /* moduleIdentifier (server only) */
  8862. null
  8863. )
  8864. module.exports = Component.exports
  8865. /***/ }),
  8866. /* 167 */
  8867. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8868. "use strict";
  8869. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8870. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  8871. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  8872. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
  8873. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
  8874. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__input_Input__ = __webpack_require__(17);
  8875. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__input_Input__);
  8876. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__ = __webpack_require__(10);
  8877. var _components;
  8878. //
  8879. //
  8880. //
  8881. //
  8882. //
  8883. //
  8884. //
  8885. //
  8886. //
  8887. //
  8888. //
  8889. //
  8890. //
  8891. //
  8892. //
  8893. //
  8894. //
  8895. //
  8896. //
  8897. //
  8898. //
  8899. //
  8900. //
  8901. //
  8902. //
  8903. //
  8904. //
  8905. //
  8906. //
  8907. //
  8908. //
  8909. //
  8910. //
  8911. //
  8912. //
  8913. //
  8914. //
  8915. //
  8916. //
  8917. //
  8918. //
  8919. //
  8920. //
  8921. //
  8922. //
  8923. //
  8924. //
  8925. //
  8926. //
  8927. //
  8928. //
  8929. //
  8930. //
  8931. //
  8932. //
  8933. //
  8934. //
  8935. //
  8936. //
  8937. //
  8938. //
  8939. //
  8940. //
  8941. //
  8942. //
  8943. //
  8944. //
  8945. /* harmony default export */ __webpack_exports__["default"] = ({
  8946. name: 'BNumberinput',
  8947. components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_2__input_Input___default.a), _components),
  8948. mixins: [__WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__["a" /* default */]],
  8949. inheritAttrs: false,
  8950. props: {
  8951. value: Number,
  8952. min: [Number, String],
  8953. max: [Number, String],
  8954. step: [Number, String],
  8955. disabled: Boolean,
  8956. type: {
  8957. type: String,
  8958. default: 'is-primary'
  8959. },
  8960. editable: {
  8961. type: Boolean,
  8962. default: true
  8963. },
  8964. controlsRounded: {
  8965. type: Boolean,
  8966. default: false
  8967. },
  8968. controlsPosition: String
  8969. },
  8970. data: function data() {
  8971. return {
  8972. newValue: !isNaN(this.value) ? this.value : parseFloat(this.min) || 0,
  8973. newStep: this.step || 1,
  8974. _elementRef: 'input'
  8975. };
  8976. },
  8977. computed: {
  8978. computedValue: {
  8979. get: function get() {
  8980. return this.newValue;
  8981. },
  8982. set: function set(value) {
  8983. var newValue = value;
  8984. if (value === '') {
  8985. newValue = parseFloat(this.min) || 0;
  8986. }
  8987. this.newValue = newValue;
  8988. this.$emit('input', newValue);
  8989. !this.isValid && this.$refs.input.checkHtml5Validity();
  8990. }
  8991. },
  8992. fieldClasses: function fieldClasses() {
  8993. return [{ 'has-addons': this.controlsPosition === 'compact' }, { 'is-grouped': this.controlsPosition !== 'compact' }];
  8994. },
  8995. buttonClasses: function buttonClasses() {
  8996. return [this.type, this.size, { 'is-rounded': this.controlsRounded }];
  8997. },
  8998. minNumber: function minNumber() {
  8999. return typeof this.min === 'string' ? parseFloat(this.min) : this.min;
  9000. },
  9001. maxNumber: function maxNumber() {
  9002. return typeof this.max === 'string' ? parseFloat(this.max) : this.max;
  9003. },
  9004. stepNumber: function stepNumber() {
  9005. return typeof this.newStep === 'string' ? parseFloat(this.newStep) : this.newStep;
  9006. },
  9007. disabledMin: function disabledMin() {
  9008. return this.computedValue - this.stepNumber < this.minNumber;
  9009. },
  9010. disabledMax: function disabledMax() {
  9011. return this.computedValue + this.stepNumber > this.maxNumber;
  9012. },
  9013. stepDecimals: function stepDecimals() {
  9014. var step = this.stepNumber.toString();
  9015. var index = step.indexOf('.');
  9016. if (index >= 0) {
  9017. return step.substring(index + 1).length;
  9018. }
  9019. return 0;
  9020. }
  9021. },
  9022. watch: {
  9023. /**
  9024. * When v-model is changed:
  9025. * 1. Set internal value.
  9026. */
  9027. value: function value(_value) {
  9028. this.newValue = _value;
  9029. }
  9030. },
  9031. methods: {
  9032. decrement: function decrement() {
  9033. if (typeof this.minNumber === 'undefined' || this.computedValue - this.stepNumber >= this.minNumber) {
  9034. var value = this.computedValue - this.stepNumber;
  9035. this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
  9036. }
  9037. },
  9038. increment: function increment() {
  9039. if (typeof this.maxNumber === 'undefined' || this.computedValue + this.stepNumber <= this.maxNumber) {
  9040. var value = this.computedValue + this.stepNumber;
  9041. this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
  9042. }
  9043. },
  9044. onControlClick: function onControlClick(event, inc) {
  9045. // IE 11 -> filter click event
  9046. if (event.detail !== 0 || event.type === 'click') return;
  9047. if (inc) this.increment();else this.decrement();
  9048. },
  9049. onStartLongPress: function onStartLongPress(event, inc) {
  9050. var _this = this;
  9051. if (event.button !== 0 && event.type !== 'touchstart') return;
  9052. this._$intervalTime = new Date();
  9053. clearInterval(this._$intervalRef);
  9054. this._$intervalRef = setInterval(function () {
  9055. if (inc) _this.increment();else _this.decrement();
  9056. }, 250);
  9057. },
  9058. onStopLongPress: function onStopLongPress(inc) {
  9059. if (!this._$intervalRef) return;
  9060. var d = new Date();
  9061. if (d - this._$intervalTime < 250) {
  9062. if (inc) this.increment();else this.decrement();
  9063. }
  9064. clearInterval(this._$intervalRef);
  9065. this._$intervalRef = null;
  9066. }
  9067. }
  9068. });
  9069. /***/ }),
  9070. /* 168 */
  9071. /***/ (function(module, exports) {
  9072. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  9073. return _c('div', {
  9074. staticClass: "b-numberinput field",
  9075. class: _vm.fieldClasses
  9076. }, [_c('p', {
  9077. staticClass: "control",
  9078. on: {
  9079. "mouseup": function($event) {
  9080. _vm.onStopLongPress(false)
  9081. },
  9082. "mouseleave": function($event) {
  9083. _vm.onStopLongPress(false)
  9084. },
  9085. "touchend": function($event) {
  9086. _vm.onStopLongPress(false)
  9087. },
  9088. "touchcancel": function($event) {
  9089. _vm.onStopLongPress(false)
  9090. }
  9091. }
  9092. }, [_c('button', {
  9093. staticClass: "button",
  9094. class: _vm.buttonClasses,
  9095. attrs: {
  9096. "type": "button",
  9097. "disabled": _vm.disabled || _vm.disabledMin
  9098. },
  9099. on: {
  9100. "mousedown": function($event) {
  9101. _vm.onStartLongPress($event, false)
  9102. },
  9103. "touchstart": function($event) {
  9104. $event.preventDefault();
  9105. _vm.onStartLongPress($event, false)
  9106. },
  9107. "click": function($event) {
  9108. _vm.onControlClick($event, false)
  9109. }
  9110. }
  9111. }, [_c('b-icon', {
  9112. attrs: {
  9113. "icon": "minus",
  9114. "pack": _vm.iconPack,
  9115. "size": _vm.iconSize
  9116. }
  9117. })], 1)]), _vm._v(" "), _c('b-input', _vm._b({
  9118. ref: "input",
  9119. attrs: {
  9120. "type": "number",
  9121. "step": _vm.newStep,
  9122. "max": _vm.max,
  9123. "min": _vm.min,
  9124. "size": _vm.size,
  9125. "disabled": _vm.disabled,
  9126. "readonly": !_vm.editable,
  9127. "loading": _vm.loading,
  9128. "rounded": _vm.rounded,
  9129. "icon": _vm.icon,
  9130. "icon-pack": _vm.iconPack,
  9131. "autocomplete": _vm.autocomplete,
  9132. "expanded": _vm.expanded,
  9133. "use-html5-validation": _vm.useHtml5Validation
  9134. },
  9135. on: {
  9136. "focus": function($event) {
  9137. _vm.$emit('focus', $event)
  9138. },
  9139. "blur": function($event) {
  9140. _vm.$emit('blur', $event)
  9141. }
  9142. },
  9143. model: {
  9144. value: (_vm.computedValue),
  9145. callback: function($$v) {
  9146. _vm.computedValue = _vm._n($$v)
  9147. },
  9148. expression: "computedValue"
  9149. }
  9150. }, 'b-input', _vm.$attrs, false)), _vm._v(" "), _c('p', {
  9151. staticClass: "control",
  9152. on: {
  9153. "mouseup": function($event) {
  9154. _vm.onStopLongPress(true)
  9155. },
  9156. "mouseleave": function($event) {
  9157. _vm.onStopLongPress(true)
  9158. },
  9159. "touchend": function($event) {
  9160. _vm.onStopLongPress(true)
  9161. },
  9162. "touchcancel": function($event) {
  9163. _vm.onStopLongPress(true)
  9164. }
  9165. }
  9166. }, [_c('button', {
  9167. staticClass: "button",
  9168. class: _vm.buttonClasses,
  9169. attrs: {
  9170. "type": "button",
  9171. "disabled": _vm.disabled || _vm.disabledMax
  9172. },
  9173. on: {
  9174. "mousedown": function($event) {
  9175. _vm.onStartLongPress($event, true)
  9176. },
  9177. "touchstart": function($event) {
  9178. $event.preventDefault();
  9179. _vm.onStartLongPress($event, true)
  9180. },
  9181. "click": function($event) {
  9182. _vm.onControlClick($event, true)
  9183. }
  9184. }
  9185. }, [_c('b-icon', {
  9186. attrs: {
  9187. "icon": "plus",
  9188. "pack": _vm.iconPack,
  9189. "size": _vm.iconSize
  9190. }
  9191. })], 1)])], 1)
  9192. },staticRenderFns: []}
  9193. /***/ }),
  9194. /* 169 */
  9195. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9196. "use strict";
  9197. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9198. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  9199. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  9200. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
  9201. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
  9202. //
  9203. //
  9204. //
  9205. //
  9206. //
  9207. //
  9208. //
  9209. //
  9210. //
  9211. //
  9212. //
  9213. //
  9214. //
  9215. //
  9216. //
  9217. //
  9218. //
  9219. //
  9220. //
  9221. //
  9222. //
  9223. //
  9224. //
  9225. //
  9226. //
  9227. //
  9228. //
  9229. //
  9230. //
  9231. //
  9232. //
  9233. //
  9234. //
  9235. //
  9236. //
  9237. //
  9238. //
  9239. //
  9240. //
  9241. //
  9242. //
  9243. //
  9244. //
  9245. //
  9246. //
  9247. //
  9248. //
  9249. //
  9250. //
  9251. //
  9252. //
  9253. //
  9254. //
  9255. //
  9256. //
  9257. //
  9258. //
  9259. //
  9260. //
  9261. //
  9262. //
  9263. //
  9264. //
  9265. //
  9266. //
  9267. //
  9268. //
  9269. //
  9270. //
  9271. //
  9272. //
  9273. //
  9274. //
  9275. //
  9276. //
  9277. //
  9278. //
  9279. //
  9280. //
  9281. //
  9282. /* harmony default export */ __webpack_exports__["default"] = ({
  9283. name: 'BPagination',
  9284. components: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()({}, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a),
  9285. props: {
  9286. total: [Number, String],
  9287. perPage: {
  9288. type: [Number, String],
  9289. default: 20
  9290. },
  9291. current: {
  9292. type: [Number, String],
  9293. default: 1
  9294. },
  9295. size: String,
  9296. simple: Boolean,
  9297. rounded: Boolean,
  9298. order: String,
  9299. iconPack: String,
  9300. ariaNextLabel: String,
  9301. ariaPreviousLabel: String,
  9302. ariaPageLabel: String,
  9303. ariaCurrentLabel: String
  9304. },
  9305. computed: {
  9306. rootClasses: function rootClasses() {
  9307. return [this.order, this.size, {
  9308. 'is-simple': this.simple,
  9309. 'is-rounded': this.rounded
  9310. }];
  9311. },
  9312. /**
  9313. * Total page size (count).
  9314. */
  9315. pageCount: function pageCount() {
  9316. return Math.ceil(this.total / this.perPage);
  9317. },
  9318. /**
  9319. * First item of the page (count).
  9320. */
  9321. firstItem: function firstItem() {
  9322. var firstItem = this.current * this.perPage - this.perPage + 1;
  9323. return firstItem >= 0 ? firstItem : 0;
  9324. },
  9325. /**
  9326. * Check if previous button is available.
  9327. */
  9328. hasPrev: function hasPrev() {
  9329. return this.current > 1;
  9330. },
  9331. /**
  9332. * Check if first page button should be visible.
  9333. */
  9334. hasFirst: function hasFirst() {
  9335. return this.current >= 3;
  9336. },
  9337. /**
  9338. * Check if first ellipsis should be visible.
  9339. */
  9340. hasFirstEllipsis: function hasFirstEllipsis() {
  9341. return this.current >= 4;
  9342. },
  9343. /**
  9344. * Check if last page button should be visible.
  9345. */
  9346. hasLast: function hasLast() {
  9347. return this.current <= this.pageCount - 2;
  9348. },
  9349. /**
  9350. * Check if last ellipsis should be visible.
  9351. */
  9352. hasLastEllipsis: function hasLastEllipsis() {
  9353. return this.current < this.pageCount - 2 && this.current <= this.pageCount - 3;
  9354. },
  9355. /**
  9356. * Check if next button is available.
  9357. */
  9358. hasNext: function hasNext() {
  9359. return this.current < this.pageCount;
  9360. },
  9361. /**
  9362. * Get near pages, 1 before and 1 after the current.
  9363. * Also add the click event to the array.
  9364. */
  9365. pagesInRange: function pagesInRange() {
  9366. var _this = this;
  9367. if (this.simple) return;
  9368. var left = Math.max(1, this.current - 1);
  9369. var right = Math.min(this.current + 1, this.pageCount);
  9370. var pages = [];
  9371. var _loop = function _loop(i) {
  9372. pages.push({
  9373. number: i,
  9374. isCurrent: _this.current === i,
  9375. click: function click(event) {
  9376. if (_this.current === i) return;
  9377. _this.$emit('change', i);
  9378. _this.$emit('update:current', i);
  9379. // Set focus on element to keep tab order
  9380. _this.$nextTick(function () {
  9381. return event.target.focus();
  9382. });
  9383. }
  9384. });
  9385. };
  9386. for (var i = left; i <= right; i++) {
  9387. _loop(i);
  9388. }
  9389. return pages;
  9390. }
  9391. },
  9392. watch: {
  9393. /**
  9394. * If current page is trying to be greater than page count, set to last.
  9395. */
  9396. pageCount: function pageCount(value) {
  9397. if (this.current > value) this.last();
  9398. }
  9399. },
  9400. methods: {
  9401. /**
  9402. * Previous button click listener.
  9403. */
  9404. prev: function prev() {
  9405. if (!this.hasPrev) return;
  9406. this.$emit('change', this.current - 1);
  9407. this.$emit('update:current', this.current - 1);
  9408. },
  9409. /**
  9410. * First button click listener.
  9411. */
  9412. first: function first() {
  9413. this.$emit('change', 1);
  9414. this.$emit('update:current', 1);
  9415. },
  9416. /**
  9417. * Last button click listener.
  9418. */
  9419. last: function last() {
  9420. this.$emit('change', this.pageCount);
  9421. this.$emit('update:current', this.pageCount);
  9422. },
  9423. /**
  9424. * Next button click listener.
  9425. */
  9426. next: function next() {
  9427. if (!this.hasNext) return;
  9428. this.$emit('change', this.current + 1);
  9429. this.$emit('update:current', this.current + 1);
  9430. },
  9431. /**
  9432. * Get text for aria-label according to page number.
  9433. */
  9434. getAriaPageLabel: function getAriaPageLabel(pageNumber, isCurrent) {
  9435. if (this.ariaPageLabel && (!isCurrent || !this.ariaCurrentLabel)) {
  9436. return this.ariaPageLabel + ' ' + pageNumber + '.';
  9437. } else if (this.ariaPageLabel && isCurrent && this.ariaCurrentLabel) {
  9438. return this.ariaCurrentLabel + ', ' + this.ariaPageLabel + ' ' + pageNumber + '.';
  9439. }
  9440. return null;
  9441. }
  9442. }
  9443. });
  9444. /***/ }),
  9445. /* 170 */
  9446. /***/ (function(module, exports) {
  9447. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  9448. return _c('nav', {
  9449. staticClass: "pagination",
  9450. class: _vm.rootClasses
  9451. }, [_c('a', {
  9452. staticClass: "pagination-previous",
  9453. attrs: {
  9454. "role": "button",
  9455. "href": "#",
  9456. "disabled": !_vm.hasPrev,
  9457. "aria-label": _vm.ariaPreviousLabel
  9458. },
  9459. on: {
  9460. "click": function($event) {
  9461. $event.preventDefault();
  9462. _vm.prev($event)
  9463. }
  9464. }
  9465. }, [_c('b-icon', {
  9466. attrs: {
  9467. "icon": "chevron-left",
  9468. "pack": _vm.iconPack,
  9469. "both": "",
  9470. "aria-hidden": "true"
  9471. }
  9472. })], 1), _vm._v(" "), _c('a', {
  9473. staticClass: "pagination-next",
  9474. attrs: {
  9475. "role": "button",
  9476. "href": "#",
  9477. "disabled": !_vm.hasNext,
  9478. "aria-label": _vm.ariaNextLabel
  9479. },
  9480. on: {
  9481. "click": function($event) {
  9482. $event.preventDefault();
  9483. _vm.next($event)
  9484. }
  9485. }
  9486. }, [_c('b-icon', {
  9487. attrs: {
  9488. "icon": "chevron-right",
  9489. "pack": _vm.iconPack,
  9490. "both": "",
  9491. "aria-hidden": "true"
  9492. }
  9493. })], 1), _vm._v(" "), (!_vm.simple) ? _c('ul', {
  9494. staticClass: "pagination-list"
  9495. }, [(_vm.hasFirst) ? _c('li', [_c('a', {
  9496. staticClass: "pagination-link",
  9497. attrs: {
  9498. "role": "button",
  9499. "href": "#",
  9500. "aria-label": _vm.getAriaPageLabel(1, false)
  9501. },
  9502. on: {
  9503. "click": function($event) {
  9504. $event.preventDefault();
  9505. _vm.first($event)
  9506. }
  9507. }
  9508. }, [_vm._v("\n 1\n ")])]) : _vm._e(), _vm._v(" "), (_vm.hasFirstEllipsis) ? _c('li', [_c('span', {
  9509. staticClass: "pagination-ellipsis"
  9510. }, [_vm._v("…")])]) : _vm._e(), _vm._v(" "), _vm._l((_vm.pagesInRange), function(page) {
  9511. return _c('li', {
  9512. key: page.number
  9513. }, [_c('a', {
  9514. staticClass: "pagination-link",
  9515. class: {
  9516. 'is-current': page.isCurrent
  9517. },
  9518. attrs: {
  9519. "role": "button",
  9520. "href": "#",
  9521. "aria-label": _vm.getAriaPageLabel(page.number, page.isCurrent),
  9522. "aria-current": page.isCurrent
  9523. },
  9524. on: {
  9525. "click": function($event) {
  9526. $event.preventDefault();
  9527. page.click($event)
  9528. }
  9529. }
  9530. }, [_vm._v("\n " + _vm._s(page.number) + "\n ")])])
  9531. }), _vm._v(" "), (_vm.hasLastEllipsis) ? _c('li', [_c('span', {
  9532. staticClass: "pagination-ellipsis"
  9533. }, [_vm._v("…")])]) : _vm._e(), _vm._v(" "), (_vm.hasLast) ? _c('li', [_c('a', {
  9534. staticClass: "pagination-link",
  9535. attrs: {
  9536. "role": "button",
  9537. "href": "#",
  9538. "aria-label": _vm.getAriaPageLabel(_vm.pageCount, false)
  9539. },
  9540. on: {
  9541. "click": function($event) {
  9542. $event.preventDefault();
  9543. _vm.last($event)
  9544. }
  9545. }
  9546. }, [_vm._v("\n " + _vm._s(_vm.pageCount) + "\n ")])]) : _vm._e()], 2) : _vm._e(), _vm._v(" "), (_vm.simple) ? _c('small', {
  9547. staticClass: "info"
  9548. }, [(_vm.perPage == 1) ? [_vm._v("\n " + _vm._s(_vm.firstItem) + " / " + _vm._s(_vm.total) + "\n ")] : [_vm._v("\n " + _vm._s(_vm.firstItem) + "-" + _vm._s(Math.min(_vm.current * _vm.perPage, _vm.total)) + " / " + _vm._s(_vm.total) + "\n ")]], 2) : _vm._e()])
  9549. },staticRenderFns: []}
  9550. /***/ }),
  9551. /* 171 */
  9552. /***/ (function(module, exports, __webpack_require__) {
  9553. var Component = __webpack_require__(0)(
  9554. /* script */
  9555. __webpack_require__(172),
  9556. /* template */
  9557. __webpack_require__(173),
  9558. /* styles */
  9559. null,
  9560. /* scopeId */
  9561. null,
  9562. /* moduleIdentifier (server only) */
  9563. null
  9564. )
  9565. module.exports = Component.exports
  9566. /***/ }),
  9567. /* 172 */
  9568. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9569. "use strict";
  9570. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9571. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
  9572. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
  9573. //
  9574. //
  9575. //
  9576. //
  9577. //
  9578. //
  9579. //
  9580. //
  9581. //
  9582. //
  9583. //
  9584. //
  9585. //
  9586. //
  9587. //
  9588. //
  9589. //
  9590. //
  9591. //
  9592. //
  9593. //
  9594. //
  9595. /* harmony default export */ __webpack_exports__["default"] = ({
  9596. name: 'BRadio',
  9597. props: {
  9598. value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  9599. nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  9600. type: String,
  9601. disabled: Boolean,
  9602. required: Boolean,
  9603. name: String,
  9604. size: String
  9605. },
  9606. data: function data() {
  9607. return {
  9608. newValue: this.value
  9609. };
  9610. },
  9611. computed: {
  9612. computedValue: {
  9613. get: function get() {
  9614. return this.newValue;
  9615. },
  9616. set: function set(value) {
  9617. this.newValue = value;
  9618. this.$emit('input', value);
  9619. }
  9620. }
  9621. },
  9622. watch: {
  9623. /**
  9624. * When v-model change, set internal value.
  9625. */
  9626. value: function value(_value) {
  9627. this.newValue = _value;
  9628. }
  9629. }
  9630. });
  9631. /***/ }),
  9632. /* 173 */
  9633. /***/ (function(module, exports) {
  9634. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  9635. return _c('label', {
  9636. ref: "label",
  9637. staticClass: "b-radio radio",
  9638. class: [_vm.size, {
  9639. 'is-disabled': _vm.disabled
  9640. }],
  9641. attrs: {
  9642. "disabled": _vm.disabled,
  9643. "tabindex": _vm.disabled ? false : 0
  9644. },
  9645. on: {
  9646. "keydown": function($event) {
  9647. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
  9648. $event.preventDefault();
  9649. _vm.$refs.label.click()
  9650. }
  9651. }
  9652. }, [_c('input', {
  9653. directives: [{
  9654. name: "model",
  9655. rawName: "v-model",
  9656. value: (_vm.computedValue),
  9657. expression: "computedValue"
  9658. }],
  9659. attrs: {
  9660. "tabindex": "-1",
  9661. "type": "radio",
  9662. "disabled": _vm.disabled,
  9663. "required": _vm.required,
  9664. "name": _vm.name
  9665. },
  9666. domProps: {
  9667. "value": _vm.nativeValue,
  9668. "checked": _vm._q(_vm.computedValue, _vm.nativeValue)
  9669. },
  9670. on: {
  9671. "click": function($event) {
  9672. $event.stopPropagation();
  9673. },
  9674. "change": function($event) {
  9675. _vm.computedValue = _vm.nativeValue
  9676. }
  9677. }
  9678. }), _vm._v(" "), _c('span', {
  9679. staticClass: "check",
  9680. class: _vm.type
  9681. }), _vm._v(" "), _c('span', {
  9682. staticClass: "control-label"
  9683. }, [_vm._t("default")], 2)])
  9684. },staticRenderFns: []}
  9685. /***/ }),
  9686. /* 174 */
  9687. /***/ (function(module, exports, __webpack_require__) {
  9688. var Component = __webpack_require__(0)(
  9689. /* script */
  9690. __webpack_require__(175),
  9691. /* template */
  9692. __webpack_require__(176),
  9693. /* styles */
  9694. null,
  9695. /* scopeId */
  9696. null,
  9697. /* moduleIdentifier (server only) */
  9698. null
  9699. )
  9700. module.exports = Component.exports
  9701. /***/ }),
  9702. /* 175 */
  9703. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9704. "use strict";
  9705. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9706. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
  9707. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
  9708. //
  9709. //
  9710. //
  9711. //
  9712. //
  9713. //
  9714. //
  9715. //
  9716. //
  9717. //
  9718. //
  9719. //
  9720. //
  9721. //
  9722. //
  9723. //
  9724. //
  9725. //
  9726. //
  9727. //
  9728. //
  9729. //
  9730. //
  9731. /* harmony default export */ __webpack_exports__["default"] = ({
  9732. name: 'BRadioButton',
  9733. props: {
  9734. value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  9735. nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  9736. type: {
  9737. type: String,
  9738. default: 'is-primary'
  9739. },
  9740. disabled: Boolean,
  9741. required: Boolean,
  9742. name: String,
  9743. size: String
  9744. },
  9745. data: function data() {
  9746. return {
  9747. newValue: this.value
  9748. };
  9749. },
  9750. computed: {
  9751. computedValue: {
  9752. get: function get() {
  9753. return this.newValue;
  9754. },
  9755. set: function set(value) {
  9756. this.newValue = value;
  9757. this.$emit('input', value);
  9758. }
  9759. }
  9760. },
  9761. watch: {
  9762. /**
  9763. * When v-model change, set internal value.
  9764. */
  9765. value: function value(_value) {
  9766. this.newValue = _value;
  9767. }
  9768. }
  9769. });
  9770. /***/ }),
  9771. /* 176 */
  9772. /***/ (function(module, exports) {
  9773. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  9774. return _c('div', {
  9775. staticClass: "control"
  9776. }, [_c('label', {
  9777. ref: "label",
  9778. staticClass: "b-radio radio button",
  9779. class: [_vm.newValue === _vm.nativeValue ? _vm.type : null, _vm.size],
  9780. attrs: {
  9781. "disabled": _vm.disabled,
  9782. "tabindex": _vm.disabled ? false : 0
  9783. },
  9784. on: {
  9785. "keydown": function($event) {
  9786. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
  9787. $event.preventDefault();
  9788. _vm.$refs.label.click()
  9789. }
  9790. }
  9791. }, [_vm._t("default"), _vm._v(" "), _c('input', {
  9792. directives: [{
  9793. name: "model",
  9794. rawName: "v-model",
  9795. value: (_vm.computedValue),
  9796. expression: "computedValue"
  9797. }],
  9798. attrs: {
  9799. "tabindex": "-1",
  9800. "type": "radio",
  9801. "disabled": _vm.disabled,
  9802. "required": _vm.required,
  9803. "name": _vm.name
  9804. },
  9805. domProps: {
  9806. "value": _vm.nativeValue,
  9807. "checked": _vm._q(_vm.computedValue, _vm.nativeValue)
  9808. },
  9809. on: {
  9810. "click": function($event) {
  9811. $event.stopPropagation();
  9812. },
  9813. "change": function($event) {
  9814. _vm.computedValue = _vm.nativeValue
  9815. }
  9816. }
  9817. })], 2)])
  9818. },staticRenderFns: []}
  9819. /***/ }),
  9820. /* 177 */
  9821. /***/ (function(module, exports, __webpack_require__) {
  9822. var Component = __webpack_require__(0)(
  9823. /* script */
  9824. __webpack_require__(178),
  9825. /* template */
  9826. __webpack_require__(179),
  9827. /* styles */
  9828. null,
  9829. /* scopeId */
  9830. null,
  9831. /* moduleIdentifier (server only) */
  9832. null
  9833. )
  9834. module.exports = Component.exports
  9835. /***/ }),
  9836. /* 178 */
  9837. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9838. "use strict";
  9839. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9840. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
  9841. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__ = __webpack_require__(45);
  9842. //
  9843. //
  9844. //
  9845. //
  9846. //
  9847. //
  9848. //
  9849. //
  9850. //
  9851. //
  9852. //
  9853. //
  9854. //
  9855. //
  9856. //
  9857. //
  9858. //
  9859. //
  9860. //
  9861. //
  9862. /* harmony default export */ __webpack_exports__["default"] = ({
  9863. name: 'BSnackbar',
  9864. mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__["a" /* default */]],
  9865. props: {
  9866. actionText: {
  9867. type: String,
  9868. default: 'OK'
  9869. },
  9870. onAction: {
  9871. type: Function,
  9872. default: function _default() {}
  9873. },
  9874. indefinite: {
  9875. type: Boolean,
  9876. default: false
  9877. }
  9878. },
  9879. data: function data() {
  9880. return {
  9881. newDuration: this.duration || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultSnackbarDuration
  9882. };
  9883. },
  9884. methods: {
  9885. /**
  9886. * Click listener.
  9887. * Call action prop before closing (from Mixin).
  9888. */
  9889. action: function action() {
  9890. this.onAction();
  9891. this.close();
  9892. }
  9893. }
  9894. });
  9895. /***/ }),
  9896. /* 179 */
  9897. /***/ (function(module, exports) {
  9898. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  9899. return _c('transition', {
  9900. attrs: {
  9901. "enter-active-class": _vm.transition.enter,
  9902. "leave-active-class": _vm.transition.leave
  9903. }
  9904. }, [_c('div', {
  9905. directives: [{
  9906. name: "show",
  9907. rawName: "v-show",
  9908. value: (_vm.isActive),
  9909. expression: "isActive"
  9910. }],
  9911. staticClass: "snackbar",
  9912. class: [_vm.type, _vm.position]
  9913. }, [_c('div', {
  9914. staticClass: "text",
  9915. domProps: {
  9916. "innerHTML": _vm._s(_vm.message)
  9917. }
  9918. }), _vm._v(" "), (_vm.actionText) ? _c('div', {
  9919. staticClass: "action",
  9920. class: _vm.type,
  9921. on: {
  9922. "click": _vm.action
  9923. }
  9924. }, [_c('button', {
  9925. staticClass: "button"
  9926. }, [_vm._v(_vm._s(_vm.actionText))])]) : _vm._e()])])
  9927. },staticRenderFns: []}
  9928. /***/ }),
  9929. /* 180 */
  9930. /***/ (function(module, exports, __webpack_require__) {
  9931. var Component = __webpack_require__(0)(
  9932. /* script */
  9933. __webpack_require__(181),
  9934. /* template */
  9935. __webpack_require__(182),
  9936. /* styles */
  9937. null,
  9938. /* scopeId */
  9939. null,
  9940. /* moduleIdentifier (server only) */
  9941. null
  9942. )
  9943. module.exports = Component.exports
  9944. /***/ }),
  9945. /* 181 */
  9946. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9947. "use strict";
  9948. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9949. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  9950. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  9951. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
  9952. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
  9953. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_SlotComponent__ = __webpack_require__(67);
  9954. var _components;
  9955. //
  9956. //
  9957. //
  9958. //
  9959. //
  9960. //
  9961. //
  9962. //
  9963. //
  9964. //
  9965. //
  9966. //
  9967. //
  9968. //
  9969. //
  9970. //
  9971. //
  9972. //
  9973. //
  9974. //
  9975. //
  9976. //
  9977. //
  9978. //
  9979. //
  9980. //
  9981. //
  9982. //
  9983. //
  9984. //
  9985. //
  9986. //
  9987. //
  9988. //
  9989. //
  9990. //
  9991. //
  9992. //
  9993. //
  9994. //
  9995. //
  9996. //
  9997. //
  9998. //
  9999. //
  10000. //
  10001. //
  10002. //
  10003. //
  10004. //
  10005. //
  10006. //
  10007. //
  10008. //
  10009. //
  10010. //
  10011. //
  10012. //
  10013. //
  10014. //
  10015. //
  10016. //
  10017. //
  10018. //
  10019. //
  10020. /* harmony default export */ __webpack_exports__["default"] = ({
  10021. name: 'BSteps',
  10022. components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__utils_SlotComponent__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_2__utils_SlotComponent__["a" /* default */]), _components),
  10023. props: {
  10024. value: Number,
  10025. type: String | Object,
  10026. size: String,
  10027. animated: {
  10028. type: Boolean,
  10029. default: true
  10030. },
  10031. destroyOnHide: {
  10032. type: Boolean,
  10033. default: false
  10034. },
  10035. iconPack: String,
  10036. hasNavigation: {
  10037. type: Boolean,
  10038. default: true
  10039. },
  10040. ariaNextLabel: String,
  10041. ariaPreviousLabel: String
  10042. },
  10043. data: function data() {
  10044. return {
  10045. activeStep: this.value || 0,
  10046. stepItems: [],
  10047. contentHeight: 0,
  10048. isTransitioning: false,
  10049. _isSteps: true // Used internally by StepItem
  10050. };
  10051. },
  10052. computed: {
  10053. mainClasses: function mainClasses() {
  10054. return [this.type, this.size];
  10055. },
  10056. reversedStepItems: function reversedStepItems() {
  10057. return this.stepItems.slice().reverse();
  10058. },
  10059. /**
  10060. * Check the first visible step index.
  10061. */
  10062. firstVisibleStepIndex: function firstVisibleStepIndex() {
  10063. return this.stepItems.findIndex(function (step, idx) {
  10064. return step.visible;
  10065. });
  10066. },
  10067. /**
  10068. * Check if previous button is available.
  10069. */
  10070. hasPrev: function hasPrev() {
  10071. return this.firstVisibleStepIndex >= 0 && this.activeStep > this.firstVisibleStepIndex;
  10072. },
  10073. /**
  10074. * Check the last visible step index.
  10075. */
  10076. lastVisibleStepIndex: function lastVisibleStepIndex() {
  10077. var idx = this.reversedStepItems.findIndex(function (step, idx) {
  10078. return step.visible;
  10079. });
  10080. if (idx >= 0) {
  10081. return this.stepItems.length - 1 - idx;
  10082. }
  10083. return idx;
  10084. },
  10085. /**
  10086. * Check if next button is available.
  10087. */
  10088. hasNext: function hasNext() {
  10089. return this.lastVisibleStepIndex >= 0 && this.activeStep < this.lastVisibleStepIndex;
  10090. }
  10091. },
  10092. watch: {
  10093. /**
  10094. * When v-model is changed set the new active step.
  10095. */
  10096. value: function value(_value) {
  10097. this.changeStep(_value);
  10098. },
  10099. /**
  10100. * When step-items are updated, set active one.
  10101. */
  10102. stepItems: function stepItems() {
  10103. if (this.activeStep < this.stepItems.length) {
  10104. this.stepItems[this.activeStep].isActive = true;
  10105. }
  10106. }
  10107. },
  10108. methods: {
  10109. /**
  10110. * Change the active step and emit change event.
  10111. */
  10112. changeStep: function changeStep(newIndex) {
  10113. if (this.activeStep === newIndex) return;
  10114. if (this.activeStep < this.stepItems.length) {
  10115. this.stepItems[this.activeStep].deactivate(this.activeStep, newIndex);
  10116. }
  10117. this.stepItems[newIndex].activate(this.activeStep, newIndex);
  10118. this.activeStep = newIndex;
  10119. this.$emit('change', newIndex);
  10120. },
  10121. /**
  10122. * Return if the step should be clickable or not.
  10123. */
  10124. isItemClickable: function isItemClickable(stepItem) {
  10125. if (stepItem.clickable === undefined) {
  10126. return stepItem.completed;
  10127. }
  10128. return stepItem.clickable;
  10129. },
  10130. /**
  10131. * Step click listener, emit input event and change active step.
  10132. */
  10133. stepClick: function stepClick(value) {
  10134. this.$emit('input', value);
  10135. this.changeStep(value);
  10136. },
  10137. /**
  10138. * Previous button click listener.
  10139. */
  10140. prev: function prev() {
  10141. var _this = this;
  10142. if (!this.hasPrev) return;
  10143. var prevItemIdx = this.reversedStepItems.findIndex(function (step, idx) {
  10144. return _this.stepItems.length - 1 - idx < _this.activeStep && step.visible;
  10145. });
  10146. if (prevItemIdx >= 0) {
  10147. prevItemIdx = this.stepItems.length - 1 - prevItemIdx;
  10148. }
  10149. this.changeStep(prevItemIdx);
  10150. },
  10151. /**
  10152. * Previous button click listener.
  10153. */
  10154. next: function next() {
  10155. var _this2 = this;
  10156. if (!this.hasNext) return;
  10157. var nextItemIdx = this.stepItems.findIndex(function (step, idx) {
  10158. return idx > _this2.activeStep && step.visible;
  10159. });
  10160. this.changeStep(nextItemIdx);
  10161. }
  10162. },
  10163. mounted: function mounted() {
  10164. if (this.activeStep < this.stepItems.length) {
  10165. this.stepItems[this.activeStep].isActive = true;
  10166. }
  10167. }
  10168. });
  10169. /***/ }),
  10170. /* 182 */
  10171. /***/ (function(module, exports) {
  10172. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  10173. return _c('div', {
  10174. staticClass: "b-steps"
  10175. }, [_c('nav', {
  10176. staticClass: "steps",
  10177. class: _vm.mainClasses
  10178. }, [_c('ul', {
  10179. staticClass: "step-items"
  10180. }, _vm._l((_vm.stepItems), function(stepItem, index) {
  10181. return _c('li', {
  10182. directives: [{
  10183. name: "show",
  10184. rawName: "v-show",
  10185. value: (stepItem.visible),
  10186. expression: "stepItem.visible"
  10187. }],
  10188. key: index,
  10189. staticClass: "step-item",
  10190. class: [stepItem.type || _vm.type, {
  10191. 'is-active': _vm.activeStep === index,
  10192. 'is-completed': stepItem.completed || _vm.activeStep > index
  10193. }]
  10194. }, [_c('a', {
  10195. staticClass: "step-link",
  10196. class: {
  10197. 'is-clickable': _vm.isItemClickable(stepItem)
  10198. },
  10199. on: {
  10200. "click": function($event) {
  10201. stepItem.clickable && _vm.stepClick(index)
  10202. }
  10203. }
  10204. }, [_c('div', {
  10205. staticClass: "step-marker"
  10206. }, [(stepItem.icon) ? _c('b-icon', {
  10207. attrs: {
  10208. "icon": stepItem.icon,
  10209. "pack": stepItem.iconPack,
  10210. "size": _vm.size
  10211. }
  10212. }) : _vm._e()], 1), _vm._v(" "), _c('div', {
  10213. staticClass: "step-details"
  10214. }, [_c('span', {
  10215. staticClass: "step-title"
  10216. }, [_vm._v(_vm._s(stepItem.label))])])])])
  10217. }))]), _vm._v(" "), _c('section', {
  10218. staticClass: "step-content",
  10219. class: {
  10220. 'is-transitioning': _vm.isTransitioning
  10221. }
  10222. }, [_vm._t("default")], 2), _vm._v(" "), (_vm.hasNavigation) ? _c('nav', {
  10223. staticClass: "step-navigation"
  10224. }, [_c('a', {
  10225. staticClass: "pagination-previous",
  10226. attrs: {
  10227. "role": "button",
  10228. "href": "#",
  10229. "disabled": !_vm.hasPrev,
  10230. "aria-label": _vm.ariaPreviousLabel
  10231. },
  10232. on: {
  10233. "click": function($event) {
  10234. $event.preventDefault();
  10235. _vm.prev($event)
  10236. }
  10237. }
  10238. }, [_c('b-icon', {
  10239. attrs: {
  10240. "icon": "chevron-left",
  10241. "pack": _vm.iconPack,
  10242. "both": "",
  10243. "aria-hidden": "true"
  10244. }
  10245. })], 1), _vm._v(" "), _c('a', {
  10246. staticClass: "pagination-next",
  10247. attrs: {
  10248. "role": "button",
  10249. "href": "#",
  10250. "disabled": !_vm.hasNext,
  10251. "aria-label": _vm.ariaNextLabel
  10252. },
  10253. on: {
  10254. "click": function($event) {
  10255. $event.preventDefault();
  10256. _vm.next($event)
  10257. }
  10258. }
  10259. }, [_c('b-icon', {
  10260. attrs: {
  10261. "icon": "chevron-right",
  10262. "pack": _vm.iconPack,
  10263. "both": "",
  10264. "aria-hidden": "true"
  10265. }
  10266. })], 1)]) : _vm._e()])
  10267. },staticRenderFns: []}
  10268. /***/ }),
  10269. /* 183 */
  10270. /***/ (function(module, exports, __webpack_require__) {
  10271. var Component = __webpack_require__(0)(
  10272. /* script */
  10273. __webpack_require__(184),
  10274. /* template */
  10275. null,
  10276. /* styles */
  10277. null,
  10278. /* scopeId */
  10279. null,
  10280. /* moduleIdentifier (server only) */
  10281. null
  10282. )
  10283. module.exports = Component.exports
  10284. /***/ }),
  10285. /* 184 */
  10286. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10287. "use strict";
  10288. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  10289. /* harmony default export */ __webpack_exports__["default"] = ({
  10290. name: 'BStepItem',
  10291. props: {
  10292. label: String,
  10293. type: String | Object,
  10294. icon: String,
  10295. iconPack: String,
  10296. clickable: Boolean,
  10297. completed: {
  10298. type: Boolean,
  10299. default: false
  10300. },
  10301. visible: {
  10302. type: Boolean,
  10303. default: true
  10304. }
  10305. },
  10306. data: function data() {
  10307. return {
  10308. isActive: false,
  10309. transitionName: null
  10310. };
  10311. },
  10312. methods: {
  10313. /**
  10314. * Activate step, alter animation name based on the index.
  10315. */
  10316. activate: function activate(oldIndex, index) {
  10317. this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
  10318. this.isActive = true;
  10319. },
  10320. /**
  10321. * Deactivate step, alter animation name based on the index.
  10322. */
  10323. deactivate: function deactivate(oldIndex, index) {
  10324. this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
  10325. this.isActive = false;
  10326. }
  10327. },
  10328. created: function created() {
  10329. if (!this.$parent.$data._isSteps) {
  10330. this.$destroy();
  10331. throw new Error('You should wrap bStepItem on a bSteps');
  10332. }
  10333. this.$parent.stepItems.push(this);
  10334. },
  10335. beforeDestroy: function beforeDestroy() {
  10336. var index = this.$parent.stepItems.indexOf(this);
  10337. if (index >= 0) {
  10338. this.$parent.stepItems.splice(index, 1);
  10339. }
  10340. },
  10341. render: function render(createElement) {
  10342. var _this = this;
  10343. // if destroy apply v-if
  10344. if (this.$parent.destroyOnHide) {
  10345. if (!this.isActive || !this.visible) {
  10346. return;
  10347. }
  10348. }
  10349. var vnode = createElement('div', {
  10350. directives: [{
  10351. name: 'show',
  10352. value: this.isActive && this.visible
  10353. }],
  10354. attrs: { 'class': 'step-item' }
  10355. }, this.$slots.default);
  10356. // check animated prop
  10357. if (this.$parent.animated) {
  10358. return createElement('transition', {
  10359. props: {
  10360. 'name': this.transitionName
  10361. },
  10362. on: {
  10363. 'before-enter': function beforeEnter() {
  10364. _this.$parent.isTransitioning = true;
  10365. },
  10366. 'after-enter': function afterEnter() {
  10367. _this.$parent.isTransitioning = false;
  10368. }
  10369. }
  10370. }, [vnode]);
  10371. }
  10372. return vnode;
  10373. }
  10374. });
  10375. /***/ }),
  10376. /* 185 */
  10377. /***/ (function(module, exports, __webpack_require__) {
  10378. var Component = __webpack_require__(0)(
  10379. /* script */
  10380. __webpack_require__(186),
  10381. /* template */
  10382. __webpack_require__(187),
  10383. /* styles */
  10384. null,
  10385. /* scopeId */
  10386. null,
  10387. /* moduleIdentifier (server only) */
  10388. null
  10389. )
  10390. module.exports = Component.exports
  10391. /***/ }),
  10392. /* 186 */
  10393. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10394. "use strict";
  10395. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  10396. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
  10397. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
  10398. //
  10399. //
  10400. //
  10401. //
  10402. //
  10403. //
  10404. //
  10405. //
  10406. //
  10407. //
  10408. //
  10409. //
  10410. //
  10411. //
  10412. //
  10413. //
  10414. //
  10415. //
  10416. //
  10417. //
  10418. //
  10419. //
  10420. //
  10421. //
  10422. //
  10423. //
  10424. /* harmony default export */ __webpack_exports__["default"] = ({
  10425. name: 'BSwitch',
  10426. props: {
  10427. value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  10428. nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  10429. disabled: Boolean,
  10430. type: String,
  10431. name: String,
  10432. required: Boolean,
  10433. size: String,
  10434. trueValue: {
  10435. type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  10436. default: true
  10437. },
  10438. falseValue: {
  10439. type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  10440. default: false
  10441. }
  10442. },
  10443. data: function data() {
  10444. return {
  10445. newValue: this.value,
  10446. isMouseDown: false
  10447. };
  10448. },
  10449. computed: {
  10450. computedValue: {
  10451. get: function get() {
  10452. return this.newValue;
  10453. },
  10454. set: function set(value) {
  10455. this.newValue = value;
  10456. this.$emit('input', value);
  10457. }
  10458. }
  10459. },
  10460. watch: {
  10461. /**
  10462. * When v-model change, set internal value.
  10463. */
  10464. value: function value(_value) {
  10465. this.newValue = _value;
  10466. }
  10467. }
  10468. });
  10469. /***/ }),
  10470. /* 187 */
  10471. /***/ (function(module, exports) {
  10472. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  10473. return _c('label', {
  10474. ref: "label",
  10475. staticClass: "switch",
  10476. class: [_vm.size, {
  10477. 'is-disabled': _vm.disabled
  10478. }],
  10479. attrs: {
  10480. "disabled": _vm.disabled
  10481. },
  10482. on: {
  10483. "keydown": function($event) {
  10484. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  10485. $event.preventDefault();
  10486. _vm.$refs.label.click()
  10487. },
  10488. "mousedown": function($event) {
  10489. _vm.isMouseDown = true
  10490. },
  10491. "mouseup": function($event) {
  10492. _vm.isMouseDown = false
  10493. },
  10494. "mouseout": function($event) {
  10495. _vm.isMouseDown = false
  10496. },
  10497. "blur": function($event) {
  10498. _vm.isMouseDown = false
  10499. }
  10500. }
  10501. }, [_c('input', {
  10502. directives: [{
  10503. name: "model",
  10504. rawName: "v-model",
  10505. value: (_vm.computedValue),
  10506. expression: "computedValue"
  10507. }],
  10508. attrs: {
  10509. "type": "checkbox",
  10510. "disabled": _vm.disabled,
  10511. "name": _vm.name,
  10512. "required": _vm.required,
  10513. "true-value": _vm.trueValue,
  10514. "false-value": _vm.falseValue
  10515. },
  10516. domProps: {
  10517. "value": _vm.nativeValue,
  10518. "checked": Array.isArray(_vm.computedValue) ? _vm._i(_vm.computedValue, _vm.nativeValue) > -1 : _vm._q(_vm.computedValue, _vm.trueValue)
  10519. },
  10520. on: {
  10521. "click": function($event) {
  10522. $event.stopPropagation();
  10523. },
  10524. "change": function($event) {
  10525. var $$a = _vm.computedValue,
  10526. $$el = $event.target,
  10527. $$c = $$el.checked ? (_vm.trueValue) : (_vm.falseValue);
  10528. if (Array.isArray($$a)) {
  10529. var $$v = _vm.nativeValue,
  10530. $$i = _vm._i($$a, $$v);
  10531. if ($$el.checked) {
  10532. $$i < 0 && (_vm.computedValue = $$a.concat([$$v]))
  10533. } else {
  10534. $$i > -1 && (_vm.computedValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
  10535. }
  10536. } else {
  10537. _vm.computedValue = $$c
  10538. }
  10539. }
  10540. }
  10541. }), _vm._v(" "), _c('span', {
  10542. staticClass: "check",
  10543. class: [{
  10544. 'is-elastic': _vm.isMouseDown && !_vm.disabled
  10545. }, _vm.type]
  10546. }), _vm._v(" "), _c('span', {
  10547. staticClass: "control-label"
  10548. }, [_vm._t("default")], 2)])
  10549. },staticRenderFns: []}
  10550. /***/ }),
  10551. /* 188 */
  10552. /***/ (function(module, exports, __webpack_require__) {
  10553. var Component = __webpack_require__(0)(
  10554. /* script */
  10555. __webpack_require__(189),
  10556. /* template */
  10557. __webpack_require__(203),
  10558. /* styles */
  10559. null,
  10560. /* scopeId */
  10561. null,
  10562. /* moduleIdentifier (server only) */
  10563. null
  10564. )
  10565. module.exports = Component.exports
  10566. /***/ }),
  10567. /* 189 */
  10568. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10569. "use strict";
  10570. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  10571. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__ = __webpack_require__(190);
  10572. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__);
  10573. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  10574. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
  10575. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_helpers__ = __webpack_require__(7);
  10576. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox__ = __webpack_require__(61);
  10577. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox__);
  10578. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__icon_Icon__ = __webpack_require__(3);
  10579. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__icon_Icon__);
  10580. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination__ = __webpack_require__(66);
  10581. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__pagination_Pagination__);
  10582. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TableMobileSort__ = __webpack_require__(198);
  10583. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TableMobileSort___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__TableMobileSort__);
  10584. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TableColumn__ = __webpack_require__(68);
  10585. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TableColumn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__TableColumn__);
  10586. var _components;
  10587. //
  10588. //
  10589. //
  10590. //
  10591. //
  10592. //
  10593. //
  10594. //
  10595. //
  10596. //
  10597. //
  10598. //
  10599. //
  10600. //
  10601. //
  10602. //
  10603. //
  10604. //
  10605. //
  10606. //
  10607. //
  10608. //
  10609. //
  10610. //
  10611. //
  10612. //
  10613. //
  10614. //
  10615. //
  10616. //
  10617. //
  10618. //
  10619. //
  10620. //
  10621. //
  10622. //
  10623. //
  10624. //
  10625. //
  10626. //
  10627. //
  10628. //
  10629. //
  10630. //
  10631. //
  10632. //
  10633. //
  10634. //
  10635. //
  10636. //
  10637. //
  10638. //
  10639. //
  10640. //
  10641. //
  10642. //
  10643. //
  10644. //
  10645. //
  10646. //
  10647. //
  10648. //
  10649. //
  10650. //
  10651. //
  10652. //
  10653. //
  10654. //
  10655. //
  10656. //
  10657. //
  10658. //
  10659. //
  10660. //
  10661. //
  10662. //
  10663. //
  10664. //
  10665. //
  10666. //
  10667. //
  10668. //
  10669. //
  10670. //
  10671. //
  10672. //
  10673. //
  10674. //
  10675. //
  10676. //
  10677. //
  10678. //
  10679. //
  10680. //
  10681. //
  10682. //
  10683. //
  10684. //
  10685. //
  10686. //
  10687. //
  10688. //
  10689. //
  10690. //
  10691. //
  10692. //
  10693. //
  10694. //
  10695. //
  10696. //
  10697. //
  10698. //
  10699. //
  10700. //
  10701. //
  10702. //
  10703. //
  10704. //
  10705. //
  10706. //
  10707. //
  10708. //
  10709. //
  10710. //
  10711. //
  10712. //
  10713. //
  10714. //
  10715. //
  10716. //
  10717. //
  10718. //
  10719. //
  10720. //
  10721. //
  10722. //
  10723. //
  10724. //
  10725. //
  10726. //
  10727. //
  10728. //
  10729. //
  10730. //
  10731. //
  10732. //
  10733. //
  10734. //
  10735. //
  10736. //
  10737. //
  10738. //
  10739. //
  10740. //
  10741. //
  10742. //
  10743. //
  10744. //
  10745. //
  10746. //
  10747. //
  10748. //
  10749. //
  10750. //
  10751. //
  10752. //
  10753. //
  10754. //
  10755. //
  10756. //
  10757. //
  10758. //
  10759. //
  10760. //
  10761. //
  10762. //
  10763. //
  10764. //
  10765. //
  10766. //
  10767. //
  10768. //
  10769. //
  10770. //
  10771. //
  10772. //
  10773. //
  10774. //
  10775. //
  10776. //
  10777. //
  10778. //
  10779. //
  10780. //
  10781. /* harmony default export */ __webpack_exports__["default"] = ({
  10782. name: 'BTable',
  10783. components: (_components = {}, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox___default.a.name, __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_4__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination___default.a.name, __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_6__TableMobileSort___default.a.name, __WEBPACK_IMPORTED_MODULE_6__TableMobileSort___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_7__TableColumn___default.a.name, __WEBPACK_IMPORTED_MODULE_7__TableColumn___default.a), _components),
  10784. props: {
  10785. data: {
  10786. type: Array,
  10787. default: function _default() {
  10788. return [];
  10789. }
  10790. },
  10791. columns: {
  10792. type: Array,
  10793. default: function _default() {
  10794. return [];
  10795. }
  10796. },
  10797. bordered: Boolean,
  10798. striped: Boolean,
  10799. narrowed: Boolean,
  10800. hoverable: Boolean,
  10801. loading: Boolean,
  10802. detailed: Boolean,
  10803. checkable: Boolean,
  10804. headerCheckable: {
  10805. type: Boolean,
  10806. default: true
  10807. },
  10808. selected: Object,
  10809. focusable: Boolean,
  10810. customIsChecked: Function,
  10811. isRowCheckable: {
  10812. type: Function,
  10813. default: function _default() {
  10814. return true;
  10815. }
  10816. },
  10817. checkedRows: {
  10818. type: Array,
  10819. default: function _default() {
  10820. return [];
  10821. }
  10822. },
  10823. mobileCards: {
  10824. type: Boolean,
  10825. default: true
  10826. },
  10827. defaultSort: [String, Array],
  10828. defaultSortDirection: {
  10829. type: String,
  10830. default: 'asc'
  10831. },
  10832. paginated: Boolean,
  10833. currentPage: {
  10834. type: Number,
  10835. default: 1
  10836. },
  10837. perPage: {
  10838. type: [Number, String],
  10839. default: 20
  10840. },
  10841. showDetailIcon: {
  10842. type: Boolean,
  10843. default: true
  10844. },
  10845. paginationSimple: Boolean,
  10846. paginationSize: String,
  10847. backendSorting: Boolean,
  10848. rowClass: {
  10849. type: Function,
  10850. default: function _default() {
  10851. return '';
  10852. }
  10853. },
  10854. openedDetailed: {
  10855. type: Array,
  10856. default: function _default() {
  10857. return [];
  10858. }
  10859. },
  10860. hasDetailedVisible: {
  10861. type: Function,
  10862. default: function _default() {
  10863. return true;
  10864. }
  10865. },
  10866. detailKey: {
  10867. type: String,
  10868. default: ''
  10869. },
  10870. customDetailRow: {
  10871. type: Boolean,
  10872. default: false
  10873. },
  10874. backendPagination: Boolean,
  10875. total: {
  10876. type: [Number, String],
  10877. default: 0
  10878. },
  10879. iconPack: String,
  10880. mobileSortPlaceholder: String,
  10881. customRowKey: String,
  10882. draggable: {
  10883. type: Boolean,
  10884. defualt: false
  10885. },
  10886. ariaNextLabel: String,
  10887. ariaPreviousLabel: String,
  10888. ariaPageLabel: String,
  10889. ariaCurrentLabel: String
  10890. },
  10891. data: function data() {
  10892. return {
  10893. getValueByPath: __WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */],
  10894. newColumns: [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(this.columns)),
  10895. visibleDetailRows: this.openedDetailed,
  10896. newData: this.data,
  10897. newDataTotal: this.backendPagination ? this.total : this.data.length,
  10898. newCheckedRows: [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(this.checkedRows)),
  10899. newCurrentPage: this.currentPage,
  10900. currentSortColumn: {},
  10901. isAsc: true,
  10902. firstTimeSort: true, // Used by first time initSort
  10903. _isTable: true // Used by TableColumn
  10904. };
  10905. },
  10906. computed: {
  10907. /**
  10908. * return if detailed row tabled
  10909. * will be with chevron column & icon or not
  10910. */
  10911. showDetailRowIcon: function showDetailRowIcon() {
  10912. return this.detailed && this.showDetailIcon;
  10913. },
  10914. tableClasses: function tableClasses() {
  10915. return {
  10916. 'is-bordered': this.bordered,
  10917. 'is-striped': this.striped,
  10918. 'is-narrow': this.narrowed,
  10919. 'has-mobile-cards': this.mobileCards,
  10920. 'is-hoverable': (this.hoverable || this.focusable) && this.visibleData.length
  10921. };
  10922. },
  10923. /**
  10924. * Splitted data based on the pagination.
  10925. */
  10926. visibleData: function visibleData() {
  10927. if (!this.paginated) return this.newData;
  10928. var currentPage = this.newCurrentPage;
  10929. var perPage = this.perPage;
  10930. if (this.newData.length <= perPage) {
  10931. return this.newData;
  10932. } else {
  10933. var start = (currentPage - 1) * perPage;
  10934. var end = parseInt(start, 10) + parseInt(perPage, 10);
  10935. return this.newData.slice(start, end);
  10936. }
  10937. },
  10938. visibleColumns: function visibleColumns() {
  10939. if (!this.newColumns) return this.newColumns;
  10940. return this.newColumns.filter(function (column) {
  10941. return column.visible || column.visible === undefined;
  10942. });
  10943. },
  10944. /**
  10945. * Check if all rows in the page are checked.
  10946. */
  10947. isAllChecked: function isAllChecked() {
  10948. var _this = this;
  10949. var validVisibleData = this.visibleData.filter(function (row) {
  10950. return _this.isRowCheckable(row);
  10951. });
  10952. if (validVisibleData.length === 0) return false;
  10953. var isAllChecked = validVisibleData.some(function (currentVisibleRow) {
  10954. return Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["b" /* indexOf */])(_this.newCheckedRows, currentVisibleRow, _this.customIsChecked) < 0;
  10955. });
  10956. return !isAllChecked;
  10957. },
  10958. /**
  10959. * Check if all rows in the page are checkable.
  10960. */
  10961. isAllUncheckable: function isAllUncheckable() {
  10962. var _this2 = this;
  10963. var validVisibleData = this.visibleData.filter(function (row) {
  10964. return _this2.isRowCheckable(row);
  10965. });
  10966. return validVisibleData.length === 0;
  10967. },
  10968. /**
  10969. * Check if has any sortable column.
  10970. */
  10971. hasSortablenewColumns: function hasSortablenewColumns() {
  10972. return this.newColumns.some(function (column) {
  10973. return column.sortable;
  10974. });
  10975. },
  10976. /**
  10977. * Return total column count based if it's checkable or expanded
  10978. */
  10979. columnCount: function columnCount() {
  10980. var count = this.newColumns.length;
  10981. count += this.checkable ? 1 : 0;
  10982. count += this.detailed ? 1 : 0;
  10983. return count;
  10984. }
  10985. },
  10986. watch: {
  10987. /**
  10988. * When data prop change:
  10989. * 1. Update internal value.
  10990. * 2. Reset newColumns (thead), in case it's on a v-for loop.
  10991. * 3. Sort again if it's not backend-sort.
  10992. * 4. Set new total if it's not backend-paginated.
  10993. */
  10994. data: function data(value) {
  10995. var _this3 = this;
  10996. // Save newColumns before resetting
  10997. var newColumns = this.newColumns;
  10998. this.newColumns = [];
  10999. this.newData = value;
  11000. // Prevent table from being headless, data could change and created hook
  11001. // on column might not trigger
  11002. this.$nextTick(function () {
  11003. if (!_this3.newColumns.length) _this3.newColumns = newColumns;
  11004. });
  11005. if (!this.backendSorting) {
  11006. this.sort(this.currentSortColumn, true);
  11007. }
  11008. if (!this.backendPagination) {
  11009. this.newDataTotal = value.length;
  11010. }
  11011. },
  11012. /**
  11013. * When Pagination total change, update internal total
  11014. * only if it's backend-paginated.
  11015. */
  11016. total: function total(newTotal) {
  11017. if (!this.backendPagination) return;
  11018. this.newDataTotal = newTotal;
  11019. },
  11020. /**
  11021. * When checkedRows prop change, update internal value without
  11022. * mutating original data.
  11023. */
  11024. checkedRows: function checkedRows(rows) {
  11025. this.newCheckedRows = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(rows));
  11026. },
  11027. columns: function columns(value) {
  11028. this.newColumns = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(value));
  11029. },
  11030. newColumns: function newColumns(value) {
  11031. this.checkSort();
  11032. },
  11033. /**
  11034. * When the user wants to control the detailed rows via props.
  11035. * Or wants to open the details of certain row with the router for example.
  11036. */
  11037. openedDetailed: function openedDetailed(expandedRows) {
  11038. this.visibleDetailRows = expandedRows;
  11039. },
  11040. currentPage: function currentPage(newVal) {
  11041. this.newCurrentPage = newVal;
  11042. }
  11043. },
  11044. methods: {
  11045. /**
  11046. * Sort an array by key without mutating original data.
  11047. * Call the user sort function if it was passed.
  11048. */
  11049. sortBy: function sortBy(array, key, fn, isAsc) {
  11050. var sorted = [];
  11051. // Sorting without mutating original data
  11052. if (fn && typeof fn === 'function') {
  11053. sorted = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(array)).sort(function (a, b) {
  11054. return fn(a, b, isAsc);
  11055. });
  11056. } else {
  11057. sorted = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(array)).sort(function (a, b) {
  11058. // Get nested values from objects
  11059. var newA = Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */])(a, key);
  11060. var newB = Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */])(b, key);
  11061. // sort boolean type
  11062. if (typeof newA === 'boolean' && typeof newB === 'boolean') {
  11063. return isAsc ? newA - newB : newB - newA;
  11064. }
  11065. if (!newA && newA !== 0) return 1;
  11066. if (!newB && newB !== 0) return -1;
  11067. if (newA === newB) return 0;
  11068. newA = typeof newA === 'string' ? newA.toUpperCase() : newA;
  11069. newB = typeof newB === 'string' ? newB.toUpperCase() : newB;
  11070. return isAsc ? newA > newB ? 1 : -1 : newA > newB ? -1 : 1;
  11071. });
  11072. }
  11073. return sorted;
  11074. },
  11075. /**
  11076. * Sort the column.
  11077. * Toggle current direction on column if it's sortable
  11078. * and not just updating the prop.
  11079. */
  11080. sort: function sort(column) {
  11081. var updatingData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  11082. if (!column || !column.sortable) return;
  11083. if (!updatingData) {
  11084. this.isAsc = column === this.currentSortColumn ? !this.isAsc : this.defaultSortDirection.toLowerCase() !== 'desc';
  11085. }
  11086. if (!this.firstTimeSort) {
  11087. this.$emit('sort', column.field, this.isAsc ? 'asc' : 'desc');
  11088. }
  11089. if (!this.backendSorting) {
  11090. this.newData = this.sortBy(this.newData, column.field, column.customSort, this.isAsc);
  11091. }
  11092. this.currentSortColumn = column;
  11093. },
  11094. /**
  11095. * Check if the row is checked (is added to the array).
  11096. */
  11097. isRowChecked: function isRowChecked(row) {
  11098. return Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["b" /* indexOf */])(this.newCheckedRows, row, this.customIsChecked) >= 0;
  11099. },
  11100. /**
  11101. * Remove a checked row from the array.
  11102. */
  11103. removeCheckedRow: function removeCheckedRow(row) {
  11104. var index = Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["b" /* indexOf */])(this.newCheckedRows, row, this.customIsChecked);
  11105. if (index >= 0) {
  11106. this.newCheckedRows.splice(index, 1);
  11107. }
  11108. },
  11109. /**
  11110. * Header checkbox click listener.
  11111. * Add or remove all rows in current page.
  11112. */
  11113. checkAll: function checkAll() {
  11114. var _this4 = this;
  11115. var isAllChecked = this.isAllChecked;
  11116. this.visibleData.forEach(function (currentRow) {
  11117. _this4.removeCheckedRow(currentRow);
  11118. if (!isAllChecked) {
  11119. if (_this4.isRowCheckable(currentRow)) {
  11120. _this4.newCheckedRows.push(currentRow);
  11121. }
  11122. }
  11123. });
  11124. this.$emit('check', this.newCheckedRows);
  11125. this.$emit('check-all', this.newCheckedRows);
  11126. // Emit checked rows to update user variable
  11127. this.$emit('update:checkedRows', this.newCheckedRows);
  11128. },
  11129. /**
  11130. * Row checkbox click listener.
  11131. * Add or remove a single row.
  11132. */
  11133. checkRow: function checkRow(row) {
  11134. if (!this.isRowChecked(row)) {
  11135. this.newCheckedRows.push(row);
  11136. } else {
  11137. this.removeCheckedRow(row);
  11138. }
  11139. this.$emit('check', this.newCheckedRows, row);
  11140. // Emit checked rows to update user variable
  11141. this.$emit('update:checkedRows', this.newCheckedRows);
  11142. },
  11143. /**
  11144. * Row click listener.
  11145. * Emit all necessary events.
  11146. */
  11147. selectRow: function selectRow(row, index) {
  11148. this.$emit('click', row);
  11149. if (this.selected === row) return;
  11150. // Emit new and old row
  11151. this.$emit('select', row, this.selected);
  11152. // Emit new row to update user variable
  11153. this.$emit('update:selected', row);
  11154. },
  11155. /**
  11156. * Paginator change listener.
  11157. */
  11158. pageChanged: function pageChanged(page) {
  11159. this.newCurrentPage = page > 0 ? page : 1;
  11160. this.$emit('page-change', this.newCurrentPage);
  11161. this.$emit('update:currentPage', this.newCurrentPage);
  11162. },
  11163. /**
  11164. * Toggle to show/hide details slot
  11165. */
  11166. toggleDetails: function toggleDetails(obj) {
  11167. var found = this.isVisibleDetailRow(obj);
  11168. if (found) {
  11169. this.closeDetailRow(obj);
  11170. this.$emit('details-close', obj);
  11171. } else {
  11172. this.openDetailRow(obj);
  11173. this.$emit('details-open', obj);
  11174. }
  11175. // Syncs the detailed rows with the parent component
  11176. this.$emit('update:openedDetailed', this.visibleDetailRows);
  11177. },
  11178. openDetailRow: function openDetailRow(obj) {
  11179. var index = this.handleDetailKey(obj);
  11180. this.visibleDetailRows.push(index);
  11181. },
  11182. closeDetailRow: function closeDetailRow(obj) {
  11183. var index = this.handleDetailKey(obj);
  11184. var i = this.visibleDetailRows.indexOf(index);
  11185. this.visibleDetailRows.splice(i, 1);
  11186. },
  11187. isVisibleDetailRow: function isVisibleDetailRow(obj) {
  11188. var index = this.handleDetailKey(obj);
  11189. var result = this.visibleDetailRows.indexOf(index) >= 0;
  11190. return result;
  11191. },
  11192. isActiveDetailRow: function isActiveDetailRow(row) {
  11193. return this.detailed && !this.customDetailRow && this.isVisibleDetailRow(row);
  11194. },
  11195. isActiveCustomDetailRow: function isActiveCustomDetailRow(row) {
  11196. return this.detailed && this.customDetailRow && this.isVisibleDetailRow(row);
  11197. },
  11198. /**
  11199. * When the detailKey is defined we use the object[detailKey] as index.
  11200. * If not, use the object reference by default.
  11201. */
  11202. handleDetailKey: function handleDetailKey(index) {
  11203. var key = this.detailKey;
  11204. return !key.length ? index : index[key];
  11205. },
  11206. checkPredefinedDetailedRows: function checkPredefinedDetailedRows() {
  11207. var defaultExpandedRowsDefined = this.openedDetailed.length > 0;
  11208. if (defaultExpandedRowsDefined && !this.detailKey.length) {
  11209. throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"');
  11210. }
  11211. },
  11212. /**
  11213. * Call initSort only first time (For example async data).
  11214. */
  11215. checkSort: function checkSort() {
  11216. if (this.newColumns.length && this.firstTimeSort) {
  11217. this.initSort();
  11218. this.firstTimeSort = false;
  11219. } else if (this.newColumns.length) {
  11220. if (this.currentSortColumn.field) {
  11221. for (var i = 0; i < this.newColumns.length; i++) {
  11222. if (this.newColumns[i].field === this.currentSortColumn.field) {
  11223. this.currentSortColumn = this.newColumns[i];
  11224. break;
  11225. }
  11226. }
  11227. }
  11228. }
  11229. },
  11230. /**
  11231. * Check if footer slot has custom content.
  11232. */
  11233. hasCustomFooterSlot: function hasCustomFooterSlot() {
  11234. if (this.$slots.footer.length > 1) return true;
  11235. var tag = this.$slots.footer[0].tag;
  11236. if (tag !== 'th' && tag !== 'td') return false;
  11237. return true;
  11238. },
  11239. /**
  11240. * Check if bottom-left slot exists.
  11241. */
  11242. hasBottomLeftSlot: function hasBottomLeftSlot() {
  11243. return typeof this.$slots['bottom-left'] !== 'undefined';
  11244. },
  11245. /**
  11246. * Table arrow keys listener, change selection.
  11247. */
  11248. pressedArrow: function pressedArrow(pos) {
  11249. if (!this.visibleData.length) return;
  11250. var index = this.visibleData.indexOf(this.selected) + pos;
  11251. // Prevent from going up from first and down from last
  11252. index = index < 0 ? 0 : index > this.visibleData.length - 1 ? this.visibleData.length - 1 : index;
  11253. this.selectRow(this.visibleData[index]);
  11254. },
  11255. /**
  11256. * Focus table element if has selected prop.
  11257. */
  11258. focus: function focus() {
  11259. if (!this.focusable) return;
  11260. this.$el.querySelector('table').focus();
  11261. },
  11262. /**
  11263. * Initial sorted column based on the default-sort prop.
  11264. */
  11265. initSort: function initSort() {
  11266. var _this5 = this;
  11267. if (!this.defaultSort) return;
  11268. var sortField = '';
  11269. var sortDirection = this.defaultSortDirection;
  11270. if (Array.isArray(this.defaultSort)) {
  11271. sortField = this.defaultSort[0];
  11272. if (this.defaultSort[1]) {
  11273. sortDirection = this.defaultSort[1];
  11274. }
  11275. } else {
  11276. sortField = this.defaultSort;
  11277. }
  11278. this.newColumns.forEach(function (column) {
  11279. if (column.field === sortField) {
  11280. _this5.isAsc = sortDirection.toLowerCase() !== 'desc';
  11281. _this5.sort(column, true);
  11282. }
  11283. });
  11284. },
  11285. /**
  11286. * Emits drag start event
  11287. */
  11288. handleDragStart: function handleDragStart(event, row, index) {
  11289. this.$emit('dragstart', { event: event, row: row, index: index });
  11290. },
  11291. /**
  11292. * Emits drop event
  11293. */
  11294. handleDrop: function handleDrop(event, row, index) {
  11295. this.$emit('drop', { event: event, row: row, index: index });
  11296. },
  11297. /**
  11298. * Emits drag over event
  11299. */
  11300. handleDragOver: function handleDragOver(event, row, index) {
  11301. this.$emit('dragover', { event: event, row: row, index: index });
  11302. },
  11303. /**
  11304. * Emits drag leave event
  11305. */
  11306. handleDragLeave: function handleDragLeave(event, row, index) {
  11307. this.$emit('dragleave', { event: event, row: row, index: index });
  11308. }
  11309. },
  11310. mounted: function mounted() {
  11311. this.checkPredefinedDetailedRows();
  11312. this.checkSort();
  11313. }
  11314. });
  11315. /***/ }),
  11316. /* 190 */
  11317. /***/ (function(module, exports, __webpack_require__) {
  11318. "use strict";
  11319. exports.__esModule = true;
  11320. var _from = __webpack_require__(191);
  11321. var _from2 = _interopRequireDefault(_from);
  11322. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11323. exports.default = function (arr) {
  11324. if (Array.isArray(arr)) {
  11325. for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
  11326. arr2[i] = arr[i];
  11327. }
  11328. return arr2;
  11329. } else {
  11330. return (0, _from2.default)(arr);
  11331. }
  11332. };
  11333. /***/ }),
  11334. /* 191 */
  11335. /***/ (function(module, exports, __webpack_require__) {
  11336. module.exports = { "default": __webpack_require__(192), __esModule: true };
  11337. /***/ }),
  11338. /* 192 */
  11339. /***/ (function(module, exports, __webpack_require__) {
  11340. __webpack_require__(41);
  11341. __webpack_require__(193);
  11342. module.exports = __webpack_require__(6).Array.from;
  11343. /***/ }),
  11344. /* 193 */
  11345. /***/ (function(module, exports, __webpack_require__) {
  11346. "use strict";
  11347. var ctx = __webpack_require__(46);
  11348. var $export = __webpack_require__(19);
  11349. var toObject = __webpack_require__(40);
  11350. var call = __webpack_require__(194);
  11351. var isArrayIter = __webpack_require__(195);
  11352. var toLength = __webpack_require__(51);
  11353. var createProperty = __webpack_require__(196);
  11354. var getIterFn = __webpack_require__(60);
  11355. $export($export.S + $export.F * !__webpack_require__(197)(function (iter) { Array.from(iter); }), 'Array', {
  11356. // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
  11357. from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
  11358. var O = toObject(arrayLike);
  11359. var C = typeof this == 'function' ? this : Array;
  11360. var aLen = arguments.length;
  11361. var mapfn = aLen > 1 ? arguments[1] : undefined;
  11362. var mapping = mapfn !== undefined;
  11363. var index = 0;
  11364. var iterFn = getIterFn(O);
  11365. var length, result, step, iterator;
  11366. if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
  11367. // if object isn't iterable or it's array with default iterator - use simple case
  11368. if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
  11369. for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
  11370. createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
  11371. }
  11372. } else {
  11373. length = toLength(O.length);
  11374. for (result = new C(length); length > index; index++) {
  11375. createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
  11376. }
  11377. }
  11378. result.length = index;
  11379. return result;
  11380. }
  11381. });
  11382. /***/ }),
  11383. /* 194 */
  11384. /***/ (function(module, exports, __webpack_require__) {
  11385. // call something on iterator step with safe closing on error
  11386. var anObject = __webpack_require__(15);
  11387. module.exports = function (iterator, fn, value, entries) {
  11388. try {
  11389. return entries ? fn(anObject(value)[0], value[1]) : fn(value);
  11390. // 7.4.6 IteratorClose(iterator, completion)
  11391. } catch (e) {
  11392. var ret = iterator['return'];
  11393. if (ret !== undefined) anObject(ret.call(iterator));
  11394. throw e;
  11395. }
  11396. };
  11397. /***/ }),
  11398. /* 195 */
  11399. /***/ (function(module, exports, __webpack_require__) {
  11400. // check on default Array iterator
  11401. var Iterators = __webpack_require__(23);
  11402. var ITERATOR = __webpack_require__(4)('iterator');
  11403. var ArrayProto = Array.prototype;
  11404. module.exports = function (it) {
  11405. return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
  11406. };
  11407. /***/ }),
  11408. /* 196 */
  11409. /***/ (function(module, exports, __webpack_require__) {
  11410. "use strict";
  11411. var $defineProperty = __webpack_require__(9);
  11412. var createDesc = __webpack_require__(22);
  11413. module.exports = function (object, index, value) {
  11414. if (index in object) $defineProperty.f(object, index, createDesc(0, value));
  11415. else object[index] = value;
  11416. };
  11417. /***/ }),
  11418. /* 197 */
  11419. /***/ (function(module, exports, __webpack_require__) {
  11420. var ITERATOR = __webpack_require__(4)('iterator');
  11421. var SAFE_CLOSING = false;
  11422. try {
  11423. var riter = [7][ITERATOR]();
  11424. riter['return'] = function () { SAFE_CLOSING = true; };
  11425. // eslint-disable-next-line no-throw-literal
  11426. Array.from(riter, function () { throw 2; });
  11427. } catch (e) { /* empty */ }
  11428. module.exports = function (exec, skipClosing) {
  11429. if (!skipClosing && !SAFE_CLOSING) return false;
  11430. var safe = false;
  11431. try {
  11432. var arr = [7];
  11433. var iter = arr[ITERATOR]();
  11434. iter.next = function () { return { done: safe = true }; };
  11435. arr[ITERATOR] = function () { return iter; };
  11436. exec(arr);
  11437. } catch (e) { /* empty */ }
  11438. return safe;
  11439. };
  11440. /***/ }),
  11441. /* 198 */
  11442. /***/ (function(module, exports, __webpack_require__) {
  11443. var Component = __webpack_require__(0)(
  11444. /* script */
  11445. __webpack_require__(199),
  11446. /* template */
  11447. __webpack_require__(200),
  11448. /* styles */
  11449. null,
  11450. /* scopeId */
  11451. null,
  11452. /* moduleIdentifier (server only) */
  11453. null
  11454. )
  11455. module.exports = Component.exports
  11456. /***/ }),
  11457. /* 199 */
  11458. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11459. "use strict";
  11460. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  11461. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  11462. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  11463. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__select_Select__ = __webpack_require__(31);
  11464. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__select_Select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__select_Select__);
  11465. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon__ = __webpack_require__(3);
  11466. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__icon_Icon__);
  11467. var _components;
  11468. //
  11469. //
  11470. //
  11471. //
  11472. //
  11473. //
  11474. //
  11475. //
  11476. //
  11477. //
  11478. //
  11479. //
  11480. //
  11481. //
  11482. //
  11483. //
  11484. //
  11485. //
  11486. //
  11487. //
  11488. //
  11489. //
  11490. //
  11491. //
  11492. //
  11493. //
  11494. //
  11495. //
  11496. //
  11497. //
  11498. //
  11499. //
  11500. //
  11501. //
  11502. //
  11503. //
  11504. //
  11505. //
  11506. //
  11507. /* harmony default export */ __webpack_exports__["default"] = ({
  11508. name: 'BTableMobileSort',
  11509. components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_1__select_Select___default.a.name, __WEBPACK_IMPORTED_MODULE_1__select_Select___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default.a), _components),
  11510. props: {
  11511. currentSortColumn: Object,
  11512. isAsc: Boolean,
  11513. columns: Array,
  11514. placeholder: String
  11515. },
  11516. data: function data() {
  11517. return {
  11518. mobileSort: this.currentSortColumn
  11519. };
  11520. },
  11521. computed: {
  11522. showPlaceholder: function showPlaceholder() {
  11523. var _this = this;
  11524. return !this.columns || !this.columns.some(function (column) {
  11525. return column === _this.mobileSort;
  11526. });
  11527. }
  11528. },
  11529. watch: {
  11530. mobileSort: function mobileSort(column) {
  11531. if (this.currentSortColumn === column) return;
  11532. this.$emit('sort', column);
  11533. },
  11534. currentSortColumn: function currentSortColumn(column) {
  11535. this.mobileSort = column;
  11536. }
  11537. },
  11538. methods: {
  11539. sort: function sort() {
  11540. this.$emit('sort', this.mobileSort);
  11541. }
  11542. }
  11543. });
  11544. /***/ }),
  11545. /* 200 */
  11546. /***/ (function(module, exports) {
  11547. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  11548. return _c('div', {
  11549. staticClass: "field table-mobile-sort"
  11550. }, [_c('div', {
  11551. staticClass: "field has-addons"
  11552. }, [_c('b-select', {
  11553. attrs: {
  11554. "expanded": ""
  11555. },
  11556. model: {
  11557. value: (_vm.mobileSort),
  11558. callback: function($$v) {
  11559. _vm.mobileSort = $$v
  11560. },
  11561. expression: "mobileSort"
  11562. }
  11563. }, [(_vm.placeholder) ? [_c('option', {
  11564. directives: [{
  11565. name: "show",
  11566. rawName: "v-show",
  11567. value: (_vm.showPlaceholder),
  11568. expression: "showPlaceholder"
  11569. }],
  11570. attrs: {
  11571. "selected": "",
  11572. "disabled": "",
  11573. "hidden": ""
  11574. },
  11575. domProps: {
  11576. "value": {}
  11577. }
  11578. }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e(), _vm._v(" "), _vm._l((_vm.columns), function(column, index) {
  11579. return (column.sortable) ? _c('option', {
  11580. key: index,
  11581. domProps: {
  11582. "value": column
  11583. }
  11584. }, [_vm._v("\n " + _vm._s(column.label) + "\n ")]) : _vm._e()
  11585. })], 2), _vm._v(" "), _c('div', {
  11586. staticClass: "control"
  11587. }, [_c('button', {
  11588. staticClass: "button is-primary",
  11589. on: {
  11590. "click": _vm.sort
  11591. }
  11592. }, [_c('b-icon', {
  11593. directives: [{
  11594. name: "show",
  11595. rawName: "v-show",
  11596. value: (_vm.currentSortColumn === _vm.mobileSort),
  11597. expression: "currentSortColumn === mobileSort"
  11598. }],
  11599. class: {
  11600. 'is-desc': !_vm.isAsc
  11601. },
  11602. attrs: {
  11603. "icon": "arrow-up",
  11604. "size": "is-small",
  11605. "both": ""
  11606. }
  11607. })], 1)])], 1)])
  11608. },staticRenderFns: []}
  11609. /***/ }),
  11610. /* 201 */
  11611. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11612. "use strict";
  11613. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  11614. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
  11615. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__);
  11616. //
  11617. //
  11618. //
  11619. //
  11620. //
  11621. //
  11622. //
  11623. //
  11624. //
  11625. /* harmony default export */ __webpack_exports__["default"] = ({
  11626. name: 'BTableColumn',
  11627. props: {
  11628. label: String,
  11629. customKey: [String, Number],
  11630. field: String,
  11631. meta: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
  11632. width: [Number, String],
  11633. numeric: Boolean,
  11634. centered: Boolean,
  11635. sortable: Boolean,
  11636. visible: {
  11637. type: Boolean,
  11638. default: true
  11639. },
  11640. customSort: Function,
  11641. internal: Boolean // Used internally by Table
  11642. },
  11643. data: function data() {
  11644. return {
  11645. newKey: this.customKey || this.label
  11646. };
  11647. },
  11648. computed: {
  11649. rootClasses: function rootClasses() {
  11650. return {
  11651. 'has-text-right': this.numeric && !this.centered,
  11652. 'has-text-centered': this.centered
  11653. };
  11654. }
  11655. },
  11656. methods: {
  11657. addRefToTable: function addRefToTable() {
  11658. var _this = this;
  11659. if (!this.$parent.$data._isTable) {
  11660. this.$destroy();
  11661. throw new Error('You should wrap bTableColumn on a bTable');
  11662. }
  11663. if (this.internal) return;
  11664. // Since we're using scoped prop the columns gonna be multiplied,
  11665. // this finds when to stop based on the newKey property.
  11666. var repeated = this.$parent.newColumns.some(function (column) {
  11667. return column.newKey === _this.newKey;
  11668. });
  11669. !repeated && this.$parent.newColumns.push(this);
  11670. }
  11671. },
  11672. beforeMount: function beforeMount() {
  11673. this.addRefToTable();
  11674. },
  11675. beforeUpdate: function beforeUpdate() {
  11676. this.addRefToTable();
  11677. },
  11678. beforeDestroy: function beforeDestroy() {
  11679. var index = this.$parent.newColumns.map(function (column) {
  11680. return column.newKey;
  11681. }).indexOf(this.newKey);
  11682. if (index >= 0) {
  11683. this.$parent.newColumns.splice(index, 1);
  11684. }
  11685. }
  11686. });
  11687. /***/ }),
  11688. /* 202 */
  11689. /***/ (function(module, exports) {
  11690. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  11691. return (_vm.visible) ? _c('td', {
  11692. class: _vm.rootClasses,
  11693. attrs: {
  11694. "data-label": _vm.label
  11695. }
  11696. }, [_c('span', [_vm._t("default")], 2)]) : _vm._e()
  11697. },staticRenderFns: []}
  11698. /***/ }),
  11699. /* 203 */
  11700. /***/ (function(module, exports) {
  11701. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  11702. return _c('div', {
  11703. staticClass: "b-table",
  11704. class: {
  11705. 'is-loading': _vm.loading
  11706. }
  11707. }, [(_vm.mobileCards && _vm.hasSortablenewColumns) ? _c('b-table-mobile-sort', {
  11708. attrs: {
  11709. "current-sort-column": _vm.currentSortColumn,
  11710. "is-asc": _vm.isAsc,
  11711. "columns": _vm.newColumns,
  11712. "placeholder": _vm.mobileSortPlaceholder
  11713. },
  11714. on: {
  11715. "sort": function (column) { return _vm.sort(column); }
  11716. }
  11717. }) : _vm._e(), _vm._v(" "), _c('div', {
  11718. staticClass: "table-wrapper"
  11719. }, [_c('table', {
  11720. staticClass: "table",
  11721. class: _vm.tableClasses,
  11722. attrs: {
  11723. "tabindex": !_vm.focusable ? false : 0
  11724. },
  11725. on: {
  11726. "keydown": [function($event) {
  11727. if (!('button' in $event) && _vm._k($event.keyCode, "up", 38, $event.key)) { return null; }
  11728. if ($event.target !== $event.currentTarget) { return null; }
  11729. $event.preventDefault();
  11730. _vm.pressedArrow(-1)
  11731. }, function($event) {
  11732. if (!('button' in $event) && _vm._k($event.keyCode, "down", 40, $event.key)) { return null; }
  11733. if ($event.target !== $event.currentTarget) { return null; }
  11734. $event.preventDefault();
  11735. _vm.pressedArrow(1)
  11736. }]
  11737. }
  11738. }, [(_vm.newColumns.length) ? _c('thead', [_c('tr', [(_vm.showDetailRowIcon) ? _c('th', {
  11739. attrs: {
  11740. "width": "40px"
  11741. }
  11742. }) : _vm._e(), _vm._v(" "), (_vm.checkable) ? _c('th', {
  11743. staticClass: "checkbox-cell"
  11744. }, [(_vm.headerCheckable) ? [_c('b-checkbox', {
  11745. attrs: {
  11746. "value": _vm.isAllChecked,
  11747. "disabled": _vm.isAllUncheckable
  11748. },
  11749. nativeOn: {
  11750. "change": function($event) {
  11751. _vm.checkAll($event)
  11752. }
  11753. }
  11754. })] : _vm._e()], 2) : _vm._e(), _vm._v(" "), _vm._l((_vm.visibleColumns), function(column, index) {
  11755. return _c('th', {
  11756. key: index,
  11757. class: {
  11758. 'is-current-sort': _vm.currentSortColumn === column,
  11759. 'is-sortable': column.sortable
  11760. },
  11761. style: ({
  11762. width: column.width === undefined ? null : column.width + 'px'
  11763. }),
  11764. on: {
  11765. "click": function($event) {
  11766. $event.stopPropagation();
  11767. _vm.sort(column)
  11768. }
  11769. }
  11770. }, [_c('div', {
  11771. staticClass: "th-wrap",
  11772. class: {
  11773. 'is-numeric': column.numeric,
  11774. 'is-centered': column.centered
  11775. }
  11776. }, [(_vm.$scopedSlots.header) ? _vm._t("header", null, {
  11777. column: column,
  11778. index: index
  11779. }) : [_vm._v(_vm._s(column.label))], _vm._v(" "), _c('b-icon', {
  11780. directives: [{
  11781. name: "show",
  11782. rawName: "v-show",
  11783. value: (_vm.currentSortColumn === column),
  11784. expression: "currentSortColumn === column"
  11785. }],
  11786. class: {
  11787. 'is-desc': !_vm.isAsc
  11788. },
  11789. attrs: {
  11790. "icon": "arrow-up",
  11791. "pack": _vm.iconPack,
  11792. "both": "",
  11793. "size": "is-small"
  11794. }
  11795. })], 2)])
  11796. })], 2)]) : _vm._e(), _vm._v(" "), (_vm.visibleData.length) ? _c('tbody', [_vm._l((_vm.visibleData), function(row, index) {
  11797. return [_c('tr', {
  11798. key: _vm.customRowKey ? row[_vm.customRowKey] : index,
  11799. class: [_vm.rowClass(row, index), {
  11800. 'is-selected': row === _vm.selected,
  11801. 'is-checked': _vm.isRowChecked(row),
  11802. }],
  11803. attrs: {
  11804. "draggable": _vm.draggable
  11805. },
  11806. on: {
  11807. "click": function($event) {
  11808. _vm.selectRow(row)
  11809. },
  11810. "dblclick": function($event) {
  11811. _vm.$emit('dblclick', row)
  11812. },
  11813. "contextmenu": function($event) {
  11814. _vm.$emit('contextmenu', row, $event)
  11815. },
  11816. "dragstart": function($event) {
  11817. _vm.handleDragStart($event, row, index)
  11818. },
  11819. "drop": function($event) {
  11820. _vm.handleDrop($event, row, index)
  11821. },
  11822. "dragover": function($event) {
  11823. _vm.handleDragOver($event, row, index)
  11824. },
  11825. "dragleave": function($event) {
  11826. _vm.handleDragLeave($event, row, index)
  11827. }
  11828. }
  11829. }, [(_vm.showDetailRowIcon) ? _c('td', {
  11830. staticClass: "chevron-cell"
  11831. }, [(_vm.hasDetailedVisible(row)) ? _c('a', {
  11832. attrs: {
  11833. "role": "button"
  11834. },
  11835. on: {
  11836. "click": function($event) {
  11837. $event.stopPropagation();
  11838. _vm.toggleDetails(row)
  11839. }
  11840. }
  11841. }, [_c('b-icon', {
  11842. class: {
  11843. 'is-expanded': _vm.isVisibleDetailRow(row)
  11844. },
  11845. attrs: {
  11846. "icon": "chevron-right",
  11847. "pack": _vm.iconPack,
  11848. "both": ""
  11849. }
  11850. })], 1) : _vm._e()]) : _vm._e(), _vm._v(" "), (_vm.checkable) ? _c('td', {
  11851. staticClass: "checkbox-cell"
  11852. }, [_c('b-checkbox', {
  11853. attrs: {
  11854. "disabled": !_vm.isRowCheckable(row),
  11855. "value": _vm.isRowChecked(row)
  11856. },
  11857. nativeOn: {
  11858. "change": function($event) {
  11859. _vm.checkRow(row)
  11860. },
  11861. "click": function($event) {
  11862. $event.stopPropagation();
  11863. }
  11864. }
  11865. })], 1) : _vm._e(), _vm._v(" "), (_vm.$scopedSlots.default) ? _vm._t("default", null, {
  11866. row: row,
  11867. index: index
  11868. }) : _vm._l((_vm.newColumns), function(column) {
  11869. return _c('BTableColumn', _vm._b({
  11870. key: column.field,
  11871. attrs: {
  11872. "internal": ""
  11873. }
  11874. }, 'BTableColumn', column, false), [(column.renderHtml) ? _c('span', {
  11875. domProps: {
  11876. "innerHTML": _vm._s(_vm.getValueByPath(row, column.field))
  11877. }
  11878. }) : [_vm._v("\n " + _vm._s(_vm.getValueByPath(row, column.field)) + "\n ")]], 2)
  11879. })], 2), _vm._v(" "), (_vm.isActiveDetailRow(row)) ? _c('tr', {
  11880. staticClass: "detail"
  11881. }, [_c('td', {
  11882. attrs: {
  11883. "colspan": _vm.columnCount
  11884. }
  11885. }, [_c('div', {
  11886. staticClass: "detail-container"
  11887. }, [_vm._t("detail", null, {
  11888. row: row,
  11889. index: index
  11890. })], 2)])]) : _vm._e(), _vm._v(" "), (_vm.isActiveCustomDetailRow(row)) ? _vm._t("detail", null, {
  11891. row: row,
  11892. index: index
  11893. }) : _vm._e()]
  11894. })], 2) : _c('tbody', [_c('tr', {
  11895. staticClass: "is-empty"
  11896. }, [_c('td', {
  11897. attrs: {
  11898. "colspan": _vm.columnCount
  11899. }
  11900. }, [_vm._t("empty")], 2)])]), _vm._v(" "), (_vm.$slots.footer !== undefined) ? _c('tfoot', [_c('tr', {
  11901. staticClass: "table-footer"
  11902. }, [(_vm.hasCustomFooterSlot()) ? _vm._t("footer") : _c('th', {
  11903. attrs: {
  11904. "colspan": _vm.columnCount
  11905. }
  11906. }, [_vm._t("footer")], 2)], 2)]) : _vm._e()])]), _vm._v(" "), ((_vm.checkable && _vm.hasBottomLeftSlot()) || _vm.paginated) ? _c('div', {
  11907. staticClass: "level"
  11908. }, [_c('div', {
  11909. staticClass: "level-left"
  11910. }, [_vm._t("bottom-left")], 2), _vm._v(" "), _c('div', {
  11911. staticClass: "level-right"
  11912. }, [(_vm.paginated) ? _c('div', {
  11913. staticClass: "level-item"
  11914. }, [_c('b-pagination', {
  11915. attrs: {
  11916. "icon-pack": _vm.iconPack,
  11917. "total": _vm.newDataTotal,
  11918. "per-page": _vm.perPage,
  11919. "simple": _vm.paginationSimple,
  11920. "size": _vm.paginationSize,
  11921. "current": _vm.newCurrentPage,
  11922. "aria-next-label": _vm.ariaNextLabel,
  11923. "aria-previous-label": _vm.ariaPreviousLabel,
  11924. "aria-page-label": _vm.ariaPageLabel,
  11925. "aria-current-label": _vm.ariaCurrentLabel
  11926. },
  11927. on: {
  11928. "change": _vm.pageChanged
  11929. }
  11930. })], 1) : _vm._e()])]) : _vm._e()], 1)
  11931. },staticRenderFns: []}
  11932. /***/ }),
  11933. /* 204 */
  11934. /***/ (function(module, exports, __webpack_require__) {
  11935. var Component = __webpack_require__(0)(
  11936. /* script */
  11937. __webpack_require__(205),
  11938. /* template */
  11939. __webpack_require__(206),
  11940. /* styles */
  11941. null,
  11942. /* scopeId */
  11943. null,
  11944. /* moduleIdentifier (server only) */
  11945. null
  11946. )
  11947. module.exports = Component.exports
  11948. /***/ }),
  11949. /* 205 */
  11950. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11951. "use strict";
  11952. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  11953. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  11954. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  11955. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
  11956. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
  11957. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_SlotComponent__ = __webpack_require__(67);
  11958. var _components;
  11959. //
  11960. //
  11961. //
  11962. //
  11963. //
  11964. //
  11965. //
  11966. //
  11967. //
  11968. //
  11969. //
  11970. //
  11971. //
  11972. //
  11973. //
  11974. //
  11975. //
  11976. //
  11977. //
  11978. //
  11979. //
  11980. //
  11981. //
  11982. //
  11983. //
  11984. //
  11985. //
  11986. //
  11987. //
  11988. //
  11989. //
  11990. //
  11991. //
  11992. //
  11993. /* harmony default export */ __webpack_exports__["default"] = ({
  11994. name: 'BTabs',
  11995. components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__utils_SlotComponent__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_2__utils_SlotComponent__["a" /* default */]), _components),
  11996. props: {
  11997. value: Number,
  11998. expanded: Boolean,
  11999. type: String,
  12000. size: String,
  12001. position: String,
  12002. animated: {
  12003. type: Boolean,
  12004. default: true
  12005. },
  12006. destroyOnHide: {
  12007. type: Boolean,
  12008. default: false
  12009. }
  12010. },
  12011. data: function data() {
  12012. return {
  12013. activeTab: this.value || 0,
  12014. tabItems: [],
  12015. contentHeight: 0,
  12016. isTransitioning: false,
  12017. _isTabs: true // Used internally by TabItem
  12018. };
  12019. },
  12020. computed: {
  12021. navClasses: function navClasses() {
  12022. return [this.type, this.size, this.position, {
  12023. 'is-fullwidth': this.expanded,
  12024. 'is-toggle-rounded is-toggle': this.type === 'is-toggle-rounded'
  12025. }];
  12026. }
  12027. },
  12028. watch: {
  12029. /**
  12030. * When v-model is changed set the new active tab.
  12031. */
  12032. value: function value(_value) {
  12033. this.changeTab(_value);
  12034. },
  12035. /**
  12036. * When tab-items are updated, set active one.
  12037. */
  12038. tabItems: function tabItems() {
  12039. if (this.activeTab < this.tabItems.length) {
  12040. this.tabItems[this.activeTab].isActive = true;
  12041. }
  12042. }
  12043. },
  12044. methods: {
  12045. /**
  12046. * Change the active tab and emit change event.
  12047. */
  12048. changeTab: function changeTab(newIndex) {
  12049. if (this.activeTab === newIndex) return;
  12050. if (this.activeTab < this.tabItems.length) {
  12051. this.tabItems[this.activeTab].deactivate(this.activeTab, newIndex);
  12052. }
  12053. this.tabItems[newIndex].activate(this.activeTab, newIndex);
  12054. this.activeTab = newIndex;
  12055. this.$emit('change', newIndex);
  12056. },
  12057. /**
  12058. * Tab click listener, emit input event and change active tab.
  12059. */
  12060. tabClick: function tabClick(value) {
  12061. this.$emit('input', value);
  12062. this.changeTab(value);
  12063. }
  12064. },
  12065. mounted: function mounted() {
  12066. if (this.activeTab < this.tabItems.length) {
  12067. this.tabItems[this.activeTab].isActive = true;
  12068. }
  12069. }
  12070. });
  12071. /***/ }),
  12072. /* 206 */
  12073. /***/ (function(module, exports) {
  12074. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  12075. return _c('div', {
  12076. staticClass: "b-tabs",
  12077. class: {
  12078. 'is-fullwidth': _vm.expanded
  12079. }
  12080. }, [_c('nav', {
  12081. staticClass: "tabs",
  12082. class: _vm.navClasses
  12083. }, [_c('ul', _vm._l((_vm.tabItems), function(tabItem, index) {
  12084. return _c('li', {
  12085. directives: [{
  12086. name: "show",
  12087. rawName: "v-show",
  12088. value: (tabItem.visible),
  12089. expression: "tabItem.visible"
  12090. }],
  12091. key: index,
  12092. class: {
  12093. 'is-active': _vm.activeTab === index, 'is-disabled': tabItem.disabled
  12094. }
  12095. }, [_c('a', {
  12096. on: {
  12097. "click": function($event) {
  12098. _vm.tabClick(index)
  12099. }
  12100. }
  12101. }, [(tabItem.$slots.header) ? [_c('b-slot-component', {
  12102. attrs: {
  12103. "component": tabItem,
  12104. "name": "header",
  12105. "tag": "span"
  12106. }
  12107. })] : [(tabItem.icon) ? _c('b-icon', {
  12108. attrs: {
  12109. "icon": tabItem.icon,
  12110. "pack": tabItem.iconPack,
  12111. "size": _vm.size
  12112. }
  12113. }) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(tabItem.label))])]], 2)])
  12114. }))]), _vm._v(" "), _c('section', {
  12115. staticClass: "tab-content",
  12116. class: {
  12117. 'is-transitioning': _vm.isTransitioning
  12118. }
  12119. }, [_vm._t("default")], 2)])
  12120. },staticRenderFns: []}
  12121. /***/ }),
  12122. /* 207 */
  12123. /***/ (function(module, exports, __webpack_require__) {
  12124. var Component = __webpack_require__(0)(
  12125. /* script */
  12126. __webpack_require__(208),
  12127. /* template */
  12128. null,
  12129. /* styles */
  12130. null,
  12131. /* scopeId */
  12132. null,
  12133. /* moduleIdentifier (server only) */
  12134. null
  12135. )
  12136. module.exports = Component.exports
  12137. /***/ }),
  12138. /* 208 */
  12139. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12140. "use strict";
  12141. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  12142. /* harmony default export */ __webpack_exports__["default"] = ({
  12143. name: 'BTabItem',
  12144. props: {
  12145. label: String,
  12146. icon: String,
  12147. iconPack: String,
  12148. disabled: Boolean,
  12149. visible: {
  12150. type: Boolean,
  12151. default: true
  12152. }
  12153. },
  12154. data: function data() {
  12155. return {
  12156. isActive: false,
  12157. transitionName: null
  12158. };
  12159. },
  12160. methods: {
  12161. /**
  12162. * Activate tab, alter animation name based on the index.
  12163. */
  12164. activate: function activate(oldIndex, index) {
  12165. this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
  12166. this.isActive = true;
  12167. },
  12168. /**
  12169. * Deactivate tab, alter animation name based on the index.
  12170. */
  12171. deactivate: function deactivate(oldIndex, index) {
  12172. this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
  12173. this.isActive = false;
  12174. }
  12175. },
  12176. created: function created() {
  12177. if (!this.$parent.$data._isTabs) {
  12178. this.$destroy();
  12179. throw new Error('You should wrap bTabItem on a bTabs');
  12180. }
  12181. this.$parent.tabItems.push(this);
  12182. },
  12183. beforeDestroy: function beforeDestroy() {
  12184. var index = this.$parent.tabItems.indexOf(this);
  12185. if (index >= 0) {
  12186. this.$parent.tabItems.splice(index, 1);
  12187. }
  12188. },
  12189. render: function render(createElement) {
  12190. var _this = this;
  12191. // if destroy apply v-if
  12192. if (this.$parent.destroyOnHide) {
  12193. if (!this.isActive || !this.visible) {
  12194. return;
  12195. }
  12196. }
  12197. var vnode = createElement('div', {
  12198. directives: [{
  12199. name: 'show',
  12200. value: this.isActive && this.visible
  12201. }],
  12202. attrs: { 'class': 'tab-item' }
  12203. }, this.$slots.default);
  12204. // check animated prop
  12205. if (this.$parent.animated) {
  12206. return createElement('transition', {
  12207. props: {
  12208. 'name': this.transitionName
  12209. },
  12210. on: {
  12211. 'before-enter': function beforeEnter() {
  12212. _this.$parent.isTransitioning = true;
  12213. },
  12214. 'after-enter': function afterEnter() {
  12215. _this.$parent.isTransitioning = false;
  12216. }
  12217. }
  12218. }, [vnode]);
  12219. }
  12220. return vnode;
  12221. }
  12222. });
  12223. /***/ }),
  12224. /* 209 */
  12225. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12226. "use strict";
  12227. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  12228. //
  12229. //
  12230. //
  12231. //
  12232. //
  12233. //
  12234. //
  12235. //
  12236. //
  12237. //
  12238. //
  12239. //
  12240. //
  12241. //
  12242. //
  12243. //
  12244. //
  12245. //
  12246. //
  12247. //
  12248. //
  12249. //
  12250. //
  12251. //
  12252. //
  12253. //
  12254. //
  12255. //
  12256. //
  12257. //
  12258. //
  12259. //
  12260. //
  12261. //
  12262. //
  12263. //
  12264. //
  12265. //
  12266. //
  12267. /* harmony default export */ __webpack_exports__["default"] = ({
  12268. name: 'BTag',
  12269. props: {
  12270. attached: Boolean,
  12271. closable: Boolean,
  12272. type: String,
  12273. size: String,
  12274. rounded: Boolean,
  12275. disabled: Boolean,
  12276. ellipsis: Boolean,
  12277. tabstop: {
  12278. type: Boolean,
  12279. default: true
  12280. }
  12281. },
  12282. methods: {
  12283. /**
  12284. * Emit close event when delete button is clicked
  12285. * or delete key is pressed.
  12286. */
  12287. close: function close() {
  12288. if (this.disabled) return;
  12289. this.$emit('close');
  12290. }
  12291. }
  12292. });
  12293. /***/ }),
  12294. /* 210 */
  12295. /***/ (function(module, exports) {
  12296. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  12297. return (_vm.attached && _vm.closable) ? _c('div', {
  12298. staticClass: "tags has-addons"
  12299. }, [_c('span', {
  12300. staticClass: "tag",
  12301. class: [_vm.type, _vm.size, {
  12302. 'is-rounded': _vm.rounded
  12303. }]
  12304. }, [_c('span', {
  12305. class: {
  12306. 'has-ellipsis': _vm.ellipsis
  12307. }
  12308. }, [_vm._t("default")], 2)]), _vm._v(" "), _c('a', {
  12309. staticClass: "tag is-delete",
  12310. class: [_vm.size, {
  12311. 'is-rounded': _vm.rounded
  12312. }],
  12313. attrs: {
  12314. "role": "button",
  12315. "tabindex": _vm.tabstop ? 0 : false,
  12316. "disabled": _vm.disabled
  12317. },
  12318. on: {
  12319. "click": function($event) {
  12320. _vm.close()
  12321. },
  12322. "keyup": function($event) {
  12323. if (!('button' in $event) && _vm._k($event.keyCode, "delete", [8, 46], $event.key)) { return null; }
  12324. $event.preventDefault();
  12325. _vm.close()
  12326. }
  12327. }
  12328. })]) : _c('span', {
  12329. staticClass: "tag",
  12330. class: [_vm.type, _vm.size, {
  12331. 'is-rounded': _vm.rounded
  12332. }]
  12333. }, [_c('span', {
  12334. class: {
  12335. 'has-ellipsis': _vm.ellipsis
  12336. }
  12337. }, [_vm._t("default")], 2), _vm._v(" "), (_vm.closable) ? _c('a', {
  12338. staticClass: "delete is-small",
  12339. attrs: {
  12340. "role": "button",
  12341. "disabled": _vm.disabled,
  12342. "tabindex": _vm.tabstop ? 0 : false
  12343. },
  12344. on: {
  12345. "click": function($event) {
  12346. _vm.close()
  12347. },
  12348. "keyup": function($event) {
  12349. if (!('button' in $event) && _vm._k($event.keyCode, "delete", [8, 46], $event.key)) { return null; }
  12350. $event.preventDefault();
  12351. _vm.close()
  12352. }
  12353. }
  12354. }) : _vm._e()])
  12355. },staticRenderFns: []}
  12356. /***/ }),
  12357. /* 211 */
  12358. /***/ (function(module, exports, __webpack_require__) {
  12359. var Component = __webpack_require__(0)(
  12360. /* script */
  12361. __webpack_require__(212),
  12362. /* template */
  12363. __webpack_require__(213),
  12364. /* styles */
  12365. null,
  12366. /* scopeId */
  12367. null,
  12368. /* moduleIdentifier (server only) */
  12369. null
  12370. )
  12371. module.exports = Component.exports
  12372. /***/ }),
  12373. /* 212 */
  12374. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12375. "use strict";
  12376. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  12377. //
  12378. //
  12379. //
  12380. //
  12381. //
  12382. //
  12383. /* harmony default export */ __webpack_exports__["default"] = ({
  12384. name: 'BTaglist',
  12385. props: {
  12386. attached: Boolean
  12387. }
  12388. });
  12389. /***/ }),
  12390. /* 213 */
  12391. /***/ (function(module, exports) {
  12392. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  12393. return _c('div', {
  12394. staticClass: "tags",
  12395. class: {
  12396. 'has-addons': _vm.attached
  12397. }
  12398. }, [_vm._t("default")], 2)
  12399. },staticRenderFns: []}
  12400. /***/ }),
  12401. /* 214 */
  12402. /***/ (function(module, exports, __webpack_require__) {
  12403. var Component = __webpack_require__(0)(
  12404. /* script */
  12405. __webpack_require__(215),
  12406. /* template */
  12407. __webpack_require__(216),
  12408. /* styles */
  12409. null,
  12410. /* scopeId */
  12411. null,
  12412. /* moduleIdentifier (server only) */
  12413. null
  12414. )
  12415. module.exports = Component.exports
  12416. /***/ }),
  12417. /* 215 */
  12418. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12419. "use strict";
  12420. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  12421. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(53);
  12422. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
  12423. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  12424. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
  12425. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_helpers__ = __webpack_require__(7);
  12426. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tag_Tag__ = __webpack_require__(69);
  12427. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tag_Tag___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__tag_Tag__);
  12428. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete__ = __webpack_require__(52);
  12429. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete__);
  12430. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_FormElementMixin__ = __webpack_require__(10);
  12431. var _components;
  12432. //
  12433. //
  12434. //
  12435. //
  12436. //
  12437. //
  12438. //
  12439. //
  12440. //
  12441. //
  12442. //
  12443. //
  12444. //
  12445. //
  12446. //
  12447. //
  12448. //
  12449. //
  12450. //
  12451. //
  12452. //
  12453. //
  12454. //
  12455. //
  12456. //
  12457. //
  12458. //
  12459. //
  12460. //
  12461. //
  12462. //
  12463. //
  12464. //
  12465. //
  12466. //
  12467. //
  12468. //
  12469. //
  12470. //
  12471. //
  12472. //
  12473. //
  12474. //
  12475. //
  12476. //
  12477. //
  12478. //
  12479. //
  12480. //
  12481. //
  12482. //
  12483. //
  12484. //
  12485. //
  12486. //
  12487. //
  12488. //
  12489. //
  12490. //
  12491. //
  12492. //
  12493. //
  12494. //
  12495. //
  12496. //
  12497. //
  12498. //
  12499. //
  12500. //
  12501. //
  12502. //
  12503. //
  12504. //
  12505. //
  12506. //
  12507. /* harmony default export */ __webpack_exports__["default"] = ({
  12508. name: 'BTaginput',
  12509. components: (_components = {}, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete___default.a.name, __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete___default.a), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_3__tag_Tag___default.a.name, __WEBPACK_IMPORTED_MODULE_3__tag_Tag___default.a), _components),
  12510. mixins: [__WEBPACK_IMPORTED_MODULE_5__utils_FormElementMixin__["a" /* default */]],
  12511. inheritAttrs: false,
  12512. props: {
  12513. value: {
  12514. type: Array,
  12515. default: function _default() {
  12516. return [];
  12517. }
  12518. },
  12519. data: {
  12520. type: Array,
  12521. default: function _default() {
  12522. return [];
  12523. }
  12524. },
  12525. type: String,
  12526. rounded: {
  12527. type: Boolean,
  12528. default: false
  12529. },
  12530. attached: {
  12531. type: Boolean,
  12532. default: false
  12533. },
  12534. maxtags: {
  12535. type: [Number, String],
  12536. required: false
  12537. },
  12538. field: {
  12539. type: String,
  12540. default: 'value'
  12541. },
  12542. autocomplete: Boolean,
  12543. nativeAutocomplete: String,
  12544. disabled: Boolean,
  12545. ellipsis: Boolean,
  12546. closable: {
  12547. type: Boolean,
  12548. default: true
  12549. },
  12550. confirmKeyCodes: {
  12551. type: Array,
  12552. default: function _default() {
  12553. return [13, 188];
  12554. }
  12555. },
  12556. removeOnKeys: {
  12557. type: Array,
  12558. default: function _default() {
  12559. return [8];
  12560. }
  12561. },
  12562. allowNew: Boolean,
  12563. onPasteSeparators: {
  12564. type: Array,
  12565. default: function _default() {
  12566. return [','];
  12567. }
  12568. },
  12569. beforeAdding: {
  12570. type: Function,
  12571. default: function _default() {
  12572. return true;
  12573. }
  12574. },
  12575. allowDuplicates: {
  12576. type: Boolean,
  12577. default: false
  12578. }
  12579. },
  12580. data: function data() {
  12581. return {
  12582. tags: this.value || [],
  12583. newTag: '',
  12584. _elementRef: 'input',
  12585. _isTaginput: true
  12586. };
  12587. },
  12588. computed: {
  12589. rootClasses: function rootClasses() {
  12590. return {
  12591. 'is-expanded': this.expanded
  12592. };
  12593. },
  12594. containerClasses: function containerClasses() {
  12595. return {
  12596. 'is-focused': this.isFocused,
  12597. 'is-focusable': this.hasInput
  12598. };
  12599. },
  12600. valueLength: function valueLength() {
  12601. return this.newTag.trim().length;
  12602. },
  12603. defaultSlotName: function defaultSlotName() {
  12604. return this.hasDefaultSlot ? 'default' : 'dontrender';
  12605. },
  12606. emptySlotName: function emptySlotName() {
  12607. return this.hasEmptySlot ? 'empty' : 'dontrender';
  12608. },
  12609. headerSlotName: function headerSlotName() {
  12610. return this.hasHeaderSlot ? 'header' : 'dontrender';
  12611. },
  12612. footerSlotName: function footerSlotName() {
  12613. return this.hasHeaderSlot ? 'footer' : 'dontrender';
  12614. },
  12615. hasDefaultSlot: function hasDefaultSlot() {
  12616. return !!this.$scopedSlots.default;
  12617. },
  12618. hasEmptySlot: function hasEmptySlot() {
  12619. return !!this.$slots.empty;
  12620. },
  12621. hasHeaderSlot: function hasHeaderSlot() {
  12622. return !!this.$slots.header;
  12623. },
  12624. hasFooterSlot: function hasFooterSlot() {
  12625. return !!this.$slots.footer;
  12626. },
  12627. /**
  12628. * Show the input field if a maxtags hasn't been set or reached.
  12629. */
  12630. hasInput: function hasInput() {
  12631. return this.maxtags == null || this.tagsLength < this.maxtags;
  12632. },
  12633. tagsLength: function tagsLength() {
  12634. return this.tags.length;
  12635. },
  12636. /**
  12637. * If Taginput has onPasteSeparators prop,
  12638. * returning new RegExp used to split pasted string.
  12639. */
  12640. separatorsAsRegExp: function separatorsAsRegExp() {
  12641. var sep = this.onPasteSeparators;
  12642. return sep.length ? new RegExp(sep.map(function (s) {
  12643. return s ? s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') : null;
  12644. }).join('|'), 'g') : null;
  12645. }
  12646. },
  12647. watch: {
  12648. /**
  12649. * When v-model is changed set internal value.
  12650. */
  12651. value: function value(_value) {
  12652. this.tags = _value;
  12653. },
  12654. hasInput: function hasInput() {
  12655. if (!this.hasInput) this.onBlur();
  12656. }
  12657. },
  12658. methods: {
  12659. addTag: function addTag(tag) {
  12660. var tagToAdd = tag || this.newTag.trim();
  12661. if (tagToAdd) {
  12662. if (!this.autocomplete) {
  12663. var reg = this.separatorsAsRegExp;
  12664. if (reg && tagToAdd.match(reg)) {
  12665. tagToAdd.split(reg).map(function (t) {
  12666. return t.trim();
  12667. }).filter(function (t) {
  12668. return t.length !== 0;
  12669. }).map(this.addTag);
  12670. return;
  12671. }
  12672. }
  12673. // Add the tag input if it is not blank
  12674. // or previously added (if not allowDuplicates).
  12675. var add = !this.allowDuplicates ? this.tags.indexOf(tagToAdd) === -1 : true;
  12676. if (add && this.beforeAdding(tagToAdd)) {
  12677. this.tags.push(tagToAdd);
  12678. this.$emit('input', this.tags);
  12679. this.$emit('add', tagToAdd);
  12680. }
  12681. }
  12682. this.newTag = '';
  12683. },
  12684. getNormalizedTagText: function getNormalizedTagText(tag) {
  12685. if ((typeof tag === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(tag)) === 'object') {
  12686. return Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */])(tag, this.field);
  12687. }
  12688. return tag;
  12689. },
  12690. customOnBlur: function customOnBlur($event) {
  12691. // Add tag on-blur if not select only
  12692. if (!this.autocomplete) this.addTag();
  12693. this.onBlur($event);
  12694. },
  12695. onSelect: function onSelect(option) {
  12696. var _this = this;
  12697. if (!option) return;
  12698. this.addTag(option);
  12699. this.$nextTick(function () {
  12700. _this.newTag = '';
  12701. });
  12702. },
  12703. removeTag: function removeTag(index) {
  12704. var tag = this.tags.splice(index, 1)[0];
  12705. this.$emit('input', this.tags);
  12706. this.$emit('remove', tag);
  12707. return tag;
  12708. },
  12709. removeLastTag: function removeLastTag() {
  12710. if (this.tagsLength > 0) {
  12711. this.removeTag(this.tagsLength - 1);
  12712. }
  12713. },
  12714. keydown: function keydown(event) {
  12715. if (this.removeOnKeys.indexOf(event.keyCode) !== -1 && !this.newTag.length) {
  12716. this.removeLastTag();
  12717. }
  12718. // Stop if is to accept select only
  12719. if (this.autocomplete && !this.allowNew) return;
  12720. if (this.confirmKeyCodes.indexOf(event.keyCode) >= 0) {
  12721. event.preventDefault();
  12722. this.addTag();
  12723. }
  12724. },
  12725. onTyping: function onTyping($event) {
  12726. this.$emit('typing', $event.trim());
  12727. }
  12728. }
  12729. });
  12730. /***/ }),
  12731. /* 216 */
  12732. /***/ (function(module, exports) {
  12733. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  12734. return _c('div', {
  12735. staticClass: "taginput control",
  12736. class: _vm.rootClasses
  12737. }, [_c('div', {
  12738. staticClass: "taginput-container",
  12739. class: [_vm.statusType, _vm.size, _vm.containerClasses],
  12740. attrs: {
  12741. "disabled": _vm.disabled
  12742. },
  12743. on: {
  12744. "click": function($event) {
  12745. _vm.hasInput && _vm.focus($event)
  12746. }
  12747. }
  12748. }, [_vm._l((_vm.tags), function(tag, index) {
  12749. return _c('b-tag', {
  12750. key: index,
  12751. attrs: {
  12752. "type": _vm.type,
  12753. "size": _vm.size,
  12754. "rounded": _vm.rounded,
  12755. "attached": _vm.attached,
  12756. "tabstop": false,
  12757. "disabled": _vm.disabled,
  12758. "ellipsis": _vm.ellipsis,
  12759. "closable": _vm.closable,
  12760. "title": _vm.ellipsis && _vm.getNormalizedTagText(tag)
  12761. },
  12762. on: {
  12763. "close": function($event) {
  12764. _vm.removeTag(index)
  12765. }
  12766. }
  12767. }, [_vm._v("\n " + _vm._s(_vm.getNormalizedTagText(tag)) + "\n ")])
  12768. }), _vm._v(" "), (_vm.hasInput) ? _c('b-autocomplete', _vm._b({
  12769. ref: "autocomplete",
  12770. attrs: {
  12771. "data": _vm.data,
  12772. "field": _vm.field,
  12773. "icon": _vm.icon,
  12774. "icon-pack": _vm.iconPack,
  12775. "maxlength": _vm.maxlength,
  12776. "has-counter": false,
  12777. "size": _vm.size,
  12778. "disabled": _vm.disabled,
  12779. "loading": _vm.loading,
  12780. "autocomplete": _vm.nativeAutocomplete,
  12781. "keep-first": !_vm.allowNew,
  12782. "use-html5-validation": _vm.useHtml5Validation
  12783. },
  12784. on: {
  12785. "typing": _vm.onTyping,
  12786. "focus": _vm.onFocus,
  12787. "blur": _vm.customOnBlur,
  12788. "select": _vm.onSelect
  12789. },
  12790. nativeOn: {
  12791. "keydown": function($event) {
  12792. _vm.keydown($event)
  12793. }
  12794. },
  12795. scopedSlots: _vm._u([{
  12796. key: _vm.defaultSlotName,
  12797. fn: function(props) {
  12798. return [_vm._t("default", null, {
  12799. option: props.option,
  12800. index: props.index
  12801. })]
  12802. }
  12803. }]),
  12804. model: {
  12805. value: (_vm.newTag),
  12806. callback: function($$v) {
  12807. _vm.newTag = $$v
  12808. },
  12809. expression: "newTag"
  12810. }
  12811. }, 'b-autocomplete', _vm.$attrs, false), [_c('template', {
  12812. slot: _vm.headerSlotName
  12813. }, [_vm._t("header")], 2), _vm._v(" "), _c('template', {
  12814. slot: _vm.emptySlotName
  12815. }, [_vm._t("empty")], 2), _vm._v(" "), _c('template', {
  12816. slot: _vm.footerSlotName
  12817. }, [_vm._t("footer")], 2)], 2) : _vm._e()], 2), _vm._v(" "), (_vm.maxtags || _vm.maxlength) ? _c('p', {
  12818. staticClass: "help counter"
  12819. }, [(_vm.maxlength && _vm.valueLength > 0) ? [_vm._v("\n " + _vm._s(_vm.valueLength) + " / " + _vm._s(_vm.maxlength) + "\n ")] : (_vm.maxtags) ? [_vm._v("\n " + _vm._s(_vm.tagsLength) + " / " + _vm._s(_vm.maxtags) + "\n ")] : _vm._e()], 2) : _vm._e()])
  12820. },staticRenderFns: []}
  12821. /***/ }),
  12822. /* 217 */
  12823. /***/ (function(module, exports, __webpack_require__) {
  12824. var Component = __webpack_require__(0)(
  12825. /* script */
  12826. __webpack_require__(218),
  12827. /* template */
  12828. __webpack_require__(219),
  12829. /* styles */
  12830. null,
  12831. /* scopeId */
  12832. null,
  12833. /* moduleIdentifier (server only) */
  12834. null
  12835. )
  12836. module.exports = Component.exports
  12837. /***/ }),
  12838. /* 218 */
  12839. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12840. "use strict";
  12841. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  12842. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
  12843. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
  12844. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__ = __webpack_require__(62);
  12845. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__ = __webpack_require__(28);
  12846. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__);
  12847. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__ = __webpack_require__(29);
  12848. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__);
  12849. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input__ = __webpack_require__(17);
  12850. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__input_Input__);
  12851. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field__ = __webpack_require__(30);
  12852. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__field_Field__);
  12853. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__select_Select__ = __webpack_require__(31);
  12854. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__select_Select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__select_Select__);
  12855. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__icon_Icon__ = __webpack_require__(3);
  12856. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__icon_Icon__);
  12857. var _components;
  12858. //
  12859. //
  12860. //
  12861. //
  12862. //
  12863. //
  12864. //
  12865. //
  12866. //
  12867. //
  12868. //
  12869. //
  12870. //
  12871. //
  12872. //
  12873. //
  12874. //
  12875. //
  12876. //
  12877. //
  12878. //
  12879. //
  12880. //
  12881. //
  12882. //
  12883. //
  12884. //
  12885. //
  12886. //
  12887. //
  12888. //
  12889. //
  12890. //
  12891. //
  12892. //
  12893. //
  12894. //
  12895. //
  12896. //
  12897. //
  12898. //
  12899. //
  12900. //
  12901. //
  12902. //
  12903. //
  12904. //
  12905. //
  12906. //
  12907. //
  12908. //
  12909. //
  12910. //
  12911. //
  12912. //
  12913. //
  12914. //
  12915. //
  12916. //
  12917. //
  12918. //
  12919. //
  12920. //
  12921. //
  12922. //
  12923. //
  12924. //
  12925. //
  12926. //
  12927. //
  12928. //
  12929. //
  12930. //
  12931. //
  12932. //
  12933. //
  12934. //
  12935. //
  12936. //
  12937. //
  12938. //
  12939. //
  12940. //
  12941. //
  12942. //
  12943. //
  12944. //
  12945. //
  12946. //
  12947. //
  12948. //
  12949. //
  12950. //
  12951. //
  12952. //
  12953. //
  12954. //
  12955. //
  12956. //
  12957. //
  12958. //
  12959. //
  12960. //
  12961. //
  12962. //
  12963. //
  12964. //
  12965. //
  12966. //
  12967. //
  12968. //
  12969. //
  12970. //
  12971. //
  12972. //
  12973. //
  12974. //
  12975. //
  12976. //
  12977. /* harmony default export */ __webpack_exports__["default"] = ({
  12978. name: 'BTimepicker',
  12979. components: (_components = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_4__input_Input___default.a.name, __WEBPACK_IMPORTED_MODULE_4__input_Input___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_5__field_Field___default.a.name, __WEBPACK_IMPORTED_MODULE_5__field_Field___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_6__select_Select___default.a.name, __WEBPACK_IMPORTED_MODULE_6__select_Select___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_7__icon_Icon___default.a.name, __WEBPACK_IMPORTED_MODULE_7__icon_Icon___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default.a.name, __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default.a), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_components, __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default.a.name, __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default.a), _components),
  12980. mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__["a" /* default */]],
  12981. inheritAttrs: false,
  12982. data: function data() {
  12983. return {
  12984. _isTimepicker: true
  12985. };
  12986. }
  12987. });
  12988. /***/ }),
  12989. /* 219 */
  12990. /***/ (function(module, exports) {
  12991. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  12992. return _c('div', {
  12993. staticClass: "timepicker control",
  12994. class: [_vm.size, {
  12995. 'is-expanded': _vm.expanded
  12996. }]
  12997. }, [(!_vm.isMobile || _vm.inline) ? _c('b-dropdown', {
  12998. ref: "dropdown",
  12999. attrs: {
  13000. "position": _vm.position,
  13001. "disabled": _vm.disabled,
  13002. "inline": _vm.inline
  13003. }
  13004. }, [(!_vm.inline) ? _c('b-input', _vm._b({
  13005. ref: "input",
  13006. attrs: {
  13007. "slot": "trigger",
  13008. "autocomplete": "off",
  13009. "value": _vm.formatValue(_vm.computedValue),
  13010. "placeholder": _vm.placeholder,
  13011. "size": _vm.size,
  13012. "icon": _vm.icon,
  13013. "icon-pack": _vm.iconPack,
  13014. "loading": _vm.loading,
  13015. "disabled": _vm.disabled,
  13016. "readonly": !_vm.editable,
  13017. "rounded": _vm.rounded,
  13018. "use-html5-validation": _vm.useHtml5Validation
  13019. },
  13020. on: {
  13021. "focus": _vm.handleOnFocus,
  13022. "blur": function($event) {
  13023. _vm.onBlur() && _vm.checkHtml5Validity()
  13024. }
  13025. },
  13026. nativeOn: {
  13027. "keyup": function($event) {
  13028. if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
  13029. _vm.toggle(true)
  13030. },
  13031. "change": function($event) {
  13032. _vm.onChange($event.target.value)
  13033. }
  13034. },
  13035. slot: "trigger"
  13036. }, 'b-input', _vm.$attrs, false)) : _vm._e(), _vm._v(" "), _c('b-dropdown-item', {
  13037. attrs: {
  13038. "disabled": _vm.disabled,
  13039. "custom": ""
  13040. }
  13041. }, [_c('b-field', {
  13042. attrs: {
  13043. "grouped": "",
  13044. "position": "is-centered"
  13045. }
  13046. }, [_c('b-select', {
  13047. attrs: {
  13048. "disabled": _vm.disabled,
  13049. "placeholder": "00"
  13050. },
  13051. nativeOn: {
  13052. "change": function($event) {
  13053. _vm.onHoursChange($event.target.value)
  13054. }
  13055. },
  13056. model: {
  13057. value: (_vm.hoursSelected),
  13058. callback: function($$v) {
  13059. _vm.hoursSelected = $$v
  13060. },
  13061. expression: "hoursSelected"
  13062. }
  13063. }, _vm._l((_vm.hours), function(hour) {
  13064. return _c('option', {
  13065. key: hour.value,
  13066. attrs: {
  13067. "disabled": _vm.isHourDisabled(hour.value)
  13068. },
  13069. domProps: {
  13070. "value": hour.value
  13071. }
  13072. }, [_vm._v("\n " + _vm._s(hour.label) + "\n ")])
  13073. })), _vm._v(" "), _c('span', {
  13074. staticClass: "control is-colon"
  13075. }, [_vm._v(":")]), _vm._v(" "), _c('b-select', {
  13076. attrs: {
  13077. "disabled": _vm.disabled,
  13078. "placeholder": "00"
  13079. },
  13080. nativeOn: {
  13081. "change": function($event) {
  13082. _vm.onMinutesChange($event.target.value)
  13083. }
  13084. },
  13085. model: {
  13086. value: (_vm.minutesSelected),
  13087. callback: function($$v) {
  13088. _vm.minutesSelected = $$v
  13089. },
  13090. expression: "minutesSelected"
  13091. }
  13092. }, _vm._l((_vm.minutes), function(minute) {
  13093. return _c('option', {
  13094. key: minute.value,
  13095. attrs: {
  13096. "disabled": _vm.isMinuteDisabled(minute.value)
  13097. },
  13098. domProps: {
  13099. "value": minute.value
  13100. }
  13101. }, [_vm._v("\n " + _vm._s(minute.label) + "\n ")])
  13102. })), _vm._v(" "), (_vm.enableSeconds) ? [_c('span', {
  13103. staticClass: "control is-colon"
  13104. }, [_vm._v(":")]), _vm._v(" "), _c('b-select', {
  13105. attrs: {
  13106. "disabled": _vm.disabled,
  13107. "placeholder": "00"
  13108. },
  13109. nativeOn: {
  13110. "change": function($event) {
  13111. _vm.onSecondsChange($event.target.value)
  13112. }
  13113. },
  13114. model: {
  13115. value: (_vm.secondsSelected),
  13116. callback: function($$v) {
  13117. _vm.secondsSelected = $$v
  13118. },
  13119. expression: "secondsSelected"
  13120. }
  13121. }, _vm._l((_vm.seconds), function(second) {
  13122. return _c('option', {
  13123. key: second.value,
  13124. attrs: {
  13125. "disabled": _vm.isSecondDisabled(second.value)
  13126. },
  13127. domProps: {
  13128. "value": second.value
  13129. }
  13130. }, [_vm._v("\n " + _vm._s(second.label) + "\n ")])
  13131. }))] : _vm._e(), _vm._v(" "), (!_vm.isHourFormat24) ? _c('b-select', {
  13132. attrs: {
  13133. "disabled": _vm.disabled
  13134. },
  13135. nativeOn: {
  13136. "change": function($event) {
  13137. _vm.onMeridienChange($event.target.value)
  13138. }
  13139. },
  13140. model: {
  13141. value: (_vm.meridienSelected),
  13142. callback: function($$v) {
  13143. _vm.meridienSelected = $$v
  13144. },
  13145. expression: "meridienSelected"
  13146. }
  13147. }, _vm._l((_vm.meridiens), function(meridien) {
  13148. return _c('option', {
  13149. key: meridien,
  13150. domProps: {
  13151. "value": meridien
  13152. }
  13153. }, [_vm._v("\n " + _vm._s(meridien) + "\n ")])
  13154. })) : _vm._e()], 2), _vm._v(" "), (_vm.$slots.default !== undefined && _vm.$slots.default.length) ? _c('footer', {
  13155. staticClass: "timepicker-footer"
  13156. }, [_vm._t("default")], 2) : _vm._e()], 1)], 1) : _c('b-input', _vm._b({
  13157. ref: "input",
  13158. attrs: {
  13159. "type": "time",
  13160. "autocomplete": "off",
  13161. "value": _vm.formatHHMMSS(_vm.computedValue),
  13162. "placeholder": _vm.placeholder,
  13163. "size": _vm.size,
  13164. "icon": _vm.icon,
  13165. "icon-pack": _vm.iconPack,
  13166. "loading": _vm.loading,
  13167. "max": _vm.formatHHMMSS(_vm.maxTime),
  13168. "min": _vm.formatHHMMSS(_vm.minTime),
  13169. "disabled": _vm.disabled,
  13170. "readonly": false,
  13171. "use-html5-validation": _vm.useHtml5Validation
  13172. },
  13173. on: {
  13174. "focus": _vm.handleOnFocus,
  13175. "blur": function($event) {
  13176. _vm.onBlur() && _vm.checkHtml5Validity()
  13177. }
  13178. },
  13179. nativeOn: {
  13180. "change": function($event) {
  13181. _vm.onChange($event.target.value)
  13182. }
  13183. }
  13184. }, 'b-input', _vm.$attrs, false))], 1)
  13185. },staticRenderFns: []}
  13186. /***/ }),
  13187. /* 220 */
  13188. /***/ (function(module, exports, __webpack_require__) {
  13189. var Component = __webpack_require__(0)(
  13190. /* script */
  13191. __webpack_require__(221),
  13192. /* template */
  13193. __webpack_require__(222),
  13194. /* styles */
  13195. null,
  13196. /* scopeId */
  13197. null,
  13198. /* moduleIdentifier (server only) */
  13199. null
  13200. )
  13201. module.exports = Component.exports
  13202. /***/ }),
  13203. /* 221 */
  13204. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13205. "use strict";
  13206. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  13207. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
  13208. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__ = __webpack_require__(45);
  13209. //
  13210. //
  13211. //
  13212. //
  13213. //
  13214. //
  13215. //
  13216. //
  13217. //
  13218. //
  13219. //
  13220. //
  13221. //
  13222. //
  13223. //
  13224. /* harmony default export */ __webpack_exports__["default"] = ({
  13225. name: 'BToast',
  13226. mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__["a" /* default */]],
  13227. data: function data() {
  13228. return {
  13229. newDuration: this.duration || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultToastDuration
  13230. };
  13231. }
  13232. });
  13233. /***/ }),
  13234. /* 222 */
  13235. /***/ (function(module, exports) {
  13236. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  13237. return _c('transition', {
  13238. attrs: {
  13239. "enter-active-class": _vm.transition.enter,
  13240. "leave-active-class": _vm.transition.leave
  13241. }
  13242. }, [_c('div', {
  13243. directives: [{
  13244. name: "show",
  13245. rawName: "v-show",
  13246. value: (_vm.isActive),
  13247. expression: "isActive"
  13248. }],
  13249. staticClass: "toast",
  13250. class: [_vm.type, _vm.position],
  13251. attrs: {
  13252. "aria-hidden": !_vm.isActive,
  13253. "role": "alert"
  13254. }
  13255. }, [_c('div', {
  13256. domProps: {
  13257. "innerHTML": _vm._s(_vm.message)
  13258. }
  13259. })])])
  13260. },staticRenderFns: []}
  13261. /***/ }),
  13262. /* 223 */
  13263. /***/ (function(module, exports, __webpack_require__) {
  13264. var Component = __webpack_require__(0)(
  13265. /* script */
  13266. __webpack_require__(224),
  13267. /* template */
  13268. __webpack_require__(225),
  13269. /* styles */
  13270. null,
  13271. /* scopeId */
  13272. null,
  13273. /* moduleIdentifier (server only) */
  13274. null
  13275. )
  13276. module.exports = Component.exports
  13277. /***/ }),
  13278. /* 224 */
  13279. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13280. "use strict";
  13281. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  13282. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
  13283. //
  13284. //
  13285. //
  13286. //
  13287. //
  13288. //
  13289. //
  13290. //
  13291. //
  13292. //
  13293. //
  13294. //
  13295. //
  13296. //
  13297. //
  13298. /* harmony default export */ __webpack_exports__["default"] = ({
  13299. name: 'BTooltip',
  13300. props: {
  13301. active: {
  13302. type: Boolean,
  13303. default: true
  13304. },
  13305. type: String,
  13306. label: String,
  13307. position: {
  13308. type: String,
  13309. default: 'is-top',
  13310. validator: function validator(value) {
  13311. return ['is-top', 'is-bottom', 'is-left', 'is-right'].indexOf(value) > -1;
  13312. }
  13313. },
  13314. always: Boolean,
  13315. animated: Boolean,
  13316. square: Boolean,
  13317. dashed: Boolean,
  13318. multilined: Boolean,
  13319. size: {
  13320. type: String,
  13321. default: 'is-medium'
  13322. }
  13323. },
  13324. computed: {
  13325. newType: function newType() {
  13326. return this.type || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultTooltipType;
  13327. },
  13328. newAnimated: function newAnimated() {
  13329. return this.animated || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultTooltipAnimated;
  13330. }
  13331. }
  13332. });
  13333. /***/ }),
  13334. /* 225 */
  13335. /***/ (function(module, exports) {
  13336. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  13337. return _c('span', {
  13338. class: [_vm.newType, _vm.position, _vm.size, {
  13339. 'b-tooltip': _vm.active,
  13340. 'is-square': _vm.square,
  13341. 'is-animated': _vm.newAnimated,
  13342. 'is-always': _vm.always,
  13343. 'is-multiline': _vm.multilined,
  13344. 'is-dashed': _vm.dashed
  13345. }],
  13346. attrs: {
  13347. "data-label": _vm.label
  13348. }
  13349. }, [_vm._t("default")], 2)
  13350. },staticRenderFns: []}
  13351. /***/ }),
  13352. /* 226 */
  13353. /***/ (function(module, exports, __webpack_require__) {
  13354. var Component = __webpack_require__(0)(
  13355. /* script */
  13356. __webpack_require__(227),
  13357. /* template */
  13358. __webpack_require__(228),
  13359. /* styles */
  13360. null,
  13361. /* scopeId */
  13362. null,
  13363. /* moduleIdentifier (server only) */
  13364. null
  13365. )
  13366. module.exports = Component.exports
  13367. /***/ }),
  13368. /* 227 */
  13369. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13370. "use strict";
  13371. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  13372. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_FormElementMixin__ = __webpack_require__(10);
  13373. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_ssr__ = __webpack_require__(64);
  13374. //
  13375. //
  13376. //
  13377. //
  13378. //
  13379. //
  13380. //
  13381. //
  13382. //
  13383. //
  13384. //
  13385. //
  13386. //
  13387. //
  13388. //
  13389. //
  13390. //
  13391. //
  13392. //
  13393. //
  13394. //
  13395. //
  13396. //
  13397. //
  13398. //
  13399. //
  13400. //
  13401. //
  13402. //
  13403. //
  13404. //
  13405. //
  13406. //
  13407. //
  13408. /* harmony default export */ __webpack_exports__["default"] = ({
  13409. name: 'BUpload',
  13410. mixins: [__WEBPACK_IMPORTED_MODULE_0__utils_FormElementMixin__["a" /* default */]],
  13411. inheritAttrs: false,
  13412. props: {
  13413. value: {
  13414. type: [Object, Function, __WEBPACK_IMPORTED_MODULE_1__utils_ssr__["a" /* File */], Array]
  13415. },
  13416. multiple: Boolean,
  13417. disabled: Boolean,
  13418. accept: String,
  13419. dragDrop: Boolean,
  13420. type: {
  13421. type: String,
  13422. default: 'is-primary'
  13423. },
  13424. native: {
  13425. type: Boolean,
  13426. default: false
  13427. }
  13428. },
  13429. data: function data() {
  13430. return {
  13431. newValue: this.value,
  13432. dragDropFocus: false,
  13433. _elementRef: 'input'
  13434. };
  13435. },
  13436. watch: {
  13437. /**
  13438. * When v-model is changed:
  13439. * 1. Set internal value.
  13440. * 2. Reset input value if array is empty
  13441. * 3. If it's invalid, validate again.
  13442. */
  13443. value: function value(_value) {
  13444. this.newValue = _value;
  13445. if (!this.newValue || Array.isArray(this.newValue) && this.newValue.length === 0) {
  13446. this.$refs.input.value = null;
  13447. }
  13448. !this.isValid && !this.dragDrop && this.checkHtml5Validity();
  13449. }
  13450. },
  13451. methods: {
  13452. /**
  13453. * Listen change event on input type 'file',
  13454. * emit 'input' event and validate
  13455. */
  13456. onFileChange: function onFileChange(event) {
  13457. if (this.disabled || this.loading) return;
  13458. if (this.dragDrop) {
  13459. this.updateDragDropFocus(false);
  13460. }
  13461. var value = event.target.files || event.dataTransfer.files;
  13462. if (value.length === 0) {
  13463. if (!this.newValue) {
  13464. return;
  13465. }
  13466. this.newValue = null;
  13467. } else if (!this.multiple) {
  13468. // only one element in case drag drop mode and isn't multiple
  13469. if (this.dragDrop && value.length !== 1) return;else {
  13470. var file = value[0];
  13471. if (this.checkType(file)) {
  13472. this.newValue = file;
  13473. } else if (this.newValue) {
  13474. this.newValue = null;
  13475. } else {
  13476. return;
  13477. }
  13478. }
  13479. } else {
  13480. // always new values if native or undefined local
  13481. var newValues = false;
  13482. if (this.native || !this.newValue) {
  13483. this.newValue = [];
  13484. newValues = true;
  13485. }
  13486. for (var i = 0; i < value.length; i++) {
  13487. var _file = value[i];
  13488. if (this.checkType(_file)) {
  13489. this.newValue.push(_file);
  13490. newValues = true;
  13491. }
  13492. }
  13493. if (!newValues) {
  13494. return;
  13495. }
  13496. }
  13497. this.$emit('input', this.newValue);
  13498. !this.dragDrop && this.checkHtml5Validity();
  13499. },
  13500. /**
  13501. * Listen drag-drop to update internal variable
  13502. */
  13503. updateDragDropFocus: function updateDragDropFocus(focus) {
  13504. if (!this.disabled && !this.loading) {
  13505. this.dragDropFocus = focus;
  13506. }
  13507. },
  13508. /**
  13509. * Check mime type of file
  13510. */
  13511. checkType: function checkType(file) {
  13512. if (!this.accept) return true;
  13513. var types = this.accept.split(',');
  13514. if (types.length === 0) return true;
  13515. var valid = false;
  13516. for (var i = 0; i < types.length && !valid; i++) {
  13517. var type = types[i].trim();
  13518. if (type) {
  13519. if (type.substring(0, 1) === '.') {
  13520. // check extension
  13521. var extIndex = file.name.lastIndexOf('.');
  13522. var extension = extIndex >= 0 ? file.name.substring(extIndex) : '';
  13523. if (extension.toLowerCase() === type.toLowerCase()) {
  13524. valid = true;
  13525. }
  13526. } else {
  13527. // check mime type
  13528. if (file.type.match(type)) {
  13529. valid = true;
  13530. }
  13531. }
  13532. }
  13533. }
  13534. return valid;
  13535. }
  13536. }
  13537. });
  13538. /***/ }),
  13539. /* 228 */
  13540. /***/ (function(module, exports) {
  13541. module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  13542. return _c('label', {
  13543. staticClass: "upload control"
  13544. }, [(!_vm.dragDrop) ? [_vm._t("default")] : _c('div', {
  13545. staticClass: "upload-draggable",
  13546. class: [_vm.type, {
  13547. 'is-loading': _vm.loading,
  13548. 'is-disabled': _vm.disabled,
  13549. 'is-hovered': _vm.dragDropFocus
  13550. }],
  13551. on: {
  13552. "dragover": function($event) {
  13553. $event.preventDefault();
  13554. _vm.updateDragDropFocus(true)
  13555. },
  13556. "dragleave": function($event) {
  13557. $event.preventDefault();
  13558. _vm.updateDragDropFocus(false)
  13559. },
  13560. "dragenter": function($event) {
  13561. $event.preventDefault();
  13562. _vm.updateDragDropFocus(true)
  13563. },
  13564. "drop": function($event) {
  13565. $event.preventDefault();
  13566. _vm.onFileChange($event)
  13567. }
  13568. }
  13569. }, [_vm._t("default")], 2), _vm._v(" "), _c('input', _vm._b({
  13570. ref: "input",
  13571. class: {
  13572. 'file-draggable': _vm.dragDrop
  13573. },
  13574. attrs: {
  13575. "type": "file",
  13576. "multiple": _vm.multiple,
  13577. "accept": _vm.accept,
  13578. "disabled": _vm.disabled,
  13579. "use-html5-validation": _vm.useHtml5Validation
  13580. },
  13581. on: {
  13582. "change": _vm.onFileChange
  13583. }
  13584. }, 'input', _vm.$attrs, false))], 2)
  13585. },staticRenderFns: []}
  13586. /***/ })
  13587. /******/ ]);
  13588. });