1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413 |
- /*! Buefy v0.7.8 | MIT License | github.com/buefy/buefy */
- (function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory(require("vue"));
- else if(typeof define === 'function' && define.amd)
- define(["vue"], factory);
- else if(typeof exports === 'object')
- exports["Buefy"] = factory(require("vue"));
- else
- root["Buefy"] = factory(root["Vue"]);
- })(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_18__) {
- return /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, {
- /******/ configurable: false,
- /******/ enumerable: true,
- /******/ get: getter
- /******/ });
- /******/ }
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/";
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 70);
- /******/ })
- /************************************************************************/
- /******/ ([
- /* 0 */
- /***/ (function(module, exports) {
-
- /* globals __VUE_SSR_CONTEXT__ */
-
- // this module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle
-
- module.exports = function normalizeComponent (
- rawScriptExports,
- compiledTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier /* server only */
- ) {
- var esModule
- var scriptExports = rawScriptExports = rawScriptExports || {}
-
- // ES6 modules interop
- var type = typeof rawScriptExports.default
- if (type === 'object' || type === 'function') {
- esModule = rawScriptExports
- scriptExports = rawScriptExports.default
- }
-
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
-
- // render functions
- if (compiledTemplate) {
- options.render = compiledTemplate.render
- options.staticRenderFns = compiledTemplate.staticRenderFns
- }
-
- // scopedId
- if (scopeId) {
- options._scopeId = scopeId
- }
-
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = injectStyles
- }
-
- if (hook) {
- var functional = options.functional
- var existing = functional
- ? options.render
- : options.beforeCreate
- if (!functional) {
- // inject component registration as beforeCreate hook
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- } else {
- // register for functioal component in vue file
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return existing(h, context)
- }
- }
- }
-
- return {
- esModule: esModule,
- exports: scriptExports,
- options: options
- }
- }
-
-
- /***/ }),
- /* 1 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
-
- var _defineProperty = __webpack_require__(102);
-
- var _defineProperty2 = _interopRequireDefault(_defineProperty);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = function (obj, key, value) {
- if (key in obj) {
- (0, _defineProperty2.default)(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
- };
-
- /***/ }),
- /* 2 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return setOptions; });
- var config = {
- defaultContainerElement: null,
- defaultIconPack: 'mdi',
- defaultIconComponent: null,
- defaultDialogConfirmText: null,
- defaultDialogCancelText: null,
- defaultSnackbarDuration: 3500,
- defaultSnackbarPosition: null,
- defaultToastDuration: 2000,
- defaultToastPosition: null,
- defaultNotificationDuration: 2000,
- defaultNotificationPosition: null,
- defaultTooltipType: 'is-primary',
- defaultTooltipAnimated: false,
- defaultInputAutocomplete: 'on',
- defaultDateFormatter: null,
- defaultDateParser: null,
- defaultDateCreator: null,
- defaultDayNames: null,
- defaultMonthNames: null,
- defaultFirstDayOfWeek: null,
- defaultUnselectableDaysOfWeek: null,
- defaultTimeFormatter: null,
- defaultTimeParser: null,
- defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
- defaultModalScroll: null,
- defaultDatepickerMobileNative: true,
- defaultTimepickerMobileNative: true,
- defaultNoticeQueue: true,
- defaultInputHasCounter: true,
- defaultUseHtml5Validation: true,
- defaultDropdownMobileModal: true,
- defaultFielLabelPosition: null,
- defaultDatepickerYearsRange: [-100, 3],
- defaultDatepickerNearbyMonthDays: true,
- defaultDatepickerNearbySelectableMonthDays: false
- };
-
- /* harmony default export */ __webpack_exports__["a"] = (config);
-
- var setOptions = function setOptions(options) {
- config = options;
- };
-
- /***/ }),
- /* 3 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(106),
- /* template */
- __webpack_require__(107),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 4 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var store = __webpack_require__(37)('wks');
- var uid = __webpack_require__(26);
- var Symbol = __webpack_require__(8).Symbol;
- var USE_SYMBOL = typeof Symbol == 'function';
-
- var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
- };
-
- $exports.store = store;
-
-
- /***/ }),
- /* 5 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(89), __esModule: true };
-
- /***/ }),
- /* 6 */
- /***/ (function(module, exports) {
-
- var core = module.exports = { version: '2.5.7' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
-
-
- /***/ }),
- /* 7 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (immutable) */ __webpack_exports__["a"] = getValueByPath;
- /* harmony export (immutable) */ __webpack_exports__["b"] = indexOf;
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isMobile; });
- /* harmony export (immutable) */ __webpack_exports__["d"] = removeElement;
- /* unused harmony export escapeRegExpChars */
- /**
- * Get value of an object property/path even if it's nested
- */
- function getValueByPath(obj, path) {
- var value = path.split('.').reduce(function (o, i) {
- return o[i];
- }, obj);
- return value;
- }
-
- /**
- * Extension of indexOf method by equality function if specified
- */
- function indexOf(array, obj, fn) {
- if (!array) return -1;
-
- if (!fn || typeof fn !== 'function') return array.indexOf(obj);
-
- for (var i = 0; i < array.length; i++) {
- if (fn(array[i], obj)) {
- return i;
- }
- }
-
- return -1;
- }
-
- /**
- * Mobile detection
- * https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript
- */
- var isMobile = {
- Android: function Android() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/Android/i);
- },
- BlackBerry: function BlackBerry() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/BlackBerry/i);
- },
- iOS: function iOS() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/iPhone|iPad|iPod/i);
- },
- Opera: function Opera() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/Opera Mini/i);
- },
- Windows: function Windows() {
- return typeof window !== 'undefined' && window.navigator.userAgent.match(/IEMobile/i);
- },
- any: function any() {
- return isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows();
- }
- };
-
- function removeElement(el) {
- if (typeof el.remove !== 'undefined') {
- el.remove();
- } else if (typeof el.parentNode !== 'undefined') {
- el.parentNode.removeChild(el);
- }
- }
-
- /**
- * Escape regex characters
- * http://stackoverflow.com/a/6969486
- */
- function escapeRegExpChars(value) {
- if (!value) return value;
-
- // eslint-disable-next-line
- return value.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
- }
-
- /***/ }),
- /* 8 */
- /***/ (function(module, exports) {
-
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
-
-
- /***/ }),
- /* 9 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var anObject = __webpack_require__(15);
- var IE8_DOM_DEFINE = __webpack_require__(47);
- var toPrimitive = __webpack_require__(32);
- var dP = Object.defineProperty;
-
- exports.f = __webpack_require__(12) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
-
-
- /***/ }),
- /* 10 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
-
-
- /* harmony default export */ __webpack_exports__["a"] = ({
- props: {
- size: String,
- expanded: Boolean,
- loading: Boolean,
- rounded: Boolean,
- icon: String,
- iconPack: String,
- // Native options to use in HTML5 validation
- autocomplete: String,
- maxlength: [Number, String],
- useHtml5Validation: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultUseHtml5Validation;
- }
- },
- validationMessage: String
- },
- data: function data() {
- return {
- isValid: true,
- isFocused: false,
- newIconPack: this.iconPack || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultIconPack
- };
- },
-
- computed: {
- /**
- * Find parent Field, max 3 levels deep.
- */
- parentField: function parentField() {
- var parent = this.$parent;
- for (var i = 0; i < 3; i++) {
- if (parent && !parent.$data._isField) {
- parent = parent.$parent;
- }
- }
- return parent;
- },
-
-
- /**
- * Get the type prop from parent if it's a Field.
- */
- statusType: function statusType() {
- if (!this.parentField) return;
- if (!this.parentField.newType) return;
- if (typeof this.parentField.newType === 'string') {
- return this.parentField.newType;
- } else {
- for (var key in this.parentField.newType) {
- if (this.parentField.newType[key]) {
- return key;
- }
- }
- }
- },
-
-
- /**
- * Get the message prop from parent if it's a Field.
- */
- statusMessage: function statusMessage() {
- if (!this.parentField) return;
-
- return this.parentField.newMessage;
- },
-
-
- /**
- * Fix icon size for inputs, large was too big
- */
- iconSize: function iconSize() {
- switch (this.size) {
- case 'is-small':
- return this.size;
- case 'is-medium':
- return;
- case 'is-large':
- return this.newIconPack === 'mdi' ? 'is-medium' : '';
- }
- }
- },
- methods: {
- /**
- * Focus method that work dynamically depending on the component.
- */
- focus: function focus() {
- var _this = this;
-
- if (this.$data._elementRef === undefined) return;
-
- this.$nextTick(function () {
- var el = _this.$el.querySelector(_this.$data._elementRef);
- if (el) el.focus();
- });
- },
- onBlur: function onBlur($event) {
- this.isFocused = false;
- this.$emit('blur', $event);
- this.checkHtml5Validity();
- },
- onFocus: function onFocus($event) {
- this.isFocused = true;
- this.$emit('focus', $event);
- },
-
-
- /**
- * Check HTML5 validation, set isValid property.
- * If validation fail, send 'is-danger' type,
- * and error message to parent if it's a Field.
- */
- checkHtml5Validity: function checkHtml5Validity() {
- var _this2 = this;
-
- if (!this.useHtml5Validation) return;
-
- if (this.$refs[this.$data._elementRef] === undefined) return;
-
- var el = this.$el.querySelector(this.$data._elementRef);
-
- var type = null;
- var message = null;
- var isValid = true;
- if (!el.checkValidity()) {
- type = 'is-danger';
- message = this.validationMessage || el.validationMessage;
- isValid = false;
- }
- this.isValid = isValid;
-
- this.$nextTick(function () {
- if (_this2.parentField) {
- // Set type only if not defined
- if (!_this2.parentField.type) {
- _this2.parentField.newType = type;
- }
- // Set message only if not defined
- if (!_this2.parentField.message) {
- _this2.parentField.newMessage = message;
- }
- }
- });
-
- return this.isValid;
- }
- }
- });
-
- /***/ }),
- /* 11 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(71), __esModule: true };
-
- /***/ }),
- /* 12 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__(21)(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
-
-
- /***/ }),
- /* 13 */
- /***/ (function(module, exports) {
-
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
-
-
- /***/ }),
- /* 14 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var dP = __webpack_require__(9);
- var createDesc = __webpack_require__(22);
- module.exports = __webpack_require__(12) ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
-
-
- /***/ }),
- /* 15 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var isObject = __webpack_require__(20);
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
-
-
- /***/ }),
- /* 16 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__(50);
- var defined = __webpack_require__(34);
- module.exports = function (it) {
- return IObject(defined(it));
- };
-
-
- /***/ }),
- /* 17 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(105),
- /* template */
- __webpack_require__(108),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 18 */
- /***/ (function(module, exports) {
-
- module.exports = __WEBPACK_EXTERNAL_MODULE_18__;
-
- /***/ }),
- /* 19 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var global = __webpack_require__(8);
- var core = __webpack_require__(6);
- var ctx = __webpack_require__(46);
- var hide = __webpack_require__(14);
- var has = __webpack_require__(13);
- var PROTOTYPE = 'prototype';
-
- var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var IS_WRAP = type & $export.W;
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE];
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
- var key, own, out;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- if (own && has(exports, key)) continue;
- // export native or passed
- out = own ? target[key] : source[key];
- // prevent global pollution for namespaces
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
- // bind timers to global for call from export context
- : IS_BIND && own ? ctx(out, global)
- // wrap global constructors for prevent change them in library
- : IS_WRAP && target[key] == out ? (function (C) {
- var F = function (a, b, c) {
- if (this instanceof C) {
- switch (arguments.length) {
- case 0: return new C();
- case 1: return new C(a);
- case 2: return new C(a, b);
- } return new C(a, b, c);
- } return C.apply(this, arguments);
- };
- F[PROTOTYPE] = C[PROTOTYPE];
- return F;
- // make static versions for prototype methods
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
- if (IS_PROTO) {
- (exports.virtual || (exports.virtual = {}))[key] = out;
- // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
- if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
- }
- }
- };
- // type bitmap
- $export.F = 1; // forced
- $export.G = 2; // global
- $export.S = 4; // static
- $export.P = 8; // proto
- $export.B = 16; // bind
- $export.W = 32; // wrap
- $export.U = 64; // safe
- $export.R = 128; // real proto method for `library`
- module.exports = $export;
-
-
- /***/ }),
- /* 20 */
- /***/ (function(module, exports) {
-
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
-
-
- /***/ }),
- /* 21 */
- /***/ (function(module, exports) {
-
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
-
-
- /***/ }),
- /* 22 */
- /***/ (function(module, exports) {
-
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
-
-
- /***/ }),
- /* 23 */
- /***/ (function(module, exports) {
-
- module.exports = {};
-
-
- /***/ }),
- /* 24 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__(49);
- var enumBugKeys = __webpack_require__(38);
-
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
-
-
- /***/ }),
- /* 25 */
- /***/ (function(module, exports) {
-
- module.exports = true;
-
-
- /***/ }),
- /* 26 */
- /***/ (function(module, exports) {
-
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
-
-
- /***/ }),
- /* 27 */
- /***/ (function(module, exports) {
-
- exports.f = {}.propertyIsEnumerable;
-
-
- /***/ }),
- /* 28 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(123),
- /* template */
- __webpack_require__(124),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 29 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(125),
- /* template */
- __webpack_require__(126),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 30 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(127),
- /* template */
- __webpack_require__(130),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 31 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(137),
- /* template */
- __webpack_require__(138),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 32 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__(20);
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
-
-
- /***/ }),
- /* 33 */
- /***/ (function(module, exports) {
-
- var toString = {}.toString;
-
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
-
-
- /***/ }),
- /* 34 */
- /***/ (function(module, exports) {
-
- // 7.2.1 RequireObjectCoercible(argument)
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
-
-
- /***/ }),
- /* 35 */
- /***/ (function(module, exports) {
-
- // 7.1.4 ToInteger
- var ceil = Math.ceil;
- var floor = Math.floor;
- module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
- };
-
-
- /***/ }),
- /* 36 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var shared = __webpack_require__(37)('keys');
- var uid = __webpack_require__(26);
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
-
-
- /***/ }),
- /* 37 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var core = __webpack_require__(6);
- var global = __webpack_require__(8);
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || (global[SHARED] = {});
-
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: core.version,
- mode: __webpack_require__(25) ? 'pure' : 'global',
- copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
- });
-
-
- /***/ }),
- /* 38 */
- /***/ (function(module, exports) {
-
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
-
-
- /***/ }),
- /* 39 */
- /***/ (function(module, exports) {
-
- exports.f = Object.getOwnPropertySymbols;
-
-
- /***/ }),
- /* 40 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__(34);
- module.exports = function (it) {
- return Object(defined(it));
- };
-
-
- /***/ }),
- /* 41 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var $at = __webpack_require__(81)(true);
-
- // 21.1.3.27 String.prototype[@@iterator]()
- __webpack_require__(54)(String, 'String', function (iterated) {
- this._t = String(iterated); // target
- this._i = 0; // next index
- // 21.1.5.2.1 %StringIteratorPrototype%.next()
- }, function () {
- var O = this._t;
- var index = this._i;
- var point;
- if (index >= O.length) return { value: undefined, done: true };
- point = $at(O, index);
- this._i += point.length;
- return { value: point, done: false };
- });
-
-
- /***/ }),
- /* 42 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var def = __webpack_require__(9).f;
- var has = __webpack_require__(13);
- var TAG = __webpack_require__(4)('toStringTag');
-
- module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
- };
-
-
- /***/ }),
- /* 43 */
- /***/ (function(module, exports, __webpack_require__) {
-
- exports.f = __webpack_require__(4);
-
-
- /***/ }),
- /* 44 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var global = __webpack_require__(8);
- var core = __webpack_require__(6);
- var LIBRARY = __webpack_require__(25);
- var wksExt = __webpack_require__(43);
- var defineProperty = __webpack_require__(9).f;
- module.exports = function (name) {
- var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
- if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
- };
-
-
- /***/ }),
- /* 45 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__helpers__ = __webpack_require__(7);
-
-
-
- /* harmony default export */ __webpack_exports__["a"] = ({
- props: {
- type: {
- type: String,
- default: 'is-dark'
- },
- message: String,
- duration: Number,
- queue: {
- type: Boolean,
- default: undefined
- },
- position: {
- type: String,
- default: 'is-top',
- validator: function validator(value) {
- return ['is-top-right', 'is-top', 'is-top-left', 'is-bottom-right', 'is-bottom', 'is-bottom-left'].indexOf(value) > -1;
- }
- },
- container: String
- },
- data: function data() {
- return {
- isActive: false,
- parentTop: null,
- parentBottom: null,
- newContainer: this.container || __WEBPACK_IMPORTED_MODULE_0__config__["a" /* default */].defaultContainerElement
- };
- },
-
- computed: {
- correctParent: function correctParent() {
- switch (this.position) {
- case 'is-top-right':
- case 'is-top':
- case 'is-top-left':
- return this.parentTop;
-
- case 'is-bottom-right':
- case 'is-bottom':
- case 'is-bottom-left':
- return this.parentBottom;
- }
- },
- transition: function transition() {
- switch (this.position) {
- case 'is-top-right':
- case 'is-top':
- case 'is-top-left':
- return {
- enter: 'fadeInDown',
- leave: 'fadeOut'
- };
- case 'is-bottom-right':
- case 'is-bottom':
- case 'is-bottom-left':
- return {
- enter: 'fadeInUp',
- leave: 'fadeOut'
- };
- }
- }
- },
- methods: {
- shouldQueue: function shouldQueue() {
- var queue = this.queue !== undefined ? this.queue : __WEBPACK_IMPORTED_MODULE_0__config__["a" /* default */].defaultNoticeQueue;
-
- if (!queue) return false;
-
- return this.parentTop.childElementCount > 0 || this.parentBottom.childElementCount > 0;
- },
- close: function close() {
- var _this = this;
-
- clearTimeout(this.timer);
- this.isActive = false;
-
- // Timeout for the animation complete before destroying
- setTimeout(function () {
- _this.$destroy();
- Object(__WEBPACK_IMPORTED_MODULE_1__helpers__["d" /* removeElement */])(_this.$el);
- }, 150);
- },
- showNotice: function showNotice() {
- var _this2 = this;
-
- if (this.shouldQueue()) {
- // Call recursively if should queue
- setTimeout(function () {
- return _this2.showNotice();
- }, 250);
- return;
- }
- this.correctParent.insertAdjacentElement('afterbegin', this.$el);
- this.isActive = true;
-
- if (!this.indefinite) {
- this.timer = setTimeout(function () {
- return _this2.close();
- }, this.newDuration);
- }
- },
- setupContainer: function setupContainer() {
- this.parentTop = document.querySelector('.notices.is-top');
- this.parentBottom = document.querySelector('.notices.is-bottom');
-
- if (this.parentTop && this.parentBottom) return;
-
- if (!this.parentTop) {
- this.parentTop = document.createElement('div');
- this.parentTop.className = 'notices is-top';
- }
-
- if (!this.parentBottom) {
- this.parentBottom = document.createElement('div');
- this.parentBottom.className = 'notices is-bottom';
- }
-
- var container = document.querySelector(this.newContainer) || document.body;
-
- container.appendChild(this.parentTop);
- container.appendChild(this.parentBottom);
-
- if (this.newContainer) {
- this.parentTop.classList.add('has-custom-container');
- this.parentBottom.classList.add('has-custom-container');
- }
- }
- },
- beforeMount: function beforeMount() {
- this.setupContainer();
- },
- mounted: function mounted() {
- this.showNotice();
- }
- });
-
- /***/ }),
- /* 46 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // optional / simple context binding
- var aFunction = __webpack_require__(73);
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
-
-
- /***/ }),
- /* 47 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = !__webpack_require__(12) && !__webpack_require__(21)(function () {
- return Object.defineProperty(__webpack_require__(48)('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
-
-
- /***/ }),
- /* 48 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var isObject = __webpack_require__(20);
- var document = __webpack_require__(8).document;
- // typeof document.createElement is 'object' in old IE
- var is = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return is ? document.createElement(it) : {};
- };
-
-
- /***/ }),
- /* 49 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var has = __webpack_require__(13);
- var toIObject = __webpack_require__(16);
- var arrayIndexOf = __webpack_require__(75)(false);
- var IE_PROTO = __webpack_require__(36)('IE_PROTO');
-
- module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
-
-
- /***/ }),
- /* 50 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__(33);
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
-
-
- /***/ }),
- /* 51 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 7.1.15 ToLength
- var toInteger = __webpack_require__(35);
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
-
-
- /***/ }),
- /* 52 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(78),
- /* template */
- __webpack_require__(109),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 53 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
-
- var _iterator = __webpack_require__(79);
-
- var _iterator2 = _interopRequireDefault(_iterator);
-
- var _symbol = __webpack_require__(5);
-
- var _symbol2 = _interopRequireDefault(_symbol);
-
- 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; };
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
- return typeof obj === "undefined" ? "undefined" : _typeof(obj);
- } : function (obj) {
- return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
- };
-
- /***/ }),
- /* 54 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var LIBRARY = __webpack_require__(25);
- var $export = __webpack_require__(19);
- var redefine = __webpack_require__(55);
- var hide = __webpack_require__(14);
- var Iterators = __webpack_require__(23);
- var $iterCreate = __webpack_require__(82);
- var setToStringTag = __webpack_require__(42);
- var getPrototypeOf = __webpack_require__(85);
- var ITERATOR = __webpack_require__(4)('iterator');
- var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
- var FF_ITERATOR = '@@iterator';
- var KEYS = 'keys';
- var VALUES = 'values';
-
- var returnThis = function () { return this; };
-
- module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
- var getMethod = function (kind) {
- if (!BUGGY && kind in proto) return proto[kind];
- switch (kind) {
- case KEYS: return function keys() { return new Constructor(this, kind); };
- case VALUES: return function values() { return new Constructor(this, kind); };
- } return function entries() { return new Constructor(this, kind); };
- };
- var TAG = NAME + ' Iterator';
- var DEF_VALUES = DEFAULT == VALUES;
- var VALUES_BUG = false;
- var proto = Base.prototype;
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
- var $default = $native || getMethod(DEFAULT);
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
- var methods, key, IteratorPrototype;
- // Fix native
- if ($anyNative) {
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
- // Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
- // fix for some old engines
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
- }
- }
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEF_VALUES && $native && $native.name !== VALUES) {
- VALUES_BUG = true;
- $default = function values() { return $native.call(this); };
- }
- // Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
- hide(proto, ITERATOR, $default);
- }
- // Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
- if (DEFAULT) {
- methods = {
- values: DEF_VALUES ? $default : getMethod(VALUES),
- keys: IS_SET ? $default : getMethod(KEYS),
- entries: $entries
- };
- if (FORCED) for (key in methods) {
- if (!(key in proto)) redefine(proto, key, methods[key]);
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
- }
- return methods;
- };
-
-
- /***/ }),
- /* 55 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = __webpack_require__(14);
-
-
- /***/ }),
- /* 56 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__(15);
- var dPs = __webpack_require__(83);
- var enumBugKeys = __webpack_require__(38);
- var IE_PROTO = __webpack_require__(36)('IE_PROTO');
- var Empty = function () { /* empty */ };
- var PROTOTYPE = 'prototype';
-
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__(48)('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__(84).appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
- };
-
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
- };
-
-
- /***/ }),
- /* 57 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(86);
- var global = __webpack_require__(8);
- var hide = __webpack_require__(14);
- var Iterators = __webpack_require__(23);
- var TO_STRING_TAG = __webpack_require__(4)('toStringTag');
-
- var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
- 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
- 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
- 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
- 'TextTrackList,TouchList').split(',');
-
- for (var i = 0; i < DOMIterables.length; i++) {
- var NAME = DOMIterables[i];
- var Collection = global[NAME];
- var proto = Collection && Collection.prototype;
- if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
- Iterators[NAME] = Iterators.Array;
- }
-
-
- /***/ }),
- /* 58 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__(49);
- var hiddenKeys = __webpack_require__(38).concat('length', 'prototype');
-
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
- };
-
-
- /***/ }),
- /* 59 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(99), __esModule: true };
-
- /***/ }),
- /* 60 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var classof = __webpack_require__(101);
- var ITERATOR = __webpack_require__(4)('iterator');
- var Iterators = __webpack_require__(23);
- module.exports = __webpack_require__(6).getIteratorMethod = function (it) {
- if (it != undefined) return it[ITERATOR]
- || it['@@iterator']
- || Iterators[classof(it)];
- };
-
-
- /***/ }),
- /* 61 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(113),
- /* template */
- __webpack_require__(114),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 62 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormElementMixin__ = __webpack_require__(10);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__(2);
- var _this = this;
-
-
-
-
-
- var AM = 'AM';
- var PM = 'PM';
- var HOUR_FORMAT_24 = '24';
- var HOUR_FORMAT_12 = '12';
-
- var defaultTimeFormatter = function defaultTimeFormatter(date, vm) {
- var hours = date.getHours();
- var minutes = date.getMinutes();
- var seconds = date.getSeconds();
- var period = '';
- if (vm.hourFormat === HOUR_FORMAT_12) {
- period = ' ' + (hours < 12 ? AM : PM);
- if (hours > 12) {
- hours -= 12;
- } else if (hours === 0) {
- hours = 12;
- }
- }
- return vm.pad(hours) + ':' + vm.pad(minutes) + (vm.enableSeconds ? ':' + vm.pad(seconds) : '') + period;
- };
-
- var defaultTimeParser = function defaultTimeParser(timeString, vm) {
- if (timeString) {
- var am = false;
- if (vm.hourFormat === HOUR_FORMAT_12) {
- var dateString12 = timeString.split(' ');
- timeString = dateString12[0];
- am = dateString12[1] === AM;
- }
- var time = timeString.split(':');
- var hours = parseInt(time[0], 10);
- var minutes = parseInt(time[1], 10);
- var seconds = vm.enableSeconds ? parseInt(time[2], 10) : 0;
- if (isNaN(hours) || hours < 0 || hours > 23 || vm.hourFormat === HOUR_FORMAT_12 && (hours < 1 || hours > 12) || isNaN(minutes) || minutes < 0 || minutes > 59) {
- return null;
- }
- var d = null;
- if (vm.computedValue && !isNaN(vm.computedValue)) {
- d = new Date(vm.computedValue);
- } else {
- d = new Date();
- d.setMilliseconds(0);
- }
- d.setSeconds(seconds);
- d.setMinutes(minutes);
- if (_this.hourFormat === HOUR_FORMAT_12) {
- if (am && hours === 12) {
- hours = 0;
- } else if (!am && hours !== 12) {
- hours += 12;
- }
- }
- d.setHours(hours);
- return new Date(d.geTime());
- }
- return null;
- };
-
- /* harmony default export */ __webpack_exports__["a"] = ({
- mixins: [__WEBPACK_IMPORTED_MODULE_0__FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: Date,
- inline: Boolean,
- minTime: Date,
- maxTime: Date,
- placeholder: String,
- editable: Boolean,
- disabled: Boolean,
- hourFormat: {
- type: String,
- default: HOUR_FORMAT_24,
- validator: function validator(value) {
- return value === HOUR_FORMAT_24 || value === HOUR_FORMAT_12;
- }
- },
- incrementMinutes: {
- type: Number,
- default: 1
- },
- incrementSeconds: {
- type: Number,
- default: 1
- },
- timeFormatter: {
- type: Function,
- default: function _default(date, vm) {
- if (typeof __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeFormatter === 'function') {
- return __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeFormatter(date);
- } else {
- return defaultTimeFormatter(date, vm);
- }
- }
- },
- timeParser: {
- type: Function,
- default: function _default(date, vm) {
- if (typeof __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeParser === 'function') {
- return __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimeParser(date);
- } else {
- return defaultTimeParser(date, vm);
- }
- }
- },
- mobileNative: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_2__config__["a" /* default */].defaultTimepickerMobileNative;
- }
- },
- position: String,
- unselectableTimes: Array,
- openOnFocus: Boolean,
- enableSeconds: Boolean
- },
- data: function data() {
- return {
- dateSelected: this.value,
- hoursSelected: null,
- minutesSelected: null,
- secondsSelected: null,
- meridienSelected: null,
- _elementRef: 'input',
- AM: AM,
- PM: PM,
- HOUR_FORMAT_24: HOUR_FORMAT_24,
- HOUR_FORMAT_12: HOUR_FORMAT_12
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.dateSelected;
- },
- set: function set(value) {
- this.dateSelected = value;
- this.$emit('input', value);
- }
- },
- hours: function hours() {
- var hours = [];
- var numberOfHours = this.isHourFormat24 ? 24 : 12;
- for (var i = 0; i < numberOfHours; i++) {
- var value = i;
- var label = value;
- if (!this.isHourFormat24) {
- value = i + 1;
- label = value;
- if (this.meridienSelected === this.AM) {
- if (value === 12) {
- value = 0;
- }
- } else if (this.meridienSelected === this.PM) {
- if (value !== 12) {
- value += 12;
- }
- }
- }
- hours.push({
- label: this.formatNumber(label),
- value: value
- });
- }
- return hours;
- },
- minutes: function minutes() {
- var minutes = [];
- for (var i = 0; i < 60; i += this.incrementMinutes) {
- minutes.push({
- label: this.formatNumber(i),
- value: i
- });
- }
- return minutes;
- },
- seconds: function seconds() {
- var seconds = [];
- for (var i = 0; i < 60; i += this.incrementSeconds) {
- seconds.push({
- label: this.formatNumber(i),
- value: i
- });
- }
- return seconds;
- },
- meridiens: function meridiens() {
- return [AM, PM];
- },
- isMobile: function isMobile() {
- return this.mobileNative && __WEBPACK_IMPORTED_MODULE_1__helpers__["c" /* isMobile */].any();
- },
- isHourFormat24: function isHourFormat24() {
- return this.hourFormat === HOUR_FORMAT_24;
- }
- },
- watch: {
- hourFormat: function hourFormat() {
- if (this.hoursSelected !== null) {
- this.meridienSelected = this.hoursSelected >= 12 ? PM : AM;
- }
- },
-
- /**
- * When v-model is changed:
- * 1. Update internal value.
- * 2. If it's invalid, validate again.
- */
- value: {
- handler: function handler(value) {
- this.updateInternalState(value);
- !this.isValid && this.$refs.input.checkHtml5Validity();
- },
-
- immediate: true
- }
- },
- methods: {
- onMeridienChange: function onMeridienChange(value) {
- if (this.hoursSelected !== null) {
- if (value === PM) {
- this.hoursSelected += 12;
- } else if (value === AM) {
- this.hoursSelected -= 12;
- }
- }
- this.updateDateSelected(this.hoursSelected, this.minutesSelected, this.enableSeconds ? this.secondsSelected : 0, value);
- },
- onHoursChange: function onHoursChange(value) {
- this.updateDateSelected(parseInt(value, 10), this.minutesSelected, this.enableSeconds ? this.secondsSelected : 0, this.meridienSelected);
- },
- onMinutesChange: function onMinutesChange(value) {
- this.updateDateSelected(this.hoursSelected, parseInt(value, 10), this.enableSeconds ? this.secondsSelected : 0, this.meridienSelected);
- },
- onSecondsChange: function onSecondsChange(value) {
- this.updateDateSelected(this.hoursSelected, this.minutesSelected, parseInt(value, 10), this.meridienSelected);
- },
- updateDateSelected: function updateDateSelected(hours, minutes, seconds, meridiens) {
- if (hours != null && minutes != null && (!this.isHourFormat24 && meridiens !== null || this.isHourFormat24)) {
- var time = null;
- if (this.computedValue && !isNaN(this.computedValue)) {
- time = new Date(this.computedValue);
- } else {
- time = new Date();
- time.setMilliseconds(0);
- }
- time.setHours(hours);
- time.setMinutes(minutes);
- time.setSeconds(seconds);
- this.computedValue = new Date(time.getTime());
- }
- },
- updateInternalState: function updateInternalState(value) {
- if (value) {
- this.hoursSelected = value.getHours();
- this.minutesSelected = value.getMinutes();
- this.secondsSelected = value.getSeconds();
- this.meridienSelected = value.getHours() >= 12 ? PM : AM;
- } else {
- this.hoursSelected = null;
- this.minutesSelected = null;
- this.secondsSelected = null;
- this.meridienSelected = AM;
- }
- this.dateSelected = value;
- },
- isHourDisabled: function isHourDisabled(hour) {
- var _this2 = this;
-
- var disabled = false;
- if (this.minTime) {
- var minHours = this.minTime.getHours();
- disabled = hour < minHours;
- }
- if (this.maxTime) {
- if (!disabled) {
- var maxHours = this.maxTime.getHours();
- disabled = hour > maxHours;
- }
- }
- if (this.unselectableTimes) {
- if (!disabled) {
- var unselectable = this.unselectableTimes.filter(function (time) {
- if (_this2.enableSeconds && _this2.secondsSelected !== null) {
- return time.getHours() === hour && time.getMinutes() === _this2.minutesSelected && time.getSeconds() === _this2.secondsSelected;
- } else if (_this2.minutesSelected !== null) {
- return time.getHours() === hour && time.getMinutes() === _this2.minutesSelected;
- } else {
- return time.getHours() === hour;
- }
- });
- disabled = unselectable.length > 0;
- }
- }
- return disabled;
- },
- isMinuteDisabled: function isMinuteDisabled(minute) {
- var _this3 = this;
-
- var disabled = false;
- if (this.hoursSelected !== null) {
- if (this.isHourDisabled(this.hoursSelected)) {
- disabled = true;
- } else {
- if (this.minTime) {
- var minHours = this.minTime.getHours();
- var minMinutes = this.minTime.getMinutes();
- disabled = this.hoursSelected === minHours && minute < minMinutes;
- }
- if (this.maxTime) {
- if (!disabled) {
- var maxHours = this.maxTime.getHours();
- var maxMinutes = this.maxTime.getMinutes();
- disabled = this.hoursSelected === maxHours && minute > maxMinutes;
- }
- }
- }
- if (this.unselectableTimes) {
- if (!disabled) {
- var unselectable = this.unselectableTimes.filter(function (time) {
- if (_this3.enableSeconds && _this3.secondsSelected !== null) {
- return time.getHours() === _this3.hoursSelected && time.getMinutes() === minute && time.getSeconds() === _this3.secondsSelected;
- } else {
- return time.getHours() === _this3.hoursSelected && time.getMinutes() === minute;
- }
- });
- disabled = unselectable.length > 0;
- }
- }
- }
- return disabled;
- },
- isSecondDisabled: function isSecondDisabled(second) {
- var _this4 = this;
-
- var disabled = false;
- if (this.minutesSelected !== null) {
- if (this.isMinuteDisabled(this.minutesSelected)) {
- disabled = true;
- } else {
- if (this.minTime) {
- var minHours = this.minTime.getHours();
- var minMinutes = this.minTime.getMinutes();
- var minSeconds = this.minTime.getSeconds();
- disabled = this.hoursSelected === minHours && this.minutesSelected === minMinutes && second < minSeconds;
- }
- if (this.maxTime) {
- if (!disabled) {
- var maxHours = this.maxTime.getHours();
- var maxMinutes = this.maxTime.getMinutes();
- var maxSeconds = this.maxTime.getSeconds();
- disabled = this.hoursSelected === maxHours && this.minutesSelected === maxMinutes && second > maxSeconds;
- }
- }
- }
- if (this.unselectableTimes) {
- if (!disabled) {
- var unselectable = this.unselectableTimes.filter(function (time) {
- return time.getHours() === _this4.hoursSelected && time.getMinutes() === _this4.minutesSelected && time.getSeconds() === second;
- });
- disabled = unselectable.length > 0;
- }
- }
- }
- return disabled;
- },
-
-
- /*
- * Parse string into date
- */
- onChange: function onChange(value) {
- var date = this.timeParser(value, this);
- this.updateInternalState(date);
- if (date && !isNaN(date)) {
- this.computedValue = date;
- } else {
- // Force refresh input value when not valid date
- this.computedValue = null;
- this.$refs.input.newValue = this.computedValue;
- }
- },
-
-
- /*
- * Toggle timepicker
- */
- toggle: function toggle(active) {
- if (this.$refs.dropdown) {
- this.$refs.dropdown.isActive = typeof active === 'boolean' ? active : !this.$refs.dropdown.isActive;
- }
- },
-
-
- /*
- * Close timepicker
- */
- close: function close() {
- this.toggle(false);
- },
-
-
- /*
- * Call default onFocus method and show timepicker
- */
- handleOnFocus: function handleOnFocus() {
- this.onFocus();
- if (this.openOnFocus) {
- this.toggle(true);
- }
- },
-
-
- /*
- * Format date into string 'HH-MM-SS'
- */
- formatHHMMSS: function formatHHMMSS(value) {
- var date = new Date(value);
- if (value && !isNaN(date)) {
- var hours = date.getHours();
- var minutes = date.getMinutes();
- var seconds = date.getSeconds();
- return this.formatNumber(hours) + ':' + this.formatNumber(minutes, true) + ':' + this.formatNumber(seconds, true);
- }
- return '';
- },
-
-
- /*
- * Parse time from string
- */
- onChangeNativePicker: function onChangeNativePicker(event) {
- var date = event.target.value;
- if (date) {
- var time = null;
- if (this.computedValue && !isNaN(this.computedValue)) {
- time = new Date(this.computedValue);
- } else {
- time = new Date();
- time.setMilliseconds(0);
- }
- var t = date.split(':');
- time.setHours(parseInt(t[0], 10));
- time.setMinutes(parseInt(t[1], 10));
- time.setSeconds(t[2] ? parseInt(t[2], 10) : 0);
- this.computedValue = new Date(time.getTime());
- } else {
- this.computedValue = null;
- }
- },
- formatNumber: function formatNumber(value, isMinute) {
- return this.isHourFormat24 || isMinute ? this.pad(value) : value;
- },
- pad: function pad(value) {
- return (value < 10 ? '0' : '') + value;
- },
-
-
- /*
- * Format date into string
- */
- formatValue: function formatValue(date) {
- if (date && !isNaN(date)) {
- return this.timeFormatter(date, this);
- } else {
- return null;
- }
- },
-
- /**
- * Keypress event that is bound to the document.
- */
- keyPress: function keyPress(event) {
- // Esc key
- if (this.$refs.dropdown && this.$refs.dropdown.isActive && event.keyCode === 27) {
- this.toggle(false);
- }
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('keyup', this.keyPress);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('keyup', this.keyPress);
- }
- }
- });
-
- /***/ }),
- /* 63 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(151),
- /* template */
- __webpack_require__(152),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 64 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* unused harmony export isSSR */
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return HTMLElement; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return File; });
- // Polyfills for SSR
-
- var isSSR = typeof window === 'undefined';
-
- var HTMLElement = isSSR ? Object : window.HTMLElement;
- var File = isSSR ? Object : window.File;
-
- /***/ }),
- /* 65 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__components_icon_Icon__);
-
-
-
- /* harmony default export */ __webpack_exports__["a"] = ({
- 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),
- props: {
- active: {
- type: Boolean,
- default: true
- },
- title: String,
- closable: {
- type: Boolean,
- default: true
- },
- message: String,
- type: String,
- hasIcon: Boolean,
- size: String,
- iconPack: String,
- iconSize: String,
- autoClose: {
- type: Boolean,
- default: false
- },
- duration: {
- type: Number,
- default: 2000
- }
- },
- data: function data() {
- return {
- isActive: this.active
- };
- },
-
- watch: {
- active: function active(value) {
- this.isActive = value;
- },
- isActive: function isActive(value) {
- if (value) {
- this.setAutoClose();
- } else {
- if (this.timer) {
- clearTimeout(this.timer);
- }
- }
- }
- },
- computed: {
- /**
- * Icon name (MDI) based on type.
- */
- icon: function icon() {
- switch (this.type) {
- case 'is-info':
- return 'information';
- case 'is-success':
- return 'check-circle';
- case 'is-warning':
- return 'alert';
- case 'is-danger':
- return 'alert-circle';
- default:
- return null;
- }
- }
- },
- methods: {
- /**
- * Close the Message and emit events.
- */
- close: function close() {
- this.isActive = false;
- this.$emit('close');
- this.$emit('update:active', false);
- },
-
- /**
- * Set timer to auto close message
- */
- setAutoClose: function setAutoClose() {
- var _this = this;
-
- if (this.autoClose) {
- this.timer = setTimeout(function () {
- if (_this.isActive) {
- _this.close();
- }
- }, this.duration);
- }
- }
- },
- mounted: function mounted() {
- this.setAutoClose();
- }
- });
-
- /***/ }),
- /* 66 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(169),
- /* template */
- __webpack_require__(170),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 67 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony default export */ __webpack_exports__["a"] = ({
- name: 'BSlotComponent',
- props: {
- component: {
- type: Object,
- required: true
- },
- name: {
- type: String,
- default: 'default'
- },
- tag: {
- type: String,
- default: 'div'
- },
- event: {
- type: String,
- default: 'hook:updated'
- }
- },
- methods: {
- refresh: function refresh() {
- this.$forceUpdate();
- },
- isVueComponent: function isVueComponent() {
- return this.component && this.component._isVue;
- }
- },
- created: function created() {
- if (this.isVueComponent()) {
- this.component.$on(this.event, this.refresh);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (this.isVueComponent()) {
- this.component.$off(this.event, this.refresh);
- }
- },
- render: function render(h) {
- if (this.isVueComponent()) {
- var slots = this.component.$slots[this.name];
- return h(this.tag, {}, slots);
- }
- }
- });
-
- /***/ }),
- /* 68 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(201),
- /* template */
- __webpack_require__(202),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 69 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(209),
- /* template */
- __webpack_require__(210),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 70 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- var components_namespaceObject = {};
- __webpack_require__.d(components_namespaceObject, "Autocomplete", function() { return autocomplete; });
- __webpack_require__.d(components_namespaceObject, "Button", function() { return components_button; });
- __webpack_require__.d(components_namespaceObject, "Checkbox", function() { return components_checkbox; });
- __webpack_require__.d(components_namespaceObject, "Clockpicker", function() { return clockpicker; });
- __webpack_require__.d(components_namespaceObject, "Collapse", function() { return collapse; });
- __webpack_require__.d(components_namespaceObject, "Datepicker", function() { return datepicker; });
- __webpack_require__.d(components_namespaceObject, "Dialog", function() { return dialog; });
- __webpack_require__.d(components_namespaceObject, "Dropdown", function() { return dropdown; });
- __webpack_require__.d(components_namespaceObject, "Field", function() { return field; });
- __webpack_require__.d(components_namespaceObject, "Icon", function() { return icon; });
- __webpack_require__.d(components_namespaceObject, "Input", function() { return input; });
- __webpack_require__.d(components_namespaceObject, "Loading", function() { return loading; });
- __webpack_require__.d(components_namespaceObject, "Message", function() { return components_message; });
- __webpack_require__.d(components_namespaceObject, "Modal", function() { return modal; });
- __webpack_require__.d(components_namespaceObject, "Notification", function() { return notification; });
- __webpack_require__.d(components_namespaceObject, "Numberinput", function() { return numberinput; });
- __webpack_require__.d(components_namespaceObject, "Pagination", function() { return pagination; });
- __webpack_require__.d(components_namespaceObject, "Radio", function() { return components_radio; });
- __webpack_require__.d(components_namespaceObject, "Select", function() { return components_select; });
- __webpack_require__.d(components_namespaceObject, "Snackbar", function() { return snackbar; });
- __webpack_require__.d(components_namespaceObject, "Steps", function() { return steps; });
- __webpack_require__.d(components_namespaceObject, "Switch", function() { return components_switch; });
- __webpack_require__.d(components_namespaceObject, "Table", function() { return table; });
- __webpack_require__.d(components_namespaceObject, "Tabs", function() { return tabs; });
- __webpack_require__.d(components_namespaceObject, "Tag", function() { return tag; });
- __webpack_require__.d(components_namespaceObject, "Taginput", function() { return taginput; });
- __webpack_require__.d(components_namespaceObject, "Timepicker", function() { return timepicker; });
- __webpack_require__.d(components_namespaceObject, "Toast", function() { return toast; });
- __webpack_require__.d(components_namespaceObject, "Tooltip", function() { return tooltip; });
- __webpack_require__.d(components_namespaceObject, "Upload", function() { return upload; });
-
- // EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/object/assign.js
- var object_assign = __webpack_require__(11);
- var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign);
-
- // EXTERNAL MODULE: ./src/scss/buefy-build.scss
- var buefy_build = __webpack_require__(77);
- var buefy_build_default = /*#__PURE__*/__webpack_require__.n(buefy_build);
-
- // EXTERNAL MODULE: ./src/components/autocomplete/Autocomplete.vue
- var Autocomplete = __webpack_require__(52);
- var Autocomplete_default = /*#__PURE__*/__webpack_require__.n(Autocomplete);
-
- // CONCATENATED MODULE: ./src/utils/plugins.js
-
- var use = function use(plugin) {
- if (typeof window !== 'undefined' && window.Vue) {
- window.Vue.use(plugin);
- }
- };
-
- var registerComponent = function registerComponent(Vue, component) {
- Vue.component(component.name, component);
- };
-
- var registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) {
- Vue.prototype[property] = component;
- };
- // CONCATENATED MODULE: ./src/components/autocomplete/index.js
-
-
-
-
- var Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Autocomplete_default.a);
- }
- };
-
- use(Plugin);
-
- /* harmony default export */ var autocomplete = (Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/button/Button.vue
- var Button = __webpack_require__(110);
- var Button_default = /*#__PURE__*/__webpack_require__.n(Button);
-
- // CONCATENATED MODULE: ./src/components/button/index.js
-
-
-
-
- var button_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Button_default.a);
- }
- };
-
- use(button_Plugin);
-
- /* harmony default export */ var components_button = (button_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/checkbox/Checkbox.vue
- var Checkbox = __webpack_require__(61);
- var Checkbox_default = /*#__PURE__*/__webpack_require__.n(Checkbox);
-
- // EXTERNAL MODULE: ./src/components/checkbox/CheckboxButton.vue
- var CheckboxButton = __webpack_require__(115);
- var CheckboxButton_default = /*#__PURE__*/__webpack_require__.n(CheckboxButton);
-
- // CONCATENATED MODULE: ./src/components/checkbox/index.js
-
-
-
-
-
- var checkbox_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Checkbox_default.a);
- registerComponent(Vue, CheckboxButton_default.a);
- }
- };
-
- use(checkbox_Plugin);
-
- /* harmony default export */ var components_checkbox = (checkbox_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/collapse/Collapse.vue
- var Collapse = __webpack_require__(118);
- var Collapse_default = /*#__PURE__*/__webpack_require__.n(Collapse);
-
- // CONCATENATED MODULE: ./src/components/collapse/index.js
-
-
-
-
- var collapse_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Collapse_default.a);
- }
- };
-
- use(collapse_Plugin);
-
- /* harmony default export */ var collapse = (collapse_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/clockpicker/Clockpicker.vue
- var Clockpicker = __webpack_require__(121);
- var Clockpicker_default = /*#__PURE__*/__webpack_require__.n(Clockpicker);
-
- // CONCATENATED MODULE: ./src/components/clockpicker/index.js
-
-
-
-
- var clockpicker_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Clockpicker_default.a);
- }
- };
-
- use(clockpicker_Plugin);
-
- /* harmony default export */ var clockpicker = (clockpicker_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/datepicker/Datepicker.vue
- var Datepicker = __webpack_require__(135);
- var Datepicker_default = /*#__PURE__*/__webpack_require__.n(Datepicker);
-
- // CONCATENATED MODULE: ./src/components/datepicker/index.js
-
-
-
-
- var datepicker_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Datepicker_default.a);
- }
- };
-
- use(datepicker_Plugin);
-
- /* harmony default export */ var datepicker = (datepicker_Plugin);
-
-
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","amd":"vue","root":"Vue"}
- var external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue__ = __webpack_require__(18);
- var external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default = /*#__PURE__*/__webpack_require__.n(external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue__);
-
- // EXTERNAL MODULE: ./src/components/dialog/Dialog.vue
- var Dialog = __webpack_require__(149);
- var Dialog_default = /*#__PURE__*/__webpack_require__.n(Dialog);
-
- // CONCATENATED MODULE: ./src/components/dialog/index.js
-
-
-
-
-
-
- function dialog_open(propsData) {
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var DialogComponent = vm.extend(Dialog_default.a);
- return new DialogComponent({
- el: document.createElement('div'),
- propsData: propsData
- });
- }
-
- var DialogProgrammatic = {
- alert: function alert(params) {
- var message = void 0;
- if (typeof params === 'string') message = params;
- var defaultParam = {
- canCancel: false,
- message: message
- };
- var propsData = assign_default()(defaultParam, params);
- return dialog_open(propsData);
- },
- confirm: function confirm(params) {
- var defaultParam = {};
- var propsData = assign_default()(defaultParam, params);
- return dialog_open(propsData);
- },
- prompt: function prompt(params) {
- var defaultParam = {
- hasInput: true,
- confirmText: 'Done'
- };
- var propsData = assign_default()(defaultParam, params);
- return dialog_open(propsData);
- }
- };
-
- var dialog_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Dialog_default.a);
- registerComponentProgrammatic(Vue, '$dialog', DialogProgrammatic);
- }
- };
-
- use(dialog_Plugin);
-
- /* harmony default export */ var dialog = (dialog_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/dropdown/Dropdown.vue
- var Dropdown = __webpack_require__(28);
- var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown);
-
- // EXTERNAL MODULE: ./src/components/dropdown/DropdownItem.vue
- var DropdownItem = __webpack_require__(29);
- var DropdownItem_default = /*#__PURE__*/__webpack_require__.n(DropdownItem);
-
- // CONCATENATED MODULE: ./src/components/dropdown/index.js
-
-
-
-
-
- var dropdown_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Dropdown_default.a);
- registerComponent(Vue, DropdownItem_default.a);
- }
- };
-
- use(dropdown_Plugin);
-
- /* harmony default export */ var dropdown = (dropdown_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/field/Field.vue
- var Field = __webpack_require__(30);
- var Field_default = /*#__PURE__*/__webpack_require__.n(Field);
-
- // CONCATENATED MODULE: ./src/components/field/index.js
-
-
-
-
- var field_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Field_default.a);
- }
- };
-
- use(field_Plugin);
-
- /* harmony default export */ var field = (field_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/icon/Icon.vue
- var Icon = __webpack_require__(3);
- var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon);
-
- // CONCATENATED MODULE: ./src/components/icon/index.js
-
-
-
-
- var icon_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Icon_default.a);
- }
- };
-
- use(icon_Plugin);
-
- /* harmony default export */ var icon = (icon_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/input/Input.vue
- var Input = __webpack_require__(17);
- var Input_default = /*#__PURE__*/__webpack_require__.n(Input);
-
- // CONCATENATED MODULE: ./src/components/input/index.js
-
-
-
-
- var input_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Input_default.a);
- }
- };
-
- use(input_Plugin);
-
- /* harmony default export */ var input = (input_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/loading/Loading.vue
- var Loading = __webpack_require__(154);
- var Loading_default = /*#__PURE__*/__webpack_require__.n(Loading);
-
- // CONCATENATED MODULE: ./src/components/loading/index.js
-
-
-
-
-
-
- var LoadingProgrammatic = {
- open: function open(params) {
- var defaultParam = {
- programmatic: true
- };
- var propsData = assign_default()(defaultParam, params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var LoadingComponent = vm.extend(Loading_default.a);
- return new LoadingComponent({
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var loading_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Loading_default.a);
- registerComponentProgrammatic(Vue, '$loading', LoadingProgrammatic);
- }
- };
-
- use(loading_Plugin);
-
- /* harmony default export */ var loading = (loading_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/message/Message.vue
- var Message = __webpack_require__(157);
- var Message_default = /*#__PURE__*/__webpack_require__.n(Message);
-
- // CONCATENATED MODULE: ./src/components/message/index.js
-
-
-
-
- var message_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Message_default.a);
- }
- };
-
- use(message_Plugin);
-
- /* harmony default export */ var components_message = (message_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/modal/Modal.vue
- var Modal = __webpack_require__(63);
- var Modal_default = /*#__PURE__*/__webpack_require__.n(Modal);
-
- // CONCATENATED MODULE: ./src/components/modal/index.js
-
-
-
-
-
-
- var ModalProgrammatic = {
- open: function open(params) {
- var content = void 0;
- var parent = void 0;
- if (typeof params === 'string') content = params;
-
- var defaultParam = {
- programmatic: true,
- content: content
- };
- if (params.parent) {
- parent = params.parent;
- delete params.parent;
- }
- var propsData = assign_default()(defaultParam, params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var ModalComponent = vm.extend(Modal_default.a);
- return new ModalComponent({
- parent: parent,
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var modal_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Modal_default.a);
- registerComponentProgrammatic(Vue, '$modal', ModalProgrammatic);
- }
- };
-
- use(modal_Plugin);
-
- /* harmony default export */ var modal = (modal_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/notification/Notification.vue
- var Notification = __webpack_require__(160);
- var Notification_default = /*#__PURE__*/__webpack_require__.n(Notification);
-
- // EXTERNAL MODULE: ./src/components/notification/NotificationNotice.vue
- var NotificationNotice = __webpack_require__(163);
- var NotificationNotice_default = /*#__PURE__*/__webpack_require__.n(NotificationNotice);
-
- // EXTERNAL MODULE: ./src/utils/config.js
- var config = __webpack_require__(2);
-
- // CONCATENATED MODULE: ./src/components/notification/index.js
-
-
-
-
-
-
-
-
- var NotificationProgrammatic = {
- open: function open(params) {
- var message = void 0;
- var parent = void 0;
- if (typeof params === 'string') message = params;
-
- var defaultParam = {
- message: message,
- position: config["a" /* default */].defaultNotificationPosition || 'is-top-right'
- };
- if (params.parent) {
- parent = params.parent;
- delete params.parent;
- }
- var propsData = assign_default()(defaultParam, typeof params === 'string' ? {} : params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var NotificationNoticeComponent = vm.extend(NotificationNotice_default.a);
- return new NotificationNoticeComponent({
- parent: parent,
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var notification_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Notification_default.a);
- registerComponentProgrammatic(Vue, '$notification', NotificationProgrammatic);
- }
- };
-
- use(notification_Plugin);
-
- /* harmony default export */ var notification = (notification_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/numberinput/Numberinput.vue
- var Numberinput = __webpack_require__(166);
- var Numberinput_default = /*#__PURE__*/__webpack_require__.n(Numberinput);
-
- // CONCATENATED MODULE: ./src/components/numberinput/index.js
-
-
-
-
- var numberinput_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Numberinput_default.a);
- }
- };
-
- use(numberinput_Plugin);
-
- /* harmony default export */ var numberinput = (numberinput_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/pagination/Pagination.vue
- var Pagination = __webpack_require__(66);
- var Pagination_default = /*#__PURE__*/__webpack_require__.n(Pagination);
-
- // CONCATENATED MODULE: ./src/components/pagination/index.js
-
-
-
-
- var pagination_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Pagination_default.a);
- }
- };
-
- use(pagination_Plugin);
-
- /* harmony default export */ var pagination = (pagination_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/radio/Radio.vue
- var Radio = __webpack_require__(171);
- var Radio_default = /*#__PURE__*/__webpack_require__.n(Radio);
-
- // EXTERNAL MODULE: ./src/components/radio/RadioButton.vue
- var RadioButton = __webpack_require__(174);
- var RadioButton_default = /*#__PURE__*/__webpack_require__.n(RadioButton);
-
- // CONCATENATED MODULE: ./src/components/radio/index.js
-
-
-
-
-
- var radio_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Radio_default.a);
- registerComponent(Vue, RadioButton_default.a);
- }
- };
-
- use(radio_Plugin);
-
- /* harmony default export */ var components_radio = (radio_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/select/Select.vue
- var Select = __webpack_require__(31);
- var Select_default = /*#__PURE__*/__webpack_require__.n(Select);
-
- // CONCATENATED MODULE: ./src/components/select/index.js
-
-
-
-
- var select_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Select_default.a);
- }
- };
-
- use(select_Plugin);
-
- /* harmony default export */ var components_select = (select_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/snackbar/Snackbar.vue
- var Snackbar = __webpack_require__(177);
- var Snackbar_default = /*#__PURE__*/__webpack_require__.n(Snackbar);
-
- // CONCATENATED MODULE: ./src/components/snackbar/index.js
-
-
-
-
-
-
-
- var SnackbarProgrammatic = {
- open: function open(params) {
- var message = void 0;
- var parent = void 0;
- if (typeof params === 'string') message = params;
-
- var defaultParam = {
- type: 'is-success',
- position: config["a" /* default */].defaultSnackbarPosition || 'is-bottom-right',
- message: message
- };
- if (params.parent) {
- parent = params.parent;
- delete params.parent;
- }
- var propsData = assign_default()(defaultParam, params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var SnackbarComponent = vm.extend(Snackbar_default.a);
- return new SnackbarComponent({
- parent: parent,
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var snackbar_Plugin = {
- install: function install(Vue) {
- registerComponentProgrammatic(Vue, '$snackbar', SnackbarProgrammatic);
- }
- };
-
- use(snackbar_Plugin);
-
- /* harmony default export */ var snackbar = (snackbar_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/steps/Steps.vue
- var Steps = __webpack_require__(180);
- var Steps_default = /*#__PURE__*/__webpack_require__.n(Steps);
-
- // EXTERNAL MODULE: ./src/components/steps/StepItem.vue
- var StepItem = __webpack_require__(183);
- var StepItem_default = /*#__PURE__*/__webpack_require__.n(StepItem);
-
- // CONCATENATED MODULE: ./src/components/steps/index.js
-
-
-
-
-
- var steps_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Steps_default.a);
- registerComponent(Vue, StepItem_default.a);
- }
- };
-
- use(steps_Plugin);
-
- /* harmony default export */ var steps = (steps_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/switch/Switch.vue
- var Switch = __webpack_require__(185);
- var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch);
-
- // CONCATENATED MODULE: ./src/components/switch/index.js
-
-
-
-
- var switch_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Switch_default.a);
- }
- };
-
- use(switch_Plugin);
-
- /* harmony default export */ var components_switch = (switch_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/table/Table.vue
- var Table = __webpack_require__(188);
- var Table_default = /*#__PURE__*/__webpack_require__.n(Table);
-
- // EXTERNAL MODULE: ./src/components/table/TableColumn.vue
- var TableColumn = __webpack_require__(68);
- var TableColumn_default = /*#__PURE__*/__webpack_require__.n(TableColumn);
-
- // CONCATENATED MODULE: ./src/components/table/index.js
-
-
-
-
-
- var table_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Table_default.a);
- registerComponent(Vue, TableColumn_default.a);
- }
- };
-
- use(table_Plugin);
-
- /* harmony default export */ var table = (table_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/tabs/Tabs.vue
- var Tabs = __webpack_require__(204);
- var Tabs_default = /*#__PURE__*/__webpack_require__.n(Tabs);
-
- // EXTERNAL MODULE: ./src/components/tabs/TabItem.vue
- var TabItem = __webpack_require__(207);
- var TabItem_default = /*#__PURE__*/__webpack_require__.n(TabItem);
-
- // CONCATENATED MODULE: ./src/components/tabs/index.js
-
-
-
-
-
- var tabs_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Tabs_default.a);
- registerComponent(Vue, TabItem_default.a);
- }
- };
-
- use(tabs_Plugin);
-
- /* harmony default export */ var tabs = (tabs_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/tag/Tag.vue
- var Tag = __webpack_require__(69);
- var Tag_default = /*#__PURE__*/__webpack_require__.n(Tag);
-
- // EXTERNAL MODULE: ./src/components/tag/Taglist.vue
- var Taglist = __webpack_require__(211);
- var Taglist_default = /*#__PURE__*/__webpack_require__.n(Taglist);
-
- // CONCATENATED MODULE: ./src/components/tag/index.js
-
-
-
-
-
- var tag_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Tag_default.a);
- registerComponent(Vue, Taglist_default.a);
- }
- };
-
- use(tag_Plugin);
-
- /* harmony default export */ var tag = (tag_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/taginput/Taginput.vue
- var Taginput = __webpack_require__(214);
- var Taginput_default = /*#__PURE__*/__webpack_require__.n(Taginput);
-
- // CONCATENATED MODULE: ./src/components/taginput/index.js
-
-
-
-
- var taginput_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Taginput_default.a);
- }
- };
-
- use(taginput_Plugin);
-
- /* harmony default export */ var taginput = (taginput_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/timepicker/Timepicker.vue
- var Timepicker = __webpack_require__(217);
- var Timepicker_default = /*#__PURE__*/__webpack_require__.n(Timepicker);
-
- // CONCATENATED MODULE: ./src/components/timepicker/index.js
-
-
-
-
- var timepicker_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Timepicker_default.a);
- }
- };
-
- use(timepicker_Plugin);
-
- /* harmony default export */ var timepicker = (timepicker_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/toast/Toast.vue
- var Toast = __webpack_require__(220);
- var Toast_default = /*#__PURE__*/__webpack_require__.n(Toast);
-
- // CONCATENATED MODULE: ./src/components/toast/index.js
-
-
-
-
-
-
-
- var ToastProgrammatic = {
- open: function open(params) {
- var message = void 0;
- var parent = void 0;
- if (typeof params === 'string') message = params;
-
- var defaultParam = {
- message: message,
- position: config["a" /* default */].defaultToastPosition || 'is-top'
- };
- if (params.parent) {
- parent = params.parent;
- delete params.parent;
- }
- var propsData = assign_default()(defaultParam, params);
-
- var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : external___commonjs___vue___commonjs2___vue___amd___vue___root___Vue___default.a;
- var ToastComponent = vm.extend(Toast_default.a);
- return new ToastComponent({
- parent: parent,
- el: document.createElement('div'),
- propsData: propsData
- });
- }
- };
-
- var toast_Plugin = {
- install: function install(Vue) {
- registerComponentProgrammatic(Vue, '$toast', ToastProgrammatic);
- }
- };
-
- use(toast_Plugin);
-
- /* harmony default export */ var toast = (toast_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/tooltip/Tooltip.vue
- var Tooltip = __webpack_require__(223);
- var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip);
-
- // CONCATENATED MODULE: ./src/components/tooltip/index.js
-
-
-
-
- var tooltip_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Tooltip_default.a);
- }
- };
-
- use(tooltip_Plugin);
-
- /* harmony default export */ var tooltip = (tooltip_Plugin);
-
-
- // EXTERNAL MODULE: ./src/components/upload/Upload.vue
- var Upload = __webpack_require__(226);
- var Upload_default = /*#__PURE__*/__webpack_require__.n(Upload);
-
- // CONCATENATED MODULE: ./src/components/upload/index.js
-
-
-
-
- var upload_Plugin = {
- install: function install(Vue) {
- registerComponent(Vue, Upload_default.a);
- }
- };
-
- use(upload_Plugin);
-
- /* harmony default export */ var upload = (upload_Plugin);
-
-
- // CONCATENATED MODULE: ./src/components/index.js
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- // CONCATENATED MODULE: ./src/index.js
-
-
-
-
-
-
-
-
-
- var Buefy = {
- install: function install(Vue) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-
- // Options
- Object(config["b" /* setOptions */])(assign_default()(config["a" /* default */], options));
- // Components
- for (var componentKey in components_namespaceObject) {
- Vue.use(components_namespaceObject[componentKey]);
- }
- // Config component
- var BuefyProgrammatic = {
- setOptions: function setOptions(options) {
- Object(config["b" /* setOptions */])(assign_default()(config["a" /* default */], options));
- }
- };
- registerComponentProgrammatic(Vue, '$buefy', BuefyProgrammatic);
- }
- };
-
- use(Buefy);
-
- /* harmony default export */ var src = __webpack_exports__["default"] = (Buefy);
-
- /***/ }),
- /* 71 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(72);
- module.exports = __webpack_require__(6).Object.assign;
-
-
- /***/ }),
- /* 72 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.3.1 Object.assign(target, source)
- var $export = __webpack_require__(19);
-
- $export($export.S + $export.F, 'Object', { assign: __webpack_require__(74) });
-
-
- /***/ }),
- /* 73 */
- /***/ (function(module, exports) {
-
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
-
-
- /***/ }),
- /* 74 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- // 19.1.2.1 Object.assign(target, source, ...)
- var getKeys = __webpack_require__(24);
- var gOPS = __webpack_require__(39);
- var pIE = __webpack_require__(27);
- var toObject = __webpack_require__(40);
- var IObject = __webpack_require__(50);
- var $assign = Object.assign;
-
- // should work with symbols and should have deterministic property order (V8 bug)
- module.exports = !$assign || __webpack_require__(21)(function () {
- var A = {};
- var B = {};
- // eslint-disable-next-line no-undef
- var S = Symbol();
- var K = 'abcdefghijklmnopqrst';
- A[S] = 7;
- K.split('').forEach(function (k) { B[k] = k; });
- return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
- var T = toObject(target);
- var aLen = arguments.length;
- var index = 1;
- var getSymbols = gOPS.f;
- var isEnum = pIE.f;
- while (aLen > index) {
- var S = IObject(arguments[index++]);
- var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
- var length = keys.length;
- var j = 0;
- var key;
- while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
- } return T;
- } : $assign;
-
-
- /***/ }),
- /* 75 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__(16);
- var toLength = __webpack_require__(51);
- var toAbsoluteIndex = __webpack_require__(76);
- module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
-
-
- /***/ }),
- /* 76 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var toInteger = __webpack_require__(35);
- var max = Math.max;
- var min = Math.min;
- module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
- };
-
-
- /***/ }),
- /* 77 */
- /***/ (function(module, exports) {
-
- // removed by extract-text-webpack-plugin
-
- /***/ }),
- /* 78 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(53);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator__ = __webpack_require__(59);
- /* 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__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_FormElementMixin__ = __webpack_require__(10);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__input_Input__);
-
-
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BAutocomplete',
- 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),
- mixins: [__WEBPACK_IMPORTED_MODULE_4__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: [Number, String],
- data: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- field: {
- type: String,
- default: 'value'
- },
- keepFirst: Boolean,
- clearOnSelect: Boolean,
- openOnFocus: Boolean,
- customFormatter: Function
- },
- data: function data() {
- return {
- selected: null,
- hovered: null,
- isActive: false,
- newValue: this.value,
- newAutocomplete: this.autocomplete || 'off',
- isListInViewportVertically: true,
- hasFocus: false,
- _isAutocomplete: true,
- _elementRef: 'input'
- };
- },
-
- computed: {
- /**
- * White-listed items to not close when clicked.
- * Add input, dropdown and all children.
- */
- whiteList: function whiteList() {
- var whiteList = [];
- whiteList.push(this.$refs.input.$el.querySelector('input'));
- whiteList.push(this.$refs.dropdown);
- // Add all chidren from dropdown
- if (this.$refs.dropdown !== undefined) {
- var children = this.$refs.dropdown.querySelectorAll('*');
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
-
- try {
- for (var _iterator = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_get_iterator___default()(children), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var child = _step.value;
-
- whiteList.push(child);
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator.return) {
- _iterator.return();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- }
-
- return whiteList;
- },
-
-
- /**
- * Check if exists default slot
- */
- hasDefaultSlot: function hasDefaultSlot() {
- return !!this.$scopedSlots.default;
- },
-
-
- /**
- * Check if exists "empty" slot
- */
- hasEmptySlot: function hasEmptySlot() {
- return !!this.$slots.empty;
- },
-
-
- /**
- * Check if exists "header" slot
- */
- hasHeaderSlot: function hasHeaderSlot() {
- return !!this.$slots.header;
- },
-
-
- /**
- * Check if exists "footer" slot
- */
- hasFooterSlot: function hasFooterSlot() {
- return !!this.$slots.footer;
- }
- },
- watch: {
- /**
- * When dropdown is toggled, check the visibility to know when
- * to open upwards.
- */
- isActive: function isActive(active) {
- var _this = this;
-
- if (active) {
- this.calcDropdownInViewportVertical();
- } else {
- this.$nextTick(function () {
- return _this.setHovered(null);
- });
- // Timeout to wait for the animation to finish before recalculating
- setTimeout(function () {
- _this.calcDropdownInViewportVertical();
- }, 100);
- }
- },
-
-
- /**
- * When updating input's value
- * 1. Emit changes
- * 2. If value isn't the same as selected, set null
- * 3. Close dropdown if value is clear or else open it
- */
- newValue: function newValue(value) {
- this.$emit('input', value);
- // Check if selected is invalid
- var currentValue = this.getValue(this.selected);
- if (currentValue && currentValue !== value) {
- this.setSelected(null, false);
- }
- // Close dropdown if input is clear or else open it
- if (this.hasFocus && (!this.openOnFocus || value)) {
- this.isActive = !!value;
- }
- },
-
-
- /**
- * When v-model is changed:
- * 1. Update internal value.
- * 2. If it's invalid, validate again.
- */
- value: function value(_value) {
- this.newValue = _value;
- !this.isValid && this.$refs.input.checkHtml5Validity();
- },
-
-
- /**
- * Select first option if "keep-first
- */
- data: function data(value) {
- // Keep first option always pre-selected
- if (this.keepFirst) {
- this.selectFirstOption(value);
- }
- }
- },
- methods: {
- /**
- * Set which option is currently hovered.
- */
- setHovered: function setHovered(option) {
- if (option === undefined) return;
-
- this.hovered = option;
- },
-
-
- /**
- * Set which option is currently selected, update v-model,
- * update input value and close dropdown.
- */
- setSelected: function setSelected(option) {
- var _this2 = this;
-
- var closeDropdown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
-
- if (option === undefined) return;
-
- this.selected = option;
- this.$emit('select', this.selected);
- if (this.selected !== null) {
- this.newValue = this.clearOnSelect ? '' : this.getValue(this.selected);
- }
- closeDropdown && this.$nextTick(function () {
- _this2.isActive = false;
- });
- },
-
-
- /**
- * Select first option
- */
- selectFirstOption: function selectFirstOption(options) {
- var _this3 = this;
-
- this.$nextTick(function () {
- if (options.length) {
- // If has visible data or open on focus, keep updating the hovered
- if (_this3.openOnFocus || _this3.newValue !== '' && _this3.hovered !== options[0]) {
- _this3.setHovered(options[0]);
- }
- } else {
- _this3.setHovered(null);
- }
- });
- },
-
-
- /**
- * Enter key listener.
- * Select the hovered option.
- */
- enterPressed: function enterPressed() {
- if (this.hovered === null) return;
- this.setSelected(this.hovered);
- },
-
-
- /**
- * Tab key listener.
- * Select hovered option if it exists, close dropdown, then allow
- * native handling to move to next tabbable element.
- */
- tabPressed: function tabPressed() {
- if (this.hovered === null) {
- this.isActive = false;
- return;
- }
- this.setSelected(this.hovered);
- },
-
-
- /**
- * Close dropdown if clicked outside.
- */
- clickedOutside: function clickedOutside(event) {
- if (this.whiteList.indexOf(event.target) < 0) this.isActive = false;
- },
-
-
- /**
- * Return display text for the input.
- * If object, get value from path, or else just the value.
- */
- getValue: function getValue(option) {
- if (!option) return;
-
- if (typeof this.customFormatter !== 'undefined') {
- return this.customFormatter(option);
- }
- 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;
- },
-
-
- /**
- * Calculate if the dropdown is vertically visible when activated,
- * otherwise it is openened upwards.
- */
- calcDropdownInViewportVertical: function calcDropdownInViewportVertical() {
- var _this4 = this;
-
- this.$nextTick(function () {
- /**
- * this.$refs.dropdown may be undefined
- * when Autocomplete is conditional rendered
- */
- if (_this4.$refs.dropdown === undefined) return;
-
- var rect = _this4.$refs.dropdown.getBoundingClientRect();
-
- _this4.isListInViewportVertically = rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight);
- });
- },
-
-
- /**
- * Arrows keys listener.
- * If dropdown is active, set hovered option, or else just open.
- */
- keyArrows: function keyArrows(direction) {
- var sum = direction === 'down' ? 1 : -1;
- if (this.isActive) {
- var index = this.data.indexOf(this.hovered) + sum;
- index = index > this.data.length - 1 ? this.data.length : index;
- index = index < 0 ? 0 : index;
-
- this.setHovered(this.data[index]);
-
- var list = this.$refs.dropdown.querySelector('.dropdown-content');
- var element = list.querySelectorAll('a.dropdown-item:not(.is-disabled)')[index];
-
- if (!element) return;
-
- var visMin = list.scrollTop;
- var visMax = list.scrollTop + list.clientHeight - element.clientHeight;
-
- if (element.offsetTop < visMin) {
- list.scrollTop = element.offsetTop;
- } else if (element.offsetTop >= visMax) {
- list.scrollTop = element.offsetTop - list.clientHeight + element.clientHeight;
- }
- } else {
- this.isActive = true;
- }
- },
-
-
- /**
- * Focus listener.
- * If value is the same as selected, select all text.
- */
- focused: function focused(event) {
- if (this.getValue(this.selected) === this.newValue) {
- this.$el.querySelector('input').select();
- }
- if (this.openOnFocus) {
- this.isActive = true;
- if (this.keepFirst) {
- this.selectFirstOption(this.data);
- }
- }
- this.hasFocus = true;
- this.$emit('focus', event);
- },
-
-
- /**
- * Blur listener.
- */
- onBlur: function onBlur(event) {
- this.hasFocus = false;
- this.$emit('blur', event);
- },
- onInput: function onInput(event) {
- var currentValue = this.getValue(this.selected);
- if (currentValue && currentValue === this.newValue) return;
- this.$emit('typing', this.newValue);
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('click', this.clickedOutside);
- window.addEventListener('resize', this.calcDropdownInViewportVertical);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('click', this.clickedOutside);
- window.removeEventListener('resize', this.calcDropdownInViewportVertical);
- }
- }
- });
-
- /***/ }),
- /* 79 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(80), __esModule: true };
-
- /***/ }),
- /* 80 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(41);
- __webpack_require__(57);
- module.exports = __webpack_require__(43).f('iterator');
-
-
- /***/ }),
- /* 81 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var toInteger = __webpack_require__(35);
- var defined = __webpack_require__(34);
- // true -> String#at
- // false -> String#codePointAt
- module.exports = function (TO_STRING) {
- return function (that, pos) {
- var s = String(defined(that));
- var i = toInteger(pos);
- var l = s.length;
- var a, b;
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
- a = s.charCodeAt(i);
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
- ? TO_STRING ? s.charAt(i) : a
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
- };
- };
-
-
- /***/ }),
- /* 82 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var create = __webpack_require__(56);
- var descriptor = __webpack_require__(22);
- var setToStringTag = __webpack_require__(42);
- var IteratorPrototype = {};
-
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
- __webpack_require__(14)(IteratorPrototype, __webpack_require__(4)('iterator'), function () { return this; });
-
- module.exports = function (Constructor, NAME, next) {
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
- };
-
-
- /***/ }),
- /* 83 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var dP = __webpack_require__(9);
- var anObject = __webpack_require__(15);
- var getKeys = __webpack_require__(24);
-
- module.exports = __webpack_require__(12) ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
- };
-
-
- /***/ }),
- /* 84 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var document = __webpack_require__(8).document;
- module.exports = document && document.documentElement;
-
-
- /***/ }),
- /* 85 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
- var has = __webpack_require__(13);
- var toObject = __webpack_require__(40);
- var IE_PROTO = __webpack_require__(36)('IE_PROTO');
- var ObjectProto = Object.prototype;
-
- module.exports = Object.getPrototypeOf || function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO)) return O[IE_PROTO];
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
- };
-
-
- /***/ }),
- /* 86 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var addToUnscopables = __webpack_require__(87);
- var step = __webpack_require__(88);
- var Iterators = __webpack_require__(23);
- var toIObject = __webpack_require__(16);
-
- // 22.1.3.4 Array.prototype.entries()
- // 22.1.3.13 Array.prototype.keys()
- // 22.1.3.29 Array.prototype.values()
- // 22.1.3.30 Array.prototype[@@iterator]()
- module.exports = __webpack_require__(54)(Array, 'Array', function (iterated, kind) {
- this._t = toIObject(iterated); // target
- this._i = 0; // next index
- this._k = kind; // kind
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
- }, function () {
- var O = this._t;
- var kind = this._k;
- var index = this._i++;
- if (!O || index >= O.length) {
- this._t = undefined;
- return step(1);
- }
- if (kind == 'keys') return step(0, index);
- if (kind == 'values') return step(0, O[index]);
- return step(0, [index, O[index]]);
- }, 'values');
-
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
- Iterators.Arguments = Iterators.Array;
-
- addToUnscopables('keys');
- addToUnscopables('values');
- addToUnscopables('entries');
-
-
- /***/ }),
- /* 87 */
- /***/ (function(module, exports) {
-
- module.exports = function () { /* empty */ };
-
-
- /***/ }),
- /* 88 */
- /***/ (function(module, exports) {
-
- module.exports = function (done, value) {
- return { value: value, done: !!done };
- };
-
-
- /***/ }),
- /* 89 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(90);
- __webpack_require__(96);
- __webpack_require__(97);
- __webpack_require__(98);
- module.exports = __webpack_require__(6).Symbol;
-
-
- /***/ }),
- /* 90 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- // ECMAScript 6 symbols shim
- var global = __webpack_require__(8);
- var has = __webpack_require__(13);
- var DESCRIPTORS = __webpack_require__(12);
- var $export = __webpack_require__(19);
- var redefine = __webpack_require__(55);
- var META = __webpack_require__(91).KEY;
- var $fails = __webpack_require__(21);
- var shared = __webpack_require__(37);
- var setToStringTag = __webpack_require__(42);
- var uid = __webpack_require__(26);
- var wks = __webpack_require__(4);
- var wksExt = __webpack_require__(43);
- var wksDefine = __webpack_require__(44);
- var enumKeys = __webpack_require__(92);
- var isArray = __webpack_require__(93);
- var anObject = __webpack_require__(15);
- var isObject = __webpack_require__(20);
- var toIObject = __webpack_require__(16);
- var toPrimitive = __webpack_require__(32);
- var createDesc = __webpack_require__(22);
- var _create = __webpack_require__(56);
- var gOPNExt = __webpack_require__(94);
- var $GOPD = __webpack_require__(95);
- var $DP = __webpack_require__(9);
- var $keys = __webpack_require__(24);
- var gOPD = $GOPD.f;
- var dP = $DP.f;
- var gOPN = gOPNExt.f;
- var $Symbol = global.Symbol;
- var $JSON = global.JSON;
- var _stringify = $JSON && $JSON.stringify;
- var PROTOTYPE = 'prototype';
- var HIDDEN = wks('_hidden');
- var TO_PRIMITIVE = wks('toPrimitive');
- var isEnum = {}.propertyIsEnumerable;
- var SymbolRegistry = shared('symbol-registry');
- var AllSymbols = shared('symbols');
- var OPSymbols = shared('op-symbols');
- var ObjectProto = Object[PROTOTYPE];
- var USE_NATIVE = typeof $Symbol == 'function';
- var QObject = global.QObject;
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
- var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
-
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
- var setSymbolDesc = DESCRIPTORS && $fails(function () {
- return _create(dP({}, 'a', {
- get: function () { return dP(this, 'a', { value: 7 }).a; }
- })).a != 7;
- }) ? function (it, key, D) {
- var protoDesc = gOPD(ObjectProto, key);
- if (protoDesc) delete ObjectProto[key];
- dP(it, key, D);
- if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
- } : dP;
-
- var wrap = function (tag) {
- var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
- sym._k = tag;
- return sym;
- };
-
- var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
- return typeof it == 'symbol';
- } : function (it) {
- return it instanceof $Symbol;
- };
-
- var $defineProperty = function defineProperty(it, key, D) {
- if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
- anObject(it);
- key = toPrimitive(key, true);
- anObject(D);
- if (has(AllSymbols, key)) {
- if (!D.enumerable) {
- if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
- it[HIDDEN][key] = true;
- } else {
- if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
- D = _create(D, { enumerable: createDesc(0, false) });
- } return setSymbolDesc(it, key, D);
- } return dP(it, key, D);
- };
- var $defineProperties = function defineProperties(it, P) {
- anObject(it);
- var keys = enumKeys(P = toIObject(P));
- var i = 0;
- var l = keys.length;
- var key;
- while (l > i) $defineProperty(it, key = keys[i++], P[key]);
- return it;
- };
- var $create = function create(it, P) {
- return P === undefined ? _create(it) : $defineProperties(_create(it), P);
- };
- var $propertyIsEnumerable = function propertyIsEnumerable(key) {
- var E = isEnum.call(this, key = toPrimitive(key, true));
- if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
- return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
- };
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
- it = toIObject(it);
- key = toPrimitive(key, true);
- if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
- var D = gOPD(it, key);
- if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
- return D;
- };
- var $getOwnPropertyNames = function getOwnPropertyNames(it) {
- var names = gOPN(toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
- } return result;
- };
- var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
- var IS_OP = it === ObjectProto;
- var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
- } return result;
- };
-
- // 19.4.1.1 Symbol([description])
- if (!USE_NATIVE) {
- $Symbol = function Symbol() {
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
- var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
- var $set = function (value) {
- if (this === ObjectProto) $set.call(OPSymbols, value);
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
- setSymbolDesc(this, tag, createDesc(1, value));
- };
- if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
- return wrap(tag);
- };
- redefine($Symbol[PROTOTYPE], 'toString', function toString() {
- return this._k;
- });
-
- $GOPD.f = $getOwnPropertyDescriptor;
- $DP.f = $defineProperty;
- __webpack_require__(58).f = gOPNExt.f = $getOwnPropertyNames;
- __webpack_require__(27).f = $propertyIsEnumerable;
- __webpack_require__(39).f = $getOwnPropertySymbols;
-
- if (DESCRIPTORS && !__webpack_require__(25)) {
- redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
- }
-
- wksExt.f = function (name) {
- return wrap(wks(name));
- };
- }
-
- $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
-
- for (var es6Symbols = (
- // 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
- 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
- ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
-
- for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
-
- $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
- // 19.4.2.1 Symbol.for(key)
- 'for': function (key) {
- return has(SymbolRegistry, key += '')
- ? SymbolRegistry[key]
- : SymbolRegistry[key] = $Symbol(key);
- },
- // 19.4.2.5 Symbol.keyFor(sym)
- keyFor: function keyFor(sym) {
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
- for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
- },
- useSetter: function () { setter = true; },
- useSimple: function () { setter = false; }
- });
-
- $export($export.S + $export.F * !USE_NATIVE, 'Object', {
- // 19.1.2.2 Object.create(O [, Properties])
- create: $create,
- // 19.1.2.4 Object.defineProperty(O, P, Attributes)
- defineProperty: $defineProperty,
- // 19.1.2.3 Object.defineProperties(O, Properties)
- defineProperties: $defineProperties,
- // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
- // 19.1.2.7 Object.getOwnPropertyNames(O)
- getOwnPropertyNames: $getOwnPropertyNames,
- // 19.1.2.8 Object.getOwnPropertySymbols(O)
- getOwnPropertySymbols: $getOwnPropertySymbols
- });
-
- // 24.3.2 JSON.stringify(value [, replacer [, space]])
- $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
- var S = $Symbol();
- // MS Edge converts symbol values to JSON as {}
- // WebKit converts symbol values to JSON as null
- // V8 throws on boxed symbols
- return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
- })), 'JSON', {
- stringify: function stringify(it) {
- var args = [it];
- var i = 1;
- var replacer, $replacer;
- while (arguments.length > i) args.push(arguments[i++]);
- $replacer = replacer = args[1];
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
- if (!isArray(replacer)) replacer = function (key, value) {
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
- if (!isSymbol(value)) return value;
- };
- args[1] = replacer;
- return _stringify.apply($JSON, args);
- }
- });
-
- // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
- $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(14)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
- // 19.4.3.5 Symbol.prototype[@@toStringTag]
- setToStringTag($Symbol, 'Symbol');
- // 20.2.1.9 Math[@@toStringTag]
- setToStringTag(Math, 'Math', true);
- // 24.3.3 JSON[@@toStringTag]
- setToStringTag(global.JSON, 'JSON', true);
-
-
- /***/ }),
- /* 91 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var META = __webpack_require__(26)('meta');
- var isObject = __webpack_require__(20);
- var has = __webpack_require__(13);
- var setDesc = __webpack_require__(9).f;
- var id = 0;
- var isExtensible = Object.isExtensible || function () {
- return true;
- };
- var FREEZE = !__webpack_require__(21)(function () {
- return isExtensible(Object.preventExtensions({}));
- });
- var setMeta = function (it) {
- setDesc(it, META, { value: {
- i: 'O' + ++id, // object ID
- w: {} // weak collections IDs
- } });
- };
- var fastKey = function (it, create) {
- // return primitive with prefix
- if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return 'F';
- // not necessary to add metadata
- if (!create) return 'E';
- // add missing metadata
- setMeta(it);
- // return object ID
- } return it[META].i;
- };
- var getWeak = function (it, create) {
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return true;
- // not necessary to add metadata
- if (!create) return false;
- // add missing metadata
- setMeta(it);
- // return hash weak collections IDs
- } return it[META].w;
- };
- // add metadata on freeze-family methods calling
- var onFreeze = function (it) {
- if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
- return it;
- };
- var meta = module.exports = {
- KEY: META,
- NEED: false,
- fastKey: fastKey,
- getWeak: getWeak,
- onFreeze: onFreeze
- };
-
-
- /***/ }),
- /* 92 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // all enumerable object keys, includes symbols
- var getKeys = __webpack_require__(24);
- var gOPS = __webpack_require__(39);
- var pIE = __webpack_require__(27);
- module.exports = function (it) {
- var result = getKeys(it);
- var getSymbols = gOPS.f;
- if (getSymbols) {
- var symbols = getSymbols(it);
- var isEnum = pIE.f;
- var i = 0;
- var key;
- while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
- } return result;
- };
-
-
- /***/ }),
- /* 93 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // 7.2.2 IsArray(argument)
- var cof = __webpack_require__(33);
- module.exports = Array.isArray || function isArray(arg) {
- return cof(arg) == 'Array';
- };
-
-
- /***/ }),
- /* 94 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
- var toIObject = __webpack_require__(16);
- var gOPN = __webpack_require__(58).f;
- var toString = {}.toString;
-
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
- ? Object.getOwnPropertyNames(window) : [];
-
- var getWindowNames = function (it) {
- try {
- return gOPN(it);
- } catch (e) {
- return windowNames.slice();
- }
- };
-
- module.exports.f = function getOwnPropertyNames(it) {
- return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
- };
-
-
- /***/ }),
- /* 95 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var pIE = __webpack_require__(27);
- var createDesc = __webpack_require__(22);
- var toIObject = __webpack_require__(16);
- var toPrimitive = __webpack_require__(32);
- var has = __webpack_require__(13);
- var IE8_DOM_DEFINE = __webpack_require__(47);
- var gOPD = Object.getOwnPropertyDescriptor;
-
- exports.f = __webpack_require__(12) ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return gOPD(O, P);
- } catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
- };
-
-
- /***/ }),
- /* 96 */
- /***/ (function(module, exports) {
-
-
-
- /***/ }),
- /* 97 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(44)('asyncIterator');
-
-
- /***/ }),
- /* 98 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(44)('observable');
-
-
- /***/ }),
- /* 99 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(57);
- __webpack_require__(41);
- module.exports = __webpack_require__(100);
-
-
- /***/ }),
- /* 100 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var anObject = __webpack_require__(15);
- var get = __webpack_require__(60);
- module.exports = __webpack_require__(6).getIterator = function (it) {
- var iterFn = get(it);
- if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
- return anObject(iterFn.call(it));
- };
-
-
- /***/ }),
- /* 101 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // getting tag from 19.1.3.6 Object.prototype.toString()
- var cof = __webpack_require__(33);
- var TAG = __webpack_require__(4)('toStringTag');
- // ES3 wrong here
- var ARG = cof(function () { return arguments; }()) == 'Arguments';
-
- // fallback for IE11 Script Access Denied error
- var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (e) { /* empty */ }
- };
-
- module.exports = function (it) {
- var O, T, B;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
- // builtinTag case
- : ARG ? cof(O)
- // ES3 arguments fallback
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
- };
-
-
- /***/ }),
- /* 102 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(103), __esModule: true };
-
- /***/ }),
- /* 103 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(104);
- var $Object = __webpack_require__(6).Object;
- module.exports = function defineProperty(it, key, desc) {
- return $Object.defineProperty(it, key, desc);
- };
-
-
- /***/ }),
- /* 104 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var $export = __webpack_require__(19);
- // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
- $export($export.S + $export.F * !__webpack_require__(12), 'Object', { defineProperty: __webpack_require__(9).f });
-
-
- /***/ }),
- /* 105 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__ = __webpack_require__(10);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BInput',
- 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),
- mixins: [__WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: [Number, String],
- type: {
- type: String,
- default: 'text'
- },
- passwordReveal: Boolean,
- hasCounter: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_2__utils_config__["a" /* default */].defaultInputHasCounter;
- }
- },
- customClass: {
- type: String,
- default: ''
- }
- },
- data: function data() {
- return {
- newValue: this.value,
- newType: this.type,
- newAutocomplete: this.autocomplete || __WEBPACK_IMPORTED_MODULE_2__utils_config__["a" /* default */].defaultInputAutocomplete,
- isPasswordVisible: false,
- _elementRef: this.type === 'textarea' ? 'textarea' : 'input'
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- !this.isValid && this.checkHtml5Validity();
- }
- },
- rootClasses: function rootClasses() {
- return [this.iconPosition, this.size, {
- 'is-expanded': this.expanded,
- 'is-loading': this.loading,
- 'is-clearfix': !this.hasMessage
- }];
- },
- inputClasses: function inputClasses() {
- return [this.statusType, this.size, { 'is-rounded': this.rounded }];
- },
- hasIconRight: function hasIconRight() {
- return this.passwordReveal || this.loading || this.statusType;
- },
-
-
- /**
- * Position of the icon or if it's both sides.
- */
- iconPosition: function iconPosition() {
- if (this.icon && this.hasIconRight) {
- return 'has-icons-left has-icons-right';
- } else if (!this.icon && this.hasIconRight) {
- return 'has-icons-right';
- } else if (this.icon) {
- return 'has-icons-left';
- }
- },
-
-
- /**
- * Icon name (MDI) based on the type.
- */
- statusTypeIcon: function statusTypeIcon() {
- switch (this.statusType) {
- case 'is-success':
- return 'check';
- case 'is-danger':
- return 'alert-circle';
- case 'is-info':
- return 'information';
- case 'is-warning':
- return 'alert';
- }
- },
-
-
- /**
- * Check if have any message prop from parent if it's a Field.
- */
- hasMessage: function hasMessage() {
- return !!this.statusMessage;
- },
-
-
- /**
- * Current password-reveal icon name.
- */
- passwordVisibleIcon: function passwordVisibleIcon() {
- return !this.isPasswordVisible ? 'eye' : 'eye-off';
- },
-
- /**
- * Get value length
- */
- valueLength: function valueLength() {
- if (typeof this.computedValue === 'string') {
- return this.computedValue.length;
- } else if (typeof this.computedValue === 'number') {
- return this.computedValue.toString().length;
- }
- return 0;
- }
- },
- watch: {
- /**
- * When v-model is changed:
- * 1. Set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- },
- methods: {
- /**
- * Toggle the visibility of a password-reveal input
- * by changing the type and focus the input right away.
- */
- togglePasswordVisibility: function togglePasswordVisibility() {
- var _this = this;
-
- this.isPasswordVisible = !this.isPasswordVisible;
- this.newType = this.isPasswordVisible ? 'text' : 'password';
-
- this.$nextTick(function () {
- _this.$refs.input.focus();
- });
- },
-
-
- /**
- * Input's 'input' event listener, 'nextTick' is used to prevent event firing
- * before ui update, helps when using masks (Cleavejs and potentially others).
- */
- onInput: function onInput(event) {
- var _this2 = this;
-
- this.$nextTick(function () {
- if (event.target) {
- _this2.computedValue = event.target.value;
- }
- });
- }
- }
- });
-
- /***/ }),
- /* 106 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BIcon',
- props: {
- type: [String, Object],
- pack: String,
- icon: String,
- size: String,
- customSize: String,
- customClass: String,
- both: Boolean // This is used internally to show both MDI and FA icon
- },
- computed: {
- /**
- * Internal icon name based on the pack.
- * If pack is 'fa', gets the equivalent FA icon name of the MDI,
- * internal icons are always MDI.
- */
- newIcon: function newIcon() {
- return this.newPack === 'mdi' ? this.newPack + '-' + this.icon : this.addFAPrefix(this.getEquivalentIconOf(this.icon));
- },
- newPack: function newPack() {
- return this.pack || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultIconPack;
- },
- newType: function newType() {
- if (!this.type) return;
-
- var splitType = [];
- if (typeof this.type === 'string') {
- splitType = this.type.split('-');
- } else {
- for (var key in this.type) {
- if (this.type[key]) {
- splitType = key.split('-');
- break;
- }
- }
- }
- if (splitType.length <= 1) return;
-
- return 'has-text-' + splitType[1];
- },
- newCustomSize: function newCustomSize() {
- return this.customSize || this.customSizeByPack;
- },
- customSizeByPack: function customSizeByPack() {
- var defaultSize = this.newPack === 'mdi' ? 'mdi-24px' : this.addFAPrefix('lg');
- var mediumSize = this.newPack === 'mdi' ? 'mdi-36px' : this.addFAPrefix('2x');
- var largeSize = this.newPack === 'mdi' ? 'mdi-48px' : this.addFAPrefix('3x');
- switch (this.size) {
- case 'is-small':
- return;
- case 'is-medium':
- return mediumSize;
- case 'is-large':
- return largeSize;
- default:
- return defaultSize;
- }
- },
- useIconComponent: function useIconComponent() {
- return __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultIconComponent;
- }
- },
- methods: {
- addFAPrefix: function addFAPrefix(value) {
- if (this.useIconComponent) {
- return value;
- }
- return 'fa-' + value;
- },
-
-
- /**
- * Equivalent FA icon name of the MDI.
- */
- getEquivalentIconOf: function getEquivalentIconOf(value) {
- // Only transform the class if the both prop is set to true
- if (!this.both) {
- return value;
- }
-
- switch (value) {
- case 'check':
- return 'check';
- case 'information':
- return 'info-circle';
- case 'check-circle':
- return 'check-circle';
- case 'alert':
- return 'exclamation-triangle';
- case 'alert-circle':
- return 'exclamation-circle';
- case 'arrow-up':
- return 'arrow-up';
- case 'chevron-right':
- return 'angle-right';
- case 'chevron-left':
- return 'angle-left';
- case 'chevron-down':
- return 'angle-down';
- case 'eye':
- return 'eye';
- case 'eye-off':
- return 'eye-slash';
- case 'menu-down':
- return 'caret-down';
- case 'menu-up':
- return 'caret-up';
- default:
- return value;
- }
- }
- }
- });
-
- /***/ }),
- /* 107 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('span', {
- staticClass: "icon",
- class: [_vm.newType, _vm.size]
- }, [(!_vm.useIconComponent) ? _c('i', {
- class: [_vm.newPack, _vm.newIcon, _vm.newCustomSize, _vm.customClass]
- }) : _c(_vm.useIconComponent, {
- tag: "component",
- class: [_vm.customClass],
- attrs: {
- "icon": [_vm.newPack, _vm.newIcon],
- "size": _vm.newCustomSize
- }
- })], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 108 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "control",
- class: _vm.rootClasses
- }, [(_vm.type !== 'textarea') ? _c('input', _vm._b({
- ref: "input",
- staticClass: "input",
- class: [_vm.inputClasses, _vm.customClass],
- attrs: {
- "type": _vm.newType,
- "autocomplete": _vm.newAutocomplete,
- "maxlength": _vm.maxlength
- },
- domProps: {
- "value": _vm.computedValue
- },
- on: {
- "input": _vm.onInput,
- "blur": _vm.onBlur,
- "focus": _vm.onFocus
- }
- }, 'input', _vm.$attrs, false)) : _c('textarea', _vm._b({
- ref: "textarea",
- staticClass: "textarea",
- class: [_vm.inputClasses, _vm.customClass],
- attrs: {
- "maxlength": _vm.maxlength
- },
- domProps: {
- "value": _vm.computedValue
- },
- on: {
- "input": _vm.onInput,
- "blur": _vm.onBlur,
- "focus": _vm.onFocus
- }
- }, 'textarea', _vm.$attrs, false)), _vm._v(" "), (_vm.icon) ? _c('b-icon', {
- staticClass: "is-left",
- attrs: {
- "icon": _vm.icon,
- "pack": _vm.iconPack,
- "size": _vm.iconSize
- }
- }) : _vm._e(), _vm._v(" "), (!_vm.loading && (_vm.passwordReveal || _vm.statusType)) ? _c('b-icon', {
- staticClass: "is-right",
- class: {
- 'is-clickable': _vm.passwordReveal
- },
- attrs: {
- "icon": _vm.passwordReveal ? _vm.passwordVisibleIcon : _vm.statusTypeIcon,
- "pack": _vm.iconPack,
- "size": _vm.iconSize,
- "type": !_vm.passwordReveal ? _vm.statusType : 'is-primary',
- "both": ""
- },
- nativeOn: {
- "click": function($event) {
- _vm.togglePasswordVisibility($event)
- }
- }
- }) : _vm._e(), _vm._v(" "), (_vm.maxlength && _vm.hasCounter && _vm.type !== 'number') ? _c('small', {
- staticClass: "help counter",
- class: {
- 'is-invisible': !_vm.isFocused
- }
- }, [_vm._v("\n " + _vm._s(_vm.valueLength) + " / " + _vm._s(_vm.maxlength) + "\n ")]) : _vm._e()], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 109 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "autocomplete control",
- class: {
- 'is-expanded': _vm.expanded
- }
- }, [_c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "type": "text",
- "size": _vm.size,
- "loading": _vm.loading,
- "rounded": _vm.rounded,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "maxlength": _vm.maxlength,
- "autocomplete": _vm.newAutocomplete,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "input": _vm.onInput,
- "focus": _vm.focused,
- "blur": _vm.onBlur
- },
- nativeOn: {
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "esc", 27, $event.key)) { return null; }
- $event.preventDefault();
- _vm.isActive = false
- },
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "tab", 9, $event.key)) { return null; }
- _vm.tabPressed($event)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.enterPressed($event)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "up", 38, $event.key)) { return null; }
- $event.preventDefault();
- _vm.keyArrows('up')
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "down", 40, $event.key)) { return null; }
- $event.preventDefault();
- _vm.keyArrows('down')
- }]
- },
- model: {
- value: (_vm.newValue),
- callback: function($$v) {
- _vm.newValue = $$v
- },
- expression: "newValue"
- }
- }, 'b-input', _vm.$attrs, false)), _vm._v(" "), _c('transition', {
- attrs: {
- "name": "fade"
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive && (_vm.data.length > 0 || _vm.hasEmptySlot || _vm.hasHeaderSlot)),
- expression: "isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"
- }],
- ref: "dropdown",
- staticClass: "dropdown-menu",
- class: {
- 'is-opened-top': !_vm.isListInViewportVertically
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "dropdown-content"
- }, [(_vm.hasHeaderSlot) ? _c('div', {
- staticClass: "dropdown-item"
- }, [_vm._t("header")], 2) : _vm._e(), _vm._v(" "), _vm._l((_vm.data), function(option, index) {
- return _c('a', {
- key: index,
- staticClass: "dropdown-item",
- class: {
- 'is-hovered': option === _vm.hovered
- },
- on: {
- "click": function($event) {
- _vm.setSelected(option)
- }
- }
- }, [(_vm.hasDefaultSlot) ? _vm._t("default", null, {
- option: option,
- index: index
- }) : _c('span', [_vm._v("\n " + _vm._s(_vm.getValue(option, true)) + "\n ")])], 2)
- }), _vm._v(" "), (_vm.data.length === 0 && _vm.hasEmptySlot) ? _c('div', {
- staticClass: "dropdown-item is-disabled"
- }, [_vm._t("empty")], 2) : _vm._e(), _vm._v(" "), (_vm.hasFooterSlot) ? _c('div', {
- staticClass: "dropdown-item"
- }, [_vm._t("footer")], 2) : _vm._e()], 2)])])], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 110 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(111),
- /* template */
- __webpack_require__(112),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 111 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BButton',
- 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),
- props: {
- type: [String, Object],
- size: String,
- label: String,
- iconPack: String,
- iconLeft: String,
- iconRight: String,
- rounded: Boolean,
- loading: Boolean,
- outlined: Boolean,
- inverted: Boolean,
- focused: Boolean,
- active: Boolean,
- hovered: Boolean,
- selected: Boolean,
- nativeType: {
- type: String,
- default: 'button',
- validator: function validator(value) {
- return ['button', 'submit', 'reset'].indexOf(value) >= 0;
- }
- },
- tag: {
- type: String,
- default: 'button',
- validator: function validator(value) {
- return ['button', 'a', 'input', 'router-link', 'nuxt-link', 'n-link', 'NuxtLink', 'NLink'].indexOf(value) >= 0;
- }
- }
- },
- computed: {
- iconSize: function iconSize() {
- if (!this.size || this.size === 'is-medium') {
- return 'is-small';
- } else if (this.size === 'is-large') {
- return 'is-medium';
- }
- return this.size;
- }
- }
- });
-
- /***/ }),
- /* 112 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c(_vm.tag, _vm._b({
- tag: "component",
- staticClass: "button",
- class: [_vm.size, _vm.type, {
- 'is-rounded': _vm.rounded,
- 'is-loading': _vm.loading,
- 'is-outlined': _vm.outlined,
- 'is-inverted': _vm.inverted,
- 'is-focused': _vm.focused,
- 'is-active': _vm.active,
- 'is-hovered': _vm.hovered,
- 'is-selected': _vm.selected
- }],
- attrs: {
- "type": _vm.nativeType
- },
- on: {
- "click": function($event) {
- _vm.$emit('click', $event)
- }
- }
- }, 'component', _vm.$attrs, false), [(_vm.iconLeft) ? _c('b-icon', {
- attrs: {
- "pack": _vm.iconPack,
- "icon": _vm.iconLeft,
- "size": _vm.iconSize
- }
- }) : _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', {
- attrs: {
- "pack": _vm.iconPack,
- "icon": _vm.iconRight,
- "size": _vm.iconSize
- }
- }) : _vm._e()], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 113 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* 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__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BCheckbox',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- indeterminate: Boolean,
- type: String,
- disabled: Boolean,
- required: Boolean,
- name: String,
- size: String,
- trueValue: {
- type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- default: true
- },
- falseValue: {
- type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- default: false
- }
- },
- data: function data() {
- return {
- newValue: this.value
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 114 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('label', {
- ref: "label",
- staticClass: "b-checkbox checkbox",
- class: [_vm.size, {
- 'is-disabled': _vm.disabled
- }],
- attrs: {
- "disabled": _vm.disabled
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- }
- }
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "type": "checkbox",
- "disabled": _vm.disabled,
- "required": _vm.required,
- "name": _vm.name,
- "true-value": _vm.trueValue,
- "false-value": _vm.falseValue
- },
- domProps: {
- "indeterminate": _vm.indeterminate,
- "value": _vm.nativeValue,
- "checked": Array.isArray(_vm.computedValue) ? _vm._i(_vm.computedValue, _vm.nativeValue) > -1 : _vm._q(_vm.computedValue, _vm.trueValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "change": function($event) {
- var $$a = _vm.computedValue,
- $$el = $event.target,
- $$c = $$el.checked ? (_vm.trueValue) : (_vm.falseValue);
- if (Array.isArray($$a)) {
- var $$v = _vm.nativeValue,
- $$i = _vm._i($$a, $$v);
- if ($$el.checked) {
- $$i < 0 && (_vm.computedValue = $$a.concat([$$v]))
- } else {
- $$i > -1 && (_vm.computedValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.computedValue = $$c
- }
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "check",
- class: _vm.type
- }), _vm._v(" "), _c('span', {
- staticClass: "control-label"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 115 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(116),
- /* template */
- __webpack_require__(117),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 116 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* 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__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BCheckboxButton',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- disabled: Boolean,
- required: Boolean,
- name: String,
- size: String,
- type: {
- type: String,
- default: 'is-primary'
- }
- },
- data: function data() {
- return {
- newValue: this.value,
- isFocused: false
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- },
- checked: function checked() {
- if (Array.isArray(this.newValue)) {
- return this.newValue.indexOf(this.nativeValue) >= 0;
- }
- return this.newValue === this.nativeValue;
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 117 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "control"
- }, [_c('label', {
- ref: "label",
- staticClass: "b-checkbox checkbox button",
- class: [_vm.checked ? _vm.type : null, _vm.size, {
- 'is-disabled': _vm.disabled,
- 'is-focused': _vm.isFocused
- }],
- attrs: {
- "disabled": _vm.disabled
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- }
- }
- }, [_vm._t("default"), _vm._v(" "), _c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "type": "checkbox",
- "disabled": _vm.disabled,
- "required": _vm.required,
- "name": _vm.name
- },
- domProps: {
- "value": _vm.nativeValue,
- "checked": Array.isArray(_vm.computedValue) ? _vm._i(_vm.computedValue, _vm.nativeValue) > -1 : (_vm.computedValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "focus": function($event) {
- _vm.isFocused = true
- },
- "blur": function($event) {
- _vm.isFocused = false
- },
- "change": function($event) {
- var $$a = _vm.computedValue,
- $$el = $event.target,
- $$c = $$el.checked ? (true) : (false);
- if (Array.isArray($$a)) {
- var $$v = _vm.nativeValue,
- $$i = _vm._i($$a, $$v);
- if ($$el.checked) {
- $$i < 0 && (_vm.computedValue = $$a.concat([$$v]))
- } else {
- $$i > -1 && (_vm.computedValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.computedValue = $$c
- }
- }
- }
- })], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 118 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(119),
- /* template */
- __webpack_require__(120),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 119 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BCollapse',
- props: {
- open: {
- type: Boolean,
- default: true
- },
- animation: {
- type: String,
- default: 'fade'
- },
- ariaId: {
- type: String,
- default: ''
- }
- },
- data: function data() {
- return {
- isOpen: this.open
- };
- },
-
- watch: {
- open: function open(value) {
- this.isOpen = value;
- }
- },
- methods: {
- /**
- * Toggle and emit events
- */
- toggle: function toggle() {
- this.isOpen = !this.isOpen;
- this.$emit('update:open', this.isOpen);
- this.$emit(this.isOpen ? 'open' : 'close');
- }
- }
- });
-
- /***/ }),
- /* 120 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "collapse"
- }, [_c('div', {
- staticClass: "collapse-trigger",
- on: {
- "click": _vm.toggle
- }
- }, [_vm._t("trigger", null, {
- open: _vm.isOpen
- })], 2), _vm._v(" "), _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isOpen),
- expression: "isOpen"
- }],
- staticClass: "collapse-content",
- attrs: {
- "id": _vm.ariaId,
- "aria-expanded": _vm.isOpen
- }
- }, [_vm._t("default")], 2)])], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 121 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(122),
- /* template */
- __webpack_require__(134),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 122 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__ = __webpack_require__(62);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__ = __webpack_require__(28);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__ = __webpack_require__(29);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__input_Input__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field__ = __webpack_require__(30);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__field_Field__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace__ = __webpack_require__(131);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ClockpickerFace___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__ClockpickerFace__);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
-
-
-
- var outerPadding = 12;
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BClockpicker',
- 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),
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__["a" /* default */]],
- props: {
- pickerSize: {
- type: Number,
- default: 290
- },
- hourFormat: {
- type: String,
- default: '12',
- validator: function validator(value) {
- return value === '24' || value === '12';
- }
- },
- incrementMinutes: {
- type: Number,
- default: 5
- },
- autoSwitch: {
- type: Boolean,
- default: true
- },
- type: {
- type: String,
- default: 'is-primary'
- }
- },
- data: function data() {
- return {
- isSelectingHour: true,
- isDragging: false,
- _isClockpicker: true
- };
- },
-
- computed: {
- hoursDisplay: function hoursDisplay() {
- if (this.hoursSelected == null) return '--';
- if (this.isHourFormat24) return this.pad(this.hoursSelected);
-
- var display = this.hoursSelected;
- if (this.meridienSelected === this.PM) display -= 12;
- if (display === 0) display = 12;
- return display;
- },
- minutesDisplay: function minutesDisplay() {
- return this.minutesSelected == null ? '--' : this.pad(this.minutesSelected);
- },
- minFaceValue: function minFaceValue() {
- return this.isSelectingHour && !this.isHourFormat24 && this.meridienSelected === this.PM ? 12 : 0;
- },
- maxFaceValue: function maxFaceValue() {
- return this.isSelectingHour ? !this.isHourFormat24 && this.meridienSelected === this.AM ? 11 : 23 : 59;
- },
- faceFormatter: function faceFormatter() {
- return this.isSelectingHour && !this.isHourFormat24 ? function (val) {
- return val;
- } : this.formatNumber;
- },
- faceSize: function faceSize() {
- return this.pickerSize - outerPadding * 2;
- },
- faceDisabledValues: function faceDisabledValues() {
- return this.isSelectingHour ? this.isHourDisabled : this.isMinuteDisabled;
- }
- },
- methods: {
- onClockInput: function onClockInput(value) {
- if (this.isSelectingHour) {
- this.hoursSelected = value;
- this.onHoursChange(value);
- } else {
- this.minutesSelected = value;
- this.onMinutesChange(value);
- }
- },
- onClockChange: function onClockChange(value) {
- if (this.autoSwitch && this.isSelectingHour) {
- this.isSelectingHour = !this.isSelectingHour;
- }
- },
- onMeridienClick: function onMeridienClick(value) {
- if (this.meridienSelected !== value) {
- this.meridienSelected = value;
- this.onMeridienChange(value);
- }
- }
- }
- });
-
- /***/ }),
- /* 123 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__ = __webpack_require__(59);
- /* 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__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* 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__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_config__ = __webpack_require__(2);
-
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDropdown',
- props: {
- value: {
- type: [String, Number, Boolean, Object, Array, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_symbol___default.a, Function],
- default: null
- },
- disabled: Boolean,
- hoverable: Boolean,
- inline: Boolean,
- position: {
- type: String,
- validator: function validator(value) {
- return ['is-top-right', 'is-top-left', 'is-bottom-left'].indexOf(value) > -1;
- }
- },
- mobileModal: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_2__utils_config__["a" /* default */].defaultDropdownMobileModal;
- }
- },
- ariaRole: {
- type: String,
- default: ''
- },
- animation: {
- type: String,
- default: 'fade'
- },
- multiple: Boolean,
- closeOnClick: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- selected: this.value,
- isActive: false,
- isHoverable: this.hoverable,
- _isDropdown: true // Used internally by DropdownItem
- };
- },
-
- computed: {
- rootClasses: function rootClasses() {
- return [this.position, {
- 'is-disabled': this.disabled,
- 'is-hoverable': this.hoverable,
- 'is-inline': this.inline,
- 'is-active': this.isActive || this.inline,
- 'is-mobile-modal': this.isMobileModal
- }];
- },
- isMobileModal: function isMobileModal() {
- return this.mobileModal && !this.inline && !this.hoverable;
- },
- ariaRoleMenu: function ariaRoleMenu() {
- return this.ariaRole === 'menu' || this.ariaRole === 'list' ? this.ariaRole : null;
- }
- },
- watch: {
- /**
- * When v-model is changed set the new selected item.
- */
- value: function value(_value) {
- this.selected = _value;
- },
-
-
- /**
- * Emit event when isActive value is changed.
- */
- isActive: function isActive(value) {
- this.$emit('active-change', value);
- }
- },
- methods: {
- /**
- * Click listener from DropdownItem.
- * 1. Set new selected item.
- * 2. Emit input event to update the user v-model.
- * 3. Close the dropdown.
- */
- selectItem: function selectItem(value) {
- if (this.multiple) {
- if (this.selected) {
- var index = this.selected.indexOf(value);
- if (index === -1) {
- this.selected.push(value);
- } else {
- this.selected.splice(index, 1);
- }
- } else {
- this.selected = [value];
- }
- this.$emit('change', this.selected);
- } else {
- if (this.selected !== value) {
- this.selected = value;
- this.$emit('change', this.selected);
- }
- }
- this.$emit('input', this.selected);
- if (!this.multiple) {
- this.isActive = !this.closeOnClick;
- /*
- * breaking change
- if (this.hoverable && this.closeOnClick) {
- this.isHoverable = false
- // Timeout for the animation complete before destroying
- setTimeout(() => {
- this.isHoverable = true
- }, 250)
- }
- */
- }
- },
-
-
- /**
- * White-listed items to not close when clicked.
- */
- isInWhiteList: function isInWhiteList(el) {
- if (el === this.$refs.dropdownMenu) return true;
- if (el === this.$refs.trigger) return true;
- // All chidren from dropdown
- if (this.$refs.dropdownMenu !== undefined) {
- var children = this.$refs.dropdownMenu.querySelectorAll('*');
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
-
- try {
- for (var _iterator = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(children), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var child = _step.value;
-
- if (el === child) {
- return true;
- }
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator.return) {
- _iterator.return();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
- }
- // All children from trigger
- if (this.$refs.trigger !== undefined) {
- var _children = this.$refs.trigger.querySelectorAll('*');
- var _iteratorNormalCompletion2 = true;
- var _didIteratorError2 = false;
- var _iteratorError2 = undefined;
-
- try {
- for (var _iterator2 = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(_children), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
- var _child = _step2.value;
-
- if (el === _child) {
- return true;
- }
- }
- } catch (err) {
- _didIteratorError2 = true;
- _iteratorError2 = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion2 && _iterator2.return) {
- _iterator2.return();
- }
- } finally {
- if (_didIteratorError2) {
- throw _iteratorError2;
- }
- }
- }
- }
-
- return false;
- },
-
-
- /**
- * Close dropdown if clicked outside.
- */
- clickedOutside: function clickedOutside(event) {
- if (this.inline) return;
-
- if (!this.isInWhiteList(event.target)) this.isActive = false;
- },
-
-
- /**
- * Toggle dropdown if it's not disabled.
- */
- toggle: function toggle() {
- var _this = this;
-
- if (this.disabled) return;
-
- if (!this.isActive) {
- // if not active, toggle after clickOutside event
- // this fixes toggling programmatic
- this.$nextTick(function () {
- _this.isActive = !_this.isActive;
- });
- } else {
- this.isActive = !this.isActive;
- }
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('click', this.clickedOutside);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('click', this.clickedOutside);
- }
- }
- });
-
- /***/ }),
- /* 124 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "dropdown",
- class: _vm.rootClasses
- }, [(!_vm.inline) ? _c('div', {
- ref: "trigger",
- staticClass: "dropdown-trigger",
- attrs: {
- "role": "button",
- "aria-haspopup": "true"
- },
- on: {
- "click": _vm.toggle
- }
- }, [_vm._t("trigger")], 2) : _vm._e(), _vm._v(" "), _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [(_vm.isMobileModal) ? _c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "background",
- attrs: {
- "aria-hidden": !_vm.isActive
- }
- }) : _vm._e()]), _vm._v(" "), _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: ((!_vm.disabled && (_vm.isActive || _vm.isHoverable)) || _vm.inline),
- expression: "(!disabled && (isActive || isHoverable)) || inline"
- }],
- ref: "dropdownMenu",
- staticClass: "dropdown-menu",
- attrs: {
- "aria-hidden": !_vm.isActive
- }
- }, [_c('div', {
- staticClass: "dropdown-content",
- attrs: {
- "role": _vm.ariaRoleMenu
- }
- }, [_vm._t("default")], 2)])])], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 125 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* 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__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDropdownItem',
- props: {
- value: {
- type: [String, Number, Boolean, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a, Function],
- default: null
- },
- separator: Boolean,
- disabled: Boolean,
- custom: Boolean,
- paddingless: Boolean,
- hasLink: Boolean,
- ariaRole: {
- type: String,
- default: ''
- }
- },
- computed: {
- anchorClasses: function anchorClasses() {
- return {
- 'is-disabled': this.$parent.disabled || this.disabled,
- 'is-paddingless': this.paddingless,
- 'is-active': this.isActive
- };
- },
- itemClasses: function itemClasses() {
- return {
- 'dropdown-item': !this.hasLink,
- 'is-disabled': this.disabled,
- 'is-paddingless': this.paddingless,
- 'is-active': this.isActive,
- 'has-link': this.hasLink
- };
- },
- ariaRoleItem: function ariaRoleItem() {
- return this.ariaRole === 'menuitem' || this.ariaRole === 'listitem' ? this.ariaRole : null;
- },
-
- /**
- * Check if item can be clickable.
- */
- isClickable: function isClickable() {
- return !this.$parent.disabled && !this.separator && !this.disabled && !this.custom;
- },
- isActive: function isActive() {
- if (this.$parent.selected === null) return false;
- if (this.$parent.multiple) return this.$parent.selected.indexOf(this.value) >= 0;
- return this.value === this.$parent.selected;
- }
- },
- methods: {
- /**
- * Click listener, select the item.
- */
- selectItem: function selectItem() {
- if (!this.isClickable) return;
-
- this.$parent.selectItem(this.value);
- this.$emit('click');
- }
- },
- created: function created() {
- if (!this.$parent.$data._isDropdown) {
- this.$destroy();
- throw new Error('You should wrap bDropdownItem on a bDropdown');
- }
- }
- });
-
- /***/ }),
- /* 126 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return (_vm.separator) ? _c('hr', {
- staticClass: "dropdown-divider"
- }) : (!_vm.custom && !_vm.hasLink) ? _c('a', {
- staticClass: "dropdown-item",
- class: _vm.anchorClasses,
- attrs: {
- "role": _vm.ariaRoleItem,
- "tabindex": "0"
- },
- on: {
- "click": _vm.selectItem
- }
- }, [_vm._t("default")], 2) : _c('div', {
- class: _vm.itemClasses,
- attrs: {
- "role": _vm.ariaRoleItem,
- "tabindex": "0"
- },
- on: {
- "click": _vm.selectItem
- }
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 127 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__FieldBody__ = __webpack_require__(128);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__FieldBody___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__FieldBody__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BField',
- 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),
- props: {
- type: [String, Object],
- label: String,
- labelFor: String,
- message: [String, Array, Object],
- grouped: Boolean,
- groupMultiline: Boolean,
- position: String,
- expanded: Boolean,
- horizontal: Boolean,
- addons: {
- type: Boolean,
- default: true
- },
- customClass: String,
- labelPosition: {
- type: String,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultFieldLabelPosition;
- }
- }
- },
- data: function data() {
- return {
- newType: this.type,
- newMessage: this.message,
- fieldLabelSize: null,
- _isField: true // Used internally by Input and Select
- };
- },
-
- computed: {
- rootClasses: function rootClasses() {
- return [this.newPosition, {
- 'is-expanded': this.expanded,
- 'is-grouped-multiline': this.groupMultiline,
- 'is-horizontal': this.horizontal,
- 'is-floating-in-label': this.hasLabel && !this.horizontal && this.labelPosition === 'inside',
- 'is-floating-label': this.hasLabel && !this.horizontal && this.labelPosition === 'on-border'
- }];
- },
-
- /**
- * Correct Bulma class for the side of the addon or group.
- *
- * This is not kept like the others (is-small, etc.),
- * because since 'has-addons' is set automatically it
- * doesn't make sense to teach users what addons are exactly.
- */
- newPosition: function newPosition() {
- if (this.position === undefined) return;
-
- var position = this.position.split('-');
- if (position.length < 1) return;
-
- var prefix = this.grouped ? 'is-grouped-' : 'has-addons-';
-
- if (this.position) return prefix + position[1];
- },
-
- /**
- * Formatted message in case it's an array
- * (each element is separated by <br> tag)
- */
- formattedMessage: function formattedMessage() {
- if (typeof this.newMessage === 'string') {
- return this.newMessage;
- } else {
- var messages = [];
- if (Array.isArray(this.newMessage)) {
- this.newMessage.forEach(function (message) {
- if (typeof message === 'string') {
- messages.push(message);
- } else {
- for (var key in message) {
- if (message[key]) {
- messages.push(key);
- }
- }
- }
- });
- } else {
- for (var key in this.newMessage) {
- if (this.newMessage[key]) {
- messages.push(key);
- }
- }
- }
- return messages.filter(function (m) {
- if (m) return m;
- }).join(' <br> ');
- }
- },
- hasLabel: function hasLabel() {
- return this.label || this.$slots.label;
- }
- },
- watch: {
- /**
- * Set internal type when prop change.
- */
- type: function type(value) {
- this.newType = value;
- },
-
-
- /**
- * Set internal message when prop change.
- */
- message: function message(value) {
- this.newMessage = value;
- }
- },
- methods: {
- /**
- * Field has addons if there are more than one slot
- * (element / component) in the Field.
- * Or is grouped when prop is set.
- * Is a method to be called when component re-render.
- */
- fieldType: function fieldType() {
- if (this.grouped) return 'is-grouped';
-
- var renderedNode = 0;
- if (this.$slots.default) {
- renderedNode = this.$slots.default.reduce(function (i, node) {
- return node.tag ? i + 1 : i;
- }, 0);
- }
- if (renderedNode > 1 && this.addons && !this.horizontal) {
- return 'has-addons';
- }
- }
- },
- mounted: function mounted() {
- if (this.horizontal) {
- // Bulma docs: .is-normal for any .input or .button
- var elements = this.$el.querySelectorAll('.input, .select, .button, .textarea');
- if (elements.length > 0) {
- this.fieldLabelSize = 'is-normal';
- }
- }
- }
- });
-
- /***/ }),
- /* 128 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(129),
- /* template */
- null,
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 129 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BFieldBody',
- props: {
- message: {
- type: String
- },
- type: {
- type: [String, Object]
- }
- },
- render: function render(createElement) {
- var _this = this;
-
- return createElement('div', { attrs: { 'class': 'field-body' } }, this.$slots.default.map(function (element) {
- // skip returns and comments
- if (!element.tag) {
- return element;
- }
- if (_this.message) {
- return createElement('b-field', { attrs: { message: _this.message, 'type': _this.type } }, [element]);
- }
- return createElement('b-field', { attrs: { 'type': _this.type } }, [element]);
- }));
- }
- });
-
- /***/ }),
- /* 130 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "field",
- class: [_vm.rootClasses, _vm.fieldType()]
- }, [(_vm.horizontal) ? _c('div', {
- staticClass: "field-label",
- class: [_vm.customClass, _vm.fieldLabelSize]
- }, [(_vm.hasLabel) ? _c('label', {
- staticClass: "label",
- class: _vm.customClass,
- attrs: {
- "for": _vm.labelFor
- }
- }, [(_vm.$slots.label) ? _vm._t("label") : [_vm._v(_vm._s(_vm.label))]], 2) : _vm._e()]) : [(_vm.hasLabel) ? _c('label', {
- staticClass: "label",
- class: _vm.customClass,
- attrs: {
- "for": _vm.labelFor
- }
- }, [(_vm.$slots.label) ? _vm._t("label") : [_vm._v(_vm._s(_vm.label))]], 2) : _vm._e()], _vm._v(" "), (_vm.horizontal) ? _c('b-field-body', {
- attrs: {
- "message": _vm.newMessage ? _vm.formattedMessage : '',
- "type": _vm.newType
- }
- }, [_vm._t("default")], 2) : [_vm._t("default")], _vm._v(" "), (_vm.newMessage && !_vm.horizontal) ? _c('p', {
- staticClass: "help",
- class: _vm.newType,
- domProps: {
- "innerHTML": _vm._s(_vm.formattedMessage)
- }
- }) : _vm._e()], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 131 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(132),
- /* template */
- __webpack_require__(133),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 132 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- // These should match the variables in clockpicker.scss
- var indicatorSize = 40;
- var paddingInner = 5;
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BClockpickerFace',
- props: {
- pickerSize: Number,
- min: Number,
- max: Number,
- double: Boolean,
- value: Number,
- faceNumbers: Array,
- disabledValues: Function
- },
- data: function data() {
- return {
- isDragging: false,
- inputValue: this.value,
- prevAngle: 720
- };
- },
-
- computed: {
- /**
- * How many number indicators are shown on the face
- */
- count: function count() {
- return this.max - this.min + 1;
- },
-
- /**
- * How many number indicators are shown per ring on the face
- */
- countPerRing: function countPerRing() {
- return this.double ? this.count / 2 : this.count;
- },
-
- /**
- * Radius of the clock face
- */
- radius: function radius() {
- return this.pickerSize / 2;
- },
-
- /**
- * Radius of the outer ring of number indicators
- */
- outerRadius: function outerRadius() {
- return this.radius - paddingInner - indicatorSize / 2;
- },
-
- /**
- * Radius of the inner ring of number indicators
- */
- innerRadius: function innerRadius() {
- return Math.max(this.outerRadius * 0.6, this.outerRadius - paddingInner - indicatorSize);
- // 48px gives enough room for the outer ring of numbers
- },
-
- /**
- * The angle for each selectable value
- * For hours this ends up being 30 degrees, for minutes 6 degrees
- */
- degreesPerUnit: function degreesPerUnit() {
- return 360 / this.countPerRing;
- },
-
- /**
- * Used for calculating x/y grid location based on degrees
- */
- degrees: function degrees() {
- return this.degreesPerUnit * Math.PI / 180;
- },
-
- /**
- * Calculates the angle the clock hand should be rotated for the
- * selected value
- */
- handRotateAngle: function handRotateAngle() {
- var currentAngle = this.prevAngle;
- while (currentAngle < 0) {
- currentAngle += 360;
- }var targetAngle = this.calcHandAngle(this.displayedValue);
- var degreesDiff = this.shortestDistanceDegrees(currentAngle, targetAngle);
- var angle = this.prevAngle + degreesDiff;
- return angle;
- },
-
- /**
- * Determines how long the selector hand is based on if the
- * selected value is located along the outer or inner ring
- */
- handScale: function handScale() {
- return this.calcHandScale(this.displayedValue);
- },
- handStyle: function handStyle() {
- return {
- transform: 'rotate(' + this.handRotateAngle + 'deg) scaleY(' + this.handScale + ')',
- transition: '.3s cubic-bezier(.25,.8,.50,1)'
- };
- },
-
- /**
- * The value the hand should be pointing at
- */
- displayedValue: function displayedValue() {
- return this.inputValue == null ? this.min : this.inputValue;
- }
- },
- watch: {
- value: function value(_value) {
- if (_value !== this.inputValue) {
- this.prevAngle = this.handRotateAngle;
- }
- this.inputValue = _value;
- }
- },
- methods: {
- isDisabled: function isDisabled(value) {
- return this.disabledValues && this.disabledValues(value);
- },
-
- /**
- * Calculates the distance between two points
- */
- euclidean: function euclidean(p0, p1) {
- var dx = p1.x - p0.x;
- var dy = p1.y - p0.y;
-
- return Math.sqrt(dx * dx + dy * dy);
- },
- shortestDistanceDegrees: function shortestDistanceDegrees(start, stop) {
- var modDiff = (stop - start) % 360;
- var shortestDistance = 180 - Math.abs(Math.abs(modDiff) - 180);
- return (modDiff + 360) % 360 < 180 ? shortestDistance * 1 : shortestDistance * -1;
- },
-
- /**
- * Calculates the angle of the line from the center point
- * to the given point.
- */
- coordToAngle: function coordToAngle(center, p1) {
- var value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x);
- return Math.abs(value * 180 / Math.PI);
- },
-
- /**
- * Generates the inline style translate() property for a
- * number indicator, which determines it's location on the
- * clock face
- */
- getNumberTranslate: function getNumberTranslate(value) {
- var _getNumberCoords = this.getNumberCoords(value),
- x = _getNumberCoords.x,
- y = _getNumberCoords.y;
-
- return 'translate(' + x + 'px, ' + y + 'px)';
- },
-
- /***
- * Calculates the coordinates on the clock face for a number
- * indicator value
- */
- getNumberCoords: function getNumberCoords(value) {
- var radius = this.isInnerRing(value) ? this.innerRadius : this.outerRadius;
- return {
- x: Math.round(radius * Math.sin((value - this.min) * this.degrees)),
- y: Math.round(-radius * Math.cos((value - this.min) * this.degrees))
- };
- },
- getFaceNumberClasses: function getFaceNumberClasses(num) {
- return {
- 'active': num.value === this.displayedValue,
- 'disabled': this.isDisabled(num.value)
- };
- },
-
- /**
- * Determines if a value resides on the inner ring
- */
- isInnerRing: function isInnerRing(value) {
- return this.double && value - this.min >= this.countPerRing;
- },
- calcHandAngle: function calcHandAngle(value) {
- var angle = this.degreesPerUnit * (value - this.min);
- if (this.isInnerRing(value)) angle -= 360;
- return angle;
- },
- calcHandScale: function calcHandScale(value) {
- return this.isInnerRing(value) ? this.innerRadius / this.outerRadius : 1;
- },
- onMouseDown: function onMouseDown(e) {
- e.preventDefault();
- this.isDragging = true;
- this.onDragMove(e);
- },
- onMouseUp: function onMouseUp() {
- this.isDragging = false;
- if (!this.isDisabled(this.inputValue)) {
- this.$emit('change', this.inputValue);
- }
- },
- onDragMove: function onDragMove(e) {
- e.preventDefault();
- if (!this.isDragging && e.type !== 'click') return;
-
- var _$refs$clock$getBound = this.$refs.clock.getBoundingClientRect(),
- width = _$refs$clock$getBound.width,
- top = _$refs$clock$getBound.top,
- left = _$refs$clock$getBound.left;
-
- var _ref = 'touches' in e ? e.touches[0] : e,
- clientX = _ref.clientX,
- clientY = _ref.clientY;
-
- var center = { x: width / 2, y: -width / 2 };
- var coords = { x: clientX - left, y: top - clientY };
- var handAngle = Math.round(this.coordToAngle(center, coords) + 360) % 360;
- var insideClick = this.double && this.euclidean(center, coords) < (this.outerRadius + this.innerRadius) / 2 - 16;
-
- var value = Math.round(handAngle / this.degreesPerUnit) + this.min + (insideClick ? this.countPerRing : 0);
-
- // Necessary to fix edge case when selecting left part of max value
- if (handAngle >= 360 - this.degreesPerUnit / 2) {
- value = insideClick ? this.max : this.min;
- }
- this.update(value);
- },
- update: function update(value) {
- if (this.inputValue !== value && !this.isDisabled(value)) {
- this.prevAngle = this.handRotateAngle;
- this.inputValue = value;
- this.$emit('input', value);
- }
- }
- }
- });
-
- /***/ }),
- /* 133 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-clockpicker-face",
- on: {
- "mousedown": _vm.onMouseDown,
- "mouseup": _vm.onMouseUp,
- "mousemove": _vm.onDragMove,
- "touchstart": _vm.onMouseDown,
- "touchend": _vm.onMouseUp,
- "touchmove": _vm.onDragMove
- }
- }, [_c('div', {
- ref: "clock",
- staticClass: "b-clockpicker-face-outer-ring"
- }, [_c('div', {
- staticClass: "b-clockpicker-face-hand",
- style: (_vm.handStyle)
- }), _vm._v(" "), _vm._l((_vm.faceNumbers), function(num, index) {
- return _c('span', {
- key: index,
- staticClass: "b-clockpicker-face-number",
- class: _vm.getFaceNumberClasses(num),
- style: ({
- transform: _vm.getNumberTranslate(num.value)
- })
- }, [_c('span', [_vm._v(_vm._s(num.label))])])
- })], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 134 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-clockpicker control",
- class: [_vm.size, _vm.type, {
- 'is-expanded': _vm.expanded
- }]
- }, [(!_vm.isMobile || _vm.inline) ? _c('b-dropdown', {
- ref: "dropdown",
- attrs: {
- "position": _vm.position,
- "disabled": _vm.disabled,
- "inline": _vm.inline
- }
- }, [(!_vm.inline) ? _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "slot": "trigger",
- "autocomplete": "off",
- "value": _vm.formatValue(_vm.computedValue),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "disabled": _vm.disabled,
- "readonly": !_vm.editable,
- "rounded": _vm.rounded,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "focus": _vm.handleOnFocus,
- "blur": function($event) {
- _vm.onBlur() && _vm.checkHtml5Validity()
- }
- },
- nativeOn: {
- "click": function($event) {
- $event.stopPropagation();
- _vm.toggle(true)
- },
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- _vm.toggle(true)
- },
- "change": function($event) {
- _vm.onChangeNativePicker($event)
- }
- },
- slot: "trigger"
- }, 'b-input', _vm.$attrs, false)) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "card",
- attrs: {
- "disabled": _vm.disabled,
- "custom": ""
- }
- }, [(_vm.inline) ? _c('header', {
- staticClass: "card-header"
- }, [_c('div', {
- staticClass: "b-clockpicker-header card-header-title"
- }, [_c('div', {
- staticClass: "b-clockpicker-time"
- }, [_c('span', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.isSelectingHour
- },
- on: {
- "click": function($event) {
- _vm.isSelectingHour = true
- }
- }
- }, [_vm._v(_vm._s(_vm.hoursDisplay))]), _vm._v(" "), _c('span', [_vm._v(":")]), _vm._v(" "), _c('span', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: !_vm.isSelectingHour
- },
- on: {
- "click": function($event) {
- _vm.isSelectingHour = false
- }
- }
- }, [_vm._v(_vm._s(_vm.minutesDisplay))])]), _vm._v(" "), (!_vm.isHourFormat24) ? _c('div', {
- staticClass: "b-clockpicker-period"
- }, [_c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.meridienSelected == _vm.AM
- },
- on: {
- "click": function($event) {
- _vm.onMeridienClick(_vm.AM)
- }
- }
- }, [_vm._v("am")]), _vm._v(" "), _c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.meridienSelected == _vm.PM
- },
- on: {
- "click": function($event) {
- _vm.onMeridienClick(_vm.PM)
- }
- }
- }, [_vm._v("pm")])]) : _vm._e()])]) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "card-content"
- }, [_c('div', {
- staticClass: "b-clockpicker-body",
- style: ({
- width: _vm.faceSize + 'px',
- height: _vm.faceSize + 'px'
- })
- }, [(!_vm.inline) ? _c('div', {
- staticClass: "b-clockpicker-time"
- }, [_c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.isSelectingHour
- },
- on: {
- "click": function($event) {
- _vm.isSelectingHour = true
- }
- }
- }, [_vm._v("Hours")]), _vm._v(" "), _c('span', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: !_vm.isSelectingHour
- },
- on: {
- "click": function($event) {
- _vm.isSelectingHour = false
- }
- }
- }, [_vm._v("Min")])]) : _vm._e(), _vm._v(" "), (!_vm.isHourFormat24 && !_vm.inline) ? _c('div', {
- staticClass: "b-clockpicker-period"
- }, [_c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.meridienSelected == _vm.AM
- },
- on: {
- "click": function($event) {
- _vm.onMeridienClick(_vm.AM)
- }
- }
- }, [_vm._v(_vm._s(_vm.AM))]), _vm._v(" "), _c('div', {
- staticClass: "b-clockpicker-btn",
- class: {
- active: _vm.meridienSelected == _vm.PM
- },
- on: {
- "click": function($event) {
- _vm.onMeridienClick(_vm.PM)
- }
- }
- }, [_vm._v(_vm._s(_vm.PM))])]) : _vm._e(), _vm._v(" "), _c('b-clockpicker-face', {
- attrs: {
- "picker-size": _vm.faceSize,
- "min": _vm.minFaceValue,
- "max": _vm.maxFaceValue,
- "face-numbers": _vm.isSelectingHour ? _vm.hours : _vm.minutes,
- "disabled-values": _vm.faceDisabledValues,
- "double": _vm.isSelectingHour && _vm.isHourFormat24,
- "value": _vm.isSelectingHour ? _vm.hoursSelected : _vm.minutesSelected
- },
- on: {
- "input": _vm.onClockInput,
- "change": _vm.onClockChange
- }
- })], 1)]), _vm._v(" "), (_vm.$slots.default !== undefined && _vm.$slots.default.length) ? _c('footer', {
- staticClass: "b-clockpicker-footer card-footer"
- }, [_vm._t("default")], 2) : _vm._e()])], 1) : _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "type": "time",
- "autocomplete": "off",
- "value": _vm.formatHHMMSS(_vm.computedValue),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "max": _vm.formatHHMMSS(_vm.maxTime),
- "min": _vm.formatHHMMSS(_vm.minTime),
- "disabled": _vm.disabled,
- "readonly": false,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "focus": _vm.handleOnFocus,
- "blur": function($event) {
- _vm.onBlur() && _vm.checkHtml5Validity()
- }
- },
- nativeOn: {
- "click": function($event) {
- $event.stopPropagation();
- _vm.toggle(true)
- },
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- _vm.toggle(true)
- },
- "change": function($event) {
- _vm.onChangeNativePicker($event)
- }
- }
- }, 'b-input', _vm.$attrs, false))], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 135 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(136),
- /* template */
- __webpack_require__(148),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 136 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_FormElementMixin__ = __webpack_require__(10);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown__ = __webpack_require__(28);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__dropdown_Dropdown__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem__ = __webpack_require__(29);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__dropdown_DropdownItem__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__input_Input__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__field_Field__ = __webpack_require__(30);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__field_Field___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__field_Field__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__select_Select__ = __webpack_require__(31);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__select_Select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__select_Select__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__DatepickerTable__ = __webpack_require__(139);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__DatepickerTable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10__DatepickerTable__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__DatepickerMonth__ = __webpack_require__(145);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__DatepickerMonth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11__DatepickerMonth__);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- var defaultDateFormatter = function defaultDateFormatter(date, vm) {
- var yyyyMMdd = date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate();
- var d = new Date(yyyyMMdd);
- return !vm.isTypeMonth ? d.toLocaleDateString() : d.toLocaleDateString(undefined, { year: 'numeric', month: '2-digit' });
- };
-
- var defaultDateParser = function defaultDateParser(date, vm) {
- if (!vm.isTypeMonth) return new Date(Date.parse(date));
- if (date) {
- var s = date.split('/');
- var year = s[0].length === 4 ? s[0] : s[1];
- var month = s[0].length === 2 ? s[0] : s[1];
- if (year && month) {
- return new Date(parseInt(year, 10), parseInt(month - 1, 10), 1, 0, 0, 0, 0);
- }
- }
- return null;
- };
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDatepicker',
- 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),
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: Date,
- dayNames: {
- type: Array,
- default: function _default() {
- if (Array.isArray(__WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDayNames)) {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDayNames;
- } else {
- return ['Su', 'M', 'Tu', 'W', 'Th', 'F', 'S'];
- }
- }
- },
- monthNames: {
- type: Array,
- default: function _default() {
- if (Array.isArray(__WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultMonthNames)) {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultMonthNames;
- } else {
- return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
- }
- }
- },
- firstDayOfWeek: {
- type: Number,
- default: function _default() {
- if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultFirstDayOfWeek === 'number') {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultFirstDayOfWeek;
- } else {
- return 0;
- }
- }
- },
- inline: Boolean,
- minDate: Date,
- maxDate: Date,
- focusedDate: Date,
- placeholder: String,
- editable: Boolean,
- disabled: Boolean,
- unselectableDates: Array,
- unselectableDaysOfWeek: {
- type: Array,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultUnselectableDaysOfWeek;
- }
- },
- selectableDates: Array,
- dateFormatter: {
- type: Function,
- default: function _default(date, vm) {
- if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateFormatter === 'function') {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateFormatter(date);
- } else {
- return defaultDateFormatter(date, vm);
- }
- }
- },
- dateParser: {
- type: Function,
- default: function _default(date, vm) {
- if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateParser === 'function') {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateParser(date);
- } else {
- return defaultDateParser(date, vm);
- }
- }
- },
- dateCreator: {
- type: Function,
- default: function _default() {
- if (typeof __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateCreator === 'function') {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDateCreator();
- } else {
- return new Date();
- }
- }
- },
- mobileNative: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDatepickerMobileNative;
- }
- },
- position: String,
- events: Array,
- indicators: {
- type: String,
- default: 'dots'
- },
- openOnFocus: Boolean,
- yearsRange: {
- type: Array,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDatepickerYearsRange;
- }
- },
- type: {
- type: String,
- validator: function validator(value) {
- return ['month'].indexOf(value) >= 0;
- }
- },
- nearbyMonthDays: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDatepickerNearbyMonthDays;
- }
- },
- nearbySelectableMonthDays: {
- type: Boolean,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDatepickerNearbySelectableMonthDays;
- }
- }
- },
- data: function data() {
- var focusedDate = this.value || this.focusedDate || this.dateCreator();
-
- return {
- dateSelected: this.value,
- focusedDateData: {
- month: focusedDate.getMonth(),
- year: focusedDate.getFullYear()
- },
- _elementRef: 'input',
- _isDatepicker: true
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.dateSelected;
- },
- set: function set(value) {
- this.updateInternalState(value);
- this.togglePicker(false);
- this.$emit('input', value);
- }
- },
- /*
- * Returns an array of years for the year dropdown. If earliest/latest
- * dates are set by props, range of years will fall within those dates.
- */
- listOfYears: function listOfYears() {
- var latestYear = this.focusedDateData.year + this.yearsRange[1];
- if (this.maxDate && this.maxDate.getFullYear() < latestYear) {
- latestYear = this.maxDate.getFullYear();
- }
-
- var earliestYear = this.focusedDateData.year + this.yearsRange[0];
- if (this.minDate && this.minDate.getFullYear() > earliestYear) {
- earliestYear = this.minDate.getFullYear();
- }
-
- var arrayOfYears = [];
- for (var i = earliestYear; i <= latestYear; i++) {
- arrayOfYears.push(i);
- }
-
- return arrayOfYears.reverse();
- },
- showPrev: function showPrev() {
- if (!this.minDate) return false;
- if (this.isTypeMonth) {
- return this.focusedDateData.year <= this.minDate.getFullYear();
- }
- var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month);
- var date = new Date(this.minDate.getFullYear(), this.minDate.getMonth());
- return dateToCheck <= date;
- },
- showNext: function showNext() {
- if (!this.maxDate) return false;
- if (this.isTypeMonth) {
- return this.focusedDateData.year >= this.maxDate.getFullYear();
- }
- var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month);
- var date = new Date(this.maxDate.getFullYear(), this.maxDate.getMonth());
- return dateToCheck >= date;
- },
- isMobile: function isMobile() {
- return this.mobileNative && __WEBPACK_IMPORTED_MODULE_2__utils_helpers__["c" /* isMobile */].any();
- },
- isTypeMonth: function isTypeMonth() {
- return this.type === 'month';
- }
- },
- watch: {
- /**
- * When v-model is changed:
- * 1. Update internal value.
- * 2. If it's invalid, validate again.
- */
- value: function value(_value) {
- this.updateInternalState(_value);
- this.togglePicker(false);
- !this.isValid && this.$refs.input.checkHtml5Validity();
- },
- focusedDate: function focusedDate(value) {
- if (value) {
- this.focusedDateData = {
- month: value.getMonth(),
- year: value.getFullYear()
- };
- }
- },
-
-
- /*
- * Emit input event on month and/or year change
- */
- 'focusedDateData.month': function focusedDateDataMonth(value) {
- this.$emit('change-month', value);
- },
- 'focusedDateData.year': function focusedDateDataYear(value) {
- this.$emit('change-year', value);
- }
- },
- methods: {
- /*
- * Parse string into date
- */
- onChange: function onChange(value) {
- var date = this.dateParser(value, this);
- if (date && !isNaN(date)) {
- this.computedValue = date;
- } else {
- // Force refresh input value when not valid date
- this.computedValue = null;
- this.$refs.input.newValue = this.computedValue;
- }
- },
-
-
- /*
- * Format date into string
- */
- formatValue: function formatValue(value) {
- if (value && !isNaN(value)) {
- return this.dateFormatter(value, this);
- } else {
- return null;
- }
- },
-
-
- /*
- * Either decrement month by 1 if not January or decrement year by 1
- * and set month to 11 (December) or decrement year when 'month'
- */
- prev: function prev() {
- if (this.disabled) return;
-
- if (this.isTypeMonth) {
- this.focusedDateData.year -= 1;
- } else {
- if (this.focusedDateData.month > 0) {
- this.focusedDateData.month -= 1;
- } else {
- this.focusedDateData.month = 11;
- this.focusedDateData.year -= 1;
- }
- }
- },
-
-
- /*
- * Either increment month by 1 if not December or increment year by 1
- * and set month to 0 (January) or increment year when 'month'
- */
- next: function next() {
- if (this.disabled) return;
-
- if (this.isTypeMonth) {
- this.focusedDateData.year += 1;
- } else {
- if (this.focusedDateData.month < 11) {
- this.focusedDateData.month += 1;
- } else {
- this.focusedDateData.month = 0;
- this.focusedDateData.year += 1;
- }
- }
- },
- formatNative: function formatNative(value) {
- return this.isTypeMonth ? this.formatYYYYMM(value) : this.formatYYYYMMDD(value);
- },
-
-
- /*
- * Format date into string 'YYYY-MM-DD'
- */
- formatYYYYMMDD: function formatYYYYMMDD(value) {
- var date = new Date(value);
- if (value && !isNaN(date)) {
- var year = date.getFullYear();
- var month = date.getMonth() + 1;
- var day = date.getDate();
- return year + '-' + ((month < 10 ? '0' : '') + month) + '-' + ((day < 10 ? '0' : '') + day);
- }
- return '';
- },
-
-
- /*
- * Format date into string 'YYYY-MM'
- */
- formatYYYYMM: function formatYYYYMM(value) {
- var date = new Date(value);
- if (value && !isNaN(date)) {
- var year = date.getFullYear();
- var month = date.getMonth() + 1;
- return year + '-' + ((month < 10 ? '0' : '') + month);
- }
- return '';
- },
-
-
- /*
- * Parse date from string
- */
- onChangeNativePicker: function onChangeNativePicker(event) {
- var date = event.target.value;
- this.computedValue = date ? new Date(date.replace(/-/g, '/')) : null;
- },
- updateInternalState: function updateInternalState(value) {
- var currentDate = !value ? this.dateCreator() : value;
- this.focusedDateData = {
- month: currentDate.getMonth(),
- year: currentDate.getFullYear()
- };
- this.dateSelected = value;
- },
-
-
- /*
- * Toggle datepicker
- */
- togglePicker: function togglePicker(active) {
- if (this.$refs.dropdown) {
- this.$refs.dropdown.isActive = typeof active === 'boolean' ? active : !this.$refs.dropdown.isActive;
- }
- },
-
-
- /*
- * Call default onFocus method and show datepicker
- */
- handleOnFocus: function handleOnFocus(event) {
- this.onFocus(event);
- if (this.openOnFocus) {
- this.togglePicker(true);
- }
- },
-
-
- /*
- * Toggle dropdown
- */
- toggle: function toggle() {
- this.$refs.dropdown.toggle();
- },
-
-
- /*
- * Avoid dropdown toggle when is already visible
- */
- onInputClick: function onInputClick(event) {
- if (this.$refs.dropdown.isActive) {
- event.stopPropagation();
- }
- },
-
-
- /**
- * Keypress event that is bound to the document.
- */
- keyPress: function keyPress(event) {
- // Esc key
- if (this.$refs.dropdown && this.$refs.dropdown.isActive && event.keyCode === 27) {
- this.togglePicker(false);
- }
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('keyup', this.keyPress);
- }
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('keyup', this.keyPress);
- }
- }
- });
-
- /***/ }),
- /* 137 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* 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__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__ = __webpack_require__(10);
-
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BSelect',
- 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),
- mixins: [__WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: {
- type: [String, Number, Boolean, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a, Function],
- default: null
- },
- placeholder: String,
- multiple: Boolean,
- nativeSize: [String, Number]
- },
- data: function data() {
- return {
- selected: this.value,
- _elementRef: 'select'
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.selected;
- },
- set: function set(value) {
- this.selected = value;
- this.$emit('input', value);
- !this.isValid && this.checkHtml5Validity();
- }
- },
- spanClasses: function spanClasses() {
- return [this.size, this.statusType, {
- 'is-fullwidth': this.expanded,
- 'is-loading': this.loading,
- 'is-multiple': this.multiple,
- 'is-rounded': this.rounded,
- 'is-empty': this.selected === null
- }];
- }
- },
- watch: {
- /**
- * When v-model is changed:
- * 1. Set the selected option.
- * 2. If it's invalid, validate again.
- */
- value: function value(_value) {
- this.selected = _value;
- !this.isValid && this.checkHtml5Validity();
- }
- }
- });
-
- /***/ }),
- /* 138 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "control",
- class: {
- 'is-expanded': _vm.expanded, 'has-icons-left': _vm.icon
- }
- }, [_c('span', {
- staticClass: "select",
- class: _vm.spanClasses
- }, [_c('select', _vm._b({
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- ref: "select",
- attrs: {
- "multiple": _vm.multiple,
- "size": _vm.nativeSize
- },
- on: {
- "blur": function($event) {
- _vm.$emit('blur', $event) && _vm.checkHtml5Validity()
- },
- "focus": function($event) {
- _vm.$emit('focus', $event)
- },
- "change": function($event) {
- var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {
- return o.selected
- }).map(function(o) {
- var val = "_value" in o ? o._value : o.value;
- return val
- });
- _vm.computedValue = $event.target.multiple ? $$selectedVal : $$selectedVal[0]
- }
- }
- }, 'select', _vm.$attrs, false), [(_vm.placeholder) ? [(_vm.computedValue == null) ? _c('option', {
- attrs: {
- "disabled": "",
- "hidden": ""
- },
- domProps: {
- "value": null
- }
- }, [_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', {
- staticClass: "is-left",
- attrs: {
- "icon": _vm.icon,
- "pack": _vm.iconPack,
- "size": _vm.iconSize
- }
- }) : _vm._e()], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 139 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(140),
- /* template */
- __webpack_require__(144),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 140 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow__ = __webpack_require__(141);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__DatepickerTableRow__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDatepickerTable',
- 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),
- props: {
- value: Date,
- dayNames: Array,
- monthNames: Array,
- firstDayOfWeek: Number,
- events: Array,
- indicators: String,
- minDate: Date,
- maxDate: Date,
- focused: Object,
- disabled: Boolean,
- dateCreator: Function,
- unselectableDates: Array,
- unselectableDaysOfWeek: Array,
- selectableDates: Array,
- nearbyMonthDays: Boolean,
- nearbySelectableMonthDays: Boolean
- },
- computed: {
- visibleDayNames: function visibleDayNames() {
- var visibleDayNames = [];
- var index = this.firstDayOfWeek;
- while (visibleDayNames.length < this.dayNames.length) {
- var currentDayName = this.dayNames[index % this.dayNames.length];
- visibleDayNames.push(currentDayName);
- index++;
- }
- return visibleDayNames;
- },
- hasEvents: function hasEvents() {
- return this.events && this.events.length;
- },
-
-
- /*
- * Return array of all events in the specified month
- */
- eventsInThisMonth: function eventsInThisMonth() {
- if (!this.events) return [];
-
- var monthEvents = [];
-
- for (var i = 0; i < this.events.length; i++) {
- var event = this.events[i];
-
- if (!event.hasOwnProperty('date')) {
- event = { date: event };
- }
- if (!event.hasOwnProperty('type')) {
- event.type = 'is-primary';
- }
- if (event.date.getMonth() === this.focused.month && event.date.getFullYear() === this.focused.year) {
- monthEvents.push(event);
- }
- }
-
- return monthEvents;
- },
-
- /*
- * Return array of all weeks in the specified month
- */
- weeksInThisMonth: function weeksInThisMonth() {
- var month = this.focused.month;
- var year = this.focused.year;
- var weeksInThisMonth = [];
- var daysInThisMonth = new Date(year, month + 1, 0).getDate();
-
- var startingDay = 1;
-
- while (startingDay <= daysInThisMonth + 6) {
- var newWeek = this.weekBuilder(startingDay, month, year);
- var weekValid = false;
-
- newWeek.forEach(function (day) {
- if (day.getMonth() === month) {
- weekValid = true;
- }
- });
-
- if (weekValid) {
- weeksInThisMonth.push(newWeek);
- }
-
- startingDay += 7;
- }
-
- return weeksInThisMonth;
- }
- },
- methods: {
- /*
- * Emit input event with selected date as payload for v-model in parent
- */
- updateSelectedDate: function updateSelectedDate(date) {
- this.$emit('input', date);
- },
-
-
- /*
- * Return array of all days in the week that the startingDate is within
- */
- weekBuilder: function weekBuilder(startingDate, month, year) {
- var thisMonth = new Date(year, month);
-
- var thisWeek = [];
-
- var dayOfWeek = new Date(year, month, startingDate).getDay();
-
- var end = dayOfWeek >= this.firstDayOfWeek ? dayOfWeek - this.firstDayOfWeek : 7 - this.firstDayOfWeek + dayOfWeek;
-
- var daysAgo = 1;
- for (var i = 0; i < end; i++) {
- thisWeek.unshift(new Date(thisMonth.getFullYear(), thisMonth.getMonth(), startingDate - daysAgo));
- daysAgo++;
- }
-
- thisWeek.push(new Date(year, month, startingDate));
-
- var daysForward = 1;
- while (thisWeek.length < 7) {
- thisWeek.push(new Date(year, month, startingDate + daysForward));
- daysForward++;
- }
-
- return thisWeek;
- },
- eventsInThisWeek: function eventsInThisWeek(week) {
- return this.eventsInThisMonth.filter(function (event) {
- var stripped = new Date(Date.parse(event.date));
- stripped.setHours(0);
- stripped.setMinutes(0);
- stripped.setSeconds(0);
- stripped.setMilliseconds(0);
- var timed = stripped.getTime();
-
- return week.some(function (weekDate) {
- return weekDate.getTime() === timed;
- });
- });
- }
- }
- });
-
- /***/ }),
- /* 141 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(142),
- /* template */
- __webpack_require__(143),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 142 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDatepickerTableRow',
- props: {
- selectedDate: Date,
- week: {
- type: Array,
- required: true
- },
- month: {
- type: Number,
- required: true
- },
- minDate: Date,
- maxDate: Date,
- disabled: Boolean,
- unselectableDates: Array,
- unselectableDaysOfWeek: Array,
- selectableDates: Array,
- events: Array,
- indicators: String,
- dateCreator: Function,
- nearbyMonthDays: Boolean,
- nearbySelectableMonthDays: Boolean
- },
- methods: {
- /*
- * Check that selected day is within earliest/latest params and
- * is within this month
- */
- selectableDate: function selectableDate(day) {
- var validity = [];
-
- if (this.minDate) {
- validity.push(day >= this.minDate);
- }
-
- if (this.maxDate) {
- validity.push(day <= this.maxDate);
- }
-
- if (this.nearbyMonthDays && !this.nearbySelectableMonthDays) {
- validity.push(day.getMonth() === this.month);
- }
-
- if (this.selectableDates) {
- for (var i = 0; i < this.selectableDates.length; i++) {
- var enabledDate = this.selectableDates[i];
- if (day.getDate() === enabledDate.getDate() && day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) {
- return true;
- } else {
- validity.push(false);
- }
- }
- }
-
- if (this.unselectableDates) {
- for (var _i = 0; _i < this.unselectableDates.length; _i++) {
- var disabledDate = this.unselectableDates[_i];
- validity.push(day.getDate() !== disabledDate.getDate() || day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth());
- }
- }
-
- if (this.unselectableDaysOfWeek) {
- for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) {
- var dayOfWeek = this.unselectableDaysOfWeek[_i2];
- validity.push(day.getDay() !== dayOfWeek);
- }
- }
-
- return validity.indexOf(false) < 0;
- },
-
-
- /*
- * Emit select event with chosen date as payload
- */
- emitChosenDate: function emitChosenDate(day) {
- if (this.disabled) return;
-
- if (this.selectableDate(day)) {
- this.$emit('select', day);
- }
- },
- eventsDateMatch: function eventsDateMatch(day) {
- if (!this.events || !this.events.length) return false;
-
- var dayEvents = [];
-
- for (var i = 0; i < this.events.length; i++) {
- if (this.events[i].date.getDay() === day.getDay()) {
- dayEvents.push(this.events[i]);
- }
- }
-
- if (!dayEvents.length) {
- return false;
- }
-
- return dayEvents;
- },
-
-
- /*
- * Build classObject for cell using validations
- */
- classObject: function classObject(day) {
- function dateMatch(dateOne, dateTwo) {
- // if either date is null or undefined, return false
- if (!dateOne || !dateTwo) {
- return false;
- }
-
- return dateOne.getDate() === dateTwo.getDate() && dateOne.getFullYear() === dateTwo.getFullYear() && dateOne.getMonth() === dateTwo.getMonth();
- }
-
- return {
- 'is-selected': dateMatch(day, this.selectedDate),
- 'is-today': dateMatch(day, this.dateCreator()),
- 'is-selectable': this.selectableDate(day) && !this.disabled,
- 'is-unselectable': !this.selectableDate(day) || this.disabled,
- 'is-invisible': !this.nearbyMonthDays && day.getMonth() !== this.month,
- 'is-nearby': this.nearbySelectableMonthDays && day.getMonth() !== this.month
- };
- }
- }
- });
-
- /***/ }),
- /* 143 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "datepicker-row"
- }, [_vm._l((_vm.week), function(day, index) {
- return [(_vm.selectableDate(day) && !_vm.disabled) ? _c('a', {
- key: index,
- staticClass: "datepicker-cell",
- class: [_vm.classObject(day), {
- 'has-event': _vm.eventsDateMatch(day)
- }, _vm.indicators],
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.emitChosenDate(day)
- },
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.emitChosenDate(day)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.emitChosenDate(day)
- }]
- }
- }, [_vm._v("\n " + _vm._s(day.getDate()) + "\n "), (_vm.eventsDateMatch(day)) ? _c('div', {
- staticClass: "events"
- }, _vm._l((_vm.eventsDateMatch(day)), function(event, index) {
- return _c('div', {
- key: index,
- staticClass: "event",
- class: event.type
- })
- })) : _vm._e()]) : _c('div', {
- key: index,
- staticClass: "datepicker-cell",
- class: _vm.classObject(day)
- }, [_vm._v("\n " + _vm._s(day.getDate()) + "\n ")])]
- })], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 144 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('section', {
- staticClass: "datepicker-table"
- }, [_c('header', {
- staticClass: "datepicker-header"
- }, _vm._l((_vm.visibleDayNames), function(day, index) {
- return _c('div', {
- key: index,
- staticClass: "datepicker-cell"
- }, [_vm._v("\n " + _vm._s(day) + "\n ")])
- })), _vm._v(" "), _c('div', {
- staticClass: "datepicker-body",
- class: {
- 'has-events': _vm.hasEvents
- }
- }, _vm._l((_vm.weeksInThisMonth), function(week, index) {
- return _c('b-datepicker-table-row', {
- key: index,
- attrs: {
- "selected-date": _vm.value,
- "week": week,
- "month": _vm.focused.month,
- "min-date": _vm.minDate,
- "max-date": _vm.maxDate,
- "disabled": _vm.disabled,
- "unselectable-dates": _vm.unselectableDates,
- "unselectable-days-of-week": _vm.unselectableDaysOfWeek,
- "selectable-dates": _vm.selectableDates,
- "events": _vm.eventsInThisWeek(week),
- "indicators": _vm.indicators,
- "date-creator": _vm.dateCreator,
- "nearby-month-days": _vm.nearbyMonthDays,
- "nearby-selectable-month-days": _vm.nearbySelectableMonthDays
- },
- on: {
- "select": _vm.updateSelectedDate
- }
- })
- }))])
- },staticRenderFns: []}
-
- /***/ }),
- /* 145 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(146),
- /* template */
- __webpack_require__(147),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 146 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDatepickerMonth',
- props: {
- value: Date,
- monthNames: Array,
- events: Array,
- indicators: String,
- minDate: Date,
- maxDate: Date,
- focused: Object,
- disabled: Boolean,
- dateCreator: Function,
- unselectableDates: Array,
- unselectableDaysOfWeek: Array,
- selectableDates: Array
- },
- computed: {
- hasEvents: function hasEvents() {
- return this.events && this.events.length;
- },
-
-
- /*
- * Return array of all events in the specified month
- */
- eventsInThisYear: function eventsInThisYear() {
- if (!this.events) return [];
-
- var yearEvents = [];
-
- for (var i = 0; i < this.events.length; i++) {
- var event = this.events[i];
-
- if (!event.hasOwnProperty('date')) {
- event = { date: event };
- }
- if (!event.hasOwnProperty('type')) {
- event.type = 'is-primary';
- }
- if (event.date.getFullYear() === this.focused.year) {
- yearEvents.push(event);
- }
- }
-
- return yearEvents;
- },
- monthDates: function monthDates() {
- var year = this.focused.year;
- var months = [];
- for (var i = 0; i < 12; i++) {
- var d = new Date(year, i, 1);
- d.setHours(0, 0, 0, 0);
- months.push(d);
- }
- return months;
- }
- },
- methods: {
- selectableDate: function selectableDate(day) {
- var validity = [];
-
- if (this.minDate) {
- validity.push(day >= this.minDate);
- }
-
- if (this.maxDate) {
- validity.push(day <= this.maxDate);
- }
-
- validity.push(day.getFullYear() === this.focused.year);
-
- if (this.selectableDates) {
- for (var i = 0; i < this.selectableDates.length; i++) {
- var enabledDate = this.selectableDates[i];
- if (day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) {
- return true;
- } else {
- validity.push(false);
- }
- }
- }
-
- if (this.unselectableDates) {
- for (var _i = 0; _i < this.unselectableDates.length; _i++) {
- var disabledDate = this.unselectableDates[_i];
- validity.push(day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth());
- }
- }
-
- if (this.unselectableDaysOfWeek) {
- for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) {
- var dayOfWeek = this.unselectableDaysOfWeek[_i2];
- validity.push(day.getDay() !== dayOfWeek);
- }
- }
-
- return validity.indexOf(false) < 0;
- },
- eventsDateMatch: function eventsDateMatch(day) {
- if (!this.eventsInThisYear.length) return false;
-
- var monthEvents = [];
-
- for (var i = 0; i < this.eventsInThisYear.length; i++) {
- if (this.eventsInThisYear[i].date.getMonth() === day.getMonth()) {
- monthEvents.push(this.events[i]);
- }
- }
-
- if (!monthEvents.length) {
- return false;
- }
-
- return monthEvents;
- },
-
- /*
- * Build classObject for cell using validations
- */
- classObject: function classObject(day) {
- function dateMatch(dateOne, dateTwo) {
- // if either date is null or undefined, return false
- if (!dateOne || !dateTwo) {
- return false;
- }
-
- return dateOne.getFullYear() === dateTwo.getFullYear() && dateOne.getMonth() === dateTwo.getMonth();
- }
-
- return {
- 'is-selected': dateMatch(day, this.value),
- 'is-today': dateMatch(day, this.dateCreator()),
- 'is-selectable': this.selectableDate(day) && !this.disabled,
- 'is-unselectable': !this.selectableDate(day) || this.disabled
- };
- },
-
- /*
- * Emit select event with chosen date as payload
- */
- emitChosenDate: function emitChosenDate(day) {
- if (this.disabled) return;
-
- if (this.selectableDate(day)) {
- this.$emit('input', day);
- }
- }
- }
- });
-
- /***/ }),
- /* 147 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('section', {
- staticClass: "datepicker-table"
- }, [_c('div', {
- staticClass: "datepicker-body",
- class: {
- 'has-events': _vm.hasEvents
- }
- }, [_c('div', {
- staticClass: "datepicker-months"
- }, [_vm._l((_vm.monthDates), function(date, index) {
- return [(_vm.selectableDate(date) && !_vm.disabled) ? _c('a', {
- key: index,
- staticClass: "datepicker-cell",
- class: [
- _vm.classObject(date),
- {
- 'has-event': _vm.eventsDateMatch(date)
- },
- _vm.indicators
- ],
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.emitChosenDate(date)
- },
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.emitChosenDate(date)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.emitChosenDate(date)
- }]
- }
- }, [_vm._v("\n " + _vm._s(_vm.monthNames[date.getMonth()]) + "\n "), (_vm.eventsDateMatch(date)) ? _c('div', {
- staticClass: "events"
- }, _vm._l((_vm.eventsDateMatch(date)), function(event, index) {
- return _c('div', {
- key: index,
- staticClass: "event",
- class: event.type
- })
- })) : _vm._e()]) : _c('div', {
- key: index,
- staticClass: "datepicker-cell",
- class: _vm.classObject(date)
- }, [_vm._v("\n " + _vm._s(_vm.monthNames[date.getMonth()]) + "\n ")])]
- })], 2)])])
- },staticRenderFns: []}
-
- /***/ }),
- /* 148 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "datepicker control",
- class: [_vm.size, {
- 'is-expanded': _vm.expanded
- }]
- }, [(!_vm.isMobile || _vm.inline) ? _c('b-dropdown', {
- ref: "dropdown",
- attrs: {
- "position": _vm.position,
- "disabled": _vm.disabled,
- "inline": _vm.inline
- }
- }, [(!_vm.inline) ? _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "slot": "trigger",
- "autocomplete": "off",
- "value": _vm.formatValue(_vm.computedValue),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "rounded": _vm.rounded,
- "loading": _vm.loading,
- "disabled": _vm.disabled,
- "readonly": !_vm.editable,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "focus": _vm.handleOnFocus,
- "blur": _vm.onBlur
- },
- nativeOn: {
- "click": function($event) {
- _vm.onInputClick($event)
- },
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- _vm.togglePicker(true)
- },
- "change": function($event) {
- _vm.onChange($event.target.value)
- }
- },
- slot: "trigger"
- }, 'b-input', _vm.$attrs, false)) : _vm._e(), _vm._v(" "), _c('b-dropdown-item', {
- attrs: {
- "disabled": _vm.disabled,
- "custom": ""
- }
- }, [_c('header', {
- staticClass: "datepicker-header"
- }, [(_vm.$slots.header !== undefined && _vm.$slots.header.length) ? [_vm._t("header")] : _c('div', {
- staticClass: "pagination field is-centered",
- class: _vm.size
- }, [_c('a', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (!_vm.showPrev && !_vm.disabled),
- expression: "!showPrev && !disabled"
- }],
- staticClass: "pagination-previous",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.prev($event)
- },
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.prev($event)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.prev($event)
- }]
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-left",
- "pack": _vm.iconPack,
- "both": "",
- "type": "is-primary is-clickable"
- }
- })], 1), _vm._v(" "), _c('a', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (!_vm.showNext && !_vm.disabled),
- expression: "!showNext && !disabled"
- }],
- staticClass: "pagination-next",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.next($event)
- },
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.next($event)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.next($event)
- }]
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-right",
- "pack": _vm.iconPack,
- "both": "",
- "type": "is-primary is-clickable"
- }
- })], 1), _vm._v(" "), _c('div', {
- staticClass: "pagination-list"
- }, [_c('b-field', [(!_vm.isTypeMonth) ? _c('b-select', {
- attrs: {
- "disabled": _vm.disabled,
- "size": _vm.size
- },
- model: {
- value: (_vm.focusedDateData.month),
- callback: function($$v) {
- _vm.$set(_vm.focusedDateData, "month", $$v)
- },
- expression: "focusedDateData.month"
- }
- }, _vm._l((_vm.monthNames), function(month, index) {
- return _c('option', {
- key: month,
- domProps: {
- "value": index
- }
- }, [_vm._v("\n " + _vm._s(month) + "\n ")])
- })) : _vm._e(), _vm._v(" "), _c('b-select', {
- attrs: {
- "disabled": _vm.disabled,
- "size": _vm.size
- },
- model: {
- value: (_vm.focusedDateData.year),
- callback: function($$v) {
- _vm.$set(_vm.focusedDateData, "year", $$v)
- },
- expression: "focusedDateData.year"
- }
- }, _vm._l((_vm.listOfYears), function(year) {
- return _c('option', {
- key: year,
- domProps: {
- "value": year
- }
- }, [_vm._v("\n " + _vm._s(year) + "\n ")])
- }))], 1)], 1)])], 2), _vm._v(" "), (!_vm.isTypeMonth) ? _c('div', {
- staticClass: "datepicker-content"
- }, [_c('b-datepicker-table', {
- attrs: {
- "day-names": _vm.dayNames,
- "month-names": _vm.monthNames,
- "first-day-of-week": _vm.firstDayOfWeek,
- "min-date": _vm.minDate,
- "max-date": _vm.maxDate,
- "focused": _vm.focusedDateData,
- "disabled": _vm.disabled,
- "unselectable-dates": _vm.unselectableDates,
- "unselectable-days-of-week": _vm.unselectableDaysOfWeek,
- "selectable-dates": _vm.selectableDates,
- "events": _vm.events,
- "indicators": _vm.indicators,
- "date-creator": _vm.dateCreator,
- "type-month": _vm.isTypeMonth,
- "nearby-month-days": _vm.nearbyMonthDays,
- "nearby-selectable-month-days": _vm.nearbySelectableMonthDays
- },
- on: {
- "close": function($event) {
- _vm.togglePicker(false)
- }
- },
- model: {
- value: (_vm.computedValue),
- callback: function($$v) {
- _vm.computedValue = $$v
- },
- expression: "computedValue"
- }
- })], 1) : _c('div', [_c('b-datepicker-month', {
- attrs: {
- "month-names": _vm.monthNames,
- "min-date": _vm.minDate,
- "max-date": _vm.maxDate,
- "focused": _vm.focusedDateData,
- "disabled": _vm.disabled,
- "unselectable-dates": _vm.unselectableDates,
- "unselectable-days-of-week": _vm.unselectableDaysOfWeek,
- "selectable-dates": _vm.selectableDates,
- "events": _vm.events,
- "indicators": _vm.indicators,
- "date-creator": _vm.dateCreator
- },
- on: {
- "close": function($event) {
- _vm.togglePicker(false)
- }
- },
- model: {
- value: (_vm.computedValue),
- callback: function($$v) {
- _vm.computedValue = $$v
- },
- expression: "computedValue"
- }
- })], 1), _vm._v(" "), (_vm.$slots.default !== undefined && _vm.$slots.default.length) ? _c('footer', {
- staticClass: "datepicker-footer"
- }, [_vm._t("default")], 2) : _vm._e()])], 1) : _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "type": !_vm.isTypeMonth ? 'date' : 'month',
- "autocomplete": "off",
- "value": _vm.formatNative(_vm.computedValue),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "max": _vm.formatNative(_vm.maxDate),
- "min": _vm.formatNative(_vm.minDate),
- "disabled": _vm.disabled,
- "readonly": false,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "focus": _vm.handleOnFocus,
- "blur": _vm.onBlur
- },
- nativeOn: {
- "change": function($event) {
- _vm.onChangeNativePicker($event)
- }
- }
- }, 'b-input', _vm.$attrs, false))], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 149 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(150),
- /* template */
- __webpack_require__(153),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 150 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__modal_Modal__ = __webpack_require__(63);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__modal_Modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__modal_Modal__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_helpers__ = __webpack_require__(7);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BDialog',
- 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),
- extends: __WEBPACK_IMPORTED_MODULE_2__modal_Modal___default.a,
- props: {
- title: String,
- message: String,
- icon: String,
- iconPack: String,
- hasIcon: Boolean,
- type: {
- type: String,
- default: 'is-primary'
- },
- size: String,
- confirmText: {
- type: String,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogConfirmText ? __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogConfirmText : 'OK';
- }
- },
- cancelText: {
- type: String,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogCancelText ? __WEBPACK_IMPORTED_MODULE_3__utils_config__["a" /* default */].defaultDialogCancelText : 'Cancel';
- }
- },
- hasInput: Boolean, // Used internally to know if it's prompt
- inputAttrs: {
- type: Object,
- default: function _default() {
- return {};
- }
- },
- onConfirm: {
- type: Function,
- default: function _default() {}
- },
- focusOn: {
- type: String,
- default: 'confirm'
- }
- },
- data: function data() {
- var prompt = this.hasInput ? this.inputAttrs.value || '' : '';
-
- return {
- prompt: prompt,
- isActive: false,
- validationMessage: ''
- };
- },
-
- computed: {
- /**
- * Icon name (MDI) based on the type.
- */
- iconByType: function iconByType() {
- switch (this.type) {
- case 'is-info':
- return 'information';
- case 'is-success':
- return 'check-circle';
- case 'is-warning':
- return 'alert';
- case 'is-danger':
- return 'alert-circle';
- default:
- return null;
- }
- },
- showCancel: function showCancel() {
- return this.cancelOptions.indexOf('button') >= 0;
- }
- },
- methods: {
- /**
- * If it's a prompt Dialog, validate the input.
- * Call the onConfirm prop (function) and close the Dialog.
- */
- confirm: function confirm() {
- var _this = this;
-
- if (this.$refs.input !== undefined) {
- if (!this.$refs.input.checkValidity()) {
- this.validationMessage = this.$refs.input.validationMessage;
- this.$nextTick(function () {
- return _this.$refs.input.select();
- });
- return;
- }
- }
-
- this.onConfirm(this.prompt);
- this.close();
- },
-
-
- /**
- * Close the Dialog.
- */
- close: function close() {
- var _this2 = this;
-
- this.isActive = false;
- // Timeout for the animation complete before destroying
- setTimeout(function () {
- _this2.$destroy();
- Object(__WEBPACK_IMPORTED_MODULE_4__utils_helpers__["d" /* removeElement */])(_this2.$el);
- }, 150);
- }
- },
- beforeMount: function beforeMount() {
- var _this3 = this;
-
- // Insert the Dialog component in body tag
- this.$nextTick(function () {
- document.body.appendChild(_this3.$el);
- });
- },
- mounted: function mounted() {
- var _this4 = this;
-
- this.isActive = true;
-
- if (typeof this.inputAttrs.required === 'undefined') {
- this.$set(this.inputAttrs, 'required', true);
- }
-
- this.$nextTick(function () {
- // Handle which element receives focus
- if (_this4.hasInput) {
- _this4.$refs.input.focus();
- } else if (_this4.focusOn === 'cancel' && _this4.showCancel) {
- _this4.$refs.cancelButton.focus();
- } else {
- _this4.$refs.confirmButton.focus();
- }
- });
- }
- });
-
- /***/ }),
- /* 151 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_config__ = __webpack_require__(2);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BModal',
- props: {
- active: Boolean,
- component: [Object, Function],
- content: String,
- programmatic: Boolean,
- props: Object,
- events: Object,
- width: {
- type: [String, Number],
- default: 960
- },
- hasModalCard: Boolean,
- animation: {
- type: String,
- default: 'zoom-out'
- },
- canCancel: {
- type: [Array, Boolean],
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalCanCancel;
- }
- },
- onCancel: {
- type: Function,
- default: function _default() {}
- },
- scroll: {
- type: String,
- default: function _default() {
- return __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalScroll ? __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalScroll : 'clip';
- },
- validator: function validator(value) {
- return ['clip', 'keep'].indexOf(value) >= 0;
- }
- },
- fullScreen: Boolean
- },
- data: function data() {
- return {
- isActive: this.active || false,
- savedScrollTop: null,
- newWidth: typeof this.width === 'number' ? this.width + 'px' : this.width
- };
- },
-
- computed: {
- cancelOptions: function cancelOptions() {
- return typeof this.canCancel === 'boolean' ? this.canCancel ? __WEBPACK_IMPORTED_MODULE_1__utils_config__["a" /* default */].defaultModalCanCancel : [] : this.canCancel;
- },
- showX: function showX() {
- return this.cancelOptions.indexOf('x') >= 0;
- },
- customStlye: function customStlye() {
- if (!this.fullScreen) {
- return { maxWidth: this.newWidth };
- }
- return null;
- }
- },
- watch: {
- active: function active(value) {
- this.isActive = value;
- },
- isActive: function isActive() {
- this.handleScroll();
- }
- },
- methods: {
- handleScroll: function handleScroll() {
- if (typeof window === 'undefined') return;
-
- if (this.scroll === 'clip') {
- if (this.isActive) {
- document.documentElement.classList.add('is-clipped');
- } else {
- document.documentElement.classList.remove('is-clipped');
- }
- return;
- }
-
- this.savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
-
- if (this.isActive) {
- document.body.classList.add('is-noscroll');
- } else {
- document.body.classList.remove('is-noscroll');
- }
-
- if (this.isActive) {
- document.body.style.top = '-' + this.savedScrollTop + 'px';
- return;
- }
-
- document.documentElement.scrollTop = this.savedScrollTop;
- document.body.style.top = null;
- this.savedScrollTop = null;
- },
-
-
- /**
- * Close the Modal if canCancel and call the onCancel prop (function).
- */
- cancel: function cancel(method) {
- if (this.cancelOptions.indexOf(method) < 0) return;
-
- this.onCancel.apply(null, arguments);
- this.close();
- },
-
-
- /**
- * Call the onCancel prop (function).
- * Emit events, and destroy modal if it's programmatic.
- */
- close: function close() {
- var _this = this;
-
- this.$emit('close');
- this.$emit('update:active', false);
-
- // Timeout for the animation complete before destroying
- if (this.programmatic) {
- this.isActive = false;
- setTimeout(function () {
- _this.$destroy();
- Object(__WEBPACK_IMPORTED_MODULE_0__utils_helpers__["d" /* removeElement */])(_this.$el);
- }, 150);
- }
- },
-
-
- /**
- * Keypress event that is bound to the document.
- */
- keyPress: function keyPress(event) {
- // Esc key
- if (this.isActive && event.keyCode === 27) this.cancel('escape');
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('keyup', this.keyPress);
- }
- },
- beforeMount: function beforeMount() {
- // Insert the Modal component in body tag
- // only if it's programmatic
- this.programmatic && document.body.appendChild(this.$el);
- },
- mounted: function mounted() {
- if (this.programmatic) this.isActive = true;else if (this.isActive) this.handleScroll();
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('keyup', this.keyPress);
- // reset scroll
- document.documentElement.classList.remove('is-clipped');
- var savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
- document.body.classList.remove('is-noscroll');
- document.documentElement.scrollTop = savedScrollTop;
- document.body.style.top = null;
- }
- }
- });
-
- /***/ }),
- /* 152 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [(_vm.isActive) ? _c('div', {
- staticClass: "modal is-active",
- class: {
- 'is-full-screen': _vm.fullScreen
- }
- }, [_c('div', {
- staticClass: "modal-background",
- on: {
- "click": function($event) {
- _vm.cancel('outside')
- }
- }
- }), _vm._v(" "), _c('div', {
- staticClass: "animation-content",
- class: {
- 'modal-content': !_vm.hasModalCard
- },
- style: (_vm.customStlye)
- }, [(_vm.component) ? _c(_vm.component, _vm._g(_vm._b({
- tag: "component",
- on: {
- "close": _vm.close
- }
- }, 'component', _vm.props, false), _vm.events)) : (_vm.content) ? _c('div', {
- domProps: {
- "innerHTML": _vm._s(_vm.content)
- }
- }) : _vm._t("default")], 2), _vm._v(" "), (_vm.showX) ? _c('button', {
- staticClass: "modal-close is-large",
- attrs: {
- "type": "button"
- },
- on: {
- "click": function($event) {
- _vm.cancel('x')
- }
- }
- }) : _vm._e()]) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 153 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [(_vm.isActive) ? _c('div', {
- staticClass: "dialog modal is-active",
- class: _vm.size
- }, [_c('div', {
- staticClass: "modal-background",
- on: {
- "click": function($event) {
- _vm.cancel('outside')
- }
- }
- }), _vm._v(" "), _c('div', {
- staticClass: "modal-card animation-content"
- }, [(_vm.title) ? _c('header', {
- staticClass: "modal-card-head"
- }, [_c('p', {
- staticClass: "modal-card-title"
- }, [_vm._v(_vm._s(_vm.title))])]) : _vm._e(), _vm._v(" "), _c('section', {
- staticClass: "modal-card-body",
- class: {
- 'is-titleless': !_vm.title, 'is-flex': _vm.hasIcon
- }
- }, [_c('div', {
- staticClass: "media"
- }, [(_vm.hasIcon) ? _c('div', {
- staticClass: "media-left"
- }, [_c('b-icon', {
- attrs: {
- "icon": _vm.icon ? _vm.icon : _vm.iconByType,
- "pack": _vm.iconPack,
- "type": _vm.type,
- "both": !_vm.icon,
- "size": "is-large"
- }
- })], 1) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "media-content"
- }, [_c('p', {
- domProps: {
- "innerHTML": _vm._s(_vm.message)
- }
- }), _vm._v(" "), (_vm.hasInput) ? _c('div', {
- staticClass: "field"
- }, [_c('div', {
- staticClass: "control"
- }, [_c('input', _vm._b({
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.prompt),
- expression: "prompt"
- }],
- ref: "input",
- staticClass: "input",
- class: {
- 'is-danger': _vm.validationMessage
- },
- domProps: {
- "value": (_vm.prompt)
- },
- on: {
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- _vm.confirm($event)
- },
- "input": function($event) {
- if ($event.target.composing) { return; }
- _vm.prompt = $event.target.value
- }
- }
- }, 'input', _vm.inputAttrs, false))]), _vm._v(" "), _c('p', {
- staticClass: "help is-danger"
- }, [_vm._v(_vm._s(_vm.validationMessage))])]) : _vm._e()])])]), _vm._v(" "), _c('footer', {
- staticClass: "modal-card-foot"
- }, [(_vm.showCancel) ? _c('button', {
- ref: "cancelButton",
- staticClass: "button",
- on: {
- "click": function($event) {
- _vm.cancel('button')
- }
- }
- }, [_vm._v("\n " + _vm._s(_vm.cancelText) + "\n ")]) : _vm._e(), _vm._v(" "), _c('button', {
- ref: "confirmButton",
- staticClass: "button",
- class: _vm.type,
- on: {
- "click": _vm.confirm
- }
- }, [_vm._v("\n " + _vm._s(_vm.confirmText) + "\n ")])])])]) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 154 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(155),
- /* template */
- __webpack_require__(156),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 155 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_ssr__ = __webpack_require__(64);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BLoading',
- props: {
- active: Boolean,
- programmatic: Boolean,
- container: [Object, Function, __WEBPACK_IMPORTED_MODULE_1__utils_ssr__["b" /* HTMLElement */]],
- isFullPage: {
- type: Boolean,
- default: true
- },
- animation: {
- type: String,
- default: 'fade'
- },
- canCancel: {
- type: Boolean,
- default: false
- },
- onCancel: {
- type: Function,
- default: function _default() {}
- }
- },
- data: function data() {
- return {
- isActive: this.active || false
- };
- },
-
- watch: {
- active: function active(value) {
- this.isActive = value;
- }
- },
- methods: {
- /**
- * Close the Modal if canCancel.
- */
- cancel: function cancel() {
- if (!this.canCancel || !this.isActive) return;
-
- this.close();
- },
-
- /**
- * Emit events, and destroy modal if it's programmatic.
- */
- close: function close() {
- var _this = this;
-
- this.onCancel.apply(null, arguments);
- this.$emit('close');
- this.$emit('update:active', false);
-
- // Timeout for the animation complete before destroying
- if (this.programmatic) {
- this.isActive = false;
- setTimeout(function () {
- _this.$destroy();
- Object(__WEBPACK_IMPORTED_MODULE_0__utils_helpers__["d" /* removeElement */])(_this.$el);
- }, 150);
- }
- },
-
- /**
- * Keypress event that is bound to the document.
- */
- keyPress: function keyPress(event) {
- // Esc key
- if (event.keyCode === 27) this.cancel();
- }
- },
- created: function created() {
- if (typeof window !== 'undefined') {
- document.addEventListener('keyup', this.keyPress);
- }
- },
- beforeMount: function beforeMount() {
- // Insert the Loading component in body tag
- // only if it's programmatic
- if (this.programmatic) {
- if (!this.container) {
- document.body.appendChild(this.$el);
- } else {
- this.isFullPage = false;
- this.container.appendChild(this.$el);
- }
- }
- },
- mounted: function mounted() {
- if (this.programmatic) this.isActive = true;
- },
- beforeDestroy: function beforeDestroy() {
- if (typeof window !== 'undefined') {
- document.removeEventListener('keyup', this.keyPress);
- }
- }
- });
-
- /***/ }),
- /* 156 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": _vm.animation
- }
- }, [(_vm.isActive) ? _c('div', {
- staticClass: "loading-overlay is-active",
- class: {
- 'is-full-page': _vm.isFullPage
- }
- }, [_c('div', {
- staticClass: "loading-background",
- on: {
- "click": _vm.cancel
- }
- }), _vm._v(" "), _vm._t("default", [_c('div', {
- staticClass: "loading-icon"
- })])], 2) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 157 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(158),
- /* template */
- __webpack_require__(159),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 158 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__ = __webpack_require__(65);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BMessage',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__["a" /* default */]],
- props: {
- ariaCloseLabel: String
- },
- data: function data() {
- return {
- newIconSize: this.iconSize || this.size || 'is-large'
- };
- }
- });
-
- /***/ }),
- /* 159 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": "fade"
- }
- }, [(_vm.isActive) ? _c('article', {
- staticClass: "message",
- class: [_vm.type, _vm.size]
- }, [(_vm.title) ? _c('header', {
- staticClass: "message-header"
- }, [_c('p', [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), (_vm.closable) ? _c('button', {
- staticClass: "delete",
- attrs: {
- "type": "button",
- "aria-label": _vm.ariaCloseLabel
- },
- on: {
- "click": _vm.close
- }
- }) : _vm._e()]) : _vm._e(), _vm._v(" "), _c('section', {
- staticClass: "message-body"
- }, [_c('div', {
- staticClass: "media"
- }, [(_vm.icon && _vm.hasIcon) ? _c('div', {
- staticClass: "media-left"
- }, [_c('b-icon', {
- class: _vm.type,
- attrs: {
- "icon": _vm.icon,
- "pack": _vm.iconPack,
- "both": "",
- "size": _vm.newIconSize
- }
- })], 1) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "media-content"
- }, [_vm._t("default")], 2)])])]) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 160 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(161),
- /* template */
- __webpack_require__(162),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 161 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__ = __webpack_require__(65);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BNotification',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__utils_MessageMixin_js__["a" /* default */]],
- props: {
- position: String,
- ariaCloseLabel: String
- }
- });
-
- /***/ }),
- /* 162 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "name": "fade"
- }
- }, [_c('article', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "notification",
- class: [_vm.type, _vm.position]
- }, [(_vm.closable) ? _c('button', {
- staticClass: "delete",
- attrs: {
- "type": "button",
- "aria-label": _vm.ariaCloseLabel
- },
- on: {
- "click": _vm.close
- }
- }) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "media"
- }, [(_vm.icon && _vm.hasIcon) ? _c('div', {
- staticClass: "media-left"
- }, [_c('b-icon', {
- attrs: {
- "icon": _vm.icon,
- "pack": _vm.iconPack,
- "both": "",
- "size": "is-large",
- "aria-hidden": ""
- }
- })], 1) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "media-content"
- }, [(_vm.message) ? _c('p', {
- staticClass: "text",
- domProps: {
- "innerHTML": _vm._s(_vm.message)
- }
- }) : _vm._t("default")], 2)])])])
- },staticRenderFns: []}
-
- /***/ }),
- /* 163 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(164),
- /* template */
- __webpack_require__(165),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 164 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__ = __webpack_require__(45);
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BNotificationNotice',
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__["a" /* default */]],
- props: {
- indefinite: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- newDuration: this.duration || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultNotificationDuration
- };
- }
- });
-
- /***/ }),
- /* 165 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('b-notification', _vm._b({
- on: {
- "close": _vm.close
- }
- }, 'b-notification', _vm.$options.propsData, false))
- },staticRenderFns: []}
-
- /***/ }),
- /* 166 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(167),
- /* template */
- __webpack_require__(168),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 167 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__input_Input__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__ = __webpack_require__(10);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BNumberinput',
- 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),
- mixins: [__WEBPACK_IMPORTED_MODULE_3__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: Number,
- min: [Number, String],
- max: [Number, String],
- step: [Number, String],
- disabled: Boolean,
- type: {
- type: String,
- default: 'is-primary'
- },
- editable: {
- type: Boolean,
- default: true
- },
- controlsRounded: {
- type: Boolean,
- default: false
- },
- controlsPosition: String
- },
- data: function data() {
- return {
- newValue: !isNaN(this.value) ? this.value : parseFloat(this.min) || 0,
- newStep: this.step || 1,
- _elementRef: 'input'
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- var newValue = value;
- if (value === '') {
- newValue = parseFloat(this.min) || 0;
- }
- this.newValue = newValue;
- this.$emit('input', newValue);
- !this.isValid && this.$refs.input.checkHtml5Validity();
- }
- },
- fieldClasses: function fieldClasses() {
- return [{ 'has-addons': this.controlsPosition === 'compact' }, { 'is-grouped': this.controlsPosition !== 'compact' }];
- },
- buttonClasses: function buttonClasses() {
- return [this.type, this.size, { 'is-rounded': this.controlsRounded }];
- },
- minNumber: function minNumber() {
- return typeof this.min === 'string' ? parseFloat(this.min) : this.min;
- },
- maxNumber: function maxNumber() {
- return typeof this.max === 'string' ? parseFloat(this.max) : this.max;
- },
- stepNumber: function stepNumber() {
- return typeof this.newStep === 'string' ? parseFloat(this.newStep) : this.newStep;
- },
- disabledMin: function disabledMin() {
- return this.computedValue - this.stepNumber < this.minNumber;
- },
- disabledMax: function disabledMax() {
- return this.computedValue + this.stepNumber > this.maxNumber;
- },
- stepDecimals: function stepDecimals() {
- var step = this.stepNumber.toString();
- var index = step.indexOf('.');
- if (index >= 0) {
- return step.substring(index + 1).length;
- }
- return 0;
- }
- },
- watch: {
- /**
- * When v-model is changed:
- * 1. Set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- },
- methods: {
- decrement: function decrement() {
- if (typeof this.minNumber === 'undefined' || this.computedValue - this.stepNumber >= this.minNumber) {
- var value = this.computedValue - this.stepNumber;
- this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
- }
- },
- increment: function increment() {
- if (typeof this.maxNumber === 'undefined' || this.computedValue + this.stepNumber <= this.maxNumber) {
- var value = this.computedValue + this.stepNumber;
- this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
- }
- },
- onControlClick: function onControlClick(event, inc) {
- // IE 11 -> filter click event
- if (event.detail !== 0 || event.type === 'click') return;
- if (inc) this.increment();else this.decrement();
- },
- onStartLongPress: function onStartLongPress(event, inc) {
- var _this = this;
-
- if (event.button !== 0 && event.type !== 'touchstart') return;
- this._$intervalTime = new Date();
- clearInterval(this._$intervalRef);
- this._$intervalRef = setInterval(function () {
- if (inc) _this.increment();else _this.decrement();
- }, 250);
- },
- onStopLongPress: function onStopLongPress(inc) {
- if (!this._$intervalRef) return;
- var d = new Date();
- if (d - this._$intervalTime < 250) {
- if (inc) this.increment();else this.decrement();
- }
- clearInterval(this._$intervalRef);
- this._$intervalRef = null;
- }
- }
- });
-
- /***/ }),
- /* 168 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-numberinput field",
- class: _vm.fieldClasses
- }, [_c('p', {
- staticClass: "control",
- on: {
- "mouseup": function($event) {
- _vm.onStopLongPress(false)
- },
- "mouseleave": function($event) {
- _vm.onStopLongPress(false)
- },
- "touchend": function($event) {
- _vm.onStopLongPress(false)
- },
- "touchcancel": function($event) {
- _vm.onStopLongPress(false)
- }
- }
- }, [_c('button', {
- staticClass: "button",
- class: _vm.buttonClasses,
- attrs: {
- "type": "button",
- "disabled": _vm.disabled || _vm.disabledMin
- },
- on: {
- "mousedown": function($event) {
- _vm.onStartLongPress($event, false)
- },
- "touchstart": function($event) {
- $event.preventDefault();
- _vm.onStartLongPress($event, false)
- },
- "click": function($event) {
- _vm.onControlClick($event, false)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "minus",
- "pack": _vm.iconPack,
- "size": _vm.iconSize
- }
- })], 1)]), _vm._v(" "), _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "type": "number",
- "step": _vm.newStep,
- "max": _vm.max,
- "min": _vm.min,
- "size": _vm.size,
- "disabled": _vm.disabled,
- "readonly": !_vm.editable,
- "loading": _vm.loading,
- "rounded": _vm.rounded,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "autocomplete": _vm.autocomplete,
- "expanded": _vm.expanded,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "focus": function($event) {
- _vm.$emit('focus', $event)
- },
- "blur": function($event) {
- _vm.$emit('blur', $event)
- }
- },
- model: {
- value: (_vm.computedValue),
- callback: function($$v) {
- _vm.computedValue = _vm._n($$v)
- },
- expression: "computedValue"
- }
- }, 'b-input', _vm.$attrs, false)), _vm._v(" "), _c('p', {
- staticClass: "control",
- on: {
- "mouseup": function($event) {
- _vm.onStopLongPress(true)
- },
- "mouseleave": function($event) {
- _vm.onStopLongPress(true)
- },
- "touchend": function($event) {
- _vm.onStopLongPress(true)
- },
- "touchcancel": function($event) {
- _vm.onStopLongPress(true)
- }
- }
- }, [_c('button', {
- staticClass: "button",
- class: _vm.buttonClasses,
- attrs: {
- "type": "button",
- "disabled": _vm.disabled || _vm.disabledMax
- },
- on: {
- "mousedown": function($event) {
- _vm.onStartLongPress($event, true)
- },
- "touchstart": function($event) {
- $event.preventDefault();
- _vm.onStartLongPress($event, true)
- },
- "click": function($event) {
- _vm.onControlClick($event, true)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "plus",
- "pack": _vm.iconPack,
- "size": _vm.iconSize
- }
- })], 1)])], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 169 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BPagination',
- 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),
- props: {
- total: [Number, String],
- perPage: {
- type: [Number, String],
- default: 20
- },
- current: {
- type: [Number, String],
- default: 1
- },
- size: String,
- simple: Boolean,
- rounded: Boolean,
- order: String,
- iconPack: String,
- ariaNextLabel: String,
- ariaPreviousLabel: String,
- ariaPageLabel: String,
- ariaCurrentLabel: String
- },
- computed: {
- rootClasses: function rootClasses() {
- return [this.order, this.size, {
- 'is-simple': this.simple,
- 'is-rounded': this.rounded
- }];
- },
-
-
- /**
- * Total page size (count).
- */
- pageCount: function pageCount() {
- return Math.ceil(this.total / this.perPage);
- },
-
-
- /**
- * First item of the page (count).
- */
- firstItem: function firstItem() {
- var firstItem = this.current * this.perPage - this.perPage + 1;
- return firstItem >= 0 ? firstItem : 0;
- },
-
-
- /**
- * Check if previous button is available.
- */
- hasPrev: function hasPrev() {
- return this.current > 1;
- },
-
-
- /**
- * Check if first page button should be visible.
- */
- hasFirst: function hasFirst() {
- return this.current >= 3;
- },
-
-
- /**
- * Check if first ellipsis should be visible.
- */
- hasFirstEllipsis: function hasFirstEllipsis() {
- return this.current >= 4;
- },
-
-
- /**
- * Check if last page button should be visible.
- */
- hasLast: function hasLast() {
- return this.current <= this.pageCount - 2;
- },
-
-
- /**
- * Check if last ellipsis should be visible.
- */
- hasLastEllipsis: function hasLastEllipsis() {
- return this.current < this.pageCount - 2 && this.current <= this.pageCount - 3;
- },
-
-
- /**
- * Check if next button is available.
- */
- hasNext: function hasNext() {
- return this.current < this.pageCount;
- },
-
-
- /**
- * Get near pages, 1 before and 1 after the current.
- * Also add the click event to the array.
- */
- pagesInRange: function pagesInRange() {
- var _this = this;
-
- if (this.simple) return;
-
- var left = Math.max(1, this.current - 1);
- var right = Math.min(this.current + 1, this.pageCount);
-
- var pages = [];
-
- var _loop = function _loop(i) {
- pages.push({
- number: i,
- isCurrent: _this.current === i,
- click: function click(event) {
- if (_this.current === i) return;
- _this.$emit('change', i);
- _this.$emit('update:current', i);
-
- // Set focus on element to keep tab order
- _this.$nextTick(function () {
- return event.target.focus();
- });
- }
- });
- };
-
- for (var i = left; i <= right; i++) {
- _loop(i);
- }
- return pages;
- }
- },
- watch: {
- /**
- * If current page is trying to be greater than page count, set to last.
- */
- pageCount: function pageCount(value) {
- if (this.current > value) this.last();
- }
- },
- methods: {
- /**
- * Previous button click listener.
- */
- prev: function prev() {
- if (!this.hasPrev) return;
- this.$emit('change', this.current - 1);
- this.$emit('update:current', this.current - 1);
- },
-
-
- /**
- * First button click listener.
- */
- first: function first() {
- this.$emit('change', 1);
- this.$emit('update:current', 1);
- },
-
-
- /**
- * Last button click listener.
- */
- last: function last() {
- this.$emit('change', this.pageCount);
- this.$emit('update:current', this.pageCount);
- },
-
-
- /**
- * Next button click listener.
- */
- next: function next() {
- if (!this.hasNext) return;
- this.$emit('change', this.current + 1);
- this.$emit('update:current', this.current + 1);
- },
-
-
- /**
- * Get text for aria-label according to page number.
- */
- getAriaPageLabel: function getAriaPageLabel(pageNumber, isCurrent) {
- if (this.ariaPageLabel && (!isCurrent || !this.ariaCurrentLabel)) {
- return this.ariaPageLabel + ' ' + pageNumber + '.';
- } else if (this.ariaPageLabel && isCurrent && this.ariaCurrentLabel) {
- return this.ariaCurrentLabel + ', ' + this.ariaPageLabel + ' ' + pageNumber + '.';
- }
- return null;
- }
- }
- });
-
- /***/ }),
- /* 170 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('nav', {
- staticClass: "pagination",
- class: _vm.rootClasses
- }, [_c('a', {
- staticClass: "pagination-previous",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": !_vm.hasPrev,
- "aria-label": _vm.ariaPreviousLabel
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.prev($event)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-left",
- "pack": _vm.iconPack,
- "both": "",
- "aria-hidden": "true"
- }
- })], 1), _vm._v(" "), _c('a', {
- staticClass: "pagination-next",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": !_vm.hasNext,
- "aria-label": _vm.ariaNextLabel
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.next($event)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-right",
- "pack": _vm.iconPack,
- "both": "",
- "aria-hidden": "true"
- }
- })], 1), _vm._v(" "), (!_vm.simple) ? _c('ul', {
- staticClass: "pagination-list"
- }, [(_vm.hasFirst) ? _c('li', [_c('a', {
- staticClass: "pagination-link",
- attrs: {
- "role": "button",
- "href": "#",
- "aria-label": _vm.getAriaPageLabel(1, false)
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.first($event)
- }
- }
- }, [_vm._v("\n 1\n ")])]) : _vm._e(), _vm._v(" "), (_vm.hasFirstEllipsis) ? _c('li', [_c('span', {
- staticClass: "pagination-ellipsis"
- }, [_vm._v("…")])]) : _vm._e(), _vm._v(" "), _vm._l((_vm.pagesInRange), function(page) {
- return _c('li', {
- key: page.number
- }, [_c('a', {
- staticClass: "pagination-link",
- class: {
- 'is-current': page.isCurrent
- },
- attrs: {
- "role": "button",
- "href": "#",
- "aria-label": _vm.getAriaPageLabel(page.number, page.isCurrent),
- "aria-current": page.isCurrent
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- page.click($event)
- }
- }
- }, [_vm._v("\n " + _vm._s(page.number) + "\n ")])])
- }), _vm._v(" "), (_vm.hasLastEllipsis) ? _c('li', [_c('span', {
- staticClass: "pagination-ellipsis"
- }, [_vm._v("…")])]) : _vm._e(), _vm._v(" "), (_vm.hasLast) ? _c('li', [_c('a', {
- staticClass: "pagination-link",
- attrs: {
- "role": "button",
- "href": "#",
- "aria-label": _vm.getAriaPageLabel(_vm.pageCount, false)
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.last($event)
- }
- }
- }, [_vm._v("\n " + _vm._s(_vm.pageCount) + "\n ")])]) : _vm._e()], 2) : _vm._e(), _vm._v(" "), (_vm.simple) ? _c('small', {
- staticClass: "info"
- }, [(_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()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 171 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(172),
- /* template */
- __webpack_require__(173),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 172 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* 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__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BRadio',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- type: String,
- disabled: Boolean,
- required: Boolean,
- name: String,
- size: String
- },
- data: function data() {
- return {
- newValue: this.value
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 173 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('label', {
- ref: "label",
- staticClass: "b-radio radio",
- class: [_vm.size, {
- 'is-disabled': _vm.disabled
- }],
- attrs: {
- "disabled": _vm.disabled,
- "tabindex": _vm.disabled ? false : 0
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- }
- }
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "tabindex": "-1",
- "type": "radio",
- "disabled": _vm.disabled,
- "required": _vm.required,
- "name": _vm.name
- },
- domProps: {
- "value": _vm.nativeValue,
- "checked": _vm._q(_vm.computedValue, _vm.nativeValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "change": function($event) {
- _vm.computedValue = _vm.nativeValue
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "check",
- class: _vm.type
- }), _vm._v(" "), _c('span', {
- staticClass: "control-label"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 174 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(175),
- /* template */
- __webpack_require__(176),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 175 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* 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__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BRadioButton',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- type: {
- type: String,
- default: 'is-primary'
- },
- disabled: Boolean,
- required: Boolean,
- name: String,
- size: String
- },
- data: function data() {
- return {
- newValue: this.value
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 176 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "control"
- }, [_c('label', {
- ref: "label",
- staticClass: "b-radio radio button",
- class: [_vm.newValue === _vm.nativeValue ? _vm.type : null, _vm.size],
- attrs: {
- "disabled": _vm.disabled,
- "tabindex": _vm.disabled ? false : 0
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key) && _vm._k($event.keyCode, "space", 32, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- }
- }
- }, [_vm._t("default"), _vm._v(" "), _c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "tabindex": "-1",
- "type": "radio",
- "disabled": _vm.disabled,
- "required": _vm.required,
- "name": _vm.name
- },
- domProps: {
- "value": _vm.nativeValue,
- "checked": _vm._q(_vm.computedValue, _vm.nativeValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "change": function($event) {
- _vm.computedValue = _vm.nativeValue
- }
- }
- })], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 177 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(178),
- /* template */
- __webpack_require__(179),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 178 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__ = __webpack_require__(45);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BSnackbar',
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__["a" /* default */]],
- props: {
- actionText: {
- type: String,
- default: 'OK'
- },
- onAction: {
- type: Function,
- default: function _default() {}
- },
- indefinite: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- newDuration: this.duration || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultSnackbarDuration
- };
- },
-
- methods: {
- /**
- * Click listener.
- * Call action prop before closing (from Mixin).
- */
- action: function action() {
- this.onAction();
- this.close();
- }
- }
- });
-
- /***/ }),
- /* 179 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "enter-active-class": _vm.transition.enter,
- "leave-active-class": _vm.transition.leave
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "snackbar",
- class: [_vm.type, _vm.position]
- }, [_c('div', {
- staticClass: "text",
- domProps: {
- "innerHTML": _vm._s(_vm.message)
- }
- }), _vm._v(" "), (_vm.actionText) ? _c('div', {
- staticClass: "action",
- class: _vm.type,
- on: {
- "click": _vm.action
- }
- }, [_c('button', {
- staticClass: "button"
- }, [_vm._v(_vm._s(_vm.actionText))])]) : _vm._e()])])
- },staticRenderFns: []}
-
- /***/ }),
- /* 180 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(181),
- /* template */
- __webpack_require__(182),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 181 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_SlotComponent__ = __webpack_require__(67);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BSteps',
- 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),
- props: {
- value: Number,
- type: String | Object,
- size: String,
- animated: {
- type: Boolean,
- default: true
- },
- destroyOnHide: {
- type: Boolean,
- default: false
- },
- iconPack: String,
- hasNavigation: {
- type: Boolean,
- default: true
- },
- ariaNextLabel: String,
- ariaPreviousLabel: String
- },
- data: function data() {
- return {
- activeStep: this.value || 0,
- stepItems: [],
- contentHeight: 0,
- isTransitioning: false,
- _isSteps: true // Used internally by StepItem
- };
- },
-
- computed: {
- mainClasses: function mainClasses() {
- return [this.type, this.size];
- },
- reversedStepItems: function reversedStepItems() {
- return this.stepItems.slice().reverse();
- },
-
-
- /**
- * Check the first visible step index.
- */
- firstVisibleStepIndex: function firstVisibleStepIndex() {
- return this.stepItems.findIndex(function (step, idx) {
- return step.visible;
- });
- },
-
-
- /**
- * Check if previous button is available.
- */
- hasPrev: function hasPrev() {
- return this.firstVisibleStepIndex >= 0 && this.activeStep > this.firstVisibleStepIndex;
- },
-
-
- /**
- * Check the last visible step index.
- */
- lastVisibleStepIndex: function lastVisibleStepIndex() {
- var idx = this.reversedStepItems.findIndex(function (step, idx) {
- return step.visible;
- });
- if (idx >= 0) {
- return this.stepItems.length - 1 - idx;
- }
- return idx;
- },
-
-
- /**
- * Check if next button is available.
- */
- hasNext: function hasNext() {
- return this.lastVisibleStepIndex >= 0 && this.activeStep < this.lastVisibleStepIndex;
- }
- },
- watch: {
- /**
- * When v-model is changed set the new active step.
- */
- value: function value(_value) {
- this.changeStep(_value);
- },
-
-
- /**
- * When step-items are updated, set active one.
- */
- stepItems: function stepItems() {
- if (this.activeStep < this.stepItems.length) {
- this.stepItems[this.activeStep].isActive = true;
- }
- }
- },
- methods: {
- /**
- * Change the active step and emit change event.
- */
- changeStep: function changeStep(newIndex) {
- if (this.activeStep === newIndex) return;
-
- if (this.activeStep < this.stepItems.length) {
- this.stepItems[this.activeStep].deactivate(this.activeStep, newIndex);
- }
- this.stepItems[newIndex].activate(this.activeStep, newIndex);
- this.activeStep = newIndex;
- this.$emit('change', newIndex);
- },
-
-
- /**
- * Return if the step should be clickable or not.
- */
- isItemClickable: function isItemClickable(stepItem) {
- if (stepItem.clickable === undefined) {
- return stepItem.completed;
- }
- return stepItem.clickable;
- },
-
-
- /**
- * Step click listener, emit input event and change active step.
- */
- stepClick: function stepClick(value) {
- this.$emit('input', value);
- this.changeStep(value);
- },
-
-
- /**
- * Previous button click listener.
- */
- prev: function prev() {
- var _this = this;
-
- if (!this.hasPrev) return;
- var prevItemIdx = this.reversedStepItems.findIndex(function (step, idx) {
- return _this.stepItems.length - 1 - idx < _this.activeStep && step.visible;
- });
- if (prevItemIdx >= 0) {
- prevItemIdx = this.stepItems.length - 1 - prevItemIdx;
- }
- this.changeStep(prevItemIdx);
- },
-
-
- /**
- * Previous button click listener.
- */
- next: function next() {
- var _this2 = this;
-
- if (!this.hasNext) return;
- var nextItemIdx = this.stepItems.findIndex(function (step, idx) {
- return idx > _this2.activeStep && step.visible;
- });
- this.changeStep(nextItemIdx);
- }
- },
- mounted: function mounted() {
- if (this.activeStep < this.stepItems.length) {
- this.stepItems[this.activeStep].isActive = true;
- }
- }
- });
-
- /***/ }),
- /* 182 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-steps"
- }, [_c('nav', {
- staticClass: "steps",
- class: _vm.mainClasses
- }, [_c('ul', {
- staticClass: "step-items"
- }, _vm._l((_vm.stepItems), function(stepItem, index) {
- return _c('li', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (stepItem.visible),
- expression: "stepItem.visible"
- }],
- key: index,
- staticClass: "step-item",
- class: [stepItem.type || _vm.type, {
- 'is-active': _vm.activeStep === index,
- 'is-completed': stepItem.completed || _vm.activeStep > index
- }]
- }, [_c('a', {
- staticClass: "step-link",
- class: {
- 'is-clickable': _vm.isItemClickable(stepItem)
- },
- on: {
- "click": function($event) {
- stepItem.clickable && _vm.stepClick(index)
- }
- }
- }, [_c('div', {
- staticClass: "step-marker"
- }, [(stepItem.icon) ? _c('b-icon', {
- attrs: {
- "icon": stepItem.icon,
- "pack": stepItem.iconPack,
- "size": _vm.size
- }
- }) : _vm._e()], 1), _vm._v(" "), _c('div', {
- staticClass: "step-details"
- }, [_c('span', {
- staticClass: "step-title"
- }, [_vm._v(_vm._s(stepItem.label))])])])])
- }))]), _vm._v(" "), _c('section', {
- staticClass: "step-content",
- class: {
- 'is-transitioning': _vm.isTransitioning
- }
- }, [_vm._t("default")], 2), _vm._v(" "), (_vm.hasNavigation) ? _c('nav', {
- staticClass: "step-navigation"
- }, [_c('a', {
- staticClass: "pagination-previous",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": !_vm.hasPrev,
- "aria-label": _vm.ariaPreviousLabel
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.prev($event)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-left",
- "pack": _vm.iconPack,
- "both": "",
- "aria-hidden": "true"
- }
- })], 1), _vm._v(" "), _c('a', {
- staticClass: "pagination-next",
- attrs: {
- "role": "button",
- "href": "#",
- "disabled": !_vm.hasNext,
- "aria-label": _vm.ariaNextLabel
- },
- on: {
- "click": function($event) {
- $event.preventDefault();
- _vm.next($event)
- }
- }
- }, [_c('b-icon', {
- attrs: {
- "icon": "chevron-right",
- "pack": _vm.iconPack,
- "both": "",
- "aria-hidden": "true"
- }
- })], 1)]) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 183 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(184),
- /* template */
- null,
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 184 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BStepItem',
- props: {
- label: String,
- type: String | Object,
- icon: String,
- iconPack: String,
- clickable: Boolean,
- completed: {
- type: Boolean,
- default: false
- },
- visible: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- isActive: false,
- transitionName: null
- };
- },
-
- methods: {
- /**
- * Activate step, alter animation name based on the index.
- */
- activate: function activate(oldIndex, index) {
- this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
- this.isActive = true;
- },
-
-
- /**
- * Deactivate step, alter animation name based on the index.
- */
- deactivate: function deactivate(oldIndex, index) {
- this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
- this.isActive = false;
- }
- },
- created: function created() {
- if (!this.$parent.$data._isSteps) {
- this.$destroy();
- throw new Error('You should wrap bStepItem on a bSteps');
- }
- this.$parent.stepItems.push(this);
- },
- beforeDestroy: function beforeDestroy() {
- var index = this.$parent.stepItems.indexOf(this);
- if (index >= 0) {
- this.$parent.stepItems.splice(index, 1);
- }
- },
- render: function render(createElement) {
- var _this = this;
-
- // if destroy apply v-if
- if (this.$parent.destroyOnHide) {
- if (!this.isActive || !this.visible) {
- return;
- }
- }
- var vnode = createElement('div', {
- directives: [{
- name: 'show',
- value: this.isActive && this.visible
- }],
- attrs: { 'class': 'step-item' }
- }, this.$slots.default);
- // check animated prop
- if (this.$parent.animated) {
- return createElement('transition', {
- props: {
- 'name': this.transitionName
- },
- on: {
- 'before-enter': function beforeEnter() {
- _this.$parent.isTransitioning = true;
- },
- 'after-enter': function afterEnter() {
- _this.$parent.isTransitioning = false;
- }
- }
- }, [vnode]);
- }
- return vnode;
- }
- });
-
- /***/ }),
- /* 185 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(186),
- /* template */
- __webpack_require__(187),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 186 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* 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__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BSwitch',
- props: {
- value: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- nativeValue: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- disabled: Boolean,
- type: String,
- name: String,
- required: Boolean,
- size: String,
- trueValue: {
- type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- default: true
- },
- falseValue: {
- type: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- default: false
- }
- },
- data: function data() {
- return {
- newValue: this.value,
- isMouseDown: false
- };
- },
-
- computed: {
- computedValue: {
- get: function get() {
- return this.newValue;
- },
- set: function set(value) {
- this.newValue = value;
- this.$emit('input', value);
- }
- }
- },
- watch: {
- /**
- * When v-model change, set internal value.
- */
- value: function value(_value) {
- this.newValue = _value;
- }
- }
- });
-
- /***/ }),
- /* 187 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('label', {
- ref: "label",
- staticClass: "switch",
- class: [_vm.size, {
- 'is-disabled': _vm.disabled
- }],
- attrs: {
- "disabled": _vm.disabled
- },
- on: {
- "keydown": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- $event.preventDefault();
- _vm.$refs.label.click()
- },
- "mousedown": function($event) {
- _vm.isMouseDown = true
- },
- "mouseup": function($event) {
- _vm.isMouseDown = false
- },
- "mouseout": function($event) {
- _vm.isMouseDown = false
- },
- "blur": function($event) {
- _vm.isMouseDown = false
- }
- }
- }, [_c('input', {
- directives: [{
- name: "model",
- rawName: "v-model",
- value: (_vm.computedValue),
- expression: "computedValue"
- }],
- attrs: {
- "type": "checkbox",
- "disabled": _vm.disabled,
- "name": _vm.name,
- "required": _vm.required,
- "true-value": _vm.trueValue,
- "false-value": _vm.falseValue
- },
- domProps: {
- "value": _vm.nativeValue,
- "checked": Array.isArray(_vm.computedValue) ? _vm._i(_vm.computedValue, _vm.nativeValue) > -1 : _vm._q(_vm.computedValue, _vm.trueValue)
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- },
- "change": function($event) {
- var $$a = _vm.computedValue,
- $$el = $event.target,
- $$c = $$el.checked ? (_vm.trueValue) : (_vm.falseValue);
- if (Array.isArray($$a)) {
- var $$v = _vm.nativeValue,
- $$i = _vm._i($$a, $$v);
- if ($$el.checked) {
- $$i < 0 && (_vm.computedValue = $$a.concat([$$v]))
- } else {
- $$i > -1 && (_vm.computedValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))
- }
- } else {
- _vm.computedValue = $$c
- }
- }
- }
- }), _vm._v(" "), _c('span', {
- staticClass: "check",
- class: [{
- 'is-elastic': _vm.isMouseDown && !_vm.disabled
- }, _vm.type]
- }), _vm._v(" "), _c('span', {
- staticClass: "control-label"
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 188 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(189),
- /* template */
- __webpack_require__(203),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 189 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__ = __webpack_require__(190);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox__ = __webpack_require__(61);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__checkbox_Checkbox__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination__ = __webpack_require__(66);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pagination_Pagination___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__pagination_Pagination__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TableMobileSort__ = __webpack_require__(198);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TableMobileSort___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__TableMobileSort__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TableColumn__ = __webpack_require__(68);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TableColumn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__TableColumn__);
-
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTable',
- 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),
- props: {
- data: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- columns: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- bordered: Boolean,
- striped: Boolean,
- narrowed: Boolean,
- hoverable: Boolean,
- loading: Boolean,
- detailed: Boolean,
- checkable: Boolean,
- headerCheckable: {
- type: Boolean,
- default: true
- },
- selected: Object,
- focusable: Boolean,
- customIsChecked: Function,
- isRowCheckable: {
- type: Function,
- default: function _default() {
- return true;
- }
- },
- checkedRows: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- mobileCards: {
- type: Boolean,
- default: true
- },
- defaultSort: [String, Array],
- defaultSortDirection: {
- type: String,
- default: 'asc'
- },
- paginated: Boolean,
- currentPage: {
- type: Number,
- default: 1
- },
- perPage: {
- type: [Number, String],
- default: 20
- },
- showDetailIcon: {
- type: Boolean,
- default: true
- },
- paginationSimple: Boolean,
- paginationSize: String,
- backendSorting: Boolean,
- rowClass: {
- type: Function,
- default: function _default() {
- return '';
- }
- },
- openedDetailed: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- hasDetailedVisible: {
- type: Function,
- default: function _default() {
- return true;
- }
- },
- detailKey: {
- type: String,
- default: ''
- },
- customDetailRow: {
- type: Boolean,
- default: false
- },
- backendPagination: Boolean,
- total: {
- type: [Number, String],
- default: 0
- },
- iconPack: String,
- mobileSortPlaceholder: String,
- customRowKey: String,
- draggable: {
- type: Boolean,
- defualt: false
- },
- ariaNextLabel: String,
- ariaPreviousLabel: String,
- ariaPageLabel: String,
- ariaCurrentLabel: String
- },
- data: function data() {
- return {
- getValueByPath: __WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */],
- newColumns: [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(this.columns)),
- visibleDetailRows: this.openedDetailed,
- newData: this.data,
- newDataTotal: this.backendPagination ? this.total : this.data.length,
- newCheckedRows: [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(this.checkedRows)),
- newCurrentPage: this.currentPage,
- currentSortColumn: {},
- isAsc: true,
- firstTimeSort: true, // Used by first time initSort
- _isTable: true // Used by TableColumn
- };
- },
-
- computed: {
- /**
- * return if detailed row tabled
- * will be with chevron column & icon or not
- */
- showDetailRowIcon: function showDetailRowIcon() {
- return this.detailed && this.showDetailIcon;
- },
- tableClasses: function tableClasses() {
- return {
- 'is-bordered': this.bordered,
- 'is-striped': this.striped,
- 'is-narrow': this.narrowed,
- 'has-mobile-cards': this.mobileCards,
- 'is-hoverable': (this.hoverable || this.focusable) && this.visibleData.length
- };
- },
-
-
- /**
- * Splitted data based on the pagination.
- */
- visibleData: function visibleData() {
- if (!this.paginated) return this.newData;
-
- var currentPage = this.newCurrentPage;
- var perPage = this.perPage;
-
- if (this.newData.length <= perPage) {
- return this.newData;
- } else {
- var start = (currentPage - 1) * perPage;
- var end = parseInt(start, 10) + parseInt(perPage, 10);
- return this.newData.slice(start, end);
- }
- },
- visibleColumns: function visibleColumns() {
- if (!this.newColumns) return this.newColumns;
- return this.newColumns.filter(function (column) {
- return column.visible || column.visible === undefined;
- });
- },
-
-
- /**
- * Check if all rows in the page are checked.
- */
- isAllChecked: function isAllChecked() {
- var _this = this;
-
- var validVisibleData = this.visibleData.filter(function (row) {
- return _this.isRowCheckable(row);
- });
- if (validVisibleData.length === 0) return false;
- var isAllChecked = validVisibleData.some(function (currentVisibleRow) {
- return Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["b" /* indexOf */])(_this.newCheckedRows, currentVisibleRow, _this.customIsChecked) < 0;
- });
- return !isAllChecked;
- },
-
-
- /**
- * Check if all rows in the page are checkable.
- */
- isAllUncheckable: function isAllUncheckable() {
- var _this2 = this;
-
- var validVisibleData = this.visibleData.filter(function (row) {
- return _this2.isRowCheckable(row);
- });
- return validVisibleData.length === 0;
- },
-
-
- /**
- * Check if has any sortable column.
- */
- hasSortablenewColumns: function hasSortablenewColumns() {
- return this.newColumns.some(function (column) {
- return column.sortable;
- });
- },
-
-
- /**
- * Return total column count based if it's checkable or expanded
- */
- columnCount: function columnCount() {
- var count = this.newColumns.length;
- count += this.checkable ? 1 : 0;
- count += this.detailed ? 1 : 0;
-
- return count;
- }
- },
- watch: {
- /**
- * When data prop change:
- * 1. Update internal value.
- * 2. Reset newColumns (thead), in case it's on a v-for loop.
- * 3. Sort again if it's not backend-sort.
- * 4. Set new total if it's not backend-paginated.
- */
- data: function data(value) {
- var _this3 = this;
-
- // Save newColumns before resetting
- var newColumns = this.newColumns;
-
- this.newColumns = [];
- this.newData = value;
-
- // Prevent table from being headless, data could change and created hook
- // on column might not trigger
- this.$nextTick(function () {
- if (!_this3.newColumns.length) _this3.newColumns = newColumns;
- });
-
- if (!this.backendSorting) {
- this.sort(this.currentSortColumn, true);
- }
- if (!this.backendPagination) {
- this.newDataTotal = value.length;
- }
- },
-
-
- /**
- * When Pagination total change, update internal total
- * only if it's backend-paginated.
- */
- total: function total(newTotal) {
- if (!this.backendPagination) return;
-
- this.newDataTotal = newTotal;
- },
-
-
- /**
- * When checkedRows prop change, update internal value without
- * mutating original data.
- */
- checkedRows: function checkedRows(rows) {
- this.newCheckedRows = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(rows));
- },
- columns: function columns(value) {
- this.newColumns = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(value));
- },
- newColumns: function newColumns(value) {
- this.checkSort();
- },
-
-
- /**
- * When the user wants to control the detailed rows via props.
- * Or wants to open the details of certain row with the router for example.
- */
- openedDetailed: function openedDetailed(expandedRows) {
- this.visibleDetailRows = expandedRows;
- },
- currentPage: function currentPage(newVal) {
- this.newCurrentPage = newVal;
- }
- },
- methods: {
- /**
- * Sort an array by key without mutating original data.
- * Call the user sort function if it was passed.
- */
- sortBy: function sortBy(array, key, fn, isAsc) {
- var sorted = [];
- // Sorting without mutating original data
- if (fn && typeof fn === 'function') {
- sorted = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(array)).sort(function (a, b) {
- return fn(a, b, isAsc);
- });
- } else {
- sorted = [].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_toConsumableArray___default()(array)).sort(function (a, b) {
- // Get nested values from objects
- var newA = Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */])(a, key);
- var newB = Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */])(b, key);
-
- // sort boolean type
- if (typeof newA === 'boolean' && typeof newB === 'boolean') {
- return isAsc ? newA - newB : newB - newA;
- }
-
- if (!newA && newA !== 0) return 1;
- if (!newB && newB !== 0) return -1;
- if (newA === newB) return 0;
-
- newA = typeof newA === 'string' ? newA.toUpperCase() : newA;
- newB = typeof newB === 'string' ? newB.toUpperCase() : newB;
-
- return isAsc ? newA > newB ? 1 : -1 : newA > newB ? -1 : 1;
- });
- }
-
- return sorted;
- },
-
-
- /**
- * Sort the column.
- * Toggle current direction on column if it's sortable
- * and not just updating the prop.
- */
- sort: function sort(column) {
- var updatingData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
-
- if (!column || !column.sortable) return;
-
- if (!updatingData) {
- this.isAsc = column === this.currentSortColumn ? !this.isAsc : this.defaultSortDirection.toLowerCase() !== 'desc';
- }
- if (!this.firstTimeSort) {
- this.$emit('sort', column.field, this.isAsc ? 'asc' : 'desc');
- }
- if (!this.backendSorting) {
- this.newData = this.sortBy(this.newData, column.field, column.customSort, this.isAsc);
- }
- this.currentSortColumn = column;
- },
-
-
- /**
- * Check if the row is checked (is added to the array).
- */
- isRowChecked: function isRowChecked(row) {
- return Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["b" /* indexOf */])(this.newCheckedRows, row, this.customIsChecked) >= 0;
- },
-
-
- /**
- * Remove a checked row from the array.
- */
- removeCheckedRow: function removeCheckedRow(row) {
- var index = Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["b" /* indexOf */])(this.newCheckedRows, row, this.customIsChecked);
- if (index >= 0) {
- this.newCheckedRows.splice(index, 1);
- }
- },
-
-
- /**
- * Header checkbox click listener.
- * Add or remove all rows in current page.
- */
- checkAll: function checkAll() {
- var _this4 = this;
-
- var isAllChecked = this.isAllChecked;
- this.visibleData.forEach(function (currentRow) {
- _this4.removeCheckedRow(currentRow);
- if (!isAllChecked) {
- if (_this4.isRowCheckable(currentRow)) {
- _this4.newCheckedRows.push(currentRow);
- }
- }
- });
-
- this.$emit('check', this.newCheckedRows);
- this.$emit('check-all', this.newCheckedRows);
-
- // Emit checked rows to update user variable
- this.$emit('update:checkedRows', this.newCheckedRows);
- },
-
-
- /**
- * Row checkbox click listener.
- * Add or remove a single row.
- */
- checkRow: function checkRow(row) {
- if (!this.isRowChecked(row)) {
- this.newCheckedRows.push(row);
- } else {
- this.removeCheckedRow(row);
- }
-
- this.$emit('check', this.newCheckedRows, row);
-
- // Emit checked rows to update user variable
- this.$emit('update:checkedRows', this.newCheckedRows);
- },
-
-
- /**
- * Row click listener.
- * Emit all necessary events.
- */
- selectRow: function selectRow(row, index) {
- this.$emit('click', row);
-
- if (this.selected === row) return;
-
- // Emit new and old row
- this.$emit('select', row, this.selected);
-
- // Emit new row to update user variable
- this.$emit('update:selected', row);
- },
-
-
- /**
- * Paginator change listener.
- */
- pageChanged: function pageChanged(page) {
- this.newCurrentPage = page > 0 ? page : 1;
- this.$emit('page-change', this.newCurrentPage);
- this.$emit('update:currentPage', this.newCurrentPage);
- },
-
-
- /**
- * Toggle to show/hide details slot
- */
- toggleDetails: function toggleDetails(obj) {
- var found = this.isVisibleDetailRow(obj);
-
- if (found) {
- this.closeDetailRow(obj);
- this.$emit('details-close', obj);
- } else {
- this.openDetailRow(obj);
- this.$emit('details-open', obj);
- }
-
- // Syncs the detailed rows with the parent component
- this.$emit('update:openedDetailed', this.visibleDetailRows);
- },
- openDetailRow: function openDetailRow(obj) {
- var index = this.handleDetailKey(obj);
- this.visibleDetailRows.push(index);
- },
- closeDetailRow: function closeDetailRow(obj) {
- var index = this.handleDetailKey(obj);
- var i = this.visibleDetailRows.indexOf(index);
- this.visibleDetailRows.splice(i, 1);
- },
- isVisibleDetailRow: function isVisibleDetailRow(obj) {
- var index = this.handleDetailKey(obj);
- var result = this.visibleDetailRows.indexOf(index) >= 0;
- return result;
- },
- isActiveDetailRow: function isActiveDetailRow(row) {
- return this.detailed && !this.customDetailRow && this.isVisibleDetailRow(row);
- },
- isActiveCustomDetailRow: function isActiveCustomDetailRow(row) {
- return this.detailed && this.customDetailRow && this.isVisibleDetailRow(row);
- },
-
-
- /**
- * When the detailKey is defined we use the object[detailKey] as index.
- * If not, use the object reference by default.
- */
- handleDetailKey: function handleDetailKey(index) {
- var key = this.detailKey;
- return !key.length ? index : index[key];
- },
- checkPredefinedDetailedRows: function checkPredefinedDetailedRows() {
- var defaultExpandedRowsDefined = this.openedDetailed.length > 0;
- if (defaultExpandedRowsDefined && !this.detailKey.length) {
- throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"');
- }
- },
-
-
- /**
- * Call initSort only first time (For example async data).
- */
- checkSort: function checkSort() {
- if (this.newColumns.length && this.firstTimeSort) {
- this.initSort();
- this.firstTimeSort = false;
- } else if (this.newColumns.length) {
- if (this.currentSortColumn.field) {
- for (var i = 0; i < this.newColumns.length; i++) {
- if (this.newColumns[i].field === this.currentSortColumn.field) {
- this.currentSortColumn = this.newColumns[i];
- break;
- }
- }
- }
- }
- },
-
-
- /**
- * Check if footer slot has custom content.
- */
- hasCustomFooterSlot: function hasCustomFooterSlot() {
- if (this.$slots.footer.length > 1) return true;
-
- var tag = this.$slots.footer[0].tag;
- if (tag !== 'th' && tag !== 'td') return false;
-
- return true;
- },
-
-
- /**
- * Check if bottom-left slot exists.
- */
- hasBottomLeftSlot: function hasBottomLeftSlot() {
- return typeof this.$slots['bottom-left'] !== 'undefined';
- },
-
-
- /**
- * Table arrow keys listener, change selection.
- */
- pressedArrow: function pressedArrow(pos) {
- if (!this.visibleData.length) return;
-
- var index = this.visibleData.indexOf(this.selected) + pos;
-
- // Prevent from going up from first and down from last
- index = index < 0 ? 0 : index > this.visibleData.length - 1 ? this.visibleData.length - 1 : index;
-
- this.selectRow(this.visibleData[index]);
- },
-
-
- /**
- * Focus table element if has selected prop.
- */
- focus: function focus() {
- if (!this.focusable) return;
-
- this.$el.querySelector('table').focus();
- },
-
-
- /**
- * Initial sorted column based on the default-sort prop.
- */
- initSort: function initSort() {
- var _this5 = this;
-
- if (!this.defaultSort) return;
-
- var sortField = '';
- var sortDirection = this.defaultSortDirection;
-
- if (Array.isArray(this.defaultSort)) {
- sortField = this.defaultSort[0];
- if (this.defaultSort[1]) {
- sortDirection = this.defaultSort[1];
- }
- } else {
- sortField = this.defaultSort;
- }
-
- this.newColumns.forEach(function (column) {
- if (column.field === sortField) {
- _this5.isAsc = sortDirection.toLowerCase() !== 'desc';
- _this5.sort(column, true);
- }
- });
- },
-
- /**
- * Emits drag start event
- */
- handleDragStart: function handleDragStart(event, row, index) {
- this.$emit('dragstart', { event: event, row: row, index: index });
- },
-
- /**
- * Emits drop event
- */
- handleDrop: function handleDrop(event, row, index) {
- this.$emit('drop', { event: event, row: row, index: index });
- },
-
- /**
- * Emits drag over event
- */
- handleDragOver: function handleDragOver(event, row, index) {
- this.$emit('dragover', { event: event, row: row, index: index });
- },
-
- /**
- * Emits drag leave event
- */
- handleDragLeave: function handleDragLeave(event, row, index) {
- this.$emit('dragleave', { event: event, row: row, index: index });
- }
- },
-
- mounted: function mounted() {
- this.checkPredefinedDetailedRows();
- this.checkSort();
- }
- });
-
- /***/ }),
- /* 190 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- exports.__esModule = true;
-
- var _from = __webpack_require__(191);
-
- var _from2 = _interopRequireDefault(_from);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- exports.default = function (arr) {
- if (Array.isArray(arr)) {
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
- arr2[i] = arr[i];
- }
-
- return arr2;
- } else {
- return (0, _from2.default)(arr);
- }
- };
-
- /***/ }),
- /* 191 */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = { "default": __webpack_require__(192), __esModule: true };
-
- /***/ }),
- /* 192 */
- /***/ (function(module, exports, __webpack_require__) {
-
- __webpack_require__(41);
- __webpack_require__(193);
- module.exports = __webpack_require__(6).Array.from;
-
-
- /***/ }),
- /* 193 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var ctx = __webpack_require__(46);
- var $export = __webpack_require__(19);
- var toObject = __webpack_require__(40);
- var call = __webpack_require__(194);
- var isArrayIter = __webpack_require__(195);
- var toLength = __webpack_require__(51);
- var createProperty = __webpack_require__(196);
- var getIterFn = __webpack_require__(60);
-
- $export($export.S + $export.F * !__webpack_require__(197)(function (iter) { Array.from(iter); }), 'Array', {
- // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
- from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
- var O = toObject(arrayLike);
- var C = typeof this == 'function' ? this : Array;
- var aLen = arguments.length;
- var mapfn = aLen > 1 ? arguments[1] : undefined;
- var mapping = mapfn !== undefined;
- var index = 0;
- var iterFn = getIterFn(O);
- var length, result, step, iterator;
- if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
- // if object isn't iterable or it's array with default iterator - use simple case
- if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
- for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
- createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
- }
- } else {
- length = toLength(O.length);
- for (result = new C(length); length > index; index++) {
- createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
- }
- }
- result.length = index;
- return result;
- }
- });
-
-
- /***/ }),
- /* 194 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // call something on iterator step with safe closing on error
- var anObject = __webpack_require__(15);
- module.exports = function (iterator, fn, value, entries) {
- try {
- return entries ? fn(anObject(value)[0], value[1]) : fn(value);
- // 7.4.6 IteratorClose(iterator, completion)
- } catch (e) {
- var ret = iterator['return'];
- if (ret !== undefined) anObject(ret.call(iterator));
- throw e;
- }
- };
-
-
- /***/ }),
- /* 195 */
- /***/ (function(module, exports, __webpack_require__) {
-
- // check on default Array iterator
- var Iterators = __webpack_require__(23);
- var ITERATOR = __webpack_require__(4)('iterator');
- var ArrayProto = Array.prototype;
-
- module.exports = function (it) {
- return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
- };
-
-
- /***/ }),
- /* 196 */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
- var $defineProperty = __webpack_require__(9);
- var createDesc = __webpack_require__(22);
-
- module.exports = function (object, index, value) {
- if (index in object) $defineProperty.f(object, index, createDesc(0, value));
- else object[index] = value;
- };
-
-
- /***/ }),
- /* 197 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var ITERATOR = __webpack_require__(4)('iterator');
- var SAFE_CLOSING = false;
-
- try {
- var riter = [7][ITERATOR]();
- riter['return'] = function () { SAFE_CLOSING = true; };
- // eslint-disable-next-line no-throw-literal
- Array.from(riter, function () { throw 2; });
- } catch (e) { /* empty */ }
-
- module.exports = function (exec, skipClosing) {
- if (!skipClosing && !SAFE_CLOSING) return false;
- var safe = false;
- try {
- var arr = [7];
- var iter = arr[ITERATOR]();
- iter.next = function () { return { done: safe = true }; };
- arr[ITERATOR] = function () { return iter; };
- exec(arr);
- } catch (e) { /* empty */ }
- return safe;
- };
-
-
- /***/ }),
- /* 198 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(199),
- /* template */
- __webpack_require__(200),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 199 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__select_Select__ = __webpack_require__(31);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__select_Select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__select_Select__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__icon_Icon__);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTableMobileSort',
- 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),
- props: {
- currentSortColumn: Object,
- isAsc: Boolean,
- columns: Array,
- placeholder: String
- },
- data: function data() {
- return {
- mobileSort: this.currentSortColumn
- };
- },
-
- computed: {
- showPlaceholder: function showPlaceholder() {
- var _this = this;
-
- return !this.columns || !this.columns.some(function (column) {
- return column === _this.mobileSort;
- });
- }
- },
- watch: {
- mobileSort: function mobileSort(column) {
- if (this.currentSortColumn === column) return;
-
- this.$emit('sort', column);
- },
- currentSortColumn: function currentSortColumn(column) {
- this.mobileSort = column;
- }
- },
- methods: {
- sort: function sort() {
- this.$emit('sort', this.mobileSort);
- }
- }
- });
-
- /***/ }),
- /* 200 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "field table-mobile-sort"
- }, [_c('div', {
- staticClass: "field has-addons"
- }, [_c('b-select', {
- attrs: {
- "expanded": ""
- },
- model: {
- value: (_vm.mobileSort),
- callback: function($$v) {
- _vm.mobileSort = $$v
- },
- expression: "mobileSort"
- }
- }, [(_vm.placeholder) ? [_c('option', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.showPlaceholder),
- expression: "showPlaceholder"
- }],
- attrs: {
- "selected": "",
- "disabled": "",
- "hidden": ""
- },
- domProps: {
- "value": {}
- }
- }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e(), _vm._v(" "), _vm._l((_vm.columns), function(column, index) {
- return (column.sortable) ? _c('option', {
- key: index,
- domProps: {
- "value": column
- }
- }, [_vm._v("\n " + _vm._s(column.label) + "\n ")]) : _vm._e()
- })], 2), _vm._v(" "), _c('div', {
- staticClass: "control"
- }, [_c('button', {
- staticClass: "button is-primary",
- on: {
- "click": _vm.sort
- }
- }, [_c('b-icon', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.currentSortColumn === _vm.mobileSort),
- expression: "currentSortColumn === mobileSort"
- }],
- class: {
- 'is-desc': !_vm.isAsc
- },
- attrs: {
- "icon": "arrow-up",
- "size": "is-small",
- "both": ""
- }
- })], 1)])], 1)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 201 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol__ = __webpack_require__(5);
- /* 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__);
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTableColumn',
- props: {
- label: String,
- customKey: [String, Number],
- field: String,
- meta: [String, Number, Boolean, Function, Object, Array, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_symbol___default.a],
- width: [Number, String],
- numeric: Boolean,
- centered: Boolean,
- sortable: Boolean,
- visible: {
- type: Boolean,
- default: true
- },
- customSort: Function,
- internal: Boolean // Used internally by Table
- },
- data: function data() {
- return {
- newKey: this.customKey || this.label
- };
- },
-
- computed: {
- rootClasses: function rootClasses() {
- return {
- 'has-text-right': this.numeric && !this.centered,
- 'has-text-centered': this.centered
- };
- }
- },
- methods: {
- addRefToTable: function addRefToTable() {
- var _this = this;
-
- if (!this.$parent.$data._isTable) {
- this.$destroy();
- throw new Error('You should wrap bTableColumn on a bTable');
- }
-
- if (this.internal) return;
-
- // Since we're using scoped prop the columns gonna be multiplied,
- // this finds when to stop based on the newKey property.
- var repeated = this.$parent.newColumns.some(function (column) {
- return column.newKey === _this.newKey;
- });
- !repeated && this.$parent.newColumns.push(this);
- }
- },
- beforeMount: function beforeMount() {
- this.addRefToTable();
- },
- beforeUpdate: function beforeUpdate() {
- this.addRefToTable();
- },
- beforeDestroy: function beforeDestroy() {
- var index = this.$parent.newColumns.map(function (column) {
- return column.newKey;
- }).indexOf(this.newKey);
- if (index >= 0) {
- this.$parent.newColumns.splice(index, 1);
- }
- }
- });
-
- /***/ }),
- /* 202 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return (_vm.visible) ? _c('td', {
- class: _vm.rootClasses,
- attrs: {
- "data-label": _vm.label
- }
- }, [_c('span', [_vm._t("default")], 2)]) : _vm._e()
- },staticRenderFns: []}
-
- /***/ }),
- /* 203 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-table",
- class: {
- 'is-loading': _vm.loading
- }
- }, [(_vm.mobileCards && _vm.hasSortablenewColumns) ? _c('b-table-mobile-sort', {
- attrs: {
- "current-sort-column": _vm.currentSortColumn,
- "is-asc": _vm.isAsc,
- "columns": _vm.newColumns,
- "placeholder": _vm.mobileSortPlaceholder
- },
- on: {
- "sort": function (column) { return _vm.sort(column); }
- }
- }) : _vm._e(), _vm._v(" "), _c('div', {
- staticClass: "table-wrapper"
- }, [_c('table', {
- staticClass: "table",
- class: _vm.tableClasses,
- attrs: {
- "tabindex": !_vm.focusable ? false : 0
- },
- on: {
- "keydown": [function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "up", 38, $event.key)) { return null; }
- if ($event.target !== $event.currentTarget) { return null; }
- $event.preventDefault();
- _vm.pressedArrow(-1)
- }, function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "down", 40, $event.key)) { return null; }
- if ($event.target !== $event.currentTarget) { return null; }
- $event.preventDefault();
- _vm.pressedArrow(1)
- }]
- }
- }, [(_vm.newColumns.length) ? _c('thead', [_c('tr', [(_vm.showDetailRowIcon) ? _c('th', {
- attrs: {
- "width": "40px"
- }
- }) : _vm._e(), _vm._v(" "), (_vm.checkable) ? _c('th', {
- staticClass: "checkbox-cell"
- }, [(_vm.headerCheckable) ? [_c('b-checkbox', {
- attrs: {
- "value": _vm.isAllChecked,
- "disabled": _vm.isAllUncheckable
- },
- nativeOn: {
- "change": function($event) {
- _vm.checkAll($event)
- }
- }
- })] : _vm._e()], 2) : _vm._e(), _vm._v(" "), _vm._l((_vm.visibleColumns), function(column, index) {
- return _c('th', {
- key: index,
- class: {
- 'is-current-sort': _vm.currentSortColumn === column,
- 'is-sortable': column.sortable
- },
- style: ({
- width: column.width === undefined ? null : column.width + 'px'
- }),
- on: {
- "click": function($event) {
- $event.stopPropagation();
- _vm.sort(column)
- }
- }
- }, [_c('div', {
- staticClass: "th-wrap",
- class: {
- 'is-numeric': column.numeric,
- 'is-centered': column.centered
- }
- }, [(_vm.$scopedSlots.header) ? _vm._t("header", null, {
- column: column,
- index: index
- }) : [_vm._v(_vm._s(column.label))], _vm._v(" "), _c('b-icon', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.currentSortColumn === column),
- expression: "currentSortColumn === column"
- }],
- class: {
- 'is-desc': !_vm.isAsc
- },
- attrs: {
- "icon": "arrow-up",
- "pack": _vm.iconPack,
- "both": "",
- "size": "is-small"
- }
- })], 2)])
- })], 2)]) : _vm._e(), _vm._v(" "), (_vm.visibleData.length) ? _c('tbody', [_vm._l((_vm.visibleData), function(row, index) {
- return [_c('tr', {
- key: _vm.customRowKey ? row[_vm.customRowKey] : index,
- class: [_vm.rowClass(row, index), {
- 'is-selected': row === _vm.selected,
- 'is-checked': _vm.isRowChecked(row),
- }],
- attrs: {
- "draggable": _vm.draggable
- },
- on: {
- "click": function($event) {
- _vm.selectRow(row)
- },
- "dblclick": function($event) {
- _vm.$emit('dblclick', row)
- },
- "contextmenu": function($event) {
- _vm.$emit('contextmenu', row, $event)
- },
- "dragstart": function($event) {
- _vm.handleDragStart($event, row, index)
- },
- "drop": function($event) {
- _vm.handleDrop($event, row, index)
- },
- "dragover": function($event) {
- _vm.handleDragOver($event, row, index)
- },
- "dragleave": function($event) {
- _vm.handleDragLeave($event, row, index)
- }
- }
- }, [(_vm.showDetailRowIcon) ? _c('td', {
- staticClass: "chevron-cell"
- }, [(_vm.hasDetailedVisible(row)) ? _c('a', {
- attrs: {
- "role": "button"
- },
- on: {
- "click": function($event) {
- $event.stopPropagation();
- _vm.toggleDetails(row)
- }
- }
- }, [_c('b-icon', {
- class: {
- 'is-expanded': _vm.isVisibleDetailRow(row)
- },
- attrs: {
- "icon": "chevron-right",
- "pack": _vm.iconPack,
- "both": ""
- }
- })], 1) : _vm._e()]) : _vm._e(), _vm._v(" "), (_vm.checkable) ? _c('td', {
- staticClass: "checkbox-cell"
- }, [_c('b-checkbox', {
- attrs: {
- "disabled": !_vm.isRowCheckable(row),
- "value": _vm.isRowChecked(row)
- },
- nativeOn: {
- "change": function($event) {
- _vm.checkRow(row)
- },
- "click": function($event) {
- $event.stopPropagation();
- }
- }
- })], 1) : _vm._e(), _vm._v(" "), (_vm.$scopedSlots.default) ? _vm._t("default", null, {
- row: row,
- index: index
- }) : _vm._l((_vm.newColumns), function(column) {
- return _c('BTableColumn', _vm._b({
- key: column.field,
- attrs: {
- "internal": ""
- }
- }, 'BTableColumn', column, false), [(column.renderHtml) ? _c('span', {
- domProps: {
- "innerHTML": _vm._s(_vm.getValueByPath(row, column.field))
- }
- }) : [_vm._v("\n " + _vm._s(_vm.getValueByPath(row, column.field)) + "\n ")]], 2)
- })], 2), _vm._v(" "), (_vm.isActiveDetailRow(row)) ? _c('tr', {
- staticClass: "detail"
- }, [_c('td', {
- attrs: {
- "colspan": _vm.columnCount
- }
- }, [_c('div', {
- staticClass: "detail-container"
- }, [_vm._t("detail", null, {
- row: row,
- index: index
- })], 2)])]) : _vm._e(), _vm._v(" "), (_vm.isActiveCustomDetailRow(row)) ? _vm._t("detail", null, {
- row: row,
- index: index
- }) : _vm._e()]
- })], 2) : _c('tbody', [_c('tr', {
- staticClass: "is-empty"
- }, [_c('td', {
- attrs: {
- "colspan": _vm.columnCount
- }
- }, [_vm._t("empty")], 2)])]), _vm._v(" "), (_vm.$slots.footer !== undefined) ? _c('tfoot', [_c('tr', {
- staticClass: "table-footer"
- }, [(_vm.hasCustomFooterSlot()) ? _vm._t("footer") : _c('th', {
- attrs: {
- "colspan": _vm.columnCount
- }
- }, [_vm._t("footer")], 2)], 2)]) : _vm._e()])]), _vm._v(" "), ((_vm.checkable && _vm.hasBottomLeftSlot()) || _vm.paginated) ? _c('div', {
- staticClass: "level"
- }, [_c('div', {
- staticClass: "level-left"
- }, [_vm._t("bottom-left")], 2), _vm._v(" "), _c('div', {
- staticClass: "level-right"
- }, [(_vm.paginated) ? _c('div', {
- staticClass: "level-item"
- }, [_c('b-pagination', {
- attrs: {
- "icon-pack": _vm.iconPack,
- "total": _vm.newDataTotal,
- "per-page": _vm.perPage,
- "simple": _vm.paginationSimple,
- "size": _vm.paginationSize,
- "current": _vm.newCurrentPage,
- "aria-next-label": _vm.ariaNextLabel,
- "aria-previous-label": _vm.ariaPreviousLabel,
- "aria-page-label": _vm.ariaPageLabel,
- "aria-current-label": _vm.ariaCurrentLabel
- },
- on: {
- "change": _vm.pageChanged
- }
- })], 1) : _vm._e()])]) : _vm._e()], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 204 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(205),
- /* template */
- __webpack_require__(206),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 205 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__icon_Icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_SlotComponent__ = __webpack_require__(67);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTabs',
- 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),
- props: {
- value: Number,
- expanded: Boolean,
- type: String,
- size: String,
- position: String,
- animated: {
- type: Boolean,
- default: true
- },
- destroyOnHide: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- activeTab: this.value || 0,
- tabItems: [],
- contentHeight: 0,
- isTransitioning: false,
- _isTabs: true // Used internally by TabItem
- };
- },
-
- computed: {
- navClasses: function navClasses() {
- return [this.type, this.size, this.position, {
- 'is-fullwidth': this.expanded,
- 'is-toggle-rounded is-toggle': this.type === 'is-toggle-rounded'
- }];
- }
- },
- watch: {
- /**
- * When v-model is changed set the new active tab.
- */
- value: function value(_value) {
- this.changeTab(_value);
- },
-
-
- /**
- * When tab-items are updated, set active one.
- */
- tabItems: function tabItems() {
- if (this.activeTab < this.tabItems.length) {
- this.tabItems[this.activeTab].isActive = true;
- }
- }
- },
- methods: {
- /**
- * Change the active tab and emit change event.
- */
- changeTab: function changeTab(newIndex) {
- if (this.activeTab === newIndex) return;
-
- if (this.activeTab < this.tabItems.length) {
- this.tabItems[this.activeTab].deactivate(this.activeTab, newIndex);
- }
- this.tabItems[newIndex].activate(this.activeTab, newIndex);
- this.activeTab = newIndex;
- this.$emit('change', newIndex);
- },
-
-
- /**
- * Tab click listener, emit input event and change active tab.
- */
- tabClick: function tabClick(value) {
- this.$emit('input', value);
- this.changeTab(value);
- }
- },
- mounted: function mounted() {
- if (this.activeTab < this.tabItems.length) {
- this.tabItems[this.activeTab].isActive = true;
- }
- }
- });
-
- /***/ }),
- /* 206 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "b-tabs",
- class: {
- 'is-fullwidth': _vm.expanded
- }
- }, [_c('nav', {
- staticClass: "tabs",
- class: _vm.navClasses
- }, [_c('ul', _vm._l((_vm.tabItems), function(tabItem, index) {
- return _c('li', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (tabItem.visible),
- expression: "tabItem.visible"
- }],
- key: index,
- class: {
- 'is-active': _vm.activeTab === index, 'is-disabled': tabItem.disabled
- }
- }, [_c('a', {
- on: {
- "click": function($event) {
- _vm.tabClick(index)
- }
- }
- }, [(tabItem.$slots.header) ? [_c('b-slot-component', {
- attrs: {
- "component": tabItem,
- "name": "header",
- "tag": "span"
- }
- })] : [(tabItem.icon) ? _c('b-icon', {
- attrs: {
- "icon": tabItem.icon,
- "pack": tabItem.iconPack,
- "size": _vm.size
- }
- }) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(tabItem.label))])]], 2)])
- }))]), _vm._v(" "), _c('section', {
- staticClass: "tab-content",
- class: {
- 'is-transitioning': _vm.isTransitioning
- }
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
-
- /***/ }),
- /* 207 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(208),
- /* template */
- null,
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 208 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTabItem',
- props: {
- label: String,
- icon: String,
- iconPack: String,
- disabled: Boolean,
- visible: {
- type: Boolean,
- default: true
- }
- },
- data: function data() {
- return {
- isActive: false,
- transitionName: null
- };
- },
-
- methods: {
- /**
- * Activate tab, alter animation name based on the index.
- */
- activate: function activate(oldIndex, index) {
- this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
- this.isActive = true;
- },
-
-
- /**
- * Deactivate tab, alter animation name based on the index.
- */
- deactivate: function deactivate(oldIndex, index) {
- this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
- this.isActive = false;
- }
- },
- created: function created() {
- if (!this.$parent.$data._isTabs) {
- this.$destroy();
- throw new Error('You should wrap bTabItem on a bTabs');
- }
- this.$parent.tabItems.push(this);
- },
- beforeDestroy: function beforeDestroy() {
- var index = this.$parent.tabItems.indexOf(this);
- if (index >= 0) {
- this.$parent.tabItems.splice(index, 1);
- }
- },
- render: function render(createElement) {
- var _this = this;
-
- // if destroy apply v-if
- if (this.$parent.destroyOnHide) {
- if (!this.isActive || !this.visible) {
- return;
- }
- }
- var vnode = createElement('div', {
- directives: [{
- name: 'show',
- value: this.isActive && this.visible
- }],
- attrs: { 'class': 'tab-item' }
- }, this.$slots.default);
- // check animated prop
- if (this.$parent.animated) {
- return createElement('transition', {
- props: {
- 'name': this.transitionName
- },
- on: {
- 'before-enter': function beforeEnter() {
- _this.$parent.isTransitioning = true;
- },
- 'after-enter': function afterEnter() {
- _this.$parent.isTransitioning = false;
- }
- }
- }, [vnode]);
- }
- return vnode;
- }
- });
-
- /***/ }),
- /* 209 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTag',
- props: {
- attached: Boolean,
- closable: Boolean,
- type: String,
- size: String,
- rounded: Boolean,
- disabled: Boolean,
- ellipsis: Boolean,
- tabstop: {
- type: Boolean,
- default: true
- }
- },
- methods: {
- /**
- * Emit close event when delete button is clicked
- * or delete key is pressed.
- */
- close: function close() {
- if (this.disabled) return;
-
- this.$emit('close');
- }
- }
- });
-
- /***/ }),
- /* 210 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return (_vm.attached && _vm.closable) ? _c('div', {
- staticClass: "tags has-addons"
- }, [_c('span', {
- staticClass: "tag",
- class: [_vm.type, _vm.size, {
- 'is-rounded': _vm.rounded
- }]
- }, [_c('span', {
- class: {
- 'has-ellipsis': _vm.ellipsis
- }
- }, [_vm._t("default")], 2)]), _vm._v(" "), _c('a', {
- staticClass: "tag is-delete",
- class: [_vm.size, {
- 'is-rounded': _vm.rounded
- }],
- attrs: {
- "role": "button",
- "tabindex": _vm.tabstop ? 0 : false,
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- _vm.close()
- },
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "delete", [8, 46], $event.key)) { return null; }
- $event.preventDefault();
- _vm.close()
- }
- }
- })]) : _c('span', {
- staticClass: "tag",
- class: [_vm.type, _vm.size, {
- 'is-rounded': _vm.rounded
- }]
- }, [_c('span', {
- class: {
- 'has-ellipsis': _vm.ellipsis
- }
- }, [_vm._t("default")], 2), _vm._v(" "), (_vm.closable) ? _c('a', {
- staticClass: "delete is-small",
- attrs: {
- "role": "button",
- "disabled": _vm.disabled,
- "tabindex": _vm.tabstop ? 0 : false
- },
- on: {
- "click": function($event) {
- _vm.close()
- },
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "delete", [8, 46], $event.key)) { return null; }
- $event.preventDefault();
- _vm.close()
- }
- }
- }) : _vm._e()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 211 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(212),
- /* template */
- __webpack_require__(213),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 212 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- //
- //
- //
- //
- //
- //
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTaglist',
- props: {
- attached: Boolean
- }
- });
-
- /***/ }),
- /* 213 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "tags",
- class: {
- 'has-addons': _vm.attached
- }
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 214 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(215),
- /* template */
- __webpack_require__(216),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 215 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(53);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_helpers__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tag_Tag__ = __webpack_require__(69);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tag_Tag___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__tag_Tag__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete__ = __webpack_require__(52);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__autocomplete_Autocomplete__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_FormElementMixin__ = __webpack_require__(10);
-
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTaginput',
- 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),
- mixins: [__WEBPACK_IMPORTED_MODULE_5__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- data: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- type: String,
- rounded: {
- type: Boolean,
- default: false
- },
- attached: {
- type: Boolean,
- default: false
- },
- maxtags: {
- type: [Number, String],
- required: false
- },
- field: {
- type: String,
- default: 'value'
- },
- autocomplete: Boolean,
- nativeAutocomplete: String,
- disabled: Boolean,
- ellipsis: Boolean,
- closable: {
- type: Boolean,
- default: true
- },
- confirmKeyCodes: {
- type: Array,
- default: function _default() {
- return [13, 188];
- }
- },
- removeOnKeys: {
- type: Array,
- default: function _default() {
- return [8];
- }
- },
- allowNew: Boolean,
- onPasteSeparators: {
- type: Array,
- default: function _default() {
- return [','];
- }
- },
- beforeAdding: {
- type: Function,
- default: function _default() {
- return true;
- }
- },
- allowDuplicates: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- tags: this.value || [],
- newTag: '',
- _elementRef: 'input',
- _isTaginput: true
- };
- },
-
- computed: {
- rootClasses: function rootClasses() {
- return {
- 'is-expanded': this.expanded
- };
- },
- containerClasses: function containerClasses() {
- return {
- 'is-focused': this.isFocused,
- 'is-focusable': this.hasInput
- };
- },
- valueLength: function valueLength() {
- return this.newTag.trim().length;
- },
- defaultSlotName: function defaultSlotName() {
- return this.hasDefaultSlot ? 'default' : 'dontrender';
- },
- emptySlotName: function emptySlotName() {
- return this.hasEmptySlot ? 'empty' : 'dontrender';
- },
- headerSlotName: function headerSlotName() {
- return this.hasHeaderSlot ? 'header' : 'dontrender';
- },
- footerSlotName: function footerSlotName() {
- return this.hasHeaderSlot ? 'footer' : 'dontrender';
- },
- hasDefaultSlot: function hasDefaultSlot() {
- return !!this.$scopedSlots.default;
- },
- hasEmptySlot: function hasEmptySlot() {
- return !!this.$slots.empty;
- },
- hasHeaderSlot: function hasHeaderSlot() {
- return !!this.$slots.header;
- },
- hasFooterSlot: function hasFooterSlot() {
- return !!this.$slots.footer;
- },
-
-
- /**
- * Show the input field if a maxtags hasn't been set or reached.
- */
- hasInput: function hasInput() {
- return this.maxtags == null || this.tagsLength < this.maxtags;
- },
- tagsLength: function tagsLength() {
- return this.tags.length;
- },
-
-
- /**
- * If Taginput has onPasteSeparators prop,
- * returning new RegExp used to split pasted string.
- */
- separatorsAsRegExp: function separatorsAsRegExp() {
- var sep = this.onPasteSeparators;
-
- return sep.length ? new RegExp(sep.map(function (s) {
- return s ? s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') : null;
- }).join('|'), 'g') : null;
- }
- },
- watch: {
- /**
- * When v-model is changed set internal value.
- */
- value: function value(_value) {
- this.tags = _value;
- },
- hasInput: function hasInput() {
- if (!this.hasInput) this.onBlur();
- }
- },
- methods: {
- addTag: function addTag(tag) {
- var tagToAdd = tag || this.newTag.trim();
-
- if (tagToAdd) {
- if (!this.autocomplete) {
- var reg = this.separatorsAsRegExp;
- if (reg && tagToAdd.match(reg)) {
- tagToAdd.split(reg).map(function (t) {
- return t.trim();
- }).filter(function (t) {
- return t.length !== 0;
- }).map(this.addTag);
- return;
- }
- }
-
- // Add the tag input if it is not blank
- // or previously added (if not allowDuplicates).
- var add = !this.allowDuplicates ? this.tags.indexOf(tagToAdd) === -1 : true;
- if (add && this.beforeAdding(tagToAdd)) {
- this.tags.push(tagToAdd);
- this.$emit('input', this.tags);
- this.$emit('add', tagToAdd);
- }
- }
-
- this.newTag = '';
- },
- getNormalizedTagText: function getNormalizedTagText(tag) {
- if ((typeof tag === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(tag)) === 'object') {
- return Object(__WEBPACK_IMPORTED_MODULE_2__utils_helpers__["a" /* getValueByPath */])(tag, this.field);
- }
-
- return tag;
- },
- customOnBlur: function customOnBlur($event) {
- // Add tag on-blur if not select only
- if (!this.autocomplete) this.addTag();
-
- this.onBlur($event);
- },
- onSelect: function onSelect(option) {
- var _this = this;
-
- if (!option) return;
-
- this.addTag(option);
- this.$nextTick(function () {
- _this.newTag = '';
- });
- },
- removeTag: function removeTag(index) {
- var tag = this.tags.splice(index, 1)[0];
- this.$emit('input', this.tags);
- this.$emit('remove', tag);
- return tag;
- },
- removeLastTag: function removeLastTag() {
- if (this.tagsLength > 0) {
- this.removeTag(this.tagsLength - 1);
- }
- },
- keydown: function keydown(event) {
- if (this.removeOnKeys.indexOf(event.keyCode) !== -1 && !this.newTag.length) {
- this.removeLastTag();
- }
- // Stop if is to accept select only
- if (this.autocomplete && !this.allowNew) return;
-
- if (this.confirmKeyCodes.indexOf(event.keyCode) >= 0) {
- event.preventDefault();
- this.addTag();
- }
- },
- onTyping: function onTyping($event) {
- this.$emit('typing', $event.trim());
- }
- }
- });
-
- /***/ }),
- /* 216 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "taginput control",
- class: _vm.rootClasses
- }, [_c('div', {
- staticClass: "taginput-container",
- class: [_vm.statusType, _vm.size, _vm.containerClasses],
- attrs: {
- "disabled": _vm.disabled
- },
- on: {
- "click": function($event) {
- _vm.hasInput && _vm.focus($event)
- }
- }
- }, [_vm._l((_vm.tags), function(tag, index) {
- return _c('b-tag', {
- key: index,
- attrs: {
- "type": _vm.type,
- "size": _vm.size,
- "rounded": _vm.rounded,
- "attached": _vm.attached,
- "tabstop": false,
- "disabled": _vm.disabled,
- "ellipsis": _vm.ellipsis,
- "closable": _vm.closable,
- "title": _vm.ellipsis && _vm.getNormalizedTagText(tag)
- },
- on: {
- "close": function($event) {
- _vm.removeTag(index)
- }
- }
- }, [_vm._v("\n " + _vm._s(_vm.getNormalizedTagText(tag)) + "\n ")])
- }), _vm._v(" "), (_vm.hasInput) ? _c('b-autocomplete', _vm._b({
- ref: "autocomplete",
- attrs: {
- "data": _vm.data,
- "field": _vm.field,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "maxlength": _vm.maxlength,
- "has-counter": false,
- "size": _vm.size,
- "disabled": _vm.disabled,
- "loading": _vm.loading,
- "autocomplete": _vm.nativeAutocomplete,
- "keep-first": !_vm.allowNew,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "typing": _vm.onTyping,
- "focus": _vm.onFocus,
- "blur": _vm.customOnBlur,
- "select": _vm.onSelect
- },
- nativeOn: {
- "keydown": function($event) {
- _vm.keydown($event)
- }
- },
- scopedSlots: _vm._u([{
- key: _vm.defaultSlotName,
- fn: function(props) {
- return [_vm._t("default", null, {
- option: props.option,
- index: props.index
- })]
- }
- }]),
- model: {
- value: (_vm.newTag),
- callback: function($$v) {
- _vm.newTag = $$v
- },
- expression: "newTag"
- }
- }, 'b-autocomplete', _vm.$attrs, false), [_c('template', {
- slot: _vm.headerSlotName
- }, [_vm._t("header")], 2), _vm._v(" "), _c('template', {
- slot: _vm.emptySlotName
- }, [_vm._t("empty")], 2), _vm._v(" "), _c('template', {
- slot: _vm.footerSlotName
- }, [_vm._t("footer")], 2)], 2) : _vm._e()], 2), _vm._v(" "), (_vm.maxtags || _vm.maxlength) ? _c('p', {
- staticClass: "help counter"
- }, [(_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()])
- },staticRenderFns: []}
-
- /***/ }),
- /* 217 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(218),
- /* template */
- __webpack_require__(219),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 218 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__ = __webpack_require__(62);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__ = __webpack_require__(28);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__dropdown_Dropdown__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__ = __webpack_require__(29);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__dropdown_DropdownItem__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input__ = __webpack_require__(17);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__input_Input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__input_Input__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field__ = __webpack_require__(30);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__field_Field___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__field_Field__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__select_Select__ = __webpack_require__(31);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__select_Select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__select_Select__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__icon_Icon__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__icon_Icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__icon_Icon__);
-
-
- var _components;
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
-
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTimepicker',
- 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),
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_TimepickerMixin__["a" /* default */]],
- inheritAttrs: false,
- data: function data() {
- return {
- _isTimepicker: true
- };
- }
- });
-
- /***/ }),
- /* 219 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: "timepicker control",
- class: [_vm.size, {
- 'is-expanded': _vm.expanded
- }]
- }, [(!_vm.isMobile || _vm.inline) ? _c('b-dropdown', {
- ref: "dropdown",
- attrs: {
- "position": _vm.position,
- "disabled": _vm.disabled,
- "inline": _vm.inline
- }
- }, [(!_vm.inline) ? _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "slot": "trigger",
- "autocomplete": "off",
- "value": _vm.formatValue(_vm.computedValue),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "disabled": _vm.disabled,
- "readonly": !_vm.editable,
- "rounded": _vm.rounded,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "focus": _vm.handleOnFocus,
- "blur": function($event) {
- _vm.onBlur() && _vm.checkHtml5Validity()
- }
- },
- nativeOn: {
- "keyup": function($event) {
- if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key)) { return null; }
- _vm.toggle(true)
- },
- "change": function($event) {
- _vm.onChange($event.target.value)
- }
- },
- slot: "trigger"
- }, 'b-input', _vm.$attrs, false)) : _vm._e(), _vm._v(" "), _c('b-dropdown-item', {
- attrs: {
- "disabled": _vm.disabled,
- "custom": ""
- }
- }, [_c('b-field', {
- attrs: {
- "grouped": "",
- "position": "is-centered"
- }
- }, [_c('b-select', {
- attrs: {
- "disabled": _vm.disabled,
- "placeholder": "00"
- },
- nativeOn: {
- "change": function($event) {
- _vm.onHoursChange($event.target.value)
- }
- },
- model: {
- value: (_vm.hoursSelected),
- callback: function($$v) {
- _vm.hoursSelected = $$v
- },
- expression: "hoursSelected"
- }
- }, _vm._l((_vm.hours), function(hour) {
- return _c('option', {
- key: hour.value,
- attrs: {
- "disabled": _vm.isHourDisabled(hour.value)
- },
- domProps: {
- "value": hour.value
- }
- }, [_vm._v("\n " + _vm._s(hour.label) + "\n ")])
- })), _vm._v(" "), _c('span', {
- staticClass: "control is-colon"
- }, [_vm._v(":")]), _vm._v(" "), _c('b-select', {
- attrs: {
- "disabled": _vm.disabled,
- "placeholder": "00"
- },
- nativeOn: {
- "change": function($event) {
- _vm.onMinutesChange($event.target.value)
- }
- },
- model: {
- value: (_vm.minutesSelected),
- callback: function($$v) {
- _vm.minutesSelected = $$v
- },
- expression: "minutesSelected"
- }
- }, _vm._l((_vm.minutes), function(minute) {
- return _c('option', {
- key: minute.value,
- attrs: {
- "disabled": _vm.isMinuteDisabled(minute.value)
- },
- domProps: {
- "value": minute.value
- }
- }, [_vm._v("\n " + _vm._s(minute.label) + "\n ")])
- })), _vm._v(" "), (_vm.enableSeconds) ? [_c('span', {
- staticClass: "control is-colon"
- }, [_vm._v(":")]), _vm._v(" "), _c('b-select', {
- attrs: {
- "disabled": _vm.disabled,
- "placeholder": "00"
- },
- nativeOn: {
- "change": function($event) {
- _vm.onSecondsChange($event.target.value)
- }
- },
- model: {
- value: (_vm.secondsSelected),
- callback: function($$v) {
- _vm.secondsSelected = $$v
- },
- expression: "secondsSelected"
- }
- }, _vm._l((_vm.seconds), function(second) {
- return _c('option', {
- key: second.value,
- attrs: {
- "disabled": _vm.isSecondDisabled(second.value)
- },
- domProps: {
- "value": second.value
- }
- }, [_vm._v("\n " + _vm._s(second.label) + "\n ")])
- }))] : _vm._e(), _vm._v(" "), (!_vm.isHourFormat24) ? _c('b-select', {
- attrs: {
- "disabled": _vm.disabled
- },
- nativeOn: {
- "change": function($event) {
- _vm.onMeridienChange($event.target.value)
- }
- },
- model: {
- value: (_vm.meridienSelected),
- callback: function($$v) {
- _vm.meridienSelected = $$v
- },
- expression: "meridienSelected"
- }
- }, _vm._l((_vm.meridiens), function(meridien) {
- return _c('option', {
- key: meridien,
- domProps: {
- "value": meridien
- }
- }, [_vm._v("\n " + _vm._s(meridien) + "\n ")])
- })) : _vm._e()], 2), _vm._v(" "), (_vm.$slots.default !== undefined && _vm.$slots.default.length) ? _c('footer', {
- staticClass: "timepicker-footer"
- }, [_vm._t("default")], 2) : _vm._e()], 1)], 1) : _c('b-input', _vm._b({
- ref: "input",
- attrs: {
- "type": "time",
- "autocomplete": "off",
- "value": _vm.formatHHMMSS(_vm.computedValue),
- "placeholder": _vm.placeholder,
- "size": _vm.size,
- "icon": _vm.icon,
- "icon-pack": _vm.iconPack,
- "loading": _vm.loading,
- "max": _vm.formatHHMMSS(_vm.maxTime),
- "min": _vm.formatHHMMSS(_vm.minTime),
- "disabled": _vm.disabled,
- "readonly": false,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "focus": _vm.handleOnFocus,
- "blur": function($event) {
- _vm.onBlur() && _vm.checkHtml5Validity()
- }
- },
- nativeOn: {
- "change": function($event) {
- _vm.onChange($event.target.value)
- }
- }
- }, 'b-input', _vm.$attrs, false))], 1)
- },staticRenderFns: []}
-
- /***/ }),
- /* 220 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(221),
- /* template */
- __webpack_require__(222),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 221 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__ = __webpack_require__(45);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BToast',
- mixins: [__WEBPACK_IMPORTED_MODULE_1__utils_NoticeMixin_js__["a" /* default */]],
- data: function data() {
- return {
- newDuration: this.duration || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultToastDuration
- };
- }
- });
-
- /***/ }),
- /* 222 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('transition', {
- attrs: {
- "enter-active-class": _vm.transition.enter,
- "leave-active-class": _vm.transition.leave
- }
- }, [_c('div', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: (_vm.isActive),
- expression: "isActive"
- }],
- staticClass: "toast",
- class: [_vm.type, _vm.position],
- attrs: {
- "aria-hidden": !_vm.isActive,
- "role": "alert"
- }
- }, [_c('div', {
- domProps: {
- "innerHTML": _vm._s(_vm.message)
- }
- })])])
- },staticRenderFns: []}
-
- /***/ }),
- /* 223 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(224),
- /* template */
- __webpack_require__(225),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 224 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_config__ = __webpack_require__(2);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BTooltip',
- props: {
- active: {
- type: Boolean,
- default: true
- },
- type: String,
- label: String,
- position: {
- type: String,
- default: 'is-top',
- validator: function validator(value) {
- return ['is-top', 'is-bottom', 'is-left', 'is-right'].indexOf(value) > -1;
- }
- },
- always: Boolean,
- animated: Boolean,
- square: Boolean,
- dashed: Boolean,
- multilined: Boolean,
- size: {
- type: String,
- default: 'is-medium'
- }
- },
- computed: {
- newType: function newType() {
- return this.type || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultTooltipType;
- },
- newAnimated: function newAnimated() {
- return this.animated || __WEBPACK_IMPORTED_MODULE_0__utils_config__["a" /* default */].defaultTooltipAnimated;
- }
- }
- });
-
- /***/ }),
- /* 225 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('span', {
- class: [_vm.newType, _vm.position, _vm.size, {
- 'b-tooltip': _vm.active,
- 'is-square': _vm.square,
- 'is-animated': _vm.newAnimated,
- 'is-always': _vm.always,
- 'is-multiline': _vm.multilined,
- 'is-dashed': _vm.dashed
- }],
- attrs: {
- "data-label": _vm.label
- }
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
-
- /***/ }),
- /* 226 */
- /***/ (function(module, exports, __webpack_require__) {
-
- var Component = __webpack_require__(0)(
- /* script */
- __webpack_require__(227),
- /* template */
- __webpack_require__(228),
- /* styles */
- null,
- /* scopeId */
- null,
- /* moduleIdentifier (server only) */
- null
- )
-
- module.exports = Component.exports
-
-
- /***/ }),
- /* 227 */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_FormElementMixin__ = __webpack_require__(10);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_ssr__ = __webpack_require__(64);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
-
-
-
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: 'BUpload',
- mixins: [__WEBPACK_IMPORTED_MODULE_0__utils_FormElementMixin__["a" /* default */]],
- inheritAttrs: false,
- props: {
- value: {
- type: [Object, Function, __WEBPACK_IMPORTED_MODULE_1__utils_ssr__["a" /* File */], Array]
- },
- multiple: Boolean,
- disabled: Boolean,
- accept: String,
- dragDrop: Boolean,
- type: {
- type: String,
- default: 'is-primary'
- },
- native: {
- type: Boolean,
- default: false
- }
- },
- data: function data() {
- return {
- newValue: this.value,
- dragDropFocus: false,
- _elementRef: 'input'
- };
- },
-
- watch: {
- /**
- * When v-model is changed:
- * 1. Set internal value.
- * 2. Reset input value if array is empty
- * 3. If it's invalid, validate again.
- */
- value: function value(_value) {
- this.newValue = _value;
- if (!this.newValue || Array.isArray(this.newValue) && this.newValue.length === 0) {
- this.$refs.input.value = null;
- }
- !this.isValid && !this.dragDrop && this.checkHtml5Validity();
- }
- },
- methods: {
-
- /**
- * Listen change event on input type 'file',
- * emit 'input' event and validate
- */
- onFileChange: function onFileChange(event) {
- if (this.disabled || this.loading) return;
- if (this.dragDrop) {
- this.updateDragDropFocus(false);
- }
- var value = event.target.files || event.dataTransfer.files;
- if (value.length === 0) {
- if (!this.newValue) {
- return;
- }
- this.newValue = null;
- } else if (!this.multiple) {
- // only one element in case drag drop mode and isn't multiple
- if (this.dragDrop && value.length !== 1) return;else {
- var file = value[0];
- if (this.checkType(file)) {
- this.newValue = file;
- } else if (this.newValue) {
- this.newValue = null;
- } else {
- return;
- }
- }
- } else {
- // always new values if native or undefined local
- var newValues = false;
- if (this.native || !this.newValue) {
- this.newValue = [];
- newValues = true;
- }
- for (var i = 0; i < value.length; i++) {
- var _file = value[i];
- if (this.checkType(_file)) {
- this.newValue.push(_file);
- newValues = true;
- }
- }
- if (!newValues) {
- return;
- }
- }
- this.$emit('input', this.newValue);
- !this.dragDrop && this.checkHtml5Validity();
- },
-
-
- /**
- * Listen drag-drop to update internal variable
- */
- updateDragDropFocus: function updateDragDropFocus(focus) {
- if (!this.disabled && !this.loading) {
- this.dragDropFocus = focus;
- }
- },
-
-
- /**
- * Check mime type of file
- */
- checkType: function checkType(file) {
- if (!this.accept) return true;
- var types = this.accept.split(',');
- if (types.length === 0) return true;
- var valid = false;
- for (var i = 0; i < types.length && !valid; i++) {
- var type = types[i].trim();
- if (type) {
- if (type.substring(0, 1) === '.') {
- // check extension
- var extIndex = file.name.lastIndexOf('.');
- var extension = extIndex >= 0 ? file.name.substring(extIndex) : '';
- if (extension.toLowerCase() === type.toLowerCase()) {
- valid = true;
- }
- } else {
- // check mime type
- if (file.type.match(type)) {
- valid = true;
- }
- }
- }
- }
- return valid;
- }
- }
- });
-
- /***/ }),
- /* 228 */
- /***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('label', {
- staticClass: "upload control"
- }, [(!_vm.dragDrop) ? [_vm._t("default")] : _c('div', {
- staticClass: "upload-draggable",
- class: [_vm.type, {
- 'is-loading': _vm.loading,
- 'is-disabled': _vm.disabled,
- 'is-hovered': _vm.dragDropFocus
- }],
- on: {
- "dragover": function($event) {
- $event.preventDefault();
- _vm.updateDragDropFocus(true)
- },
- "dragleave": function($event) {
- $event.preventDefault();
- _vm.updateDragDropFocus(false)
- },
- "dragenter": function($event) {
- $event.preventDefault();
- _vm.updateDragDropFocus(true)
- },
- "drop": function($event) {
- $event.preventDefault();
- _vm.onFileChange($event)
- }
- }
- }, [_vm._t("default")], 2), _vm._v(" "), _c('input', _vm._b({
- ref: "input",
- class: {
- 'file-draggable': _vm.dragDrop
- },
- attrs: {
- "type": "file",
- "multiple": _vm.multiple,
- "accept": _vm.accept,
- "disabled": _vm.disabled,
- "use-html5-validation": _vm.useHtml5Validation
- },
- on: {
- "change": _vm.onFileChange
- }
- }, 'input', _vm.$attrs, false))], 2)
- },staticRenderFns: []}
-
- /***/ })
- /******/ ]);
- });
|