main.js 653 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676
  1. (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
  2. /***/ "./$$_lazy_route_resource lazy recursive":
  3. /*!******************************************************!*\
  4. !*** ./$$_lazy_route_resource lazy namespace object ***!
  5. \******************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports) {
  8. function webpackEmptyAsyncContext(req) {
  9. // Here Promise.resolve().then() is used instead of new Promise() to prevent
  10. // uncaught exception popping up in devtools
  11. return Promise.resolve().then(function() {
  12. var e = new Error("Cannot find module '" + req + "'");
  13. e.code = 'MODULE_NOT_FOUND';
  14. throw e;
  15. });
  16. }
  17. webpackEmptyAsyncContext.keys = function() { return []; };
  18. webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
  19. module.exports = webpackEmptyAsyncContext;
  20. webpackEmptyAsyncContext.id = "./$$_lazy_route_resource lazy recursive";
  21. /***/ }),
  22. /***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
  23. /*!**************************************************!*\
  24. !*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
  25. \**************************************************/
  26. /*! no static exports found */
  27. /***/ (function(module, exports, __webpack_require__) {
  28. var map = {
  29. "./af": "./node_modules/moment/locale/af.js",
  30. "./af.js": "./node_modules/moment/locale/af.js",
  31. "./ar": "./node_modules/moment/locale/ar.js",
  32. "./ar-dz": "./node_modules/moment/locale/ar-dz.js",
  33. "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
  34. "./ar-kw": "./node_modules/moment/locale/ar-kw.js",
  35. "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
  36. "./ar-ly": "./node_modules/moment/locale/ar-ly.js",
  37. "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
  38. "./ar-ma": "./node_modules/moment/locale/ar-ma.js",
  39. "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
  40. "./ar-ps": "./node_modules/moment/locale/ar-ps.js",
  41. "./ar-ps.js": "./node_modules/moment/locale/ar-ps.js",
  42. "./ar-sa": "./node_modules/moment/locale/ar-sa.js",
  43. "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
  44. "./ar-tn": "./node_modules/moment/locale/ar-tn.js",
  45. "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
  46. "./ar.js": "./node_modules/moment/locale/ar.js",
  47. "./az": "./node_modules/moment/locale/az.js",
  48. "./az.js": "./node_modules/moment/locale/az.js",
  49. "./be": "./node_modules/moment/locale/be.js",
  50. "./be.js": "./node_modules/moment/locale/be.js",
  51. "./bg": "./node_modules/moment/locale/bg.js",
  52. "./bg.js": "./node_modules/moment/locale/bg.js",
  53. "./bm": "./node_modules/moment/locale/bm.js",
  54. "./bm.js": "./node_modules/moment/locale/bm.js",
  55. "./bn": "./node_modules/moment/locale/bn.js",
  56. "./bn-bd": "./node_modules/moment/locale/bn-bd.js",
  57. "./bn-bd.js": "./node_modules/moment/locale/bn-bd.js",
  58. "./bn.js": "./node_modules/moment/locale/bn.js",
  59. "./bo": "./node_modules/moment/locale/bo.js",
  60. "./bo.js": "./node_modules/moment/locale/bo.js",
  61. "./br": "./node_modules/moment/locale/br.js",
  62. "./br.js": "./node_modules/moment/locale/br.js",
  63. "./bs": "./node_modules/moment/locale/bs.js",
  64. "./bs.js": "./node_modules/moment/locale/bs.js",
  65. "./ca": "./node_modules/moment/locale/ca.js",
  66. "./ca.js": "./node_modules/moment/locale/ca.js",
  67. "./cs": "./node_modules/moment/locale/cs.js",
  68. "./cs.js": "./node_modules/moment/locale/cs.js",
  69. "./cv": "./node_modules/moment/locale/cv.js",
  70. "./cv.js": "./node_modules/moment/locale/cv.js",
  71. "./cy": "./node_modules/moment/locale/cy.js",
  72. "./cy.js": "./node_modules/moment/locale/cy.js",
  73. "./da": "./node_modules/moment/locale/da.js",
  74. "./da.js": "./node_modules/moment/locale/da.js",
  75. "./de": "./node_modules/moment/locale/de.js",
  76. "./de-at": "./node_modules/moment/locale/de-at.js",
  77. "./de-at.js": "./node_modules/moment/locale/de-at.js",
  78. "./de-ch": "./node_modules/moment/locale/de-ch.js",
  79. "./de-ch.js": "./node_modules/moment/locale/de-ch.js",
  80. "./de.js": "./node_modules/moment/locale/de.js",
  81. "./dv": "./node_modules/moment/locale/dv.js",
  82. "./dv.js": "./node_modules/moment/locale/dv.js",
  83. "./el": "./node_modules/moment/locale/el.js",
  84. "./el.js": "./node_modules/moment/locale/el.js",
  85. "./en-au": "./node_modules/moment/locale/en-au.js",
  86. "./en-au.js": "./node_modules/moment/locale/en-au.js",
  87. "./en-ca": "./node_modules/moment/locale/en-ca.js",
  88. "./en-ca.js": "./node_modules/moment/locale/en-ca.js",
  89. "./en-gb": "./node_modules/moment/locale/en-gb.js",
  90. "./en-gb.js": "./node_modules/moment/locale/en-gb.js",
  91. "./en-ie": "./node_modules/moment/locale/en-ie.js",
  92. "./en-ie.js": "./node_modules/moment/locale/en-ie.js",
  93. "./en-il": "./node_modules/moment/locale/en-il.js",
  94. "./en-il.js": "./node_modules/moment/locale/en-il.js",
  95. "./en-in": "./node_modules/moment/locale/en-in.js",
  96. "./en-in.js": "./node_modules/moment/locale/en-in.js",
  97. "./en-nz": "./node_modules/moment/locale/en-nz.js",
  98. "./en-nz.js": "./node_modules/moment/locale/en-nz.js",
  99. "./en-sg": "./node_modules/moment/locale/en-sg.js",
  100. "./en-sg.js": "./node_modules/moment/locale/en-sg.js",
  101. "./eo": "./node_modules/moment/locale/eo.js",
  102. "./eo.js": "./node_modules/moment/locale/eo.js",
  103. "./es": "./node_modules/moment/locale/es.js",
  104. "./es-do": "./node_modules/moment/locale/es-do.js",
  105. "./es-do.js": "./node_modules/moment/locale/es-do.js",
  106. "./es-mx": "./node_modules/moment/locale/es-mx.js",
  107. "./es-mx.js": "./node_modules/moment/locale/es-mx.js",
  108. "./es-us": "./node_modules/moment/locale/es-us.js",
  109. "./es-us.js": "./node_modules/moment/locale/es-us.js",
  110. "./es.js": "./node_modules/moment/locale/es.js",
  111. "./et": "./node_modules/moment/locale/et.js",
  112. "./et.js": "./node_modules/moment/locale/et.js",
  113. "./eu": "./node_modules/moment/locale/eu.js",
  114. "./eu.js": "./node_modules/moment/locale/eu.js",
  115. "./fa": "./node_modules/moment/locale/fa.js",
  116. "./fa.js": "./node_modules/moment/locale/fa.js",
  117. "./fi": "./node_modules/moment/locale/fi.js",
  118. "./fi.js": "./node_modules/moment/locale/fi.js",
  119. "./fil": "./node_modules/moment/locale/fil.js",
  120. "./fil.js": "./node_modules/moment/locale/fil.js",
  121. "./fo": "./node_modules/moment/locale/fo.js",
  122. "./fo.js": "./node_modules/moment/locale/fo.js",
  123. "./fr": "./node_modules/moment/locale/fr.js",
  124. "./fr-ca": "./node_modules/moment/locale/fr-ca.js",
  125. "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
  126. "./fr-ch": "./node_modules/moment/locale/fr-ch.js",
  127. "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
  128. "./fr.js": "./node_modules/moment/locale/fr.js",
  129. "./fy": "./node_modules/moment/locale/fy.js",
  130. "./fy.js": "./node_modules/moment/locale/fy.js",
  131. "./ga": "./node_modules/moment/locale/ga.js",
  132. "./ga.js": "./node_modules/moment/locale/ga.js",
  133. "./gd": "./node_modules/moment/locale/gd.js",
  134. "./gd.js": "./node_modules/moment/locale/gd.js",
  135. "./gl": "./node_modules/moment/locale/gl.js",
  136. "./gl.js": "./node_modules/moment/locale/gl.js",
  137. "./gom-deva": "./node_modules/moment/locale/gom-deva.js",
  138. "./gom-deva.js": "./node_modules/moment/locale/gom-deva.js",
  139. "./gom-latn": "./node_modules/moment/locale/gom-latn.js",
  140. "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
  141. "./gu": "./node_modules/moment/locale/gu.js",
  142. "./gu.js": "./node_modules/moment/locale/gu.js",
  143. "./he": "./node_modules/moment/locale/he.js",
  144. "./he.js": "./node_modules/moment/locale/he.js",
  145. "./hi": "./node_modules/moment/locale/hi.js",
  146. "./hi.js": "./node_modules/moment/locale/hi.js",
  147. "./hr": "./node_modules/moment/locale/hr.js",
  148. "./hr.js": "./node_modules/moment/locale/hr.js",
  149. "./hu": "./node_modules/moment/locale/hu.js",
  150. "./hu.js": "./node_modules/moment/locale/hu.js",
  151. "./hy-am": "./node_modules/moment/locale/hy-am.js",
  152. "./hy-am.js": "./node_modules/moment/locale/hy-am.js",
  153. "./id": "./node_modules/moment/locale/id.js",
  154. "./id.js": "./node_modules/moment/locale/id.js",
  155. "./is": "./node_modules/moment/locale/is.js",
  156. "./is.js": "./node_modules/moment/locale/is.js",
  157. "./it": "./node_modules/moment/locale/it.js",
  158. "./it-ch": "./node_modules/moment/locale/it-ch.js",
  159. "./it-ch.js": "./node_modules/moment/locale/it-ch.js",
  160. "./it.js": "./node_modules/moment/locale/it.js",
  161. "./ja": "./node_modules/moment/locale/ja.js",
  162. "./ja.js": "./node_modules/moment/locale/ja.js",
  163. "./jv": "./node_modules/moment/locale/jv.js",
  164. "./jv.js": "./node_modules/moment/locale/jv.js",
  165. "./ka": "./node_modules/moment/locale/ka.js",
  166. "./ka.js": "./node_modules/moment/locale/ka.js",
  167. "./kk": "./node_modules/moment/locale/kk.js",
  168. "./kk.js": "./node_modules/moment/locale/kk.js",
  169. "./km": "./node_modules/moment/locale/km.js",
  170. "./km.js": "./node_modules/moment/locale/km.js",
  171. "./kn": "./node_modules/moment/locale/kn.js",
  172. "./kn.js": "./node_modules/moment/locale/kn.js",
  173. "./ko": "./node_modules/moment/locale/ko.js",
  174. "./ko.js": "./node_modules/moment/locale/ko.js",
  175. "./ku": "./node_modules/moment/locale/ku.js",
  176. "./ku-kmr": "./node_modules/moment/locale/ku-kmr.js",
  177. "./ku-kmr.js": "./node_modules/moment/locale/ku-kmr.js",
  178. "./ku.js": "./node_modules/moment/locale/ku.js",
  179. "./ky": "./node_modules/moment/locale/ky.js",
  180. "./ky.js": "./node_modules/moment/locale/ky.js",
  181. "./lb": "./node_modules/moment/locale/lb.js",
  182. "./lb.js": "./node_modules/moment/locale/lb.js",
  183. "./lo": "./node_modules/moment/locale/lo.js",
  184. "./lo.js": "./node_modules/moment/locale/lo.js",
  185. "./lt": "./node_modules/moment/locale/lt.js",
  186. "./lt.js": "./node_modules/moment/locale/lt.js",
  187. "./lv": "./node_modules/moment/locale/lv.js",
  188. "./lv.js": "./node_modules/moment/locale/lv.js",
  189. "./me": "./node_modules/moment/locale/me.js",
  190. "./me.js": "./node_modules/moment/locale/me.js",
  191. "./mi": "./node_modules/moment/locale/mi.js",
  192. "./mi.js": "./node_modules/moment/locale/mi.js",
  193. "./mk": "./node_modules/moment/locale/mk.js",
  194. "./mk.js": "./node_modules/moment/locale/mk.js",
  195. "./ml": "./node_modules/moment/locale/ml.js",
  196. "./ml.js": "./node_modules/moment/locale/ml.js",
  197. "./mn": "./node_modules/moment/locale/mn.js",
  198. "./mn.js": "./node_modules/moment/locale/mn.js",
  199. "./mr": "./node_modules/moment/locale/mr.js",
  200. "./mr.js": "./node_modules/moment/locale/mr.js",
  201. "./ms": "./node_modules/moment/locale/ms.js",
  202. "./ms-my": "./node_modules/moment/locale/ms-my.js",
  203. "./ms-my.js": "./node_modules/moment/locale/ms-my.js",
  204. "./ms.js": "./node_modules/moment/locale/ms.js",
  205. "./mt": "./node_modules/moment/locale/mt.js",
  206. "./mt.js": "./node_modules/moment/locale/mt.js",
  207. "./my": "./node_modules/moment/locale/my.js",
  208. "./my.js": "./node_modules/moment/locale/my.js",
  209. "./nb": "./node_modules/moment/locale/nb.js",
  210. "./nb.js": "./node_modules/moment/locale/nb.js",
  211. "./ne": "./node_modules/moment/locale/ne.js",
  212. "./ne.js": "./node_modules/moment/locale/ne.js",
  213. "./nl": "./node_modules/moment/locale/nl.js",
  214. "./nl-be": "./node_modules/moment/locale/nl-be.js",
  215. "./nl-be.js": "./node_modules/moment/locale/nl-be.js",
  216. "./nl.js": "./node_modules/moment/locale/nl.js",
  217. "./nn": "./node_modules/moment/locale/nn.js",
  218. "./nn.js": "./node_modules/moment/locale/nn.js",
  219. "./oc-lnc": "./node_modules/moment/locale/oc-lnc.js",
  220. "./oc-lnc.js": "./node_modules/moment/locale/oc-lnc.js",
  221. "./pa-in": "./node_modules/moment/locale/pa-in.js",
  222. "./pa-in.js": "./node_modules/moment/locale/pa-in.js",
  223. "./pl": "./node_modules/moment/locale/pl.js",
  224. "./pl.js": "./node_modules/moment/locale/pl.js",
  225. "./pt": "./node_modules/moment/locale/pt.js",
  226. "./pt-br": "./node_modules/moment/locale/pt-br.js",
  227. "./pt-br.js": "./node_modules/moment/locale/pt-br.js",
  228. "./pt.js": "./node_modules/moment/locale/pt.js",
  229. "./ro": "./node_modules/moment/locale/ro.js",
  230. "./ro.js": "./node_modules/moment/locale/ro.js",
  231. "./ru": "./node_modules/moment/locale/ru.js",
  232. "./ru.js": "./node_modules/moment/locale/ru.js",
  233. "./sd": "./node_modules/moment/locale/sd.js",
  234. "./sd.js": "./node_modules/moment/locale/sd.js",
  235. "./se": "./node_modules/moment/locale/se.js",
  236. "./se.js": "./node_modules/moment/locale/se.js",
  237. "./si": "./node_modules/moment/locale/si.js",
  238. "./si.js": "./node_modules/moment/locale/si.js",
  239. "./sk": "./node_modules/moment/locale/sk.js",
  240. "./sk.js": "./node_modules/moment/locale/sk.js",
  241. "./sl": "./node_modules/moment/locale/sl.js",
  242. "./sl.js": "./node_modules/moment/locale/sl.js",
  243. "./sq": "./node_modules/moment/locale/sq.js",
  244. "./sq.js": "./node_modules/moment/locale/sq.js",
  245. "./sr": "./node_modules/moment/locale/sr.js",
  246. "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
  247. "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
  248. "./sr.js": "./node_modules/moment/locale/sr.js",
  249. "./ss": "./node_modules/moment/locale/ss.js",
  250. "./ss.js": "./node_modules/moment/locale/ss.js",
  251. "./sv": "./node_modules/moment/locale/sv.js",
  252. "./sv.js": "./node_modules/moment/locale/sv.js",
  253. "./sw": "./node_modules/moment/locale/sw.js",
  254. "./sw.js": "./node_modules/moment/locale/sw.js",
  255. "./ta": "./node_modules/moment/locale/ta.js",
  256. "./ta.js": "./node_modules/moment/locale/ta.js",
  257. "./te": "./node_modules/moment/locale/te.js",
  258. "./te.js": "./node_modules/moment/locale/te.js",
  259. "./tet": "./node_modules/moment/locale/tet.js",
  260. "./tet.js": "./node_modules/moment/locale/tet.js",
  261. "./tg": "./node_modules/moment/locale/tg.js",
  262. "./tg.js": "./node_modules/moment/locale/tg.js",
  263. "./th": "./node_modules/moment/locale/th.js",
  264. "./th.js": "./node_modules/moment/locale/th.js",
  265. "./tk": "./node_modules/moment/locale/tk.js",
  266. "./tk.js": "./node_modules/moment/locale/tk.js",
  267. "./tl-ph": "./node_modules/moment/locale/tl-ph.js",
  268. "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
  269. "./tlh": "./node_modules/moment/locale/tlh.js",
  270. "./tlh.js": "./node_modules/moment/locale/tlh.js",
  271. "./tr": "./node_modules/moment/locale/tr.js",
  272. "./tr.js": "./node_modules/moment/locale/tr.js",
  273. "./tzl": "./node_modules/moment/locale/tzl.js",
  274. "./tzl.js": "./node_modules/moment/locale/tzl.js",
  275. "./tzm": "./node_modules/moment/locale/tzm.js",
  276. "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
  277. "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
  278. "./tzm.js": "./node_modules/moment/locale/tzm.js",
  279. "./ug-cn": "./node_modules/moment/locale/ug-cn.js",
  280. "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js",
  281. "./uk": "./node_modules/moment/locale/uk.js",
  282. "./uk.js": "./node_modules/moment/locale/uk.js",
  283. "./ur": "./node_modules/moment/locale/ur.js",
  284. "./ur.js": "./node_modules/moment/locale/ur.js",
  285. "./uz": "./node_modules/moment/locale/uz.js",
  286. "./uz-latn": "./node_modules/moment/locale/uz-latn.js",
  287. "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
  288. "./uz.js": "./node_modules/moment/locale/uz.js",
  289. "./vi": "./node_modules/moment/locale/vi.js",
  290. "./vi.js": "./node_modules/moment/locale/vi.js",
  291. "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
  292. "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
  293. "./yo": "./node_modules/moment/locale/yo.js",
  294. "./yo.js": "./node_modules/moment/locale/yo.js",
  295. "./zh-cn": "./node_modules/moment/locale/zh-cn.js",
  296. "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
  297. "./zh-hk": "./node_modules/moment/locale/zh-hk.js",
  298. "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
  299. "./zh-mo": "./node_modules/moment/locale/zh-mo.js",
  300. "./zh-mo.js": "./node_modules/moment/locale/zh-mo.js",
  301. "./zh-tw": "./node_modules/moment/locale/zh-tw.js",
  302. "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
  303. };
  304. function webpackContext(req) {
  305. var id = webpackContextResolve(req);
  306. return __webpack_require__(id);
  307. }
  308. function webpackContextResolve(req) {
  309. if(!__webpack_require__.o(map, req)) {
  310. var e = new Error("Cannot find module '" + req + "'");
  311. e.code = 'MODULE_NOT_FOUND';
  312. throw e;
  313. }
  314. return map[req];
  315. }
  316. webpackContext.keys = function webpackContextKeys() {
  317. return Object.keys(map);
  318. };
  319. webpackContext.resolve = webpackContextResolve;
  320. module.exports = webpackContext;
  321. webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";
  322. /***/ }),
  323. /***/ "./src/app/app-routing.module.ts":
  324. /*!***************************************!*\
  325. !*** ./src/app/app-routing.module.ts ***!
  326. \***************************************/
  327. /*! exports provided: AppRoutingModule */
  328. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  329. "use strict";
  330. __webpack_require__.r(__webpack_exports__);
  331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRoutingModule", function() { return AppRoutingModule; });
  332. /* harmony import */ var _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/login/reset-password/reset-password.component */ "./src/app/components/login/reset-password/reset-password.component.ts");
  333. /* harmony import */ var _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/login/lost-password/lost-password.component */ "./src/app/components/login/lost-password/lost-password.component.ts");
  334. /* harmony import */ var _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/admin/assistance/assistance.component */ "./src/app/components/admin/assistance/assistance.component.ts");
  335. /* harmony import */ var _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/shared/politique-confidentialite/politique-confidentialite.component */ "./src/app/components/shared/politique-confidentialite/politique-confidentialite.component.ts");
  336. /* harmony import */ var _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/shared/mentions-legales/mentions-legales.component */ "./src/app/components/shared/mentions-legales/mentions-legales.component.ts");
  337. /* harmony import */ var _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/shared/cgu/cgu.component */ "./src/app/components/shared/cgu/cgu.component.ts");
  338. /* harmony import */ var _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/admin/emailing/emailing.component */ "./src/app/components/admin/emailing/emailing.component.ts");
  339. /* harmony import */ var _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/admin/statistic/statistic.component */ "./src/app/components/admin/statistic/statistic.component.ts");
  340. /* harmony import */ var _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/auth/profil/profil.component */ "./src/app/components/auth/profil/profil.component.ts");
  341. /* harmony import */ var _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/auth/gain/gain.component */ "./src/app/components/auth/gain/gain.component.ts");
  342. /* harmony import */ var _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/admin/users/users.component */ "./src/app/components/admin/users/users.component.ts");
  343. /* harmony import */ var _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/shared/not-found/not-found.component */ "./src/app/components/shared/not-found/not-found.component.ts");
  344. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  345. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  346. /* harmony import */ var src_app_components_login_login_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/components/login/login.component */ "./src/app/components/login/login.component.ts");
  347. /* harmony import */ var src_app_components_register_register_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/components/register/register.component */ "./src/app/components/register/register.component.ts");
  348. /* harmony import */ var src_app_components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/components/shared/contact/contact.component */ "./src/app/components/shared/contact/contact.component.ts");
  349. /* harmony import */ var _components_home_home_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/home/home.component */ "./src/app/components/home/home.component.ts");
  350. /* harmony import */ var _guards_auth_guard__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./guards/auth.guard */ "./src/app/guards/auth.guard.ts");
  351. /* harmony import */ var _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/admin/admin-login/admin-login.component */ "./src/app/components/admin/admin-login/admin-login.component.ts");
  352. /* harmony import */ var _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/auth/tirage/tirage.component */ "./src/app/components/auth/tirage/tirage.component.ts");
  353. //import { NavbarComponent } from 'src/app/components/shared/navbar/navbar.component';
  354. const routes = [
  355. { path: '', component: _components_home_home_component__WEBPACK_IMPORTED_MODULE_17__["HomeComponent"] },
  356. { path: 'login', component: src_app_components_login_login_component__WEBPACK_IMPORTED_MODULE_14__["LoginComponent"] },
  357. { path: 'login/lost-password', component: _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_1__["LostPasswordComponent"] },
  358. { path: 'login/reset-password/:token', component: _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_0__["ResetPasswordComponent"] },
  359. { path: 'register', component: src_app_components_register_register_component__WEBPACK_IMPORTED_MODULE_15__["RegisterComponent"] },
  360. { path: 'cgu', component: _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_5__["CguComponent"] },
  361. { path: 'mention-legales', component: _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_4__["MentionsLegalesComponent"] },
  362. { path: 'politique-de-confidentialite', component: _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_3__["PolitiqueConfidentialiteComponent"] },
  363. { path: 'admin', component: _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_19__["AdminLoginComponent"] },
  364. { path: 'users', component: _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_10__["UsersComponent"] },
  365. { path: 'statistique', component: _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_7__["StatisticComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_18__["AuthGuard"]], data: { roles: ['admin'] } },
  366. { path: 'emailing', component: _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_6__["EmailingComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_18__["AuthGuard"]], data: { roles: ['admin'] } },
  367. { path: 'assistance', component: _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_2__["AssistanceComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_18__["AuthGuard"]], data: { roles: ['admin'] } },
  368. { path: 'contact', component: src_app_components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_16__["ContactComponent"] },
  369. { path: 'home', component: _components_home_home_component__WEBPACK_IMPORTED_MODULE_17__["HomeComponent"] },
  370. { path: 'auth', component: _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_9__["GainComponent"] },
  371. { path: 'tirage', component: _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_20__["TirageComponent"] },
  372. { path: 'profil', component: _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_8__["ProfilComponent"] },
  373. { path: '**', component: _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_11__["NotFoundComponent"] }
  374. ];
  375. class AppRoutingModule {
  376. }
  377. AppRoutingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineNgModule"]({ type: AppRoutingModule });
  378. AppRoutingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineInjector"]({ factory: function AppRoutingModule_Factory(t) { return new (t || AppRoutingModule)(); }, imports: [[_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"].forRoot(routes, {
  379. initialNavigation: 'enabled'
  380. })],
  381. _angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"]] });
  382. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsetNgModuleScope"](AppRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"]], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"]] }); })();
  383. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵsetClassMetadata"](AppRoutingModule, [{
  384. type: _angular_core__WEBPACK_IMPORTED_MODULE_12__["NgModule"],
  385. args: [{
  386. imports: [_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"].forRoot(routes, {
  387. initialNavigation: 'enabled'
  388. })],
  389. exports: [_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"]]
  390. }]
  391. }], null, null); })();
  392. /***/ }),
  393. /***/ "./src/app/app.component.ts":
  394. /*!**********************************!*\
  395. !*** ./src/app/app.component.ts ***!
  396. \**********************************/
  397. /*! exports provided: AppComponent */
  398. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  399. "use strict";
  400. __webpack_require__.r(__webpack_exports__);
  401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
  402. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  403. /* harmony import */ var _components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/shared/navbar/navbar.component */ "./src/app/components/shared/navbar/navbar.component.ts");
  404. class AppComponent {
  405. constructor() {
  406. this.title = 'fatboar';
  407. }
  408. }
  409. AppComponent.ɵfac = function AppComponent_Factory(t) { return new (t || AppComponent)(); };
  410. AppComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AppComponent, selectors: [["app-root"]], decls: 1, vars: 0, template: function AppComponent_Template(rf, ctx) { if (rf & 1) {
  411. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-navbar");
  412. } }, directives: [_components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_1__["NavbarComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuc2NzcyJ9 */"] });
  413. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AppComponent, [{
  414. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  415. args: [{
  416. selector: 'app-root',
  417. templateUrl: './app.component.html',
  418. styleUrls: ['./app.component.scss']
  419. }]
  420. }], null, null); })();
  421. /***/ }),
  422. /***/ "./src/app/app.module.ts":
  423. /*!*******************************!*\
  424. !*** ./src/app/app.module.ts ***!
  425. \*******************************/
  426. /*! exports provided: AppModule */
  427. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  428. "use strict";
  429. __webpack_require__.r(__webpack_exports__);
  430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
  431. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  432. /* harmony import */ var _angular_common_locales_fr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/locales/fr */ "./node_modules/@angular/common/locales/fr.js");
  433. /* harmony import */ var _angular_common_locales_fr__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_common_locales_fr__WEBPACK_IMPORTED_MODULE_1__);
  434. /* harmony import */ var saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! saturn-datepicker */ "./node_modules/saturn-datepicker/__ivy_ngcc__/fesm2015/saturn-datepicker.js");
  435. /* harmony import */ var _interceptors_jwt_interceptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interceptors/jwt.interceptor */ "./src/app/interceptors/jwt.interceptor.ts");
  436. /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
  437. /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js");
  438. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  439. /* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-routing.module */ "./src/app/app-routing.module.ts");
  440. /* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
  441. /* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/platform-browser/animations */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/animations.js");
  442. /* harmony import */ var _material_material_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./material/material.module */ "./src/app/material/material.module.ts");
  443. /* harmony import */ var _angular_flex_layout__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/flex-layout */ "./node_modules/@angular/flex-layout/__ivy_ngcc__/esm2015/flex-layout.js");
  444. /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  445. /* harmony import */ var ng2_charts__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ng2-charts */ "./node_modules/ng2-charts/__ivy_ngcc__/fesm2015/ng2-charts.js");
  446. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  447. /* harmony import */ var _components_login_login_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/login/login.component */ "./src/app/components/login/login.component.ts");
  448. /* harmony import */ var _components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/shared/navbar/navbar.component */ "./src/app/components/shared/navbar/navbar.component.ts");
  449. /* harmony import */ var _components_shared_footer_footer_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/shared/footer/footer.component */ "./src/app/components/shared/footer/footer.component.ts");
  450. /* harmony import */ var _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/admin/statistic/statistic.component */ "./src/app/components/admin/statistic/statistic.component.ts");
  451. /* harmony import */ var _components_shared_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/shared/alert-message/alert-message.component */ "./src/app/components/shared/alert-message/alert-message.component.ts");
  452. /* harmony import */ var _components_register_register_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/register/register.component */ "./src/app/components/register/register.component.ts");
  453. /* harmony import */ var _components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/shared/contact/contact.component */ "./src/app/components/shared/contact/contact.component.ts");
  454. /* harmony import */ var _components_shared_contact_map_map_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/shared/contact/map/map.component */ "./src/app/components/shared/contact/map/map.component.ts");
  455. /* harmony import */ var _components_shared_contact_formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/shared/contact/formulaire/formulaire.component */ "./src/app/components/shared/contact/formulaire/formulaire.component.ts");
  456. /* harmony import */ var _components_shared_contact_information_information_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/shared/contact/information/information.component */ "./src/app/components/shared/contact/information/information.component.ts");
  457. /* harmony import */ var _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/admin/users/users.component */ "./src/app/components/admin/users/users.component.ts");
  458. /* harmony import */ var _components_admin_users_users_list_users_list_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/admin/users/users-list/users-list.component */ "./src/app/components/admin/users/users-list/users-list.component.ts");
  459. /* harmony import */ var _components_admin_users_users_details_users_details_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/admin/users/users-details/users-details.component */ "./src/app/components/admin/users/users-details/users-details.component.ts");
  460. /* harmony import */ var _components_admin_users_users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/admin/users/users-edit/users-edit.component */ "./src/app/components/admin/users/users-edit/users-edit.component.ts");
  461. /* harmony import */ var _components_admin_users_users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/admin/users/users-delete/users-delete.component */ "./src/app/components/admin/users/users-delete/users-delete.component.ts");
  462. /* harmony import */ var _components_shared_contact_formulaire_confirm_confirm_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/shared/contact/formulaire/confirm/confirm.component */ "./src/app/components/shared/contact/formulaire/confirm/confirm.component.ts");
  463. /* harmony import */ var _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/shared/not-found/not-found.component */ "./src/app/components/shared/not-found/not-found.component.ts");
  464. /* harmony import */ var _components_home_home_component__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/home/home.component */ "./src/app/components/home/home.component.ts");
  465. /* harmony import */ var _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/auth/gain/gain.component */ "./src/app/components/auth/gain/gain.component.ts");
  466. /* harmony import */ var _components_auth_gain_gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/auth/gain/gain-list/gain-list.component */ "./src/app/components/auth/gain/gain-list/gain-list.component.ts");
  467. /* harmony import */ var _components_auth_gain_gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./components/auth/gain/gain-form/gain-form.component */ "./src/app/components/auth/gain/gain-form/gain-form.component.ts");
  468. /* harmony import */ var _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./components/shared/mentions-legales/mentions-legales.component */ "./src/app/components/shared/mentions-legales/mentions-legales.component.ts");
  469. /* harmony import */ var _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./components/shared/politique-confidentialite/politique-confidentialite.component */ "./src/app/components/shared/politique-confidentialite/politique-confidentialite.component.ts");
  470. /* harmony import */ var _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./components/shared/cgu/cgu.component */ "./src/app/components/shared/cgu/cgu.component.ts");
  471. /* harmony import */ var _components_admin_users_users_form_users_form_component__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./components/admin/users/users-form/users-form.component */ "./src/app/components/admin/users/users-form/users-form.component.ts");
  472. /* harmony import */ var _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./components/admin/emailing/emailing.component */ "./src/app/components/admin/emailing/emailing.component.ts");
  473. /* harmony import */ var _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./components/auth/profil/profil.component */ "./src/app/components/auth/profil/profil.component.ts");
  474. /* harmony import */ var _components_admin_emailing_email_form_email_form_component__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./components/admin/emailing/email-form/email-form.component */ "./src/app/components/admin/emailing/email-form/email-form.component.ts");
  475. /* harmony import */ var _components_admin_lots_lots_component__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./components/admin/lots/lots.component */ "./src/app/components/admin/lots/lots.component.ts");
  476. /* harmony import */ var _components_auth_profil_edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component */ "./src/app/components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component.ts");
  477. /* harmony import */ var _components_auth_profil_edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./components/auth/profil/edit-profil-info-user/edit-profil-info-user.component */ "./src/app/components/auth/profil/edit-profil-info-user/edit-profil-info-user.component.ts");
  478. /* harmony import */ var _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./components/admin/assistance/assistance.component */ "./src/app/components/admin/assistance/assistance.component.ts");
  479. /* harmony import */ var _components_admin_assistance_assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./components/admin/assistance/assistance-list/assistance-list.component */ "./src/app/components/admin/assistance/assistance-list/assistance-list.component.ts");
  480. /* harmony import */ var _components_admin_users_users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./components/admin/users/users-bloque/users-bloque.component */ "./src/app/components/admin/users/users-bloque/users-bloque.component.ts");
  481. /* harmony import */ var _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./components/login/lost-password/lost-password.component */ "./src/app/components/login/lost-password/lost-password.component.ts");
  482. /* harmony import */ var _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./components/login/reset-password/reset-password.component */ "./src/app/components/login/reset-password/reset-password.component.ts");
  483. /* harmony import */ var _components_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./components/shared/confirm-message/confirm-message.component */ "./src/app/components/shared/confirm-message/confirm-message.component.ts");
  484. /* harmony import */ var _components_admin_assistance_response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./components/admin/assistance/response-contact/response-contact.component */ "./src/app/components/admin/assistance/response-contact/response-contact.component.ts");
  485. /* harmony import */ var _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./components/admin/admin-login/admin-login.component */ "./src/app/components/admin/admin-login/admin-login.component.ts");
  486. /* harmony import */ var _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./components/auth/tirage/tirage.component */ "./src/app/components/auth/tirage/tirage.component.ts");
  487. // import { FlexLayoutServerModule } from '@angular/flex-layout/server';
  488. //components
  489. Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["registerLocaleData"])(_angular_common_locales_fr__WEBPACK_IMPORTED_MODULE_1___default.a, 'fr');
  490. class AppModule {
  491. }
  492. AppModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineNgModule"]({ type: AppModule, bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_8__["AppComponent"]] });
  493. AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjector"]({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); }, providers: [
  494. { provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_12__["HTTP_INTERCEPTORS"], useClass: _interceptors_jwt_interceptor__WEBPACK_IMPORTED_MODULE_3__["JwtInterceptor"], multi: true },
  495. // { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
  496. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_6__["LOCALE_ID"], useValue: 'fr-FR' },
  497. ], imports: [[
  498. _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__["BrowserModule"].withServerTransition({ appId: 'serverApp' }),
  499. _app_routing_module__WEBPACK_IMPORTED_MODULE_7__["AppRoutingModule"],
  500. _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["BrowserAnimationsModule"],
  501. _angular_common_http__WEBPACK_IMPORTED_MODULE_12__["HttpClientModule"],
  502. _material_material_module__WEBPACK_IMPORTED_MODULE_10__["MaterialModule"],
  503. _angular_flex_layout__WEBPACK_IMPORTED_MODULE_11__["FlexLayoutModule"],
  504. ng2_charts__WEBPACK_IMPORTED_MODULE_13__["ChartsModule"],
  505. _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"],
  506. _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBarModule"],
  507. _angular_forms__WEBPACK_IMPORTED_MODULE_14__["ReactiveFormsModule"],
  508. saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatDatepickerModule"],
  509. // FlexLayoutServerModule,
  510. saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatNativeDateModule"],
  511. ]] });
  512. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsetNgModuleScope"](AppModule, { declarations: [_app_component__WEBPACK_IMPORTED_MODULE_8__["AppComponent"],
  513. _components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_16__["NavbarComponent"],
  514. _components_shared_footer_footer_component__WEBPACK_IMPORTED_MODULE_17__["FooterComponent"],
  515. _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_18__["StatisticComponent"],
  516. _components_login_login_component__WEBPACK_IMPORTED_MODULE_15__["LoginComponent"],
  517. _components_shared_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_19__["AlertMessageComponent"],
  518. _components_register_register_component__WEBPACK_IMPORTED_MODULE_20__["RegisterComponent"],
  519. _components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_21__["ContactComponent"],
  520. _components_shared_contact_map_map_component__WEBPACK_IMPORTED_MODULE_22__["MapComponent"],
  521. _components_shared_contact_formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_23__["FormulaireComponent"],
  522. _components_shared_contact_information_information_component__WEBPACK_IMPORTED_MODULE_24__["InformationComponent"],
  523. _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_25__["UsersComponent"],
  524. _components_admin_users_users_list_users_list_component__WEBPACK_IMPORTED_MODULE_26__["UsersListComponent"],
  525. _components_admin_users_users_details_users_details_component__WEBPACK_IMPORTED_MODULE_27__["UsersDetailsComponent"],
  526. _components_admin_users_users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_28__["UsersEditComponent"],
  527. _components_admin_users_users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_29__["UsersDeleteComponent"],
  528. _components_shared_contact_formulaire_confirm_confirm_component__WEBPACK_IMPORTED_MODULE_30__["ConfirmComponent"],
  529. _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_31__["NotFoundComponent"],
  530. _components_home_home_component__WEBPACK_IMPORTED_MODULE_32__["HomeComponent"],
  531. _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_33__["GainComponent"],
  532. _components_auth_gain_gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_34__["GainListComponent"],
  533. _components_auth_gain_gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_35__["GainFormComponent"],
  534. _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_36__["MentionsLegalesComponent"],
  535. _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_37__["PolitiqueConfidentialiteComponent"],
  536. _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_38__["CguComponent"],
  537. _components_admin_users_users_form_users_form_component__WEBPACK_IMPORTED_MODULE_39__["UsersFormComponent"],
  538. _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_40__["EmailingComponent"],
  539. _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_41__["ProfilComponent"],
  540. _components_admin_emailing_email_form_email_form_component__WEBPACK_IMPORTED_MODULE_42__["EmailFormComponent"],
  541. _components_admin_lots_lots_component__WEBPACK_IMPORTED_MODULE_43__["LotsComponent"],
  542. _components_auth_profil_edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_44__["EditProfilInfoConnexionComponent"],
  543. _components_auth_profil_edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_45__["EditProfilInfoUserComponent"],
  544. _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_46__["AssistanceComponent"],
  545. _components_admin_assistance_assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_47__["AssistanceListComponent"],
  546. _components_admin_assistance_response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_52__["ResponseContactComponent"],
  547. _components_admin_users_users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_48__["UsersBloqueComponent"],
  548. _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_49__["LostPasswordComponent"],
  549. _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_50__["ResetPasswordComponent"],
  550. _components_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_51__["ConfirmMessageComponent"],
  551. _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_53__["AdminLoginComponent"],
  552. _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_54__["TirageComponent"]], imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__["BrowserModule"], _app_routing_module__WEBPACK_IMPORTED_MODULE_7__["AppRoutingModule"],
  553. _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["BrowserAnimationsModule"],
  554. _angular_common_http__WEBPACK_IMPORTED_MODULE_12__["HttpClientModule"],
  555. _material_material_module__WEBPACK_IMPORTED_MODULE_10__["MaterialModule"],
  556. _angular_flex_layout__WEBPACK_IMPORTED_MODULE_11__["FlexLayoutModule"],
  557. ng2_charts__WEBPACK_IMPORTED_MODULE_13__["ChartsModule"],
  558. _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"],
  559. _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBarModule"],
  560. _angular_forms__WEBPACK_IMPORTED_MODULE_14__["ReactiveFormsModule"],
  561. saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatDatepickerModule"],
  562. // FlexLayoutServerModule,
  563. saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatNativeDateModule"]] }); })();
  564. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵsetClassMetadata"](AppModule, [{
  565. type: _angular_core__WEBPACK_IMPORTED_MODULE_6__["NgModule"],
  566. args: [{
  567. declarations: [
  568. _app_component__WEBPACK_IMPORTED_MODULE_8__["AppComponent"],
  569. _components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_16__["NavbarComponent"],
  570. _components_shared_footer_footer_component__WEBPACK_IMPORTED_MODULE_17__["FooterComponent"],
  571. _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_18__["StatisticComponent"],
  572. _components_login_login_component__WEBPACK_IMPORTED_MODULE_15__["LoginComponent"],
  573. _components_shared_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_19__["AlertMessageComponent"],
  574. _components_register_register_component__WEBPACK_IMPORTED_MODULE_20__["RegisterComponent"],
  575. _components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_21__["ContactComponent"],
  576. _components_shared_contact_map_map_component__WEBPACK_IMPORTED_MODULE_22__["MapComponent"],
  577. _components_shared_contact_formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_23__["FormulaireComponent"],
  578. _components_shared_contact_information_information_component__WEBPACK_IMPORTED_MODULE_24__["InformationComponent"],
  579. _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_25__["UsersComponent"],
  580. _components_admin_users_users_list_users_list_component__WEBPACK_IMPORTED_MODULE_26__["UsersListComponent"],
  581. _components_admin_users_users_details_users_details_component__WEBPACK_IMPORTED_MODULE_27__["UsersDetailsComponent"],
  582. _components_admin_users_users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_28__["UsersEditComponent"],
  583. _components_admin_users_users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_29__["UsersDeleteComponent"],
  584. _components_shared_contact_formulaire_confirm_confirm_component__WEBPACK_IMPORTED_MODULE_30__["ConfirmComponent"],
  585. _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_31__["NotFoundComponent"],
  586. _components_home_home_component__WEBPACK_IMPORTED_MODULE_32__["HomeComponent"],
  587. _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_33__["GainComponent"],
  588. _components_auth_gain_gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_34__["GainListComponent"],
  589. _components_auth_gain_gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_35__["GainFormComponent"],
  590. _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_36__["MentionsLegalesComponent"],
  591. _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_37__["PolitiqueConfidentialiteComponent"],
  592. _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_38__["CguComponent"],
  593. _components_admin_users_users_form_users_form_component__WEBPACK_IMPORTED_MODULE_39__["UsersFormComponent"],
  594. _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_40__["EmailingComponent"],
  595. _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_41__["ProfilComponent"],
  596. _components_admin_emailing_email_form_email_form_component__WEBPACK_IMPORTED_MODULE_42__["EmailFormComponent"],
  597. _components_admin_lots_lots_component__WEBPACK_IMPORTED_MODULE_43__["LotsComponent"],
  598. _components_auth_profil_edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_44__["EditProfilInfoConnexionComponent"],
  599. _components_auth_profil_edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_45__["EditProfilInfoUserComponent"],
  600. _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_46__["AssistanceComponent"],
  601. _components_admin_assistance_assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_47__["AssistanceListComponent"],
  602. _components_admin_assistance_response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_52__["ResponseContactComponent"],
  603. _components_admin_users_users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_48__["UsersBloqueComponent"],
  604. _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_49__["LostPasswordComponent"],
  605. _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_50__["ResetPasswordComponent"],
  606. _components_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_51__["ConfirmMessageComponent"],
  607. _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_53__["AdminLoginComponent"],
  608. _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_54__["TirageComponent"],
  609. ],
  610. imports: [
  611. _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__["BrowserModule"].withServerTransition({ appId: 'serverApp' }),
  612. _app_routing_module__WEBPACK_IMPORTED_MODULE_7__["AppRoutingModule"],
  613. _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["BrowserAnimationsModule"],
  614. _angular_common_http__WEBPACK_IMPORTED_MODULE_12__["HttpClientModule"],
  615. _material_material_module__WEBPACK_IMPORTED_MODULE_10__["MaterialModule"],
  616. _angular_flex_layout__WEBPACK_IMPORTED_MODULE_11__["FlexLayoutModule"],
  617. ng2_charts__WEBPACK_IMPORTED_MODULE_13__["ChartsModule"],
  618. _angular_forms__WEBPACK_IMPORTED_MODULE_14__["FormsModule"],
  619. _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBarModule"],
  620. _angular_forms__WEBPACK_IMPORTED_MODULE_14__["ReactiveFormsModule"],
  621. saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatDatepickerModule"],
  622. // FlexLayoutServerModule,
  623. saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatNativeDateModule"],
  624. ],
  625. providers: [
  626. { provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_12__["HTTP_INTERCEPTORS"], useClass: _interceptors_jwt_interceptor__WEBPACK_IMPORTED_MODULE_3__["JwtInterceptor"], multi: true },
  627. // { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
  628. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_6__["LOCALE_ID"], useValue: 'fr-FR' },
  629. ],
  630. bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_8__["AppComponent"]]
  631. }]
  632. }], null, null); })();
  633. /***/ }),
  634. /***/ "./src/app/components/admin/admin-login/admin-login.component.ts":
  635. /*!***********************************************************************!*\
  636. !*** ./src/app/components/admin/admin-login/admin-login.component.ts ***!
  637. \***********************************************************************/
  638. /*! exports provided: AdminLoginComponent */
  639. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  640. "use strict";
  641. __webpack_require__.r(__webpack_exports__);
  642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminLoginComponent", function() { return AdminLoginComponent; });
  643. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  644. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  645. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  646. /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js");
  647. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  648. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  649. /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
  650. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  651. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  652. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  653. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  654. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  655. /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js");
  656. function AdminLoginComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) {
  657. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-progress-bar", 13);
  658. } }
  659. function AdminLoginComponent_mat_error_12_Template(rf, ctx) { if (rf & 1) {
  660. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  661. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  662. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  663. } if (rf & 2) {
  664. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  665. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  666. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorEmail(), " ");
  667. } }
  668. function AdminLoginComponent_mat_error_18_Template(rf, ctx) { if (rf & 1) {
  669. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  670. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  671. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  672. } if (rf & 2) {
  673. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  674. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  675. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorPassword(), " ");
  676. } }
  677. class AdminLoginComponent {
  678. constructor(router, snackBar, authService, formBuilder, matIconRegistry, domSanitizer) {
  679. this.router = router;
  680. this.snackBar = snackBar;
  681. this.authService = authService;
  682. this.formBuilder = formBuilder;
  683. this.matIconRegistry = matIconRegistry;
  684. this.domSanitizer = domSanitizer;
  685. this.submitted = false;
  686. this.loading = false;
  687. this.hide = true;
  688. }
  689. ngOnInit() {
  690. this.createForm();
  691. }
  692. createForm() {
  693. let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  694. this.formGroup = this.formBuilder.group({
  695. email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(emailregex)]],
  696. password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, this.checkPassword]],
  697. });
  698. }
  699. checkPassword(control) {
  700. let enteredPassword = control.value;
  701. let passwordCheck = /^(?=.*[a-z])(?=.{6,})/;
  702. return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null;
  703. }
  704. getErrorEmail() {
  705. return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' :
  706. this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : '';
  707. }
  708. getErrorPassword() {
  709. return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' :
  710. this.formGroup.get('password').hasError('requirements') ?
  711. 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule' : '';
  712. }
  713. get f() { return this.formGroup.controls; }
  714. // login
  715. signIn() {
  716. this.submitted = true;
  717. if (this.formGroup.invalid) {
  718. return;
  719. }
  720. this.loading = true;
  721. this.authService.signInAdmin(this.formGroup.value).subscribe(data => {
  722. // this.router.navigate([this.returnUrl]);
  723. console.log(data);
  724. this.loading = false;
  725. this.router.navigate(['/tirage']);
  726. setTimeout(() => {
  727. document.location.reload();
  728. }, 800);
  729. }, err => {
  730. this.loading = false;
  731. console.log(err.error.message);
  732. this.authService.openSnackBar(err.error.message);
  733. });
  734. // this.router.navigate(['/']);
  735. }
  736. }
  737. AdminLoginComponent.ɵfac = function AdminLoginComponent_Factory(t) { return new (t || AdminLoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__["MatSnackBar"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"])); };
  738. AdminLoginComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AdminLoginComponent, selectors: [["app-admin-login"]], decls: 25, vars: 6, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-11", "col-lg-5", 2, "border-radius", "10px"], ["class", "col-12", "mode", "indeterminate", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "col-10"], ["matInput", "", "placeholder", "Adresse email", "formControlName", "email", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "Mot de passe", "formControlName", "password", "required", "", 3, "type"], ["matSuffix", "", 3, "click"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", "color-theme"], ["routerLink", "/login/lost-password"], ["mode", "indeterminate", 1, "col-12"]], template: function AdminLoginComponent_Template(rf, ctx) { if (rf & 1) {
  739. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  740. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  741. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-card", 2);
  742. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AdminLoginComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 3);
  743. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "mat-card-content");
  744. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form", 4);
  745. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function AdminLoginComponent_Template_form_ngSubmit_5_listener() { return ctx.signIn(); });
  746. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h1", 1);
  747. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "b");
  748. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Connexion");
  749. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  750. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  751. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 1);
  752. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "mat-form-field", 5);
  753. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 6);
  754. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, AdminLoginComponent_mat_error_12_Template, 2, 1, "mat-error", 7);
  755. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  756. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  757. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 1);
  758. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "mat-form-field", 5);
  759. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "input", 8);
  760. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "mat-icon", 9);
  761. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AdminLoginComponent_Template_mat_icon_click_16_listener() { return ctx.hide = !ctx.hide; });
  762. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
  763. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  764. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, AdminLoginComponent_mat_error_18_Template, 2, 1, "mat-error", 7);
  765. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  766. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  767. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 10);
  768. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "button", 11);
  769. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Se connecter");
  770. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  771. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  772. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "p", 10);
  773. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "a", 12);
  774. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Mot de passe oubli\u00E9 ?");
  775. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  776. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  777. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  778. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  779. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  780. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  781. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  782. } if (rf & 2) {
  783. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  784. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loading);
  785. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  786. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup);
  787. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
  788. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid && ctx.formGroup.controls["email"].touched);
  789. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  790. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx.hide ? "password" : "text");
  791. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  792. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.hide ? "visibility_off" : "visibility");
  793. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  794. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid && ctx.formGroup.controls["password"].touched);
  795. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCard"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_10__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIcon"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatSuffix"], _angular_material_button__WEBPACK_IMPORTED_MODULE_11__["MatButton"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterLinkWithHref"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 10em;\n margin-bottom: 3em;\n}\n\n.facebooklogin[_ngcontent-%COMP%] {\n margin-bottom: -0.5em !important;\n}\n\n.googlelogin[_ngcontent-%COMP%] {\n margin-bottom: -0.5em !important;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hZG1pbi1sb2dpbi9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhZG1pblxcYWRtaW4tbG9naW5cXGFkbWluLWxvZ2luLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL2FkbWluLWxvZ2luL2FkbWluLWxvZ2luLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZ0JBQUE7RUFDQSxrQkFBQTtBQ0NKOztBREVFO0VBQ0UsZ0NBQUE7QUNDSjs7QURDRTtFQUNFLGdDQUFBO0FDRUo7O0FEQUU7RUFDRSw2QkFBQTtBQ0dKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hZG1pbi1sb2dpbi9hZG1pbi1sb2dpbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiAxMGVtO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogM2VtO1xyXG4gIH1cclxuIFxyXG4gIC5mYWNlYm9va2xvZ2lue1xyXG4gICAgbWFyZ2luLWJvdHRvbTogLTAuNWVtICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG4gIC5nb29nbGVsb2dpbntcclxuICAgIG1hcmdpbi1ib3R0b206IC0wLjVlbSAhaW1wb3J0YW50O1xyXG4gIH1cclxuICAubWFyZ2luQnV0dG9ue1xyXG4gICAgbWFyZ2luLWJvdHRvbTogMGVtICFpbXBvcnRhbnQ7XHJcbiAgfSIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiAxMGVtO1xuICBtYXJnaW4tYm90dG9tOiAzZW07XG59XG5cbi5mYWNlYm9va2xvZ2luIHtcbiAgbWFyZ2luLWJvdHRvbTogLTAuNWVtICFpbXBvcnRhbnQ7XG59XG5cbi5nb29nbGVsb2dpbiB7XG4gIG1hcmdpbi1ib3R0b206IC0wLjVlbSAhaW1wb3J0YW50O1xufVxuXG4ubWFyZ2luQnV0dG9uIHtcbiAgbWFyZ2luLWJvdHRvbTogMGVtICFpbXBvcnRhbnQ7XG59Il19 */"] });
  796. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AdminLoginComponent, [{
  797. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  798. args: [{
  799. selector: 'app-admin-login',
  800. templateUrl: './admin-login.component.html',
  801. styleUrls: ['./admin-login.component.scss']
  802. }]
  803. }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__["MatSnackBar"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"] }]; }, null); })();
  804. /***/ }),
  805. /***/ "./src/app/components/admin/assistance/assistance-list/assistance-list.component.ts":
  806. /*!******************************************************************************************!*\
  807. !*** ./src/app/components/admin/assistance/assistance-list/assistance-list.component.ts ***!
  808. \******************************************************************************************/
  809. /*! exports provided: AssistanceListComponent */
  810. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  811. "use strict";
  812. __webpack_require__.r(__webpack_exports__);
  813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AssistanceListComponent", function() { return AssistanceListComponent; });
  814. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  815. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  816. /* harmony import */ var _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/expansion */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/expansion.js");
  817. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  818. function AssistanceListComponent_div_0_div_11_Template(rf, ctx) { if (rf & 1) {
  819. const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  820. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 5);
  821. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 6);
  822. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssistanceListComponent_div_0_div_11_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r3.responseMessage(item_r1); });
  823. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "R\u00E9pondre");
  824. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  825. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 7);
  826. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssistanceListComponent_div_0_div_11_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.closeMessage(item_r1); });
  827. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Supprimer");
  828. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  829. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  830. } }
  831. function AssistanceListComponent_div_0_Template(rf, ctx) { if (rf & 1) {
  832. const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  833. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
  834. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-accordion", 1);
  835. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-expansion-panel", 2);
  836. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("opened", function AssistanceListComponent_div_0_Template_mat_expansion_panel_opened_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.panelOpenState = true; })("closed", function AssistanceListComponent_div_0_Template_mat_expansion_panel_closed_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r10.panelOpenState = false; });
  837. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "mat-expansion-panel-header");
  838. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "mat-panel-title");
  839. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
  840. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  841. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "mat-panel-description");
  842. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
  843. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
  844. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  845. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  846. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "p", 3);
  847. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
  848. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  849. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, AssistanceListComponent_div_0_div_11_Template, 5, 0, "div", 4);
  850. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  851. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  852. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  853. } if (rf & 2) {
  854. const item_r1 = ctx.$implicit;
  855. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
  856. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r1.email, " ");
  857. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  858. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 4, item_r1.created_date, "short"), " ");
  859. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  860. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r1.message);
  861. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  862. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r1.is_closed === false);
  863. } }
  864. class AssistanceListComponent {
  865. constructor() {
  866. this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  867. this.close = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  868. this.panelOpenState = false;
  869. }
  870. responseMessage(event) {
  871. this.response.emit(event);
  872. }
  873. closeMessage(event) {
  874. this.close.emit(event);
  875. }
  876. ngOnInit() {
  877. }
  878. }
  879. AssistanceListComponent.ɵfac = function AssistanceListComponent_Factory(t) { return new (t || AssistanceListComponent)(); };
  880. AssistanceListComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AssistanceListComponent, selectors: [["app-assistance-list"]], inputs: { listOpenMessage: "listOpenMessage" }, outputs: { response: "response", close: "close" }, decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"], [1, ""], [1, "mb-3", 3, "opened", "closed"], [1, "text-center", "font-weight-bold"], ["class", "row justify-content-center mt-2", 4, "ngIf"], [1, "row", "justify-content-center", "mt-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function AssistanceListComponent_Template(rf, ctx) { if (rf & 1) {
  881. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, AssistanceListComponent_div_0_Template, 12, 7, "div", 0);
  882. } if (rf & 2) {
  883. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.listOpenMessage);
  884. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatAccordion"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanel"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelHeader"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelTitle"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelDescription"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_3__["MatButton"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DatePipe"]], styles: [".mat-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%] {\n margin-left: 8px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hc3Npc3RhbmNlL2Fzc2lzdGFuY2UtbGlzdC9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhZG1pblxcYXNzaXN0YW5jZVxcYXNzaXN0YW5jZS1saXN0XFxhc3Npc3RhbmNlLWxpc3QuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vYXNzaXN0YW5jZS9hc3Npc3RhbmNlLWxpc3QvYXNzaXN0YW5jZS1saXN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZ0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vYXNzaXN0YW5jZS9hc3Npc3RhbmNlLWxpc3QvYXNzaXN0YW5jZS1saXN0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm1hdC1mb3JtLWZpZWxkICsgLm1hdC1mb3JtLWZpZWxkIHtcclxuICAgIG1hcmdpbi1sZWZ0OiA4cHg7XHJcbiAgfSIsIi5tYXQtZm9ybS1maWVsZCArIC5tYXQtZm9ybS1maWVsZCB7XG4gIG1hcmdpbi1sZWZ0OiA4cHg7XG59Il19 */"] });
  885. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AssistanceListComponent, [{
  886. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  887. args: [{
  888. selector: 'app-assistance-list',
  889. templateUrl: './assistance-list.component.html',
  890. styleUrls: ['./assistance-list.component.scss']
  891. }]
  892. }], function () { return []; }, { listOpenMessage: [{
  893. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  894. }], response: [{
  895. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  896. }], close: [{
  897. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  898. }] }); })();
  899. /***/ }),
  900. /***/ "./src/app/components/admin/assistance/assistance.component.ts":
  901. /*!*********************************************************************!*\
  902. !*** ./src/app/components/admin/assistance/assistance.component.ts ***!
  903. \*********************************************************************/
  904. /*! exports provided: AssistanceComponent */
  905. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  906. "use strict";
  907. __webpack_require__.r(__webpack_exports__);
  908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AssistanceComponent", function() { return AssistanceComponent; });
  909. /* harmony import */ var _response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./response-contact/response-contact.component */ "./src/app/components/admin/assistance/response-contact/response-contact.component.ts");
  910. /* harmony import */ var _shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../shared/confirm-message/confirm-message.component */ "./src/app/components/shared/confirm-message/confirm-message.component.ts");
  911. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  912. /* harmony import */ var src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/contact.service */ "./src/app/services/contact.service.ts");
  913. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  914. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  915. /* harmony import */ var _assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./assistance-list/assistance-list.component */ "./src/app/components/admin/assistance/assistance-list/assistance-list.component.ts");
  916. class AssistanceComponent {
  917. constructor(contactService, dialog) {
  918. this.contactService = contactService;
  919. this.dialog = dialog;
  920. }
  921. ngOnInit() {
  922. this.subscribeToGetOpenMessage();
  923. }
  924. //sbscribe statistic
  925. subscribeToGetOpenMessage() {
  926. this.contactService.getOpenMessage().subscribe((res) => {
  927. this.listOpenMessage = res;
  928. console.log(JSON.stringify(this.listOpenMessage));
  929. });
  930. }
  931. subscribeToGetCloseMessage() {
  932. this.contactService.getColseMessage().subscribe((res) => {
  933. this.listOpenMessage = res;
  934. console.log(JSON.stringify(this.listOpenMessage));
  935. });
  936. }
  937. responseMessage($event) {
  938. this.openResponseContact($event);
  939. console.log($event);
  940. }
  941. closeMessage($event) {
  942. this.openDialog($event);
  943. console.log(JSON.stringify($event));
  944. ;
  945. }
  946. openResponseContact(event) {
  947. const dialogRef = this.dialog.open(_response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_0__["ResponseContactComponent"], {
  948. width: '48%',
  949. data: event
  950. });
  951. dialogRef.afterClosed().subscribe(() => {
  952. // this.contactService.closeContact()
  953. });
  954. }
  955. openDialog(event) {
  956. const dialogRef = this.dialog.open(_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_1__["ConfirmMessageComponent"], {
  957. width: '38%',
  958. data: {
  959. response: event
  960. }
  961. });
  962. dialogRef.afterClosed().subscribe(() => {
  963. // this.contactService.closeContact()
  964. });
  965. }
  966. }
  967. AssistanceComponent.ɵfac = function AssistanceComponent_Factory(t) { return new (t || AssistanceComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialog"])); };
  968. AssistanceComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: AssistanceComponent, selectors: [["app-assistance"]], decls: 7, vars: 1, consts: [[1, "container", "navtop", "assistance"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "my-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "color", "primary", 1, "btn", "ml-2", 3, "click"], [3, "listOpenMessage", "response", "close"]], template: function AssistanceComponent_Template(rf, ctx) { if (rf & 1) {
  969. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
  970. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
  971. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "button", 2);
  972. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AssistanceComponent_Template_button_click_2_listener() { return ctx.subscribeToGetOpenMessage(); });
  973. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Nouveaux Messages");
  974. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  975. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "button", 3);
  976. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AssistanceComponent_Template_button_click_4_listener() { return ctx.subscribeToGetCloseMessage(); });
  977. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Messages ferm\u00E9s");
  978. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  979. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  980. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "app-assistance-list", 4);
  981. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("response", function AssistanceComponent_Template_app_assistance_list_response_6_listener($event) { return ctx.responseMessage($event); })("close", function AssistanceComponent_Template_app_assistance_list_close_6_listener($event) { return ctx.closeMessage($event); });
  982. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  983. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  984. } if (rf & 2) {
  985. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
  986. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("listOpenMessage", ctx.listOpenMessage);
  987. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_5__["MatButton"], _assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_6__["AssistanceListComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 14em;\n margin-bottom: 4em;\n min-height: 250px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hc3Npc3RhbmNlL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGFkbWluXFxhc3Npc3RhbmNlXFxhc3Npc3RhbmNlLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL2Fzc2lzdGFuY2UvYXNzaXN0YW5jZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxpQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hc3Npc3RhbmNlL2Fzc2lzdGFuY2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogMTRlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDRlbTtcclxuICAgIG1pbi1oZWlnaHQ6IDI1MHB4O1xyXG4gIH1cclxuIiwiLm5hdnRvcCB7XG4gIG1hcmdpbi10b3A6IDE0ZW07XG4gIG1hcmdpbi1ib3R0b206IDRlbTtcbiAgbWluLWhlaWdodDogMjUwcHg7XG59Il19 */"] });
  988. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](AssistanceComponent, [{
  989. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
  990. args: [{
  991. selector: 'app-assistance',
  992. templateUrl: './assistance.component.html',
  993. styleUrls: ['./assistance.component.scss']
  994. }]
  995. }], function () { return [{ type: src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialog"] }]; }, null); })();
  996. /***/ }),
  997. /***/ "./src/app/components/admin/assistance/response-contact/response-contact.component.ts":
  998. /*!********************************************************************************************!*\
  999. !*** ./src/app/components/admin/assistance/response-contact/response-contact.component.ts ***!
  1000. \********************************************************************************************/
  1001. /*! exports provided: ResponseContactComponent */
  1002. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1003. "use strict";
  1004. __webpack_require__.r(__webpack_exports__);
  1005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponseContactComponent", function() { return ResponseContactComponent; });
  1006. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  1007. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  1008. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  1009. /* harmony import */ var src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/contact.service */ "./src/app/services/contact.service.ts");
  1010. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  1011. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  1012. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  1013. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  1014. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  1015. function ResponseContactComponent_mat_error_12_Template(rf, ctx) { if (rf & 1) {
  1016. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error");
  1017. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
  1018. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1019. } if (rf & 2) {
  1020. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
  1021. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  1022. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r0.getErrorMessage(), " ");
  1023. } }
  1024. class ResponseContactComponent {
  1025. constructor(element, dialogRef, formBuilder, contactService, router) {
  1026. this.element = element;
  1027. this.dialogRef = dialogRef;
  1028. this.formBuilder = formBuilder;
  1029. this.contactService = contactService;
  1030. this.router = router;
  1031. this.submitted = false;
  1032. }
  1033. ngOnInit() {
  1034. this.createForm();
  1035. }
  1036. createForm() {
  1037. this.formGroup = this.formBuilder.group({
  1038. text: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required],
  1039. });
  1040. }
  1041. sendResponse() {
  1042. this.submitted = true;
  1043. if (this.formGroup.invalid) {
  1044. return;
  1045. }
  1046. console.log(this.formGroup.value);
  1047. this.contactService.responseContact(this.element._id, this.formGroup.value).subscribe(data => {
  1048. // this.router.navigate([this.returnUrl]);
  1049. console.log(data);
  1050. this.router.navigate(['/assistance']);
  1051. // this.loading = false;
  1052. // this.router.navigate(['auth']);
  1053. }, err => {
  1054. // this.loading = false;
  1055. // console.log(err.error.message)
  1056. // this.authService.openSnackBar(err.error.message)
  1057. });
  1058. }
  1059. getErrorMessage() {
  1060. return this.formGroup.get('text').hasError('required') ? 'Message requis' : '';
  1061. }
  1062. onConfirm() {
  1063. // Close the dialog, return true
  1064. this.dialogRef.close(true);
  1065. }
  1066. onNoClick() {
  1067. this.dialogRef.close(false);
  1068. }
  1069. }
  1070. ResponseContactComponent.ɵfac = function ResponseContactComponent_Factory(t) { return new (t || ResponseContactComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"])); };
  1071. ResponseContactComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ResponseContactComponent, selectors: [["app-response-contact"]], decls: 18, vars: 3, consts: [["mat-dialog-title", "", 1, "text-center"], [1, ""], [1, "font-weight-bold"], [3, "formGroup"], ["mat-dialog-content", "", 1, ""], [1, "row"], [1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["appearance", "outline", 1, "col-7", "col-md-5"], ["rows", "7", "matInput", "", "formControlName", "text"], [4, "ngIf"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function ResponseContactComponent_Template(rf, ctx) { if (rf & 1) {
  1072. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h3", 0);
  1073. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 1);
  1074. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "R\u00E9pondre \u00E0 ");
  1075. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1076. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 2);
  1077. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
  1078. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1079. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1080. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "form", 3);
  1081. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 4);
  1082. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 5);
  1083. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "p", 6);
  1084. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Message :");
  1085. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1086. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "mat-form-field", 7);
  1087. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "textarea", 8);
  1088. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, ResponseContactComponent_mat_error_12_Template, 2, 1, "mat-error", 9);
  1089. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1090. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1091. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1092. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 10);
  1093. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "button", 11);
  1094. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ResponseContactComponent_Template_button_click_14_listener() { return ctx.sendResponse(); });
  1095. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "R\u00E9pondre");
  1096. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1097. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 12);
  1098. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ResponseContactComponent_Template_button_click_16_listener() { return ctx.onNoClick(); });
  1099. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Annuler");
  1100. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1101. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1102. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  1103. } if (rf & 2) {
  1104. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
  1105. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.element.email);
  1106. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  1107. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup);
  1108. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
  1109. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["text"].valid || ctx.formGroup.controls["text"].touched);
  1110. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_6__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_8__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatError"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vYXNzaXN0YW5jZS9yZXNwb25zZS1jb250YWN0L3Jlc3BvbnNlLWNvbnRhY3QuY29tcG9uZW50LnNjc3MifQ== */"] });
  1111. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](ResponseContactComponent, [{
  1112. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
  1113. args: [{
  1114. selector: 'app-response-contact',
  1115. templateUrl: './response-contact.component.html',
  1116. styleUrls: ['./response-contact.component.scss']
  1117. }]
  1118. }], function () { return [{ type: undefined, decorators: [{
  1119. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
  1120. args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]]
  1121. }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }, { type: src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] }]; }, null); })();
  1122. /***/ }),
  1123. /***/ "./src/app/components/admin/emailing/email-form/email-form.component.ts":
  1124. /*!******************************************************************************!*\
  1125. !*** ./src/app/components/admin/emailing/email-form/email-form.component.ts ***!
  1126. \******************************************************************************/
  1127. /*! exports provided: EmailFormComponent */
  1128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1129. "use strict";
  1130. __webpack_require__.r(__webpack_exports__);
  1131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailFormComponent", function() { return EmailFormComponent; });
  1132. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  1133. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  1134. /* harmony import */ var _services_email_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../services/email.service */ "./src/app/services/email.service.ts");
  1135. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  1136. /* harmony import */ var _angular_material_radio__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/radio */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/radio.js");
  1137. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  1138. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  1139. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  1140. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  1141. function EmailFormComponent_mat_radio_button_7_Template(rf, ctx) { if (rf & 1) {
  1142. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-radio-button", 22);
  1143. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1144. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1145. } if (rf & 2) {
  1146. const option_r6 = ctx.$implicit;
  1147. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", option_r6.value);
  1148. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", option_r6.checked);
  1149. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1150. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", option_r6.label, " ");
  1151. } }
  1152. function EmailFormComponent_div_8_mat_error_6_Template(rf, ctx) { if (rf & 1) {
  1153. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error", 28);
  1154. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Adresse email Invalide ");
  1155. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1156. } if (rf & 2) {
  1157. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1158. const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5);
  1159. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !(_r7.errors == null ? null : _r7.errors.pattern));
  1160. } }
  1161. function EmailFormComponent_div_8_Template(rf, ctx) { if (rf & 1) {
  1162. const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1163. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 23);
  1164. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 24);
  1165. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Adresse email :");
  1166. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1167. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "mat-form-field", 9);
  1168. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 25, 26);
  1169. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EmailFormComponent_div_8_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.adressemail = $event; });
  1170. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1171. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, EmailFormComponent_div_8_mat_error_6_Template, 2, 1, "mat-error", 27);
  1172. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1173. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1174. } if (rf & 2) {
  1175. const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5);
  1176. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1177. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  1178. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.adressemail);
  1179. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  1180. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r7.errors && (_r7.touched || _r7.dirty));
  1181. } }
  1182. function EmailFormComponent_mat_error_15_Template(rf, ctx) { if (rf & 1) {
  1183. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  1184. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1185. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1186. } if (rf & 2) {
  1187. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1188. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1189. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorTitle(), " ");
  1190. } }
  1191. function EmailFormComponent_mat_error_21_Template(rf, ctx) { if (rf & 1) {
  1192. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  1193. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1194. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1195. } if (rf & 2) {
  1196. const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1197. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1198. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r3.getErrorDescription(), " ");
  1199. } }
  1200. function EmailFormComponent_mat_error_27_Template(rf, ctx) { if (rf & 1) {
  1201. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  1202. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1203. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1204. } if (rf & 2) {
  1205. const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1206. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1207. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r4.getErrorObject(), " ");
  1208. } }
  1209. function EmailFormComponent_mat_error_33_Template(rf, ctx) { if (rf & 1) {
  1210. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  1211. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1212. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1213. } if (rf & 2) {
  1214. const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1215. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1216. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r5.getErrorMessage(), " ");
  1217. } }
  1218. class EmailFormComponent {
  1219. constructor(formBuilder, emailService) {
  1220. this.formBuilder = formBuilder;
  1221. this.emailService = emailService;
  1222. //radio button
  1223. this.userOptions = [
  1224. { label: 'Tout les clients', value: '0', checked: true },
  1225. { label: 'Clients gagnant', value: '1', checked: false },
  1226. { label: 'Clients non gagnant', value: '2', checked: false },
  1227. { label: 'Clients compte actives', value: '3', checked: false },
  1228. { label: 'Clients bloqués', value: '4', checked: false },
  1229. { label: 'Adresse email', value: '5', checked: false }
  1230. ];
  1231. }
  1232. ngOnInit() {
  1233. this.createForm();
  1234. }
  1235. //select radio button
  1236. selectValue($event) {
  1237. this.selectedRadio = $event.source.value;
  1238. }
  1239. createForm() {
  1240. let caracereregex = /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/;
  1241. this.formGroup = this.formBuilder.group({
  1242. title: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]],
  1243. description: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]],
  1244. subject: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]],
  1245. text: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]]
  1246. });
  1247. }
  1248. getErrorTitle() {
  1249. return this.formGroup.get('title').hasError('required') ? 'Titre requis' :
  1250. this.formGroup.get('title').hasError('pattern') ? 'Titre non valide' : 'Titre non valide';
  1251. }
  1252. getErrorDescription() {
  1253. return this.formGroup.get('description').hasError('required') ? 'Description requise' :
  1254. this.formGroup.get('description').hasError('pattern') ? 'Description non valide' : 'Description non valide';
  1255. }
  1256. getErrorObject() {
  1257. return this.formGroup.get('subject').hasError('required') ? 'Objet requis' :
  1258. this.formGroup.get('subject').hasError('pattern') ? 'Objet non valide' : 'Objet non valide';
  1259. }
  1260. getErrorMessage() {
  1261. return this.formGroup.get('text').hasError('required') ? 'Message requis' :
  1262. this.formGroup.get('text').hasError('pattern') ? 'Message non valide' : 'Message non valide';
  1263. }
  1264. get f() { return this.formGroup.controls; }
  1265. // rest form
  1266. resetForm() {
  1267. this.formGroup.reset();
  1268. }
  1269. // send email
  1270. sendEmail() {
  1271. if (this.formGroup.invalid) {
  1272. return;
  1273. }
  1274. let email = '';
  1275. let isgain = '';
  1276. let isactive = '';
  1277. if (this.selectedRadio == 5) {
  1278. email = this.adressemail;
  1279. }
  1280. if (this.selectedRadio == 1) {
  1281. isgain = true;
  1282. }
  1283. if (this.selectedRadio == 2) {
  1284. isgain = false;
  1285. }
  1286. if (this.selectedRadio == 3) {
  1287. isactive = true;
  1288. }
  1289. if (this.selectedRadio == 4) {
  1290. isactive = false;
  1291. }
  1292. this.emailService.sendEmail(this.formGroup.value, email, isgain, isactive).subscribe(res => res);
  1293. }
  1294. }
  1295. EmailFormComponent.ɵfac = function EmailFormComponent_Factory(t) { return new (t || EmailFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_email_service__WEBPACK_IMPORTED_MODULE_2__["EmailService"])); };
  1296. EmailFormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: EmailFormComponent, selectors: [["app-email-form"]], decls: 39, vars: 7, consts: [[1, ""], [1, "row", "justify-content-center", "mb-4"], [1, "row", "justify-content-center", "mb-3"], ["aria-label", "Select an option", 3, "change"], [3, "checked", "value", 4, "ngFor", "ngForOf"], ["class", "row mb-4", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "row"], ["for", "mat-input-0", 1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["appearance", "outline", 1, "col-7", "col-md-5"], ["matInput", "", "placeholder", "", "formControlName", "title", "required", ""], [4, "ngIf"], ["for", "mat-input-description", 1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["matInput", "", "placeholder", "", "formControlName", "description", "id", "mat-input-description", "required", ""], ["for", "mat-input-subject", 1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["matInput", "", "placeholder", "", "formControlName", "subject", "id", "mat-input-subject", "required", ""], ["for", "mat-textarea-message", 1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["appearance", "outline", 1, "col-7", "col-md-5", 2, "width", "500px"], ["matInput", "", "rows", "13", "formControlName", "text", "id", "mat-textarea-message"], [1, "row", "justify-content-center", "my-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "mr-4"], ["mat-raised-button", "", "color", "primary", 1, "", 3, "click"], [3, "checked", "value"], [1, "row", "mb-4"], [1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["matInput", "", "type", "text", "pattern", "[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,3}$", "id", "email", "name", "email", "required", "", 3, "ngModel", "ngModelChange"], ["emailref", "ngModel"], [3, "hidden", 4, "ngIf"], [3, "hidden"]], template: function EmailFormComponent_Template(rf, ctx) { if (rf & 1) {
  1297. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card", 0);
  1298. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card-content");
  1299. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h1", 1);
  1300. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "b");
  1301. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Emailing");
  1302. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1303. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1304. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 2);
  1305. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "mat-radio-group", 3);
  1306. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function EmailFormComponent_Template_mat_radio_group_change_6_listener($event) { return ctx.selectValue($event); });
  1307. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, EmailFormComponent_mat_radio_button_7_Template, 2, 3, "mat-radio-button", 4);
  1308. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1309. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1310. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, EmailFormComponent_div_8_Template, 7, 2, "div", 5);
  1311. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "form", 6);
  1312. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function EmailFormComponent_Template_form_ngSubmit_9_listener() { return ctx.sendEmail(); });
  1313. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 7);
  1314. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 8);
  1315. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Titre :");
  1316. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1317. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "mat-form-field", 9);
  1318. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "input", 10);
  1319. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, EmailFormComponent_mat_error_15_Template, 2, 1, "mat-error", 11);
  1320. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1321. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1322. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 7);
  1323. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "label", 12);
  1324. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "Description :");
  1325. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1326. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "mat-form-field", 9);
  1327. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "input", 13);
  1328. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, EmailFormComponent_mat_error_21_Template, 2, 1, "mat-error", 11);
  1329. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1330. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1331. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 7);
  1332. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 14);
  1333. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Objet :");
  1334. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1335. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "mat-form-field", 9);
  1336. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "input", 15);
  1337. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, EmailFormComponent_mat_error_27_Template, 2, 1, "mat-error", 11);
  1338. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1339. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1340. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 7);
  1341. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 16);
  1342. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Message :");
  1343. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1344. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "mat-form-field", 17);
  1345. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](32, "textarea", 18);
  1346. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, EmailFormComponent_mat_error_33_Template, 2, 1, "mat-error", 11);
  1347. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1348. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1349. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 19);
  1350. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "button", 20);
  1351. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "Envoyer");
  1352. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1353. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "button", 21);
  1354. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EmailFormComponent_Template_button_click_37_listener() { return ctx.resetForm(); });
  1355. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Effacer");
  1356. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1357. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1358. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1359. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1360. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1361. } if (rf & 2) {
  1362. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
  1363. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.userOptions);
  1364. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1365. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.selectedRadio == 5);
  1366. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1367. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup);
  1368. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  1369. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["title"].valid || ctx.formGroup.controls["title"].touched);
  1370. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  1371. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["description"].valid || ctx.formGroup.controls["description"].touched);
  1372. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  1373. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["subject"].valid || ctx.formGroup.controls["subject"].touched);
  1374. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  1375. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["text"].valid || ctx.formGroup.controls["text"].touched);
  1376. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_3__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_3__["MatCardContent"], _angular_material_radio__WEBPACK_IMPORTED_MODULE_4__["MatRadioGroup"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_7__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_button__WEBPACK_IMPORTED_MODULE_8__["MatButton"], _angular_material_radio__WEBPACK_IMPORTED_MODULE_4__["MatRadioButton"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["PatternValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgModel"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatError"]], styles: [".parag[_ngcontent-%COMP%] {\n margin-top: 1em;\n}\n\n.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%] {\n margin-left: 16px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9lbWFpbC1mb3JtL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGFkbWluXFxlbWFpbGluZ1xcZW1haWwtZm9ybVxcZW1haWwtZm9ybS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9lbWFpbC1mb3JtL2VtYWlsLWZvcm0uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxlQUFBO0FDQ0o7O0FER0E7RUFDSSxpQkFBQTtBQ0FKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9lbWFpbC1mb3JtL2VtYWlsLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIucGFyYWd7XHJcbiAgICBtYXJnaW4tdG9wOiAxZW07XHJcbn1cclxuXHJcblxyXG4ubWF0LXJhZGlvLWJ1dHRvbiB+IC5tYXQtcmFkaW8tYnV0dG9uIHtcclxuICAgIG1hcmdpbi1sZWZ0OiAxNnB4O1xyXG4gIH0iLCIucGFyYWcge1xuICBtYXJnaW4tdG9wOiAxZW07XG59XG5cbi5tYXQtcmFkaW8tYnV0dG9uIH4gLm1hdC1yYWRpby1idXR0b24ge1xuICBtYXJnaW4tbGVmdDogMTZweDtcbn0iXX0= */"] });
  1377. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EmailFormComponent, [{
  1378. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  1379. args: [{
  1380. selector: 'app-email-form',
  1381. templateUrl: './email-form.component.html',
  1382. styleUrls: ['./email-form.component.scss']
  1383. }]
  1384. }], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _services_email_service__WEBPACK_IMPORTED_MODULE_2__["EmailService"] }]; }, null); })();
  1385. /***/ }),
  1386. /***/ "./src/app/components/admin/emailing/emailing.component.ts":
  1387. /*!*****************************************************************!*\
  1388. !*** ./src/app/components/admin/emailing/emailing.component.ts ***!
  1389. \*****************************************************************/
  1390. /*! exports provided: EmailingComponent */
  1391. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1392. "use strict";
  1393. __webpack_require__.r(__webpack_exports__);
  1394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailingComponent", function() { return EmailingComponent; });
  1395. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  1396. /* harmony import */ var _email_form_email_form_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./email-form/email-form.component */ "./src/app/components/admin/emailing/email-form/email-form.component.ts");
  1397. class EmailingComponent {
  1398. constructor() { }
  1399. ngOnInit() {
  1400. }
  1401. }
  1402. EmailingComponent.ɵfac = function EmailingComponent_Factory(t) { return new (t || EmailingComponent)(); };
  1403. EmailingComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: EmailingComponent, selectors: [["app-emailing"]], decls: 2, vars: 0, consts: [[1, "container", "navtop"]], template: function EmailingComponent_Template(rf, ctx) { if (rf & 1) {
  1404. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  1405. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "app-email-form");
  1406. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1407. } }, directives: [_email_form_email_form_component__WEBPACK_IMPORTED_MODULE_1__["EmailFormComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhZG1pblxcZW1haWxpbmdcXGVtYWlsaW5nLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL2VtYWlsaW5nL2VtYWlsaW5nLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZUFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9lbWFpbGluZy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiA3ZW07XHJcbiAgfSIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiA3ZW07XG59Il19 */"] });
  1408. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EmailingComponent, [{
  1409. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  1410. args: [{
  1411. selector: 'app-emailing',
  1412. templateUrl: './emailing.component.html',
  1413. styleUrls: ['./emailing.component.scss']
  1414. }]
  1415. }], function () { return []; }, null); })();
  1416. /***/ }),
  1417. /***/ "./src/app/components/admin/lots/lots.component.ts":
  1418. /*!*********************************************************!*\
  1419. !*** ./src/app/components/admin/lots/lots.component.ts ***!
  1420. \*********************************************************/
  1421. /*! exports provided: LotsComponent */
  1422. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1423. "use strict";
  1424. __webpack_require__.r(__webpack_exports__);
  1425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LotsComponent", function() { return LotsComponent; });
  1426. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  1427. class LotsComponent {
  1428. constructor() { }
  1429. ngOnInit() {
  1430. }
  1431. }
  1432. LotsComponent.ɵfac = function LotsComponent_Factory(t) { return new (t || LotsComponent)(); };
  1433. LotsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LotsComponent, selectors: [["app-lots"]], decls: 2, vars: 0, template: function LotsComponent_Template(rf, ctx) { if (rf & 1) {
  1434. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p");
  1435. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "lots works!");
  1436. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1437. } }, styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vbG90cy9sb3RzLmNvbXBvbmVudC5zY3NzIn0= */"] });
  1438. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LotsComponent, [{
  1439. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  1440. args: [{
  1441. selector: 'app-lots',
  1442. templateUrl: './lots.component.html',
  1443. styleUrls: ['./lots.component.scss']
  1444. }]
  1445. }], function () { return []; }, null); })();
  1446. /***/ }),
  1447. /***/ "./src/app/components/admin/statistic/statistic.component.ts":
  1448. /*!*******************************************************************!*\
  1449. !*** ./src/app/components/admin/statistic/statistic.component.ts ***!
  1450. \*******************************************************************/
  1451. /*! exports provided: StatisticComponent */
  1452. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1453. "use strict";
  1454. __webpack_require__.r(__webpack_exports__);
  1455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticComponent", function() { return StatisticComponent; });
  1456. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  1457. /* harmony import */ var _services_statistic_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../services/statistic.service */ "./src/app/services/statistic.service.ts");
  1458. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  1459. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  1460. /* harmony import */ var ng2_charts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ng2-charts */ "./node_modules/ng2-charts/__ivy_ngcc__/fesm2015/ng2-charts.js");
  1461. /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/table */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js");
  1462. function StatisticComponent_div_4_Template(rf, ctx) { if (rf & 1) {
  1463. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
  1464. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 8);
  1465. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1466. } if (rf & 2) {
  1467. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1468. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1469. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("datasets", ctx_r0.barChartData)("labels", ctx_r0.barChartLabels)("options", ctx_r0.barChartOptions)("plugins", ctx_r0.barChartPlugins)("legend", ctx_r0.barChartLegend)("chartType", ctx_r0.barChartBar);
  1470. } }
  1471. function StatisticComponent_div_6_Template(rf, ctx) { if (rf & 1) {
  1472. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
  1473. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 8);
  1474. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1475. } if (rf & 2) {
  1476. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1477. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1478. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("datasets", ctx_r1.barChartData)("labels", ctx_r1.barChartLabels)("options", ctx_r1.barChartOptions)("plugins", ctx_r1.barChartPlugins)("legend", ctx_r1.barChartLegend)("chartType", ctx_r1.barChartHorizontal);
  1479. } }
  1480. function StatisticComponent_table_10_th_2_Template(rf, ctx) { if (rf & 1) {
  1481. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 23);
  1482. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Gain");
  1483. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1484. } }
  1485. function StatisticComponent_table_10_td_3_Template(rf, ctx) { if (rf & 1) {
  1486. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 24);
  1487. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1488. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1489. } if (rf & 2) {
  1490. const element_r18 = ctx.$implicit;
  1491. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1492. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r18.gain, " ");
  1493. } }
  1494. function StatisticComponent_table_10_td_4_Template(rf, ctx) { if (rf & 1) {
  1495. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 25);
  1496. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Totale");
  1497. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1498. } }
  1499. function StatisticComponent_table_10_th_6_Template(rf, ctx) { if (rf & 1) {
  1500. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 26);
  1501. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Utilis\u00E9");
  1502. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1503. } }
  1504. function StatisticComponent_table_10_td_7_Template(rf, ctx) { if (rf & 1) {
  1505. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 27);
  1506. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1507. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1508. } if (rf & 2) {
  1509. const element_r19 = ctx.$implicit;
  1510. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1511. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r19.used, " ");
  1512. } }
  1513. function StatisticComponent_table_10_td_8_Template(rf, ctx) { if (rf & 1) {
  1514. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 28);
  1515. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1516. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1517. } if (rf & 2) {
  1518. const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1519. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1520. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r8.getUsed(), " ");
  1521. } }
  1522. function StatisticComponent_table_10_th_10_Template(rf, ctx) { if (rf & 1) {
  1523. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 26);
  1524. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Server");
  1525. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1526. } }
  1527. function StatisticComponent_table_10_td_11_Template(rf, ctx) { if (rf & 1) {
  1528. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 27);
  1529. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1530. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1531. } if (rf & 2) {
  1532. const element_r20 = ctx.$implicit;
  1533. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1534. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r20.served, " ");
  1535. } }
  1536. function StatisticComponent_table_10_td_12_Template(rf, ctx) { if (rf & 1) {
  1537. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 28);
  1538. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1539. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1540. } if (rf & 2) {
  1541. const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1542. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1543. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r11.getServed(), " ");
  1544. } }
  1545. function StatisticComponent_table_10_th_14_Template(rf, ctx) { if (rf & 1) {
  1546. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 26);
  1547. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Totalit\u00E9");
  1548. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1549. } }
  1550. function StatisticComponent_table_10_td_15_Template(rf, ctx) { if (rf & 1) {
  1551. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 27);
  1552. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1553. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1554. } if (rf & 2) {
  1555. const element_r21 = ctx.$implicit;
  1556. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1557. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r21.total, " ");
  1558. } }
  1559. function StatisticComponent_table_10_td_16_Template(rf, ctx) { if (rf & 1) {
  1560. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 28);
  1561. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1562. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1563. } if (rf & 2) {
  1564. const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1565. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1566. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r14.getTotal(), " ");
  1567. } }
  1568. function StatisticComponent_table_10_tr_17_Template(rf, ctx) { if (rf & 1) {
  1569. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 29);
  1570. } }
  1571. function StatisticComponent_table_10_tr_18_Template(rf, ctx) { if (rf & 1) {
  1572. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 30);
  1573. } }
  1574. function StatisticComponent_table_10_tr_19_Template(rf, ctx) { if (rf & 1) {
  1575. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 31);
  1576. } }
  1577. function StatisticComponent_table_10_Template(rf, ctx) { if (rf & 1) {
  1578. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 9);
  1579. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1, 10);
  1580. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, StatisticComponent_table_10_th_2_Template, 2, 0, "th", 11);
  1581. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, StatisticComponent_table_10_td_3_Template, 2, 1, "td", 12);
  1582. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, StatisticComponent_table_10_td_4_Template, 2, 0, "td", 13);
  1583. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  1584. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](5, 14);
  1585. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, StatisticComponent_table_10_th_6_Template, 2, 0, "th", 15);
  1586. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, StatisticComponent_table_10_td_7_Template, 2, 1, "td", 16);
  1587. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, StatisticComponent_table_10_td_8_Template, 2, 1, "td", 17);
  1588. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  1589. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](9, 18);
  1590. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, StatisticComponent_table_10_th_10_Template, 2, 0, "th", 15);
  1591. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, StatisticComponent_table_10_td_11_Template, 2, 1, "td", 16);
  1592. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, StatisticComponent_table_10_td_12_Template, 2, 1, "td", 17);
  1593. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  1594. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](13, 19);
  1595. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, StatisticComponent_table_10_th_14_Template, 2, 0, "th", 15);
  1596. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, StatisticComponent_table_10_td_15_Template, 2, 1, "td", 16);
  1597. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, StatisticComponent_table_10_td_16_Template, 2, 1, "td", 17);
  1598. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  1599. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, StatisticComponent_table_10_tr_17_Template, 1, 0, "tr", 20);
  1600. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, StatisticComponent_table_10_tr_18_Template, 1, 0, "tr", 21);
  1601. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, StatisticComponent_table_10_tr_19_Template, 1, 0, "tr", 22);
  1602. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1603. } if (rf & 2) {
  1604. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1605. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("dataSource", ctx_r2.statisticArray);
  1606. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](17);
  1607. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matHeaderRowDef", ctx_r2.displayedColumns);
  1608. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1609. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRowDefColumns", ctx_r2.displayedColumns);
  1610. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1611. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matFooterRowDef", ctx_r2.displayedColumns);
  1612. } }
  1613. class StatisticComponent {
  1614. constructor(StatisticService) {
  1615. this.StatisticService = StatisticService;
  1616. this.statisticArray = [];
  1617. this.barChartData = [];
  1618. this.isFoo = true;
  1619. //chart
  1620. this.barChartOptions = {
  1621. responsive: true,
  1622. };
  1623. this.barChartLabels = ['Une entrée ou un dessert au choix',
  1624. 'Un burger au choix',
  1625. 'Un menu du jour',
  1626. 'Un menu au choix',
  1627. '70% de réduction'];
  1628. this.barChartBar = 'bar';
  1629. this.barChartHorizontal = 'horizontalBar';
  1630. this.barChartLegend = true;
  1631. this.barChartPlugins = [];
  1632. this.displayedColumns = ['gain', 'used', 'served', 'total'];
  1633. }
  1634. ngOnInit() {
  1635. this.subscribeToStatistic();
  1636. }
  1637. //sbscribe statistic
  1638. subscribeToStatistic() {
  1639. this.StatisticService.getStatistic().subscribe((res) => {
  1640. this.statisticArray = res.data;
  1641. this.barChartData = [
  1642. { data: this.statisticArray.map(res => res.total), label: 'totalité' },
  1643. { data: this.statisticArray.map(res => res.used), label: 'utiliser' },
  1644. { data: this.statisticArray.map(res => res.served), label: 'server' }
  1645. ];
  1646. });
  1647. }
  1648. getTotal() {
  1649. return this.statisticArray.map(t => t.total).reduce((acc, value) => acc + value, 0);
  1650. }
  1651. getUsed() {
  1652. return this.statisticArray.map(t => t.used).reduce((acc, value) => acc + value, 0);
  1653. }
  1654. getServed() {
  1655. return this.statisticArray.map(t => t.served).reduce((acc, value) => acc + value, 0);
  1656. }
  1657. //texte button
  1658. getBtnText() {
  1659. if (this.isFoo) {
  1660. return 'diagramme à bandes horizontales';
  1661. }
  1662. else
  1663. return 'diagramme à bandes verticales';
  1664. }
  1665. }
  1666. StatisticComponent.ɵfac = function StatisticComponent_Factory(t) { return new (t || StatisticComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_statistic_service__WEBPACK_IMPORTED_MODULE_1__["StatisticService"])); };
  1667. StatisticComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: StatisticComponent, selectors: [["app-statistic"]], decls: 11, vars: 4, consts: [[1, "container", "navtop"], [1, "mb-5"], [1, "row", "justify-content-center"], ["class", "col-sm-12 col-lg-8", 4, "ngIf"], ["mat-raised-button", "", "color", "primary", 1, "mt-4", 3, "click"], [1, "row", "justify-content-center", "my-5"], ["mat-table", "", "class", "mat-elevation-z8 col-11 col-lg-8", 3, "dataSource", 4, "ngIf"], [1, "col-sm-12", "col-lg-8"], ["baseChart", "", 3, "datasets", "labels", "options", "plugins", "legend", "chartType"], ["mat-table", "", 1, "mat-elevation-z8", "col-11", "col-lg-8", 3, "dataSource"], ["matColumnDef", "gain"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", "class", "text-left", 4, "matCellDef"], ["mat-footer-cell", "", "class", "text-left", 4, "matFooterCellDef"], ["matColumnDef", "used"], ["mat-header-cell", "", "class", "text-center", 4, "matHeaderCellDef"], ["mat-cell", "", 4, "matCellDef"], ["mat-footer-cell", "", 4, "matFooterCellDef"], ["matColumnDef", "served"], ["matColumnDef", "total"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], ["mat-footer-row", "", 4, "matFooterRowDef"], ["mat-header-cell", ""], ["mat-cell", "", 1, "text-left"], ["mat-footer-cell", "", 1, "text-left"], ["mat-header-cell", "", 1, "text-center"], ["mat-cell", ""], ["mat-footer-cell", ""], ["mat-header-row", ""], ["mat-row", ""], ["mat-footer-row", ""]], template: function StatisticComponent_Template(rf, ctx) { if (rf & 1) {
  1668. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  1669. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h1", 1);
  1670. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Statistiques du jeux");
  1671. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1672. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
  1673. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, StatisticComponent_div_4_Template, 2, 6, "div", 3);
  1674. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1675. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 2);
  1676. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, StatisticComponent_div_6_Template, 2, 6, "div", 3);
  1677. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1678. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 4);
  1679. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function StatisticComponent_Template_button_click_7_listener() { return ctx.isFoo = !ctx.isFoo; });
  1680. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
  1681. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1682. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 5);
  1683. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, StatisticComponent_table_10_Template, 20, 4, "table", 6);
  1684. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1685. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1686. } if (rf & 2) {
  1687. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  1688. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isFoo);
  1689. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  1690. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isFoo);
  1691. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  1692. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.getBtnText());
  1693. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  1694. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.statisticArray);
  1695. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_3__["MatButton"], ng2_charts__WEBPACK_IMPORTED_MODULE_4__["BaseChartDirective"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatTable"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatColumnDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatHeaderCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatFooterCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatHeaderRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatFooterRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatHeaderCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatFooterCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatHeaderRow"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatRow"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatFooterRow"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 3em;\n}\n\ntr.mat-footer-row[_ngcontent-%COMP%] {\n font-weight: bold;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9zdGF0aXN0aWMvQzpcXEZhdGJvYXJQcm9qZWN0XFxhbmd1bGFyLWNsaWVudC9zcmNcXGFwcFxcY29tcG9uZW50c1xcYWRtaW5cXHN0YXRpc3RpY1xcc3RhdGlzdGljLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL3N0YXRpc3RpYy9zdGF0aXN0aWMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxlQUFBO0FDQ0Y7O0FER0U7RUFDRSxpQkFBQTtBQ0FKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9zdGF0aXN0aWMvc3RhdGlzdGljLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdnRvcHtcclxuICBtYXJnaW4tdG9wOiAzZW07XHJcbn1cclxuXHJcblxyXG4gIHRyLm1hdC1mb290ZXItcm93IHtcclxuICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xyXG4gIH0iLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogM2VtO1xufVxuXG50ci5tYXQtZm9vdGVyLXJvdyB7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xufSJdfQ== */"] });
  1696. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StatisticComponent, [{
  1697. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  1698. args: [{
  1699. selector: 'app-statistic',
  1700. templateUrl: './statistic.component.html',
  1701. styleUrls: ['./statistic.component.scss']
  1702. }]
  1703. }], function () { return [{ type: _services_statistic_service__WEBPACK_IMPORTED_MODULE_1__["StatisticService"] }]; }, null); })();
  1704. /***/ }),
  1705. /***/ "./src/app/components/admin/users/users-bloque/users-bloque.component.ts":
  1706. /*!*******************************************************************************!*\
  1707. !*** ./src/app/components/admin/users/users-bloque/users-bloque.component.ts ***!
  1708. \*******************************************************************************/
  1709. /*! exports provided: UsersBloqueComponent */
  1710. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1711. "use strict";
  1712. __webpack_require__.r(__webpack_exports__);
  1713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersBloqueComponent", function() { return UsersBloqueComponent; });
  1714. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  1715. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  1716. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  1717. class UsersBloqueComponent {
  1718. constructor(data, dialogRef) {
  1719. this.data = data;
  1720. this.dialogRef = dialogRef;
  1721. }
  1722. onConfirm() {
  1723. // Close the dialog, return true
  1724. this.dialogRef.close(true);
  1725. }
  1726. onNoClick() {
  1727. this.dialogRef.close(false);
  1728. }
  1729. }
  1730. UsersBloqueComponent.ɵfac = function UsersBloqueComponent_Factory(t) { return new (t || UsersBloqueComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"])); };
  1731. UsersBloqueComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersBloqueComponent, selectors: [["app-users-bloque"]], decls: 7, vars: 1, consts: [["mat-dialog-content", "", 1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function UsersBloqueComponent_Template(rf, ctx) { if (rf & 1) {
  1732. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  1733. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1734. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1735. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1);
  1736. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 2);
  1737. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersBloqueComponent_Template_button_click_3_listener() { return ctx.onConfirm(); });
  1738. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Oui");
  1739. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1740. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 3);
  1741. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersBloqueComponent_Template_button_click_5_listener() { return ctx.onNoClick(); });
  1742. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Non");
  1743. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1744. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1745. } if (rf & 2) {
  1746. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1747. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data, " ");
  1748. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vdXNlcnMvdXNlcnMtYmxvcXVlL3VzZXJzLWJsb3F1ZS5jb21wb25lbnQuc2NzcyJ9 */"] });
  1749. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersBloqueComponent, [{
  1750. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  1751. args: [{
  1752. selector: 'app-users-bloque',
  1753. templateUrl: './users-bloque.component.html',
  1754. styleUrls: ['./users-bloque.component.scss']
  1755. }]
  1756. }], function () { return [{ type: undefined, decorators: [{
  1757. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  1758. args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]]
  1759. }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }]; }, null); })();
  1760. /***/ }),
  1761. /***/ "./src/app/components/admin/users/users-delete/users-delete.component.ts":
  1762. /*!*******************************************************************************!*\
  1763. !*** ./src/app/components/admin/users/users-delete/users-delete.component.ts ***!
  1764. \*******************************************************************************/
  1765. /*! exports provided: UsersDeleteComponent */
  1766. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1767. "use strict";
  1768. __webpack_require__.r(__webpack_exports__);
  1769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersDeleteComponent", function() { return UsersDeleteComponent; });
  1770. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  1771. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  1772. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  1773. class UsersDeleteComponent {
  1774. constructor(data, dialogRef) {
  1775. this.data = data;
  1776. this.dialogRef = dialogRef;
  1777. }
  1778. onConfirm() {
  1779. // Close the dialog, return true
  1780. this.dialogRef.close(true);
  1781. }
  1782. onNoClick() {
  1783. this.dialogRef.close(false);
  1784. }
  1785. }
  1786. UsersDeleteComponent.ɵfac = function UsersDeleteComponent_Factory(t) { return new (t || UsersDeleteComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"])); };
  1787. UsersDeleteComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersDeleteComponent, selectors: [["app-users-delete"]], decls: 7, vars: 1, consts: [["mat-dialog-content", "", 1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function UsersDeleteComponent_Template(rf, ctx) { if (rf & 1) {
  1788. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  1789. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1790. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1791. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1);
  1792. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 2);
  1793. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersDeleteComponent_Template_button_click_3_listener() { return ctx.onConfirm(); });
  1794. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Oui");
  1795. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1796. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 3);
  1797. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersDeleteComponent_Template_button_click_5_listener() { return ctx.onNoClick(); });
  1798. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Non");
  1799. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1800. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1801. } if (rf & 2) {
  1802. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1803. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data, " ");
  1804. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vdXNlcnMvdXNlcnMtZGVsZXRlL3VzZXJzLWRlbGV0ZS5jb21wb25lbnQuc2NzcyJ9 */"] });
  1805. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersDeleteComponent, [{
  1806. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  1807. args: [{
  1808. selector: 'app-users-delete',
  1809. templateUrl: './users-delete.component.html',
  1810. styleUrls: ['./users-delete.component.scss']
  1811. }]
  1812. }], function () { return [{ type: undefined, decorators: [{
  1813. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  1814. args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]]
  1815. }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }]; }, null); })();
  1816. /***/ }),
  1817. /***/ "./src/app/components/admin/users/users-details/users-details.component.ts":
  1818. /*!*********************************************************************************!*\
  1819. !*** ./src/app/components/admin/users/users-details/users-details.component.ts ***!
  1820. \*********************************************************************************/
  1821. /*! exports provided: UsersDetailsComponent */
  1822. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1823. "use strict";
  1824. __webpack_require__.r(__webpack_exports__);
  1825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersDetailsComponent", function() { return UsersDetailsComponent; });
  1826. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  1827. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  1828. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  1829. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  1830. function UsersDetailsComponent_mat_icon_44_Template(rf, ctx) { if (rf & 1) {
  1831. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 9);
  1832. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "done");
  1833. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1834. } }
  1835. function UsersDetailsComponent_mat_icon_45_Template(rf, ctx) { if (rf & 1) {
  1836. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 10);
  1837. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "clear");
  1838. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1839. } }
  1840. function UsersDetailsComponent_mat_icon_50_Template(rf, ctx) { if (rf & 1) {
  1841. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 9);
  1842. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "done");
  1843. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1844. } }
  1845. function UsersDetailsComponent_mat_icon_51_Template(rf, ctx) { if (rf & 1) {
  1846. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 11);
  1847. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "clear");
  1848. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1849. } }
  1850. function UsersDetailsComponent_div_59_ul_4_Template(rf, ctx) { if (rf & 1) {
  1851. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
  1852. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
  1853. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
  1854. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1855. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1856. } if (rf & 2) {
  1857. const item_r6 = ctx.$implicit;
  1858. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  1859. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r6.gains, " ");
  1860. } }
  1861. function UsersDetailsComponent_div_59_Template(rf, ctx) { if (rf & 1) {
  1862. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
  1863. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 3);
  1864. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Gains :");
  1865. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1866. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
  1867. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, UsersDetailsComponent_div_59_ul_4_Template, 3, 1, "ul", 12);
  1868. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1869. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1870. } if (rf & 2) {
  1871. const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1872. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  1873. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r4.element.gains);
  1874. } }
  1875. class UsersDetailsComponent {
  1876. constructor(element, dialogRef) {
  1877. this.element = element;
  1878. this.dialogRef = dialogRef;
  1879. }
  1880. onConfirm() {
  1881. // Close the dialog, return true
  1882. this.dialogRef.close(true);
  1883. }
  1884. onNoClick() {
  1885. this.dialogRef.close(false);
  1886. }
  1887. }
  1888. UsersDetailsComponent.ɵfac = function UsersDetailsComponent_Factory(t) { return new (t || UsersDetailsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"])); };
  1889. UsersDetailsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersDetailsComponent, selectors: [["app-users-details"]], decls: 60, vars: 20, consts: [["mat-dialog-title", "", 1, "text-center", "font-weight-bold"], ["mat-dialog-content", "", 1, ""], [1, "row"], [1, "col-4", "font-weight-bold", "text-lg-right"], [1, "col-4"], ["class", "done", "aria-hidden", "false", "aria-label", "Example home icon", 4, "ngIf"], ["aria-hidden", "false", "aria-label", "Example home icon", 4, "ngIf"], ["color", "warn", "aria-hidden", "false", "aria-label", "Example home icon", 4, "ngIf"], ["class", "row", 4, "ngIf"], ["aria-hidden", "false", "aria-label", "Example home icon", 1, "done"], ["aria-hidden", "false", "aria-label", "Example home icon"], ["color", "warn", "aria-hidden", "false", "aria-label", "Example home icon"], [4, "ngFor", "ngForOf"]], template: function UsersDetailsComponent_Template(rf, ctx) { if (rf & 1) {
  1890. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h1", 0);
  1891. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1892. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1893. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1);
  1894. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
  1895. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 3);
  1896. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Nom :");
  1897. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1898. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
  1899. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "p");
  1900. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
  1901. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1902. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1903. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1904. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 2);
  1905. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "p", 3);
  1906. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Pr\u00E9nom :");
  1907. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1908. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 4);
  1909. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p");
  1910. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
  1911. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1912. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1913. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1914. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 2);
  1915. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "p", 3);
  1916. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Email :");
  1917. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1918. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 4);
  1919. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "p");
  1920. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20);
  1921. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1922. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1923. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1924. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 2);
  1925. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "p", 3);
  1926. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, "Num\u00E9ro de t\u00E9l\u00E9phone :");
  1927. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1928. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 4);
  1929. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "p");
  1930. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26);
  1931. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1932. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1933. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1934. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 2);
  1935. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "p", 3);
  1936. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "Adresse :");
  1937. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1938. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 4);
  1939. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "p");
  1940. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32);
  1941. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1942. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1943. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1944. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 2);
  1945. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "p", 3);
  1946. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Date de naissance :");
  1947. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1948. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 4);
  1949. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "p");
  1950. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38);
  1951. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](39, "date");
  1952. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1953. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1954. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1955. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 2);
  1956. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "p", 3);
  1957. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "Compte :");
  1958. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1959. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 4);
  1960. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](44, UsersDetailsComponent_mat_icon_44_Template, 2, 0, "mat-icon", 5);
  1961. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, UsersDetailsComponent_mat_icon_45_Template, 2, 0, "mat-icon", 6);
  1962. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1963. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1964. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 2);
  1965. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "p", 3);
  1966. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "Lots :");
  1967. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1968. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 4);
  1969. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](50, UsersDetailsComponent_mat_icon_50_Template, 2, 0, "mat-icon", 5);
  1970. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](51, UsersDetailsComponent_mat_icon_51_Template, 2, 0, "mat-icon", 7);
  1971. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1972. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1973. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 2);
  1974. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "p", 3);
  1975. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "Date d'inscription :");
  1976. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1977. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 4);
  1978. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "p");
  1979. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](57);
  1980. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](58, "date");
  1981. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1982. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1983. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1984. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](59, UsersDetailsComponent_div_59_Template, 5, 1, "div", 8);
  1985. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1986. } if (rf & 2) {
  1987. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1988. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", ctx.element.lastname, " ", ctx.element.firstname, "");
  1989. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
  1990. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.lastname);
  1991. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  1992. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.firstname);
  1993. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  1994. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.email);
  1995. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  1996. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.phonenumber);
  1997. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  1998. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.adress);
  1999. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  2000. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](39, 14, ctx.element.birthday, "longDate"));
  2001. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  2002. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.element.isActive);
  2003. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2004. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.element.isActive);
  2005. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
  2006. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.element.isGain);
  2007. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2008. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.element.isGain);
  2009. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  2010. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](58, 17, ctx.element.register_date, "longDate"));
  2011. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  2012. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.element.isGain);
  2013. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__["MatIcon"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["DatePipe"]], styles: [".done[_ngcontent-%COMP%] {\n color: #39C965;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy1kZXRhaWxzL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGFkbWluXFx1c2Vyc1xcdXNlcnMtZGV0YWlsc1xcdXNlcnMtZGV0YWlscy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy1kZXRhaWxzL3VzZXJzLWRldGFpbHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7RUFDSSxjQUFBO0FDREoiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL3VzZXJzL3VzZXJzLWRldGFpbHMvdXNlcnMtZGV0YWlscy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG5cclxuLmRvbmV7XHJcbiAgICBjb2xvcjojMzlDOTY1IDtcclxuICB9IiwiLmRvbmUge1xuICBjb2xvcjogIzM5Qzk2NTtcbn0iXX0= */"] });
  2014. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersDetailsComponent, [{
  2015. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  2016. args: [{
  2017. selector: 'app-users-details',
  2018. templateUrl: './users-details.component.html',
  2019. styleUrls: ['./users-details.component.scss']
  2020. }]
  2021. }], function () { return [{ type: undefined, decorators: [{
  2022. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  2023. args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]]
  2024. }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }]; }, null); })();
  2025. /***/ }),
  2026. /***/ "./src/app/components/admin/users/users-edit/users-edit.component.ts":
  2027. /*!***************************************************************************!*\
  2028. !*** ./src/app/components/admin/users/users-edit/users-edit.component.ts ***!
  2029. \***************************************************************************/
  2030. /*! exports provided: UsersEditComponent */
  2031. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2032. "use strict";
  2033. __webpack_require__.r(__webpack_exports__);
  2034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersEditComponent", function() { return UsersEditComponent; });
  2035. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  2036. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  2037. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  2038. class UsersEditComponent {
  2039. constructor(data, dialogRef) {
  2040. this.data = data;
  2041. this.dialogRef = dialogRef;
  2042. }
  2043. onConfirm() {
  2044. // Close the dialog, return true
  2045. this.dialogRef.close(true);
  2046. }
  2047. onNoClick() {
  2048. this.dialogRef.close(false);
  2049. }
  2050. ngOnInit() {
  2051. }
  2052. }
  2053. UsersEditComponent.ɵfac = function UsersEditComponent_Factory(t) { return new (t || UsersEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"])); };
  2054. UsersEditComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersEditComponent, selectors: [["app-users-edit"]], decls: 7, vars: 1, consts: [["mat-dialog-content", "", 1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function UsersEditComponent_Template(rf, ctx) { if (rf & 1) {
  2055. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  2056. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  2057. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2058. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1);
  2059. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 2);
  2060. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersEditComponent_Template_button_click_3_listener() { return ctx.onConfirm(); });
  2061. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Oui");
  2062. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2063. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 3);
  2064. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersEditComponent_Template_button_click_5_listener() { return ctx.onNoClick(); });
  2065. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Non");
  2066. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2067. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2068. } if (rf & 2) {
  2069. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2070. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data, " ");
  2071. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vdXNlcnMvdXNlcnMtZWRpdC91c2Vycy1lZGl0LmNvbXBvbmVudC5zY3NzIn0= */"] });
  2072. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersEditComponent, [{
  2073. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  2074. args: [{
  2075. selector: 'app-users-edit',
  2076. templateUrl: './users-edit.component.html',
  2077. styleUrls: ['./users-edit.component.scss']
  2078. }]
  2079. }], function () { return [{ type: undefined, decorators: [{
  2080. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  2081. args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]]
  2082. }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }]; }, null); })();
  2083. /***/ }),
  2084. /***/ "./src/app/components/admin/users/users-form/users-form.component.ts":
  2085. /*!***************************************************************************!*\
  2086. !*** ./src/app/components/admin/users/users-form/users-form.component.ts ***!
  2087. \***************************************************************************/
  2088. /*! exports provided: UsersFormComponent */
  2089. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2090. "use strict";
  2091. __webpack_require__.r(__webpack_exports__);
  2092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersFormComponent", function() { return UsersFormComponent; });
  2093. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  2094. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  2095. /* harmony import */ var _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/expansion */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/expansion.js");
  2096. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  2097. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  2098. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  2099. /* harmony import */ var _angular_material_select__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/select */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/select.js");
  2100. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  2101. /* harmony import */ var saturn_datepicker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! saturn-datepicker */ "./node_modules/saturn-datepicker/__ivy_ngcc__/fesm2015/saturn-datepicker.js");
  2102. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  2103. /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/core */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/core.js");
  2104. function UsersFormComponent_mat_option_26_Template(rf, ctx) { if (rf & 1) {
  2105. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-option", 21);
  2106. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  2107. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2108. } if (rf & 2) {
  2109. const topping_r2 = ctx.$implicit;
  2110. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", topping_r2);
  2111. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2112. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](topping_r2);
  2113. } }
  2114. class UsersFormComponent {
  2115. constructor(formBuilder) {
  2116. this.formBuilder = formBuilder;
  2117. this.filterUsers = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2118. this.toppings = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"]();
  2119. this.toppingList = ['Gagnant', 'Bloqué', 'servé'];
  2120. this.form = formBuilder.group({
  2121. lastname: [''],
  2122. firstname: [''],
  2123. email: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].email],
  2124. adress: [''],
  2125. date: [{ begin: this.startDate, end: this.endDate }]
  2126. });
  2127. }
  2128. ngOnInit() {
  2129. }
  2130. filterUser() {
  2131. this.filterUsers.emit(this.form.value);
  2132. }
  2133. reset() {
  2134. this.form.reset();
  2135. }
  2136. }
  2137. UsersFormComponent.ɵfac = function UsersFormComponent_Factory(t) { return new (t || UsersFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"])); };
  2138. UsersFormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersFormComponent, selectors: [["app-users-form"]], outputs: { filterUsers: "filterUsers" }, decls: 46, vars: 6, consts: [[1, "mx-5", "my-5"], [1, "search"], [1, "row", "ml-2"], ["aria-hidden", "false", "aria-label", "Example home icon", 1, "mx-2"], [1, ""], [3, "formGroup", "ngSubmit"], [1, "row"], [1, "col-4"], ["matInput", "", "formControlName", "lastname"], ["matInput", "", "formControlName", "firstname"], ["multiple", "", 3, "formControl"], [3, "value", 4, "ngFor", "ngForOf"], ["matInput", "", "name", "email", "formControlName", "email"], ["matInput", "", "placeholder", "Inscription :", "formControlName", "date", 3, "satDatepicker"], ["matSuffix", "", 3, "for"], ["touchUi", "true", 3, "rangeMode"], ["picker", ""], ["matInput", "", "formControlName", "adress"], [1, "row", "justify-content-center"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "mr-3"], ["mat-raised-button", "", "color", "primary", 3, "click"], [3, "value"]], template: function UsersFormComponent_Template(rf, ctx) { if (rf & 1) {
  2139. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  2140. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-accordion");
  2141. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-expansion-panel");
  2142. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "mat-expansion-panel-header", 1);
  2143. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "mat-panel-title");
  2144. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 2);
  2145. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div");
  2146. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "mat-icon", 3);
  2147. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "group");
  2148. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2149. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2150. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div");
  2151. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "p", 4);
  2152. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Rechercher des utilisateurs");
  2153. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2154. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2155. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2156. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2157. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2158. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "form", 5);
  2159. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function UsersFormComponent_Template_form_ngSubmit_12_listener() { return ctx.filterUser(); });
  2160. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 6);
  2161. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "mat-form-field", 7);
  2162. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "mat-label");
  2163. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Nom :");
  2164. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2165. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 8);
  2166. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2167. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "mat-form-field", 7);
  2168. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "mat-label");
  2169. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Pr\u00E9nom :");
  2170. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2171. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "input", 9);
  2172. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2173. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "mat-form-field", 7);
  2174. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "mat-label");
  2175. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Etat client :");
  2176. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2177. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "mat-select", 10);
  2178. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, UsersFormComponent_mat_option_26_Template, 2, 2, "mat-option", 11);
  2179. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2180. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2181. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2182. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 6);
  2183. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "mat-form-field", 7);
  2184. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "mat-label");
  2185. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Adresse mail :");
  2186. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2187. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 12);
  2188. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2189. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "mat-form-field", 7);
  2190. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](33, "input", 13);
  2191. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](34, "sat-datepicker-toggle", 14);
  2192. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "sat-datepicker", 15, 16);
  2193. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2194. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "mat-form-field", 7);
  2195. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "mat-label");
  2196. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, "Adresse :");
  2197. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2198. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](40, "input", 17);
  2199. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2200. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2201. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 18);
  2202. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "button", 19);
  2203. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Rechercher");
  2204. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2205. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "button", 20);
  2206. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersFormComponent_Template_button_click_44_listener() { return ctx.reset(); });
  2207. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, "Effacer");
  2208. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2209. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2210. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2211. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2212. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2213. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2214. } if (rf & 2) {
  2215. const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](36);
  2216. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
  2217. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.form);
  2218. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
  2219. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControl", ctx.toppings);
  2220. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2221. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.toppingList);
  2222. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
  2223. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("satDatepicker", _r1);
  2224. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2225. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("for", _r1);
  2226. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2227. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("rangeMode", true);
  2228. } }, directives: [_angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatAccordion"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanel"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelHeader"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelTitle"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__["MatIcon"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormField"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatLabel"], _angular_material_input__WEBPACK_IMPORTED_MODULE_5__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_material_select__WEBPACK_IMPORTED_MODULE_6__["MatSelect"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgForOf"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_8__["SatDatepickerInput"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_8__["SatDatepickerToggle"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatSuffix"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_8__["SatDatepicker"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_core__WEBPACK_IMPORTED_MODULE_10__["MatOption"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vdXNlcnMvdXNlcnMtZm9ybS91c2Vycy1mb3JtLmNvbXBvbmVudC5zY3NzIn0= */"] });
  2229. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersFormComponent, [{
  2230. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  2231. args: [{
  2232. selector: 'app-users-form',
  2233. templateUrl: './users-form.component.html',
  2234. styleUrls: ['./users-form.component.scss'],
  2235. }]
  2236. }], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }]; }, { filterUsers: [{
  2237. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  2238. }] }); })();
  2239. /***/ }),
  2240. /***/ "./src/app/components/admin/users/users-list/users-list.component.ts":
  2241. /*!***************************************************************************!*\
  2242. !*** ./src/app/components/admin/users/users-list/users-list.component.ts ***!
  2243. \***************************************************************************/
  2244. /*! exports provided: UsersListComponent */
  2245. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2246. "use strict";
  2247. __webpack_require__.r(__webpack_exports__);
  2248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersListComponent", function() { return UsersListComponent; });
  2249. /* harmony import */ var _users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../users-edit/users-edit.component */ "./src/app/components/admin/users/users-edit/users-edit.component.ts");
  2250. /* harmony import */ var _users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../users-bloque/users-bloque.component */ "./src/app/components/admin/users/users-bloque/users-bloque.component.ts");
  2251. /* harmony import */ var _users_details_users_details_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../users-details/users-details.component */ "./src/app/components/admin/users/users-details/users-details.component.ts");
  2252. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  2253. /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/table */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js");
  2254. /* harmony import */ var _users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../users-delete/users-delete.component */ "./src/app/components/admin/users/users-delete/users-delete.component.ts");
  2255. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  2256. /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../services/users.service */ "./src/app/services/users.service.ts");
  2257. /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/paginator */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/paginator.js");
  2258. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  2259. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  2260. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  2261. function UsersListComponent_th_3_Template(rf, ctx) { if (rf & 1) {
  2262. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14);
  2263. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Nom ");
  2264. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2265. } }
  2266. function UsersListComponent_td_4_Template(rf, ctx) { if (rf & 1) {
  2267. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15);
  2268. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
  2269. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2270. } if (rf & 2) {
  2271. const element_r16 = ctx.$implicit;
  2272. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  2273. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", element_r16.lastname, " ");
  2274. } }
  2275. function UsersListComponent_th_6_Template(rf, ctx) { if (rf & 1) {
  2276. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14);
  2277. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Pr\u00E9nom ");
  2278. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2279. } }
  2280. function UsersListComponent_td_7_Template(rf, ctx) { if (rf & 1) {
  2281. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15);
  2282. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
  2283. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2284. } if (rf & 2) {
  2285. const element_r17 = ctx.$implicit;
  2286. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  2287. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", element_r17.firstname, " ");
  2288. } }
  2289. function UsersListComponent_th_9_Template(rf, ctx) { if (rf & 1) {
  2290. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14);
  2291. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Adresse email ");
  2292. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2293. } }
  2294. function UsersListComponent_td_10_Template(rf, ctx) { if (rf & 1) {
  2295. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15);
  2296. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
  2297. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2298. } if (rf & 2) {
  2299. const element_r18 = ctx.$implicit;
  2300. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  2301. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", element_r18.email, " ");
  2302. } }
  2303. function UsersListComponent_th_12_Template(rf, ctx) { if (rf & 1) {
  2304. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14);
  2305. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " D\u00E9tails ");
  2306. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2307. } }
  2308. function UsersListComponent_td_13_Template(rf, ctx) { if (rf & 1) {
  2309. const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
  2310. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15);
  2311. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 16);
  2312. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function UsersListComponent_td_13_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r21); const element_r19 = ctx.$implicit; const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r20.detailUser(element_r19); });
  2313. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "mat-icon", 17);
  2314. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "reorder");
  2315. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2316. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2317. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2318. } }
  2319. function UsersListComponent_th_15_Template(rf, ctx) { if (rf & 1) {
  2320. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14);
  2321. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Modifier ");
  2322. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2323. } }
  2324. function UsersListComponent_td_16_Template(rf, ctx) { if (rf & 1) {
  2325. const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
  2326. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15);
  2327. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 18);
  2328. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function UsersListComponent_td_16_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r24); const element_r22 = ctx.$implicit; const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r23.editUser(element_r22); });
  2329. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "mat-icon", 17);
  2330. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "system_update");
  2331. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2332. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2333. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2334. } }
  2335. function UsersListComponent_th_18_Template(rf, ctx) { if (rf & 1) {
  2336. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14);
  2337. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Bloquer ");
  2338. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2339. } }
  2340. function UsersListComponent_td_19_button_1_Template(rf, ctx) { if (rf & 1) {
  2341. const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
  2342. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "button", 20);
  2343. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function UsersListComponent_td_19_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r29); const element_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit; const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r27.bloqueUser(element_r25); });
  2344. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "mat-icon", 17);
  2345. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "not_interested");
  2346. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2347. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2348. } }
  2349. function UsersListComponent_td_19_Template(rf, ctx) { if (rf & 1) {
  2350. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15);
  2351. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, UsersListComponent_td_19_button_1_Template, 3, 0, "button", 19);
  2352. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2353. } if (rf & 2) {
  2354. const element_r25 = ctx.$implicit;
  2355. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  2356. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", element_r25.isActive);
  2357. } }
  2358. function UsersListComponent_th_21_Template(rf, ctx) { if (rf & 1) {
  2359. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14);
  2360. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Supprimer ");
  2361. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2362. } }
  2363. function UsersListComponent_td_22_Template(rf, ctx) { if (rf & 1) {
  2364. const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
  2365. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15);
  2366. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 20);
  2367. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function UsersListComponent_td_22_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r32); const element_r30 = ctx.$implicit; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r31.deleteUser(element_r30); });
  2368. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "mat-icon", 17);
  2369. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "delete");
  2370. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2371. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2372. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2373. } }
  2374. function UsersListComponent_tr_23_Template(rf, ctx) { if (rf & 1) {
  2375. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "tr", 21);
  2376. } }
  2377. function UsersListComponent_tr_24_Template(rf, ctx) { if (rf & 1) {
  2378. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "tr", 22);
  2379. } }
  2380. const _c0 = function () { return [5, 10, 20, 50]; };
  2381. class UsersListComponent {
  2382. constructor(dialog, usersService) {
  2383. this.dialog = dialog;
  2384. this.usersService = usersService;
  2385. this.users = [];
  2386. this.filter = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
  2387. this.displayedColumns = ['lastname', 'firstname', 'email', 'details', 'update', 'bloque', 'delete'];
  2388. this.dataSource = new _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatTableDataSource"](this.users);
  2389. }
  2390. handlePage($event) {
  2391. this.filter.emit($event);
  2392. }
  2393. // detail user
  2394. detailUser(element) {
  2395. const dialogRef = this.dialog.open(_users_details_users_details_component__WEBPACK_IMPORTED_MODULE_2__["UsersDetailsComponent"], {
  2396. width: '650px',
  2397. height: '440px',
  2398. data: element
  2399. });
  2400. dialogRef.afterClosed().subscribe(result => {
  2401. // if (result) {
  2402. // this.bookService.cancelBook(this._book.id).subscribe(
  2403. // response => {
  2404. // this.openDialog()
  2405. // }
  2406. // )
  2407. // }
  2408. });
  2409. }
  2410. // edit user
  2411. editUser(element) {
  2412. console.log(JSON.stringify(element));
  2413. const dialogRef = this.dialog.open(_users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_0__["UsersEditComponent"], {
  2414. width: '550px',
  2415. height: '340px',
  2416. data: "Souhaitez-vous modifier cet utilisateur ?"
  2417. });
  2418. let bloqued = { isActive: false };
  2419. dialogRef.afterClosed().subscribe(result => {
  2420. if (result) {
  2421. console.log(JSON.stringify(result));
  2422. this.usersService.editOneUser(element._id, bloqued).subscribe(response => {
  2423. // this.openDialog()
  2424. console.log(response);
  2425. });
  2426. }
  2427. });
  2428. }
  2429. // bloque user
  2430. bloqueUser(element) {
  2431. const dialogRef = this.dialog.open(_users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_1__["UsersBloqueComponent"], {
  2432. width: '350px',
  2433. height: '140px',
  2434. data: "Souhaitez-vous bloquer cet utilisateur ?"
  2435. });
  2436. let bloqued = { isActive: false };
  2437. dialogRef.afterClosed().subscribe(result => {
  2438. if (result) {
  2439. this.usersService.editOneUser(element._id, bloqued).subscribe(response => {
  2440. // this.openDialog()
  2441. console.log(response);
  2442. });
  2443. }
  2444. });
  2445. }
  2446. // delete user
  2447. deleteUser(element) {
  2448. const dialogRef = this.dialog.open(_users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_5__["UsersDeleteComponent"], {
  2449. width: '350px',
  2450. height: '140px',
  2451. data: "Souhaitez-vous supprimer cet utilisateur ?"
  2452. });
  2453. dialogRef.afterClosed().subscribe(result => {
  2454. if (result) {
  2455. this.usersService.deleteOneUser(element._id).subscribe(response => {
  2456. // this.openDialog()
  2457. console.log(response);
  2458. });
  2459. }
  2460. });
  2461. }
  2462. }
  2463. UsersListComponent.ɵfac = function UsersListComponent_Factory(t) { return new (t || UsersListComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__["MatDialog"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"])); };
  2464. UsersListComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: UsersListComponent, selectors: [["app-users-list"]], inputs: { users: "users", page: "page", pageSize: "pageSize", total: "total" }, outputs: { filter: "filter" }, decls: 26, vars: 8, consts: [[1, "mat-elevation-z8", "col-12", "col-lg-12", "mb-5", "justify-content-center"], ["mat-table", "", 3, "dataSource"], ["matColumnDef", "lastname"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", "class", "text-left", 4, "matCellDef"], ["matColumnDef", "firstname"], ["matColumnDef", "email"], ["matColumnDef", "details"], ["matColumnDef", "update"], ["matColumnDef", "bloque"], ["matColumnDef", "delete"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], [3, "length", "pageSize", "pageSizeOptions", "showFirstLastButtons", "page"], ["mat-header-cell", ""], ["mat-cell", "", 1, "text-left"], ["mat-icon-button", "", "color", "primary", 3, "click"], [1, "mat-18"], ["mat-icon-button", "", "color", "accent", 1, "update", 2, "color", "rgb(6, 91, 31)", "background-color", "rgb(255, 255, 255)", 3, "click"], ["mat-icon-button", "", "color", "warn", 3, "click", 4, "ngIf"], ["mat-icon-button", "", "color", "warn", 3, "click"], ["mat-header-row", ""], ["mat-row", ""]], template: function UsersListComponent_Template(rf, ctx) { if (rf & 1) {
  2465. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0);
  2466. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "table", 1);
  2467. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](2, 2);
  2468. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, UsersListComponent_th_3_Template, 2, 0, "th", 3);
  2469. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, UsersListComponent_td_4_Template, 2, 1, "td", 4);
  2470. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  2471. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](5, 5);
  2472. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](6, UsersListComponent_th_6_Template, 2, 0, "th", 3);
  2473. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, UsersListComponent_td_7_Template, 2, 1, "td", 4);
  2474. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  2475. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](8, 6);
  2476. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](9, UsersListComponent_th_9_Template, 2, 0, "th", 3);
  2477. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](10, UsersListComponent_td_10_Template, 2, 1, "td", 4);
  2478. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  2479. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](11, 7);
  2480. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](12, UsersListComponent_th_12_Template, 2, 0, "th", 3);
  2481. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](13, UsersListComponent_td_13_Template, 4, 0, "td", 4);
  2482. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  2483. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](14, 8);
  2484. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](15, UsersListComponent_th_15_Template, 2, 0, "th", 3);
  2485. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](16, UsersListComponent_td_16_Template, 4, 0, "td", 4);
  2486. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  2487. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](17, 9);
  2488. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](18, UsersListComponent_th_18_Template, 2, 0, "th", 3);
  2489. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](19, UsersListComponent_td_19_Template, 2, 1, "td", 4);
  2490. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  2491. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](20, 10);
  2492. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](21, UsersListComponent_th_21_Template, 2, 0, "th", 3);
  2493. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](22, UsersListComponent_td_22_Template, 4, 0, "td", 4);
  2494. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  2495. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](23, UsersListComponent_tr_23_Template, 1, 0, "tr", 11);
  2496. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](24, UsersListComponent_tr_24_Template, 1, 0, "tr", 12);
  2497. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2498. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "mat-paginator", 13);
  2499. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("page", function UsersListComponent_Template_mat_paginator_page_25_listener($event) { return ctx.handlePage($event); });
  2500. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2501. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  2502. } if (rf & 2) {
  2503. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  2504. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("dataSource", ctx.users);
  2505. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](22);
  2506. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("matHeaderRowDef", ctx.displayedColumns);
  2507. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  2508. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("matRowDefColumns", ctx.displayedColumns);
  2509. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  2510. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("length", ctx.total)("pageSize", ctx.pageSize)("pageSizeOptions", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](7, _c0))("showFirstLastButtons", true);
  2511. } }, directives: [_angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatTable"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatColumnDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatHeaderCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatHeaderRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatRowDef"], _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__["MatPaginator"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatHeaderCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatCell"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_10__["MatIcon"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatHeaderRow"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatRow"]], styles: ["table[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.update[_ngcontent-%COMP%] {\n color: #39C965;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy1saXN0L0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGFkbWluXFx1c2Vyc1xcdXNlcnMtbGlzdFxcdXNlcnMtbGlzdC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy1saXN0L3VzZXJzLWxpc3QuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxXQUFBO0FDQ0o7O0FERUU7RUFDRSxjQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL3VzZXJzL3VzZXJzLWxpc3QvdXNlcnMtbGlzdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbInRhYmxlIHtcclxuICAgIHdpZHRoOiAxMDAlO1xyXG4gIH1cclxuXHJcbiAgLnVwZGF0ZXtcclxuICAgIGNvbG9yOiMzOUM5NjUgO1xyXG4gIH0iLCJ0YWJsZSB7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG4udXBkYXRlIHtcbiAgY29sb3I6ICMzOUM5NjU7XG59Il19 */"] });
  2512. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](UsersListComponent, [{
  2513. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
  2514. args: [{
  2515. selector: 'app-users-list',
  2516. templateUrl: './users-list.component.html',
  2517. styleUrls: ['./users-list.component.scss']
  2518. }]
  2519. }], function () { return [{ type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__["MatDialog"] }, { type: _services_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"] }]; }, { users: [{
  2520. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  2521. }], page: [{
  2522. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  2523. }], pageSize: [{
  2524. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  2525. }], total: [{
  2526. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  2527. }], filter: [{
  2528. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
  2529. }] }); })();
  2530. /***/ }),
  2531. /***/ "./src/app/components/admin/users/users.component.ts":
  2532. /*!***********************************************************!*\
  2533. !*** ./src/app/components/admin/users/users.component.ts ***!
  2534. \***********************************************************/
  2535. /*! exports provided: UsersComponent */
  2536. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2537. "use strict";
  2538. __webpack_require__.r(__webpack_exports__);
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersComponent", function() { return UsersComponent; });
  2540. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  2541. /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../services/users.service */ "./src/app/services/users.service.ts");
  2542. /* harmony import */ var _users_form_users_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./users-form/users-form.component */ "./src/app/components/admin/users/users-form/users-form.component.ts");
  2543. /* harmony import */ var _users_list_users_list_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./users-list/users-list.component */ "./src/app/components/admin/users/users-list/users-list.component.ts");
  2544. class UsersComponent {
  2545. constructor(UsersService) {
  2546. this.UsersService = UsersService;
  2547. this.page = 1;
  2548. this.pageSize = 10;
  2549. this.startregister = '';
  2550. this.endregister = '';
  2551. this.firstname = '';
  2552. this.lastname = '';
  2553. this.email = '';
  2554. this.adress = '';
  2555. }
  2556. ngOnInit() {
  2557. this.subscribeToUsers();
  2558. }
  2559. filterUsersPage($event) {
  2560. this.UsersService.getUsers($event.pageIndex + 1, $event.pageSize, this.lastname, this.firstname, this.email, this.adress, this.startregister, this.endregister).subscribe((res) => {
  2561. this.users = res.users;
  2562. this.total = res.total;
  2563. });
  2564. console.log('1', $event);
  2565. }
  2566. filterUsersForm(userObject) {
  2567. console.log('2', userObject);
  2568. if (userObject.date == null) {
  2569. var start = null;
  2570. var end = null;
  2571. }
  2572. if (userObject.date !== null) {
  2573. var start = userObject.date.begin;
  2574. var end = userObject.date.end;
  2575. }
  2576. console.log('start : ' + start);
  2577. console.log('end : ' + end);
  2578. this.UsersService.getUsers(this.page, this.pageSize, userObject.lastname, userObject.firstname, userObject.email, userObject.adress, start, end).subscribe((res) => {
  2579. this.users = res.users;
  2580. this.total = res.total;
  2581. });
  2582. this.firstname = userObject.firstname;
  2583. this.lastname = userObject.lastname;
  2584. this.email = userObject.email;
  2585. this.startregister = start;
  2586. this.endregister = end;
  2587. console.log('2', userObject);
  2588. }
  2589. // sbscribe users
  2590. subscribeToUsers() {
  2591. this.UsersService.getUsers(this.page, this.pageSize, this.lastname, this.firstname, this.email, this.adress, this.startregister, this.endregister).subscribe((res) => {
  2592. this.users = res.users;
  2593. this.page = res.page;
  2594. this.total = res.total;
  2595. });
  2596. }
  2597. }
  2598. UsersComponent.ɵfac = function UsersComponent_Factory(t) { return new (t || UsersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_1__["UsersService"])); };
  2599. UsersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersComponent, selectors: [["app-users"]], decls: 5, vars: 4, consts: [[1, "container", "navtop"], [1, "mb-5"], [3, "filterUsers"], [3, "users", "total", "page", "pageSize", "filter"]], template: function UsersComponent_Template(rf, ctx) { if (rf & 1) {
  2600. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  2601. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h1", 1);
  2602. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Liste des utilisateurs du jeux");
  2603. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2604. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "app-users-form", 2);
  2605. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("filterUsers", function UsersComponent_Template_app_users_form_filterUsers_3_listener($event) { return ctx.filterUsersForm($event); });
  2606. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2607. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "app-users-list", 3);
  2608. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("filter", function UsersComponent_Template_app_users_list_filter_4_listener($event) { return ctx.filterUsersPage($event); });
  2609. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2610. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2611. } if (rf & 2) {
  2612. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  2613. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("users", ctx.users)("total", ctx.total)("page", ctx.page)("pageSize", ctx.pageSize);
  2614. } }, directives: [_users_form_users_form_component__WEBPACK_IMPORTED_MODULE_2__["UsersFormComponent"], _users_list_users_list_component__WEBPACK_IMPORTED_MODULE_3__["UsersListComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 3em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhZG1pblxcdXNlcnNcXHVzZXJzLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL3VzZXJzL3VzZXJzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZUFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiAzZW07XHJcbiAgfSIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiAzZW07XG59Il19 */"] });
  2615. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersComponent, [{
  2616. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  2617. args: [{
  2618. selector: 'app-users',
  2619. templateUrl: './users.component.html',
  2620. styleUrls: ['./users.component.scss']
  2621. }]
  2622. }], function () { return [{ type: _services_users_service__WEBPACK_IMPORTED_MODULE_1__["UsersService"] }]; }, null); })();
  2623. /***/ }),
  2624. /***/ "./src/app/components/auth/gain/gain-form/gain-form.component.ts":
  2625. /*!***********************************************************************!*\
  2626. !*** ./src/app/components/auth/gain/gain-form/gain-form.component.ts ***!
  2627. \***********************************************************************/
  2628. /*! exports provided: GainFormComponent */
  2629. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2630. "use strict";
  2631. __webpack_require__.r(__webpack_exports__);
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GainFormComponent", function() { return GainFormComponent; });
  2633. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  2634. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  2635. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  2636. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  2637. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  2638. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  2639. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  2640. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  2641. function GainFormComponent_mat_error_13_Template(rf, ctx) { if (rf & 1) {
  2642. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  2643. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  2644. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2645. } if (rf & 2) {
  2646. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  2647. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2648. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.getErrorCode(), " ");
  2649. } }
  2650. class GainFormComponent {
  2651. constructor(formBuilder) {
  2652. this.formBuilder = formBuilder;
  2653. this.code = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2654. }
  2655. ngOnInit() {
  2656. this.createForm();
  2657. }
  2658. createForm() {
  2659. this.formGroup = this.formBuilder.group({
  2660. code: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]
  2661. });
  2662. }
  2663. getErrorCode() {
  2664. return this.formGroup.get('code').hasError('required') ? 'code requis' : '';
  2665. }
  2666. get f() { return this.formGroup.controls; }
  2667. sendCodeGain() {
  2668. if (this.formGroup.invalid) {
  2669. return;
  2670. }
  2671. this.code.emit(this.formGroup.value);
  2672. }
  2673. }
  2674. GainFormComponent.ɵfac = function GainFormComponent_Factory(t) { return new (t || GainFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"])); };
  2675. GainFormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GainFormComponent, selectors: [["app-gain-form"]], outputs: { code: "code" }, decls: 20, vars: 2, consts: [[1, "v"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "font-weight-bold"], [1, "row", "justify-content-center"], ["appearance", "outline", 1, "formu"], ["matInput", "", "formControlName", "code", "type", "number", "placeholder", "Exemple : 1234567890"], ["matSuffix", ""], [4, "ngIf"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-4", "color-theme"]], template: function GainFormComponent_Template(rf, ctx) { if (rf & 1) {
  2676. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card", 0);
  2677. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card-content");
  2678. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 1);
  2679. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function GainFormComponent_Template_form_ngSubmit_2_listener() { return ctx.sendCodeGain(); });
  2680. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h1", 2);
  2681. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Tentez votre chance, et repartez peut-etre avec votre Range Rover");
  2682. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2683. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h2", 3);
  2684. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Entrez votre code");
  2685. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2686. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 3);
  2687. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
  2688. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "mat-form-field", 4);
  2689. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 5);
  2690. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "mat-icon", 6);
  2691. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "card_giftcard");
  2692. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2693. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, GainFormComponent_mat_error_13_Template, 2, 1, "mat-error", 7);
  2694. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2695. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2696. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2697. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 8);
  2698. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "button", 9);
  2699. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Je v\u00E9rifie");
  2700. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2701. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2702. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "h1", 3);
  2703. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "b");
  2704. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "100% gagnant");
  2705. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2706. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2707. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2708. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2709. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2710. } if (rf & 2) {
  2711. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  2712. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup);
  2713. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
  2714. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["code"].valid || ctx.formGroup.controls["code"].touched);
  2715. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_2__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_2__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_4__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIcon"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__["MatSuffix"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_7__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__["MatError"]], styles: [".formu[_ngcontent-%COMP%] {\n background-color: white !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vZ2Fpbi1mb3JtL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGF1dGhcXGdhaW5cXGdhaW4tZm9ybVxcZ2Fpbi1mb3JtLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2F1dGgvZ2Fpbi9nYWluLWZvcm0vZ2Fpbi1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksa0NBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYXV0aC9nYWluL2dhaW4tZm9ybS9nYWluLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZm9ybXV7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xyXG59XHJcblxyXG4iLCIuZm9ybXUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xufSJdfQ== */"] });
  2716. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GainFormComponent, [{
  2717. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  2718. args: [{
  2719. selector: 'app-gain-form',
  2720. templateUrl: './gain-form.component.html',
  2721. styleUrls: ['./gain-form.component.scss']
  2722. }]
  2723. }], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }]; }, { code: [{
  2724. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  2725. }] }); })();
  2726. /***/ }),
  2727. /***/ "./src/app/components/auth/gain/gain-list/gain-list.component.ts":
  2728. /*!***********************************************************************!*\
  2729. !*** ./src/app/components/auth/gain/gain-list/gain-list.component.ts ***!
  2730. \***********************************************************************/
  2731. /*! exports provided: GainListComponent */
  2732. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2733. "use strict";
  2734. __webpack_require__.r(__webpack_exports__);
  2735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GainListComponent", function() { return GainListComponent; });
  2736. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  2737. /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/table */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js");
  2738. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  2739. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  2740. function GainListComponent_table_0_th_2_Template(rf, ctx) { if (rf & 1) {
  2741. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11);
  2742. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Num\u00E9ro ");
  2743. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2744. } }
  2745. function GainListComponent_table_0_td_3_Template(rf, ctx) { if (rf & 1) {
  2746. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12);
  2747. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  2748. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2749. } if (rf & 2) {
  2750. const element_r13 = ctx.$implicit;
  2751. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2752. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r13.index, " ");
  2753. } }
  2754. function GainListComponent_table_0_th_5_Template(rf, ctx) { if (rf & 1) {
  2755. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11);
  2756. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Code ");
  2757. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2758. } }
  2759. function GainListComponent_table_0_td_6_Template(rf, ctx) { if (rf & 1) {
  2760. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12);
  2761. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  2762. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2763. } if (rf & 2) {
  2764. const element_r14 = ctx.$implicit;
  2765. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2766. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r14.code, " ");
  2767. } }
  2768. function GainListComponent_table_0_th_8_Template(rf, ctx) { if (rf & 1) {
  2769. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11);
  2770. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Lot gagn\u00E9 ");
  2771. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2772. } }
  2773. function GainListComponent_table_0_td_9_Template(rf, ctx) { if (rf & 1) {
  2774. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12);
  2775. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  2776. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2777. } if (rf & 2) {
  2778. const element_r15 = ctx.$implicit;
  2779. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2780. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r15.gains, " ");
  2781. } }
  2782. function GainListComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
  2783. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11);
  2784. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Servi ");
  2785. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2786. } }
  2787. function GainListComponent_table_0_td_12_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
  2788. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 15);
  2789. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "done_outline");
  2790. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2791. } }
  2792. function GainListComponent_table_0_td_12_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
  2793. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 16);
  2794. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "hourglass_bottom");
  2795. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2796. } }
  2797. function GainListComponent_table_0_td_12_Template(rf, ctx) { if (rf & 1) {
  2798. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12);
  2799. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, GainListComponent_table_0_td_12_mat_icon_1_Template, 2, 0, "mat-icon", 13);
  2800. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, GainListComponent_table_0_td_12_mat_icon_2_Template, 2, 0, "mat-icon", 14);
  2801. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2802. } if (rf & 2) {
  2803. const element_r16 = ctx.$implicit;
  2804. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2805. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", element_r16.isServed === true);
  2806. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2807. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", element_r16.isServed === false);
  2808. } }
  2809. function GainListComponent_table_0_th_14_Template(rf, ctx) { if (rf & 1) {
  2810. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11);
  2811. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Date d'utilisation ");
  2812. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2813. } }
  2814. function GainListComponent_table_0_td_15_Template(rf, ctx) { if (rf & 1) {
  2815. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12);
  2816. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  2817. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
  2818. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2819. } if (rf & 2) {
  2820. const element_r19 = ctx.$implicit;
  2821. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2822. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, element_r19.date_used, "longDate"), " ");
  2823. } }
  2824. function GainListComponent_table_0_tr_16_Template(rf, ctx) { if (rf & 1) {
  2825. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 17);
  2826. } }
  2827. function GainListComponent_table_0_tr_17_Template(rf, ctx) { if (rf & 1) {
  2828. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 18);
  2829. } }
  2830. function GainListComponent_table_0_Template(rf, ctx) { if (rf & 1) {
  2831. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 1);
  2832. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1, 2);
  2833. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, GainListComponent_table_0_th_2_Template, 2, 0, "th", 3);
  2834. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, GainListComponent_table_0_td_3_Template, 2, 1, "td", 4);
  2835. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  2836. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](4, 5);
  2837. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, GainListComponent_table_0_th_5_Template, 2, 0, "th", 3);
  2838. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, GainListComponent_table_0_td_6_Template, 2, 1, "td", 4);
  2839. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  2840. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](7, 6);
  2841. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, GainListComponent_table_0_th_8_Template, 2, 0, "th", 3);
  2842. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, GainListComponent_table_0_td_9_Template, 2, 1, "td", 4);
  2843. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  2844. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](10, 7);
  2845. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, GainListComponent_table_0_th_11_Template, 2, 0, "th", 3);
  2846. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, GainListComponent_table_0_td_12_Template, 3, 2, "td", 4);
  2847. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  2848. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](13, 8);
  2849. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, GainListComponent_table_0_th_14_Template, 2, 0, "th", 3);
  2850. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, GainListComponent_table_0_td_15_Template, 3, 4, "td", 4);
  2851. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  2852. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, GainListComponent_table_0_tr_16_Template, 1, 0, "tr", 9);
  2853. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, GainListComponent_table_0_tr_17_Template, 1, 0, "tr", 10);
  2854. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2855. } if (rf & 2) {
  2856. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  2857. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("dataSource", ctx_r0.lots);
  2858. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
  2859. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matHeaderRowDef", ctx_r0.displayedColumns);
  2860. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2861. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRowDefColumns", ctx_r0.displayedColumns);
  2862. } }
  2863. class GainListComponent {
  2864. constructor() {
  2865. this.lots = [];
  2866. this.displayedColumns = ['index', 'code', 'gain', 'isServed', 'date_used'];
  2867. this.dataSource = new _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTableDataSource"]();
  2868. }
  2869. ngOnInit() {
  2870. this.dataSource.data = this.lots;
  2871. }
  2872. subscribeToUsers() {
  2873. // this.UsersService.getUsers(this.page,this.pageSize).subscribe((res) => {
  2874. // this.usersArray = res.users
  2875. // this.length = res.total
  2876. // this.page = res.page
  2877. // console.log(res.users)
  2878. // })
  2879. }
  2880. }
  2881. GainListComponent.ɵfac = function GainListComponent_Factory(t) { return new (t || GainListComponent)(); };
  2882. GainListComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GainListComponent, selectors: [["app-gain-list"]], inputs: { lots: "lots" }, decls: 1, vars: 1, consts: [["mat-table", "", "class", "tablegain", 3, "dataSource", 4, "ngIf"], ["mat-table", "", 1, "tablegain", 3, "dataSource"], ["matColumnDef", "index"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", "class", "text-left", 4, "matCellDef"], ["matColumnDef", "code"], ["matColumnDef", "gain"], ["matColumnDef", "isServed"], ["matColumnDef", "date_used"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], ["mat-header-cell", ""], ["mat-cell", "", 1, "text-left"], ["class", "icon mr-2", "style", "color:#296119", 4, "ngIf"], ["class", "icon mr-2", "style", "color:rgb(67, 151, 230)", 4, "ngIf"], [1, "icon", "mr-2", 2, "color", "#296119"], [1, "icon", "mr-2", 2, "color", "rgb(67, 151, 230)"], ["mat-header-row", ""], ["mat-row", ""]], template: function GainListComponent_Template(rf, ctx) { if (rf & 1) {
  2883. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, GainListComponent_table_0_Template, 18, 3, "table", 0);
  2884. } if (rf & 2) {
  2885. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.lots);
  2886. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTable"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatColumnDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatCell"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__["MatIcon"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderRow"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatRow"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["DatePipe"]], styles: ["table[_ngcontent-%COMP%] {\n width: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vZ2Fpbi1saXN0L0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGF1dGhcXGdhaW5cXGdhaW4tbGlzdFxcZ2Fpbi1saXN0LmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2F1dGgvZ2Fpbi9nYWluLWxpc3QvZ2Fpbi1saXN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksV0FBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vZ2Fpbi1saXN0L2dhaW4tbGlzdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbInRhYmxlIHtcclxuICAgIHdpZHRoOiAxMDAlO1xyXG4gIH1cclxuXHJcblxyXG4iLCJ0YWJsZSB7XG4gIHdpZHRoOiAxMDAlO1xufSJdfQ== */"] });
  2887. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GainListComponent, [{
  2888. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  2889. args: [{
  2890. selector: 'app-gain-list',
  2891. templateUrl: './gain-list.component.html',
  2892. styleUrls: ['./gain-list.component.scss']
  2893. }]
  2894. }], function () { return []; }, { lots: [{
  2895. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2896. }] }); })();
  2897. /***/ }),
  2898. /***/ "./src/app/components/auth/gain/gain.component.ts":
  2899. /*!********************************************************!*\
  2900. !*** ./src/app/components/auth/gain/gain.component.ts ***!
  2901. \********************************************************/
  2902. /*! exports provided: GainComponent */
  2903. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2904. "use strict";
  2905. __webpack_require__.r(__webpack_exports__);
  2906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GainComponent", function() { return GainComponent; });
  2907. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  2908. /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../services/auth.service */ "./src/app/services/auth.service.ts");
  2909. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  2910. /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../services/users.service */ "./src/app/services/users.service.ts");
  2911. /* harmony import */ var _gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./gain-form/gain-form.component */ "./src/app/components/auth/gain/gain-form/gain-form.component.ts");
  2912. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  2913. /* harmony import */ var _gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./gain-list/gain-list.component */ "./src/app/components/auth/gain/gain-list/gain-list.component.ts");
  2914. function GainComponent_div_4_Template(rf, ctx) { if (rf & 1) {
  2915. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 4);
  2916. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "app-gain-list", 5);
  2917. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2918. } if (rf & 2) {
  2919. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  2920. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2921. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("lots", ctx_r0.lots);
  2922. } }
  2923. class GainComponent {
  2924. constructor(authService, route, userService) {
  2925. this.authService = authService;
  2926. this.route = route;
  2927. this.userService = userService;
  2928. this.lots = []; // Liste des gains
  2929. }
  2930. ngOnInit() {
  2931. // Charger les informations utilisateur et initialiser les gains
  2932. this.getInfoUser();
  2933. // Extraire le token JWT depuis les paramètres de l'URL
  2934. this.route.queryParams.subscribe((params) => {
  2935. this.token = params['token'];
  2936. });
  2937. }
  2938. /**
  2939. * Récupère les informations utilisateur depuis l'API AuthService
  2940. */
  2941. getInfoUser() {
  2942. this.authService.getUserInfo().subscribe((user) => {
  2943. this.user = user;
  2944. this.lots = user.gains || []; // Initialiser les gains à partir des données utilisateur
  2945. }, (err) => {
  2946. console.error('Erreur lors de la récupération des informations utilisateur :', err);
  2947. this.authService.openSnackBar('Impossible de charger les informations utilisateur.');
  2948. });
  2949. }
  2950. /**
  2951. * Vérifie un gain et met à jour la liste des gains
  2952. * @param $event Ticket - Le ticket à vérifier
  2953. */
  2954. receiveCode($event) {
  2955. const userId = this.authService.userValue._id; // ID utilisateur récupéré depuis AuthService
  2956. // Vérifier le ticket avec l'API UsersService
  2957. this.userService.verifyLotUser(userId, $event).subscribe((res) => {
  2958. if (res) {
  2959. // Ajouter le ticket vérifié à la liste locale
  2960. this.lots = [...this.lots, res];
  2961. // Mettre à jour les gains côté serveur
  2962. this.userService.updateUserGains(userId, this.lots).subscribe(() => {
  2963. console.log('Gains sauvegardés avec succès dans le backend.');
  2964. this.authService.openSnackBar('Gain ajouté avec succès !');
  2965. // Recharger les informations utilisateur pour s'assurer que les gains sont à jour
  2966. this.getInfoUser();
  2967. }, (err) => {
  2968. var _a;
  2969. console.error('Erreur lors de la sauvegarde des gains :', err);
  2970. this.authService.openSnackBar(`Erreur lors de la sauvegarde des gains : ${((_a = err.error) === null || _a === void 0 ? void 0 : _a.message) || 'Erreur inconnue.'}`);
  2971. });
  2972. }
  2973. }, (err) => {
  2974. var _a;
  2975. console.error('Erreur lors de la vérification du ticket :', err);
  2976. this.authService.openSnackBar(((_a = err.error) === null || _a === void 0 ? void 0 : _a.message) || 'Erreur lors de la vérification du ticket.');
  2977. });
  2978. console.log('Liste des gains après ajout :', this.lots);
  2979. }
  2980. }
  2981. GainComponent.ɵfac = function GainComponent_Factory(t) { return new (t || GainComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"])); };
  2982. GainComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GainComponent, selectors: [["app-gain"]], inputs: { lots: "lots" }, decls: 5, vars: 2, consts: [[1, "container", "navtop"], [3, "hidden"], [3, "code"], ["class", "my-3", 4, "ngIf"], [1, "my-3"], [3, "lots"]], template: function GainComponent_Template(rf, ctx) { if (rf & 1) {
  2983. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  2984. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  2985. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
  2986. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "app-gain-form", 2);
  2987. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("code", function GainComponent_Template_app_gain_form_code_3_listener($event) { return ctx.receiveCode($event); });
  2988. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2989. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2990. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, GainComponent_div_4_Template, 2, 1, "div", 3);
  2991. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2992. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  2993. } if (rf & 2) {
  2994. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2995. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", ctx.user.role != "client");
  2996. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  2997. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.lots);
  2998. } }, directives: [_gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_4__["GainFormComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_6__["GainListComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 6em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vQzpcXEZhdGJvYXJQcm9qZWN0XFxhbmd1bGFyLWNsaWVudC9zcmNcXGFwcFxcY29tcG9uZW50c1xcYXV0aFxcZ2FpblxcZ2Fpbi5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vZ2Fpbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGVBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYXV0aC9nYWluL2dhaW4uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogNmVtO1xyXG4gIH0iLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogNmVtO1xufSJdfQ== */"] });
  2999. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GainComponent, [{
  3000. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  3001. args: [{
  3002. selector: 'app-gain',
  3003. templateUrl: './gain.component.html',
  3004. styleUrls: ['./gain.component.scss'],
  3005. }]
  3006. }], function () { return [{ type: _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] }, { type: _services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }]; }, { lots: [{
  3007. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3008. }] }); })();
  3009. /***/ }),
  3010. /***/ "./src/app/components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component.ts":
  3011. /*!***********************************************************************************************************!*\
  3012. !*** ./src/app/components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component.ts ***!
  3013. \***********************************************************************************************************/
  3014. /*! exports provided: EditProfilInfoConnexionComponent */
  3015. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3016. "use strict";
  3017. __webpack_require__.r(__webpack_exports__);
  3018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditProfilInfoConnexionComponent", function() { return EditProfilInfoConnexionComponent; });
  3019. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  3020. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  3021. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  3022. /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../services/users.service */ "./src/app/services/users.service.ts");
  3023. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  3024. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  3025. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  3026. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  3027. function EditProfilInfoConnexionComponent_mat_error_9_Template(rf, ctx) { if (rf & 1) {
  3028. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error");
  3029. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
  3030. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3031. } if (rf & 2) {
  3032. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
  3033. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  3034. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r0.getErrorEmail(), " ");
  3035. } }
  3036. function EditProfilInfoConnexionComponent_mat_error_15_Template(rf, ctx) { if (rf & 1) {
  3037. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error");
  3038. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
  3039. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3040. } if (rf & 2) {
  3041. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
  3042. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  3043. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorPassword(), " ");
  3044. } }
  3045. class EditProfilInfoConnexionComponent {
  3046. constructor(element, dialogRef, formBuilder, usersService) {
  3047. this.element = element;
  3048. this.dialogRef = dialogRef;
  3049. this.formBuilder = formBuilder;
  3050. this.usersService = usersService;
  3051. this.submitted = false;
  3052. this.user = this.element;
  3053. }
  3054. ngOnInit() {
  3055. this.createForm();
  3056. }
  3057. createForm() {
  3058. let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  3059. this.formGroup = this.formBuilder.group({
  3060. email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].pattern(emailregex)]],
  3061. password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required, this.checkPassword]]
  3062. });
  3063. }
  3064. checkPassword(control) {
  3065. let enteredPassword = control.value;
  3066. let passwordCheck = /^(?=.*[A-Z])(?=.*[a-z])(?=.{8,})/;
  3067. return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null;
  3068. }
  3069. getErrorEmail() {
  3070. return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' :
  3071. this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : '';
  3072. }
  3073. getErrorPassword() {
  3074. return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' :
  3075. this.formGroup.get('password').hasError('requirements') ?
  3076. 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule, une lettre majuscule' : '';
  3077. }
  3078. // login
  3079. updateProfil() {
  3080. this.submitted = true;
  3081. if (this.formGroup.invalid) {
  3082. return;
  3083. }
  3084. this.usersService.editOneUser(this.element._id, this.formGroup.value).subscribe(data => {
  3085. // this.router.navigate([this.returnUrl]);
  3086. console.log(data);
  3087. // this.loading = false;
  3088. // this.router.navigate(['auth']);
  3089. }, err => {
  3090. // this.loading = false;
  3091. // console.log(err.error.message)
  3092. // this.authService.openSnackBar(err.error.message)
  3093. });
  3094. }
  3095. onConfirm() {
  3096. // Close the dialog, return true
  3097. this.dialogRef.close(true);
  3098. }
  3099. onNoClick() {
  3100. this.dialogRef.close(false);
  3101. }
  3102. }
  3103. EditProfilInfoConnexionComponent.ɵfac = function EditProfilInfoConnexionComponent_Factory(t) { return new (t || EditProfilInfoConnexionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"])); };
  3104. EditProfilInfoConnexionComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: EditProfilInfoConnexionComponent, selectors: [["app-edit-profil-info-connexion"]], decls: 21, vars: 5, consts: [["mat-dialog-title", "", 1, "text-center", "font-weight-bold"], [3, "formGroup", "ngSubmit"], ["mat-dialog-content", "", 1, ""], [1, "row"], [1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["appearance", "outline", 1, "col-7", "col-md-5"], ["matInput", "", "placeholder", "", "formControlName", "email", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "", "formControlName", "password", "required", ""], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function EditProfilInfoConnexionComponent_Template(rf, ctx) { if (rf & 1) {
  3105. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h1", 0);
  3106. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
  3107. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3108. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 1);
  3109. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngSubmit", function EditProfilInfoConnexionComponent_Template_form_ngSubmit_2_listener() { return ctx.updateProfil(); });
  3110. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 2);
  3111. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 3);
  3112. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "p", 4);
  3113. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Email:");
  3114. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3115. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "mat-form-field", 5);
  3116. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "input", 6);
  3117. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, EditProfilInfoConnexionComponent_mat_error_9_Template, 2, 1, "mat-error", 7);
  3118. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3119. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3120. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 3);
  3121. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "p", 4);
  3122. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Mot de passe:");
  3123. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3124. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "mat-form-field", 5);
  3125. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](14, "input", 8);
  3126. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, EditProfilInfoConnexionComponent_mat_error_15_Template, 2, 1, "mat-error", 7);
  3127. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3128. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3129. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3130. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 9);
  3131. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "button", 10);
  3132. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EditProfilInfoConnexionComponent_Template_button_click_17_listener() { return ctx.updateProfil(); });
  3133. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Modifier");
  3134. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3135. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "button", 11);
  3136. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EditProfilInfoConnexionComponent_Template_button_click_19_listener() { return ctx.onNoClick(); });
  3137. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, "Annuler");
  3138. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3139. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3140. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3141. } if (rf & 2) {
  3142. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  3143. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", ctx.element.lastname, " ", ctx.element.firstname, "");
  3144. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  3145. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup);
  3146. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
  3147. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid || ctx.formGroup.controls["email"].touched);
  3148. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
  3149. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched);
  3150. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_5__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["RequiredValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_7__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatError"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYXV0aC9wcm9maWwvZWRpdC1wcm9maWwtaW5mby1jb25uZXhpb24vZWRpdC1wcm9maWwtaW5mby1jb25uZXhpb24uY29tcG9uZW50LnNjc3MifQ== */"] });
  3151. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](EditProfilInfoConnexionComponent, [{
  3152. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
  3153. args: [{
  3154. selector: 'app-edit-profil-info-connexion',
  3155. templateUrl: './edit-profil-info-connexion.component.html',
  3156. styleUrls: ['./edit-profil-info-connexion.component.scss']
  3157. }]
  3158. }], function () { return [{ type: undefined, decorators: [{
  3159. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
  3160. args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]]
  3161. }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }, { type: _services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }]; }, null); })();
  3162. /***/ }),
  3163. /***/ "./src/app/components/auth/profil/edit-profil-info-user/edit-profil-info-user.component.ts":
  3164. /*!*************************************************************************************************!*\
  3165. !*** ./src/app/components/auth/profil/edit-profil-info-user/edit-profil-info-user.component.ts ***!
  3166. \*************************************************************************************************/
  3167. /*! exports provided: EditProfilInfoUserComponent */
  3168. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3169. "use strict";
  3170. __webpack_require__.r(__webpack_exports__);
  3171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditProfilInfoUserComponent", function() { return EditProfilInfoUserComponent; });
  3172. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  3173. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  3174. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  3175. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  3176. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  3177. /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../services/users.service */ "./src/app/services/users.service.ts");
  3178. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  3179. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  3180. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  3181. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  3182. function EditProfilInfoUserComponent_mat_error_9_Template(rf, ctx) { if (rf & 1) {
  3183. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error");
  3184. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
  3185. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3186. } if (rf & 2) {
  3187. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
  3188. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  3189. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r0.getErrorPhonenumber(), " ");
  3190. } }
  3191. class EditProfilInfoUserComponent {
  3192. constructor(element, router, authService, dialogRef, formBuilder, usersService) {
  3193. this.element = element;
  3194. this.router = router;
  3195. this.authService = authService;
  3196. this.dialogRef = dialogRef;
  3197. this.formBuilder = formBuilder;
  3198. this.usersService = usersService;
  3199. this.submitted = false;
  3200. this.loading = false;
  3201. this.user = this.element;
  3202. }
  3203. ngOnInit() {
  3204. this.createForm();
  3205. }
  3206. createForm() {
  3207. let phonenumberregex = /^(?:(?:\+|00)33|0)\s*[1-9](?:[\s.-]*\d{2}){4}$/;
  3208. this.formGroup = this.formBuilder.group({
  3209. phonenumber: [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].pattern(phonenumberregex)],
  3210. adress: []
  3211. });
  3212. }
  3213. // login
  3214. updateProfil() {
  3215. this.submitted = true;
  3216. if (this.formGroup.invalid) {
  3217. return;
  3218. }
  3219. this.usersService.editOneUser(this.element._id, this.formGroup.value).subscribe(data => {
  3220. // this.router.navigate([this.returnUrl]);
  3221. console.log(data);
  3222. this.loading = false;
  3223. this.dialogRef.close(true);
  3224. //this.router.navigate(['auth']);
  3225. }, err => {
  3226. this.loading = false;
  3227. console.log(err.error.message);
  3228. this.authService.openSnackBar(err.error.message);
  3229. });
  3230. }
  3231. getErrorPhonenumber() {
  3232. return this.formGroup.get('phonenumber').hasError('pattern') ? 'Numéro de téléphone non valide' : '';
  3233. }
  3234. onConfirm() {
  3235. // Close the dialog, return true
  3236. this.dialogRef.close(true);
  3237. }
  3238. onNoClick() {
  3239. this.dialogRef.close(false);
  3240. }
  3241. }
  3242. EditProfilInfoUserComponent.ɵfac = function EditProfilInfoUserComponent_Factory(t) { return new (t || EditProfilInfoUserComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"])); };
  3243. EditProfilInfoUserComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: EditProfilInfoUserComponent, selectors: [["app-edit-profil-info-user"]], decls: 20, vars: 6, consts: [["mat-dialog-title", "", 1, "text-center", "font-weight-bold"], [3, "formGroup", "ngSubmit"], ["mat-dialog-content", "", 1, ""], [1, "row"], [1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["appearance", "outline", 1, "col-7", "col-md-5"], ["matInput", "", "placeholder", "", "formControlName", "phonenumber", "required", "", 3, "ngModel", "ngModelChange"], [4, "ngIf"], ["matInput", "", "placeholder", "", "formControlName", "adress", "required", "", 3, "ngModel", "ngModelChange"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function EditProfilInfoUserComponent_Template(rf, ctx) { if (rf & 1) {
  3244. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h1", 0);
  3245. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
  3246. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3247. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 1);
  3248. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngSubmit", function EditProfilInfoUserComponent_Template_form_ngSubmit_2_listener() { return ctx.updateProfil(); });
  3249. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 2);
  3250. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 3);
  3251. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "p", 4);
  3252. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "T\u00E9l\u00E9phone :");
  3253. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3254. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "mat-form-field", 5);
  3255. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "input", 6);
  3256. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function EditProfilInfoUserComponent_Template_input_ngModelChange_8_listener($event) { return ctx.user.phonenumber = $event; });
  3257. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3258. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, EditProfilInfoUserComponent_mat_error_9_Template, 2, 1, "mat-error", 7);
  3259. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3260. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3261. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 3);
  3262. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "p", 4);
  3263. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Adresse :");
  3264. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3265. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "mat-form-field", 5);
  3266. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "input", 8);
  3267. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function EditProfilInfoUserComponent_Template_input_ngModelChange_14_listener($event) { return ctx.user.adress = $event; });
  3268. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3269. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3270. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3271. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3272. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 9);
  3273. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 10);
  3274. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EditProfilInfoUserComponent_Template_button_click_16_listener() { return ctx.updateProfil(); });
  3275. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Modifier");
  3276. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3277. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "button", 11);
  3278. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EditProfilInfoUserComponent_Template_button_click_18_listener() { return ctx.onNoClick(); });
  3279. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "Annuler");
  3280. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3281. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3282. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3283. } if (rf & 2) {
  3284. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  3285. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", ctx.element.lastname, " ", ctx.element.firstname, "");
  3286. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  3287. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup);
  3288. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
  3289. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.user.phonenumber);
  3290. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  3291. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["phonenumber"].valid || ctx.formGroup.controls["phonenumber"].touched);
  3292. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
  3293. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.user.adress);
  3294. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_7__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["RequiredValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatError"]], styles: [".parag[_ngcontent-%COMP%] {\n margin-top: 1em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9lZGl0LXByb2ZpbC1pbmZvLXVzZXIvQzpcXEZhdGJvYXJQcm9qZWN0XFxhbmd1bGFyLWNsaWVudC9zcmNcXGFwcFxcY29tcG9uZW50c1xcYXV0aFxccHJvZmlsXFxlZGl0LXByb2ZpbC1pbmZvLXVzZXJcXGVkaXQtcHJvZmlsLWluZm8tdXNlci5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9lZGl0LXByb2ZpbC1pbmZvLXVzZXIvZWRpdC1wcm9maWwtaW5mby11c2VyLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBO0VBQ0ksZUFBQTtBQ0RKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9lZGl0LXByb2ZpbC1pbmZvLXVzZXIvZWRpdC1wcm9maWwtaW5mby11c2VyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiXHJcblxyXG4ucGFyYWd7XHJcbiAgICBtYXJnaW4tdG9wOiAxZW07XHJcbn0iLCIucGFyYWcge1xuICBtYXJnaW4tdG9wOiAxZW07XG59Il19 */"] });
  3295. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](EditProfilInfoUserComponent, [{
  3296. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
  3297. args: [{
  3298. selector: 'app-edit-profil-info-user',
  3299. templateUrl: './edit-profil-info-user.component.html',
  3300. styleUrls: ['./edit-profil-info-user.component.scss']
  3301. }]
  3302. }], function () { return [{ type: undefined, decorators: [{
  3303. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
  3304. args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]]
  3305. }] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }, { type: _services_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"] }]; }, null); })();
  3306. /***/ }),
  3307. /***/ "./src/app/components/auth/profil/profil.component.ts":
  3308. /*!************************************************************!*\
  3309. !*** ./src/app/components/auth/profil/profil.component.ts ***!
  3310. \************************************************************/
  3311. /*! exports provided: ProfilComponent */
  3312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3313. "use strict";
  3314. __webpack_require__.r(__webpack_exports__);
  3315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProfilComponent", function() { return ProfilComponent; });
  3316. /* harmony import */ var _edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./edit-profil-info-connexion/edit-profil-info-connexion.component */ "./src/app/components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component.ts");
  3317. /* harmony import */ var _edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./edit-profil-info-user/edit-profil-info-user.component */ "./src/app/components/auth/profil/edit-profil-info-user/edit-profil-info-user.component.ts");
  3318. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  3319. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  3320. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  3321. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  3322. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  3323. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  3324. class ProfilComponent {
  3325. constructor(authService, dialog) {
  3326. this.authService = authService;
  3327. this.dialog = dialog;
  3328. this.authService.user_info.subscribe((x) => { this.user = x; });
  3329. }
  3330. ngOnInit() {
  3331. }
  3332. //edit info user
  3333. editInfoUser() {
  3334. const dialogRef = this.dialog.open(_edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_1__["EditProfilInfoUserComponent"], {
  3335. width: '450px',
  3336. height: '280px',
  3337. data: this.user
  3338. });
  3339. dialogRef.afterClosed().subscribe(result => {
  3340. // if (result) {
  3341. // this.bookService.cancelBook(this._book.id).subscribe(
  3342. // response => {
  3343. // this.openDialog()
  3344. // }
  3345. // )
  3346. // }
  3347. });
  3348. }
  3349. editInfoUserConnexion() {
  3350. const dialogRef = this.dialog.open(_edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_0__["EditProfilInfoConnexionComponent"], {
  3351. width: '450px',
  3352. height: '280px',
  3353. data: this.user
  3354. });
  3355. dialogRef.afterClosed().subscribe(result => {
  3356. // if (result) {
  3357. // this.bookService.cancelBook(this._book.id).subscribe(
  3358. // response => {
  3359. // this.openDialog()
  3360. // }
  3361. // )
  3362. // }
  3363. });
  3364. }
  3365. }
  3366. ProfilComponent.ɵfac = function ProfilComponent_Factory(t) { return new (t || ProfilComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialog"])); };
  3367. ProfilComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ProfilComponent, selectors: [["app-profil"]], decls: 65, vars: 11, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-11", "col-md-8"], [1, "row"], [1, "col-md-6", "border-right"], ["width", "120", "height", "120", "src", "assets/img/profil/profil.png", "alt", ""], [1, "row", "justify-content-center", "mb-3"], [1, "col-5"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", 3, "click"], [1, "col-md-6"], ["mat-raised-button", "", "color", "primary", 1, "col-6", 3, "click"]], template: function ProfilComponent_Template(rf, ctx) { if (rf & 1) {
  3368. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
  3369. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
  3370. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "mat-card", 2);
  3371. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "mat-card-content");
  3372. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 3);
  3373. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 4);
  3374. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 1);
  3375. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "img", 5);
  3376. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3377. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 6);
  3378. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "p");
  3379. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "b");
  3380. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11);
  3381. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3382. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3383. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3384. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 3);
  3385. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "p", 7);
  3386. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, " Email : ");
  3387. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3388. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "p", 7);
  3389. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16);
  3390. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3391. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3392. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 3);
  3393. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "p", 7);
  3394. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, " Mot de passe : ");
  3395. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3396. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "p", 7);
  3397. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "***********");
  3398. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3399. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3400. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 8);
  3401. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "button", 9);
  3402. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProfilComponent_Template_button_click_23_listener() { return ctx.editInfoUserConnexion(); });
  3403. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "Modifier");
  3404. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3405. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3406. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3407. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 10);
  3408. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 3);
  3409. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 7);
  3410. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "p");
  3411. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Nom : ");
  3412. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3413. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3414. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 7);
  3415. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "p");
  3416. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32);
  3417. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3418. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3419. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3420. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 3);
  3421. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 7);
  3422. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "p");
  3423. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "Pr\u00E9nom : ");
  3424. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3425. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3426. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 7);
  3427. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "p");
  3428. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39);
  3429. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3430. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3431. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3432. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 3);
  3433. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 7);
  3434. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "p");
  3435. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "Num\u00E9ro de t\u00E9l\u00E9phone : ");
  3436. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3437. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3438. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "div", 7);
  3439. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "p");
  3440. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46);
  3441. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3442. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3443. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3444. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 3);
  3445. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 7);
  3446. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "p");
  3447. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "Date de naissance : ");
  3448. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3449. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3450. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "div", 7);
  3451. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "p");
  3452. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53);
  3453. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](54, "date");
  3454. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3455. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3456. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3457. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "div", 3);
  3458. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 7);
  3459. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "p");
  3460. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](58, "Adresse : ");
  3461. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3462. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3463. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "div", 7);
  3464. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "p");
  3465. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61);
  3466. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3467. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3468. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3469. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div", 8);
  3470. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "button", 11);
  3471. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProfilComponent_Template_button_click_63_listener() { return ctx.editInfoUser(); });
  3472. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, "Modifier");
  3473. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3474. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3475. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3476. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3477. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3478. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3479. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3480. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  3481. } if (rf & 2) {
  3482. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
  3483. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", ctx.user.firstname, " ", ctx.user.lastname, "");
  3484. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
  3485. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.email);
  3486. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
  3487. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.firstname);
  3488. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
  3489. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.lastname);
  3490. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
  3491. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.phonenumber);
  3492. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
  3493. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](54, 8, ctx.user.birthday, "longDate"));
  3494. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
  3495. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.adress);
  3496. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_5__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_5__["MatCardContent"], _angular_material_button__WEBPACK_IMPORTED_MODULE_6__["MatButton"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_7__["DatePipe"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 8.6em;\n margin-bottom: 4em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhdXRoXFxwcm9maWxcXHByb2ZpbC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9wcm9maWwuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxpQkFBQTtFQUNBLGtCQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2F1dGgvcHJvZmlsL3Byb2ZpbC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiA4LjZlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDRlbTtcclxuICB9XHJcbiAiLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogOC42ZW07XG4gIG1hcmdpbi1ib3R0b206IDRlbTtcbn0iXX0= */"] });
  3497. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](ProfilComponent, [{
  3498. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
  3499. args: [{
  3500. selector: 'app-profil',
  3501. templateUrl: './profil.component.html',
  3502. styleUrls: ['./profil.component.scss']
  3503. }]
  3504. }], function () { return [{ type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialog"] }]; }, null); })();
  3505. /***/ }),
  3506. /***/ "./src/app/components/auth/tirage/tirage.component.ts":
  3507. /*!************************************************************!*\
  3508. !*** ./src/app/components/auth/tirage/tirage.component.ts ***!
  3509. \************************************************************/
  3510. /*! exports provided: TirageComponent */
  3511. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3512. "use strict";
  3513. __webpack_require__.r(__webpack_exports__);
  3514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TirageComponent", function() { return TirageComponent; });
  3515. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  3516. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  3517. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  3518. /* harmony import */ var src_app_services_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/users.service */ "./src/app/services/users.service.ts");
  3519. /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  3520. /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js");
  3521. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  3522. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  3523. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  3524. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  3525. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  3526. function TirageComponent_mat_error_10_Template(rf, ctx) { if (rf & 1) {
  3527. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  3528. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  3529. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3530. } if (rf & 2) {
  3531. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  3532. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  3533. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.messageError, " ");
  3534. } }
  3535. class TirageComponent {
  3536. constructor(authService, userService, fb, http, snackbar) {
  3537. this.authService = authService;
  3538. this.userService = userService;
  3539. this.fb = fb;
  3540. this.http = http;
  3541. this.snackbar = snackbar;
  3542. this.URL = "http://localhost:4000";
  3543. this.messageError = null;
  3544. this.tirage = {
  3545. message: '',
  3546. success: false,
  3547. };
  3548. }
  3549. ngOnInit() {
  3550. this.authService.getUserInfo().subscribe(user => this.user = user);
  3551. this.createdForm();
  3552. }
  3553. createdForm() {
  3554. this.formTirage = this.fb.group({
  3555. date: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]
  3556. });
  3557. }
  3558. postDateTirage() {
  3559. console.log('date: ', this.formTirage.value);
  3560. const tiragedate = this.formTirage.value;
  3561. const reponse = this.http.post(`${this.URL}/api/tirage/date`, tiragedate);
  3562. reponse.toPromise().then(res => {
  3563. this.snackbar.open(res.message, 'close');
  3564. }).catch(err => {
  3565. console.log('message erreur =>', err.error.message);
  3566. this.messageError = err.error.message;
  3567. });
  3568. }
  3569. getTirage() {
  3570. const resultatTirage = this.http.get(`${this.URL}/api/tirage`);
  3571. resultatTirage.toPromise().then((res) => {
  3572. this.tirage = res;
  3573. console.log('resultar ', this.tirage);
  3574. }).catch(err => console.log('err', err));
  3575. }
  3576. getWinner(user) {
  3577. }
  3578. }
  3579. TirageComponent.ɵfac = function TirageComponent_Factory(t) { return new (t || TirageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_4__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBar"])); };
  3580. TirageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TirageComponent, selectors: [["app-tirage"]], decls: 21, vars: 3, consts: [[1, "navtop"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "mt-3"], ["appearance", "fill", 1, "formu"], ["matInput", "", "formControlName", "date", "type", "date"], [4, "ngIf"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-4", "color-theme"], ["mat-raised-button", "", "color", "primary", 1, "col-4", "color-theme", 3, "click"]], template: function TirageComponent_Template(rf, ctx) { if (rf & 1) {
  3581. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card", 0);
  3582. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card-content");
  3583. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 1);
  3584. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function TirageComponent_Template_form_ngSubmit_2_listener() { return ctx.postDateTirage(); });
  3585. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
  3586. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div");
  3587. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "mat-form-field", 3);
  3588. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "mat-label");
  3589. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Choose a date");
  3590. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3591. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 4);
  3592. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3593. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3594. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3595. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 2);
  3596. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, TirageComponent_mat_error_10_Template, 2, 1, "mat-error", 5);
  3597. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3598. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 2);
  3599. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 6);
  3600. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Excuter");
  3601. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3602. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3603. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3604. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3605. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "mat-card-content");
  3606. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 2);
  3607. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 7);
  3608. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TirageComponent_Template_button_click_16_listener() { return ctx.getTirage(); });
  3609. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Lancer le tirage");
  3610. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3611. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3612. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 2);
  3613. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19);
  3614. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3615. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3616. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "mat-card-content");
  3617. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3618. } if (rf & 2) {
  3619. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  3620. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formTirage);
  3621. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
  3622. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.messageError != null);
  3623. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
  3624. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.tirage.message, " ");
  3625. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_6__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_6__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_7__["MatFormField"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_7__["MatLabel"], _angular_material_input__WEBPACK_IMPORTED_MODULE_8__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_10__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_7__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 12em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3RpcmFnZS9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhdXRoXFx0aXJhZ2VcXHRpcmFnZS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3RpcmFnZS90aXJhZ2UuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxnQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3RpcmFnZS90aXJhZ2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogMTJlbTtcclxuICB9IiwiLm5hdnRvcCB7XG4gIG1hcmdpbi10b3A6IDEyZW07XG59Il19 */"] });
  3626. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TirageComponent, [{
  3627. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  3628. args: [{
  3629. selector: 'app-tirage',
  3630. templateUrl: './tirage.component.html',
  3631. styleUrls: ['./tirage.component.scss']
  3632. }]
  3633. }], function () { return [{ type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"] }, { type: src_app_services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_4__["HttpClient"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBar"] }]; }, null); })();
  3634. /***/ }),
  3635. /***/ "./src/app/components/home/home.component.ts":
  3636. /*!***************************************************!*\
  3637. !*** ./src/app/components/home/home.component.ts ***!
  3638. \***************************************************/
  3639. /*! exports provided: HomeComponent */
  3640. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3641. "use strict";
  3642. __webpack_require__.r(__webpack_exports__);
  3643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomeComponent", function() { return HomeComponent; });
  3644. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  3645. /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
  3646. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  3647. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  3648. const imgRange = "assets/img/concours/range.png";
  3649. const imgReduction = "assets/img/concours/70.png";
  3650. const imgBurger = "assets/img/concours/burger2.png";
  3651. const imgDessert = "assets/img/concours/dessert5.png";
  3652. const imgMenuJour = "assets/img/concours/menu-jour.png";
  3653. const imgMenuChoix = "assets/img/concours/menu-choix.png";
  3654. class HomeComponent {
  3655. constructor(domSanitizer) {
  3656. this.domSanitizer = domSanitizer;
  3657. }
  3658. ngOnInit() {
  3659. }
  3660. getImgRange() {
  3661. return this.domSanitizer.bypassSecurityTrustResourceUrl(imgRange);
  3662. }
  3663. getDessert() {
  3664. return this.domSanitizer.bypassSecurityTrustResourceUrl(imgDessert);
  3665. }
  3666. getBurger() {
  3667. return this.domSanitizer.bypassSecurityTrustResourceUrl(imgBurger);
  3668. }
  3669. getMenuJour() {
  3670. return this.domSanitizer.bypassSecurityTrustResourceUrl(imgMenuJour);
  3671. }
  3672. getMenuChoix() {
  3673. return this.domSanitizer.bypassSecurityTrustResourceUrl(imgMenuChoix);
  3674. }
  3675. getReduction() {
  3676. return this.domSanitizer.bypassSecurityTrustResourceUrl(imgReduction);
  3677. }
  3678. }
  3679. HomeComponent.ɵfac = function HomeComponent_Factory(t) { return new (t || HomeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"])); };
  3680. HomeComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: HomeComponent, selectors: [["app-home"]], decls: 48, vars: 6, consts: [[1, "container", "navtop"], [1, "text-center", "gain", "mb-4"], [1, "range"], [1, "text-center", "concours", "font-weight-bold"], [1, "text-center", "concours"], [1, "row"], [1, "col-12", "col-md-6", "order-2", "order-md-1"], [1, "col-12", "col-md-9"], [1, "col-12", "col-md-6", "order-1", "order-md-2"], ["alt", "Image of rangeRover", "width", "80%", 1, "rangeRover", 3, "src"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", "routerLink", "/login", 1, "col-8", "col-md-4", "color-theme"], [1, "lots", "mt-4"], [1, "text-center", "font-weight-bold"], [1, "row", "mt-5"], [1, "col-4"], ["alt", "A description of dessert au choix", "width", "100%", 3, "src"], [1, "text-center", "font-weight-bold", "dessert"], ["alt", "A description burger au choix", "width", "90%", 3, "src"], ["alt", "A description of menu du jour", "width", "60%", 3, "src"], [1, "row", "justify-content-center"], ["alt", "A description of menu au choix", "width", "90%", 3, "src"], ["alt", "A description of 70% de r\u00E9duction", "width", "90%", 3, "src"]], template: function HomeComponent_Template(rf, ctx) { if (rf & 1) {
  3681. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  3682. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h1", 1);
  3683. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "jeu-concours");
  3684. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3685. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
  3686. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "h2", 1);
  3687. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Tentez de gagner un Range Rover ");
  3688. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3689. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h3", 3);
  3690. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Du 16 juillet 2020 au 16 septembre 2024");
  3691. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3692. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "h4", 4);
  3693. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Pour tout achat d'une valeur de 18\u20AC ou plus dans l'un de nos restaurants re\u00E7oit un code Promo");
  3694. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3695. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 5);
  3696. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 6);
  3697. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "h4", 7);
  3698. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "A l'occasion de l'ouverture de notre 100e restaurants Fatboar, Tentez de repartir avec un Range Rover d'une valeur de 59900\u20AC en participant \u00E0 notre Grand jeu-concours FatBoar.");
  3699. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3700. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "h4", 7);
  3701. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Il vous suffi d'une seule participation \u00E0 notre jeu concours pour avoir une chance d'\u00EAtre tir\u00E9 au sort et gagner votre Range Rover !");
  3702. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3703. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "h4", 7);
  3704. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "A noter que chacunes de vos participations vous offrons une r\u00E9compences !");
  3705. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3706. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3707. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 8);
  3708. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "img", 9);
  3709. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3710. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3711. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 10);
  3712. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "button", 11);
  3713. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Je participe");
  3714. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3715. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3716. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3717. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 12);
  3718. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "h2", 13);
  3719. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "100% des tickets seront gagnants");
  3720. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3721. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 14);
  3722. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 15);
  3723. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "img", 16);
  3724. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "h2", 17);
  3725. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Un dessert au choix");
  3726. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3727. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3728. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 15);
  3729. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](32, "img", 18);
  3730. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "h2", 13);
  3731. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "Un burger au choix");
  3732. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3733. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3734. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 15);
  3735. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "img", 19);
  3736. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "h2", 13);
  3737. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Un menu du jour");
  3738. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3739. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3740. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3741. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 20);
  3742. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 15);
  3743. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "img", 21);
  3744. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "h2", 13);
  3745. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Un menu au choix");
  3746. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3747. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3748. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 15);
  3749. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](45, "img", 22);
  3750. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "h2", 13);
  3751. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "70% de r\u00E9duction");
  3752. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3753. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3754. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3755. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3756. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3757. } if (rf & 2) {
  3758. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](19);
  3759. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getImgRange(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
  3760. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
  3761. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getDessert(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
  3762. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  3763. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getBurger(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
  3764. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  3765. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getMenuJour(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
  3766. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
  3767. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getMenuChoix(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
  3768. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  3769. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getReduction(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
  3770. } }, directives: [_angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterLink"]], styles: ["@import url(\"https://fonts.googleapis.com/css2?family=Indie+Flower&family=Pacifico&family=Pangolin&family=Permanent+Marker&display=swap\");\n@import url(\"https://fonts.googleapis.com/css2?family=Maven+Pro:wght@900&display=swap\");\n.navtop[_ngcontent-%COMP%] {\n margin-top: 6em;\n}\n.gain[_ngcontent-%COMP%] {\n color: #1e0338;\n font-family: \"Indie Flower\", cursive;\n font-family: \"Pacifico\", cursive;\n font-family: \"Pangolin\", cursive;\n font-family: \"Permanent Marker\", cursive;\n font-size: 2.5em;\n}\n@media screen and (max-width: 640px) {\n .rangeRover[_ngcontent-%COMP%] {\n margin-left: 3em;\n }\n}\n.tex[_ngcontent-%COMP%] {\n font-family: \"Maven Pro\", sans-serif;\n}\n.dessert[_ngcontent-%COMP%] {\n margin-top: 0.7em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9ob21lL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGhvbWVcXGhvbWUuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvaG9tZS9ob21lLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNRLHlJQUFBO0FBRUEsdUZBQUE7QUFFUjtFQUNJLGVBQUE7QUNGSjtBREtFO0VBQ0UsY0FBQTtFQUNBLG9DQUFBO0VBQ0EsZ0NBQUE7RUFDQSxnQ0FBQTtFQUNBLHdDQUFBO0VBQ0EsZ0JBQUE7QUNGSjtBRE1FO0VBQ0U7SUFDRyxnQkFBQTtFQ0hMO0FBQ0Y7QURNQTtFQUNFLG9DQUFBO0FDSkY7QURPQTtFQUNFLGlCQUFBO0FDSkYiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2hvbWUvaG9tZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG5AaW1wb3J0IHVybCgnaHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3MyP2ZhbWlseT1JbmRpZStGbG93ZXImZmFtaWx5PVBhY2lmaWNvJmZhbWlseT1QYW5nb2xpbiZmYW1pbHk9UGVybWFuZW50K01hcmtlciZkaXNwbGF5PXN3YXAnKTtcclxuXHJcbkBpbXBvcnQgdXJsKCdodHRwczovL2ZvbnRzLmdvb2dsZWFwaXMuY29tL2NzczI/ZmFtaWx5PU1hdmVuK1Bybzp3Z2h0QDkwMCZkaXNwbGF5PXN3YXAnKTtcclxuXHJcbi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiA2ZW07XHJcbiAgfVxyXG5cclxuICAuZ2FpbntcclxuICAgIGNvbG9yOnJnYigzMCwgMywgNTYpO1xyXG4gICAgZm9udC1mYW1pbHk6ICdJbmRpZSBGbG93ZXInLCBjdXJzaXZlO1xyXG4gICAgZm9udC1mYW1pbHk6ICdQYWNpZmljbycsIGN1cnNpdmU7XHJcbiAgICBmb250LWZhbWlseTogJ1BhbmdvbGluJywgY3Vyc2l2ZTtcclxuICAgIGZvbnQtZmFtaWx5OiAnUGVybWFuZW50IE1hcmtlcicsIGN1cnNpdmU7XHJcbiAgICBmb250LXNpemU6IDIuNWVtO1xyXG4gIH1cclxuXHJcblxyXG4gIEBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDY0MHB4KSB7XHJcbiAgICAucmFuZ2VSb3ZlciB7XHJcbiAgICAgICBtYXJnaW4tbGVmdDogM2VtIDtcclxuICAgIH1cclxuICB9XHJcblxyXG4udGV4e1xyXG4gIGZvbnQtZmFtaWx5OiAnTWF2ZW4gUHJvJywgc2Fucy1zZXJpZjtcclxufVxyXG5cclxuLmRlc3NlcnR7XHJcbiAgbWFyZ2luLXRvcDogMC43ZW07XHJcbn1cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuICBcclxuXHJcbiIsIkBpbXBvcnQgdXJsKFwiaHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3MyP2ZhbWlseT1JbmRpZStGbG93ZXImZmFtaWx5PVBhY2lmaWNvJmZhbWlseT1QYW5nb2xpbiZmYW1pbHk9UGVybWFuZW50K01hcmtlciZkaXNwbGF5PXN3YXBcIik7XG5AaW1wb3J0IHVybChcImh0dHBzOi8vZm9udHMuZ29vZ2xlYXBpcy5jb20vY3NzMj9mYW1pbHk9TWF2ZW4rUHJvOndnaHRAOTAwJmRpc3BsYXk9c3dhcFwiKTtcbi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiA2ZW07XG59XG5cbi5nYWluIHtcbiAgY29sb3I6ICMxZTAzMzg7XG4gIGZvbnQtZmFtaWx5OiBcIkluZGllIEZsb3dlclwiLCBjdXJzaXZlO1xuICBmb250LWZhbWlseTogXCJQYWNpZmljb1wiLCBjdXJzaXZlO1xuICBmb250LWZhbWlseTogXCJQYW5nb2xpblwiLCBjdXJzaXZlO1xuICBmb250LWZhbWlseTogXCJQZXJtYW5lbnQgTWFya2VyXCIsIGN1cnNpdmU7XG4gIGZvbnQtc2l6ZTogMi41ZW07XG59XG5cbkBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDY0MHB4KSB7XG4gIC5yYW5nZVJvdmVyIHtcbiAgICBtYXJnaW4tbGVmdDogM2VtO1xuICB9XG59XG4udGV4IHtcbiAgZm9udC1mYW1pbHk6IFwiTWF2ZW4gUHJvXCIsIHNhbnMtc2VyaWY7XG59XG5cbi5kZXNzZXJ0IHtcbiAgbWFyZ2luLXRvcDogMC43ZW07XG59Il19 */"] });
  3771. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HomeComponent, [{
  3772. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  3773. args: [{
  3774. selector: 'app-home',
  3775. templateUrl: './home.component.html',
  3776. styleUrls: ['./home.component.scss']
  3777. }]
  3778. }], function () { return [{ type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] }]; }, null); })();
  3779. /***/ }),
  3780. /***/ "./src/app/components/login/login.component.ts":
  3781. /*!*****************************************************!*\
  3782. !*** ./src/app/components/login/login.component.ts ***!
  3783. \*****************************************************/
  3784. /*! exports provided: LoginComponent */
  3785. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3786. "use strict";
  3787. __webpack_require__.r(__webpack_exports__);
  3788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginComponent", function() { return LoginComponent; });
  3789. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  3790. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  3791. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  3792. /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js");
  3793. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  3794. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  3795. /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
  3796. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  3797. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  3798. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  3799. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  3800. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  3801. /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js");
  3802. function LoginComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) {
  3803. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-progress-bar", 24);
  3804. } }
  3805. function LoginComponent_mat_error_32_Template(rf, ctx) { if (rf & 1) {
  3806. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  3807. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  3808. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3809. } if (rf & 2) {
  3810. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  3811. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  3812. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorEmail(), " ");
  3813. } }
  3814. function LoginComponent_mat_error_38_Template(rf, ctx) { if (rf & 1) {
  3815. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  3816. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  3817. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3818. } if (rf & 2) {
  3819. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  3820. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  3821. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorPassword(), " ");
  3822. } }
  3823. const googleLogoURL = "../assets/img/social/google+.svg";
  3824. const facebookLogoURL = "../assets/img/social/facebook.svg";
  3825. class LoginComponent {
  3826. constructor(router, snackBar, authService, formBuilder, matIconRegistry, domSanitizer) {
  3827. this.router = router;
  3828. this.snackBar = snackBar;
  3829. this.authService = authService;
  3830. this.formBuilder = formBuilder;
  3831. this.matIconRegistry = matIconRegistry;
  3832. this.domSanitizer = domSanitizer;
  3833. this.submitted = false;
  3834. this.loading = false;
  3835. this.hide = true;
  3836. this.matIconRegistry.addSvgIcon("googleLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(googleLogoURL)),
  3837. this.matIconRegistry.addSvgIcon("facebookLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(facebookLogoURL));
  3838. }
  3839. ngOnInit() {
  3840. this.createForm();
  3841. }
  3842. createForm() {
  3843. let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  3844. this.formGroup = this.formBuilder.group({
  3845. email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(emailregex)]],
  3846. password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, this.checkPassword]],
  3847. });
  3848. }
  3849. checkPassword(control) {
  3850. let enteredPassword = control.value;
  3851. let passwordCheck = /^(?=.*[a-z])(?=.{6,})/;
  3852. return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null;
  3853. }
  3854. getErrorEmail() {
  3855. return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' :
  3856. this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : '';
  3857. }
  3858. getErrorPassword() {
  3859. return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' :
  3860. this.formGroup.get('password').hasError('requirements') ?
  3861. 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule' : '';
  3862. }
  3863. get f() { return this.formGroup.controls; }
  3864. // login
  3865. signIn() {
  3866. this.submitted = true;
  3867. if (this.formGroup.invalid) {
  3868. return;
  3869. }
  3870. this.loading = true;
  3871. this.authService.signIn(this.formGroup.value).subscribe(data => {
  3872. console.log(data);
  3873. this.loading = false;
  3874. this.router.navigate(['/auth']);
  3875. setTimeout(() => {
  3876. document.location.reload();
  3877. }, 2000);
  3878. }, err => {
  3879. this.loading = false;
  3880. console.log(err.error.message);
  3881. this.authService.openSnackBar(err.error.message);
  3882. });
  3883. }
  3884. }
  3885. LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__["MatSnackBar"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"])); };
  3886. LoginComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LoginComponent, selectors: [["app-login"]], decls: 49, vars: 6, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-11", "col-lg-5", 2, "border-radius", "10px"], ["class", "col-12", "mode", "indeterminate", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "mb-3"], ["mat-raised-button", "", 1, "col-10", "col-md-8", "googlelogin", 2, "background-color", "#AD0505", "color", "white"], [1, "row", "mt-1", "ml-3"], ["svgIcon", "googleLogo", 1, "ml-2"], [1, "ml-2", "marginButton"], ["mat-raised-button", "", 1, "col-10", "col-md-8", "facebooklogin", 2, "background-color", "#2121A1", "color", "white"], ["svgIcon", "facebookLogo", 1, "ml-2"], [1, "row", "mt-3", "justify-content-center"], [1, "col-4"], [1, "col-1"], [1, "col-10"], ["matInput", "", "placeholder", "Adresse email", "formControlName", "email", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "Mot de passe", "formControlName", "password", "required", "", 3, "type"], ["matSuffix", "", 3, "click"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", "color-theme"], ["_ngcontent-yhd-c250", "", "routerlink", "/login/lost-password", "ng-reflect-router-link", "/login/lost-password", "href", "/login/lost-password", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], ["_ngcontent-yhd-c250", "", "routerlink", "/register", "ng-reflect-router-link", "/register", "href", "/register", 1, "ml-1", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], ["mode", "indeterminate", 1, "col-12"]], template: function LoginComponent_Template(rf, ctx) { if (rf & 1) {
  3887. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  3888. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  3889. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-card", 2);
  3890. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LoginComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 3);
  3891. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "mat-card-content");
  3892. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form", 4);
  3893. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function LoginComponent_Template_form_ngSubmit_5_listener() { return ctx.signIn(); });
  3894. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h1", 1);
  3895. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "b");
  3896. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Connexion");
  3897. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3898. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3899. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 5);
  3900. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 6);
  3901. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7);
  3902. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "mat-icon", 8);
  3903. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p", 9);
  3904. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Se connecter avec Google");
  3905. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3906. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3907. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3908. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3909. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 1);
  3910. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 10);
  3911. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 7);
  3912. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "mat-icon", 11);
  3913. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "p", 9);
  3914. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Se connecter avec Facebook");
  3915. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3916. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3917. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3918. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3919. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 12);
  3920. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 13);
  3921. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "hr");
  3922. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3923. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 14);
  3924. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "p");
  3925. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "ou");
  3926. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3927. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3928. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 13);
  3929. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "hr");
  3930. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3931. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3932. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 1);
  3933. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "mat-form-field", 15);
  3934. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 16);
  3935. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](32, LoginComponent_mat_error_32_Template, 2, 1, "mat-error", 17);
  3936. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3937. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3938. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 1);
  3939. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "mat-form-field", 15);
  3940. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "input", 18);
  3941. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "mat-icon", 19);
  3942. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LoginComponent_Template_mat_icon_click_36_listener() { return ctx.hide = !ctx.hide; });
  3943. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37);
  3944. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3945. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](38, LoginComponent_mat_error_38_Template, 2, 1, "mat-error", 17);
  3946. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3947. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3948. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 20);
  3949. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "button", 21);
  3950. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Se connecter");
  3951. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3952. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3953. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "p", 20);
  3954. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "a", 22);
  3955. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, " Mot de passe oubli\u00E9 ? ");
  3956. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3957. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3958. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "p", 1);
  3959. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Vous n'avez pas encore de compte?");
  3960. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "a", 23);
  3961. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "\nCr\u00E9er un compte\n");
  3962. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3963. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3964. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3965. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3966. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3967. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3968. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3969. } if (rf & 2) {
  3970. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  3971. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loading);
  3972. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  3973. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup);
  3974. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](27);
  3975. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid && ctx.formGroup.controls["email"].touched);
  3976. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  3977. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx.hide ? "password" : "text");
  3978. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  3979. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.hide ? "visibility_off" : "visibility");
  3980. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  3981. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid && ctx.formGroup.controls["password"].touched);
  3982. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCard"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIcon"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_11__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatSuffix"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n\n.facebooklogin[_ngcontent-%COMP%] {\n margin-bottom: -0.5em !important;\n}\n\n.googlelogin[_ngcontent-%COMP%] {\n margin-bottom: -0.5em !important;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxsb2dpblxcbG9naW4uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvbG9naW4vbG9naW4uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxlQUFBO0VBQ0Esa0JBQUE7QUNDSjs7QURFRTtFQUNFLGdDQUFBO0FDQ0o7O0FEQ0U7RUFDRSxnQ0FBQTtBQ0VKOztBREFFO0VBQ0UsNkJBQUE7QUNHSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbG9naW4vbG9naW4uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogN2VtO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogM2VtO1xyXG4gIH1cclxuIFxyXG4gIC5mYWNlYm9va2xvZ2lue1xyXG4gICAgbWFyZ2luLWJvdHRvbTogLTAuNWVtICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG4gIC5nb29nbGVsb2dpbntcclxuICAgIG1hcmdpbi1ib3R0b206IC0wLjVlbSAhaW1wb3J0YW50O1xyXG4gIH1cclxuICAubWFyZ2luQnV0dG9ue1xyXG4gICAgbWFyZ2luLWJvdHRvbTogMGVtICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG5cclxuICIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiA3ZW07XG4gIG1hcmdpbi1ib3R0b206IDNlbTtcbn1cblxuLmZhY2Vib29rbG9naW4ge1xuICBtYXJnaW4tYm90dG9tOiAtMC41ZW0gIWltcG9ydGFudDtcbn1cblxuLmdvb2dsZWxvZ2luIHtcbiAgbWFyZ2luLWJvdHRvbTogLTAuNWVtICFpbXBvcnRhbnQ7XG59XG5cbi5tYXJnaW5CdXR0b24ge1xuICBtYXJnaW4tYm90dG9tOiAwZW0gIWltcG9ydGFudDtcbn0iXX0= */"] });
  3983. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LoginComponent, [{
  3984. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  3985. args: [{
  3986. selector: 'app-login',
  3987. templateUrl: './login.component.html',
  3988. styleUrls: ['./login.component.scss']
  3989. }]
  3990. }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__["MatSnackBar"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"] }]; }, null); })();
  3991. /***/ }),
  3992. /***/ "./src/app/components/login/lost-password/lost-password.component.ts":
  3993. /*!***************************************************************************!*\
  3994. !*** ./src/app/components/login/lost-password/lost-password.component.ts ***!
  3995. \***************************************************************************/
  3996. /*! exports provided: LostPasswordComponent */
  3997. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3998. "use strict";
  3999. __webpack_require__.r(__webpack_exports__);
  4000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LostPasswordComponent", function() { return LostPasswordComponent; });
  4001. /* harmony import */ var _shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../shared/confirm-message/confirm-message.component */ "./src/app/components/shared/confirm-message/confirm-message.component.ts");
  4002. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  4003. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  4004. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  4005. /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js");
  4006. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  4007. /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../services/auth.service */ "./src/app/services/auth.service.ts");
  4008. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  4009. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  4010. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  4011. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  4012. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  4013. /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js");
  4014. function LostPasswordComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) {
  4015. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "mat-progress-bar", 12);
  4016. } }
  4017. function LostPasswordComponent_mat_error_14_Template(rf, ctx) { if (rf & 1) {
  4018. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error");
  4019. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
  4020. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4021. } if (rf & 2) {
  4022. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
  4023. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  4024. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorEmail(), " ");
  4025. } }
  4026. class LostPasswordComponent {
  4027. constructor(router, snackBar, dialog, authService, formBuilder) {
  4028. this.router = router;
  4029. this.snackBar = snackBar;
  4030. this.dialog = dialog;
  4031. this.authService = authService;
  4032. this.formBuilder = formBuilder;
  4033. this.submitted = false;
  4034. this.loading = false;
  4035. }
  4036. ngOnInit() {
  4037. this.createForm();
  4038. }
  4039. createForm() {
  4040. let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  4041. this.formGroup = this.formBuilder.group({
  4042. email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(emailregex)]]
  4043. });
  4044. }
  4045. getErrorEmail() {
  4046. return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' :
  4047. this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : '';
  4048. }
  4049. get f() { return this.formGroup.controls; }
  4050. // lost password
  4051. lostPassword() {
  4052. this.submitted = true;
  4053. if (this.formGroup.invalid) {
  4054. return;
  4055. }
  4056. this.loading = true;
  4057. this.authService.lostPassword(this.formGroup.value).subscribe(data => {
  4058. console.log(JSON.stringify(data));
  4059. this.loading = false;
  4060. this.openDialog(data);
  4061. }, err => {
  4062. this.loading = false;
  4063. this.authService.openSnackBar(err.error.message);
  4064. });
  4065. }
  4066. openDialog(data) {
  4067. const dialogRef = this.dialog.open(_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_0__["ConfirmMessageComponent"], {
  4068. width: '38%',
  4069. data: {
  4070. response: data
  4071. }
  4072. });
  4073. dialogRef.afterClosed().subscribe(() => {
  4074. this.router.navigate(['/login']);
  4075. });
  4076. }
  4077. }
  4078. LostPasswordComponent.ɵfac = function LostPasswordComponent_Factory(t) { return new (t || LostPasswordComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_4__["MatSnackBar"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__["MatDialog"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"])); };
  4079. LostPasswordComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: LostPasswordComponent, selectors: [["app-lost-password"]], decls: 18, vars: 3, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-10", "col-lg-7", 2, "border-radius", "30px"], ["class", "col-12", "mode", "indeterminate", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "mt-2"], [1, "text-center"], [1, "col-10"], ["matInput", "", "placeholder", "Adresse email", "formControlName", "email", "required", ""], [4, "ngIf"], [1, "row", "justify-content-center", "my-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-8", "col-md-4", "color-theme"], ["mode", "indeterminate", 1, "col-12"]], template: function LostPasswordComponent_Template(rf, ctx) { if (rf & 1) {
  4080. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
  4081. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
  4082. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "mat-card", 2);
  4083. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, LostPasswordComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 3);
  4084. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "mat-card-content");
  4085. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "form", 4);
  4086. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngSubmit", function LostPasswordComponent_Template_form_ngSubmit_5_listener() { return ctx.lostPassword(); });
  4087. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h1", 5);
  4088. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "b");
  4089. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Mot de passe oubli\u00E9 ?");
  4090. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4091. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4092. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "h3", 6);
  4093. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Pas de probl\u00E8me ! Renseignez votre adresse e-mail ci-dessous, nous vous enverrons un lien pour r\u00E9initialiser votre mot de passe.");
  4094. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4095. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 1);
  4096. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "mat-form-field", 7);
  4097. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "input", 8);
  4098. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, LostPasswordComponent_mat_error_14_Template, 2, 1, "mat-error", 9);
  4099. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4100. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4101. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 10);
  4102. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 11);
  4103. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " Envoyer");
  4104. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4105. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4106. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4107. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4108. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4109. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4110. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4111. } if (rf & 2) {
  4112. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
  4113. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.loading);
  4114. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
  4115. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup);
  4116. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
  4117. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid || ctx.formGroup.controls["email"].touched);
  4118. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCard"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_10__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_button__WEBPACK_IMPORTED_MODULE_11__["MatButton"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 10em;\n margin-bottom: 5.2em;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi9sb3N0LXBhc3N3b3JkL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGxvZ2luXFxsb3N0LXBhc3N3b3JkXFxsb3N0LXBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2xvZ2luL2xvc3QtcGFzc3dvcmQvbG9zdC1wYXNzd29yZC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGdCQUFBO0VBQ0Esb0JBQUE7QUNDSjs7QURHRTtFQUNFLDZCQUFBO0FDQUoiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2xvZ2luL2xvc3QtcGFzc3dvcmQvbG9zdC1wYXNzd29yZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiAxMGVtO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogNS4yZW07XHJcbiAgfVxyXG4gXHJcblxyXG4gIC5tYXJnaW5CdXR0b257XHJcbiAgICBtYXJnaW4tYm90dG9tOiAwZW0gIWltcG9ydGFudDtcclxuICB9XHJcblxyXG4gIiwiLm5hdnRvcCB7XG4gIG1hcmdpbi10b3A6IDEwZW07XG4gIG1hcmdpbi1ib3R0b206IDUuMmVtO1xufVxuXG4ubWFyZ2luQnV0dG9uIHtcbiAgbWFyZ2luLWJvdHRvbTogMGVtICFpbXBvcnRhbnQ7XG59Il19 */"] });
  4119. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](LostPasswordComponent, [{
  4120. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
  4121. args: [{
  4122. selector: 'app-lost-password',
  4123. templateUrl: './lost-password.component.html',
  4124. styleUrls: ['./lost-password.component.scss']
  4125. }]
  4126. }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_4__["MatSnackBar"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__["MatDialog"] }, { type: _services_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }]; }, null); })();
  4127. /***/ }),
  4128. /***/ "./src/app/components/login/reset-password/reset-password.component.ts":
  4129. /*!*****************************************************************************!*\
  4130. !*** ./src/app/components/login/reset-password/reset-password.component.ts ***!
  4131. \*****************************************************************************/
  4132. /*! exports provided: ResetPasswordComponent */
  4133. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4134. "use strict";
  4135. __webpack_require__.r(__webpack_exports__);
  4136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPasswordComponent", function() { return ResetPasswordComponent; });
  4137. /* harmony import */ var _shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../shared/confirm-message/confirm-message.component */ "./src/app/components/shared/confirm-message/confirm-message.component.ts");
  4138. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  4139. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  4140. /* harmony import */ var _shared_validator_confirm_password_validator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../shared/validator/confirm-password.validator */ "./src/app/components/shared/validator/confirm-password.validator.ts");
  4141. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  4142. /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js");
  4143. /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../services/auth.service */ "./src/app/services/auth.service.ts");
  4144. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  4145. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  4146. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  4147. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  4148. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  4149. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  4150. /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js");
  4151. function ResetPasswordComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) {
  4152. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "mat-progress-bar", 13);
  4153. } }
  4154. function ResetPasswordComponent_mat_error_14_Template(rf, ctx) { if (rf & 1) {
  4155. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error");
  4156. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
  4157. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4158. } if (rf & 2) {
  4159. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
  4160. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  4161. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorPassword(), " ");
  4162. } }
  4163. function ResetPasswordComponent_mat_error_18_Template(rf, ctx) { if (rf & 1) {
  4164. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error");
  4165. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
  4166. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4167. } if (rf & 2) {
  4168. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
  4169. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
  4170. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorConfirmPassword(), " ");
  4171. } }
  4172. class ResetPasswordComponent {
  4173. constructor(router, snackBar, activatedRoute, authService, formBuilder, dialog) {
  4174. this.router = router;
  4175. this.snackBar = snackBar;
  4176. this.activatedRoute = activatedRoute;
  4177. this.authService = authService;
  4178. this.formBuilder = formBuilder;
  4179. this.dialog = dialog;
  4180. this.submitted = false;
  4181. this.loading = false;
  4182. }
  4183. ngOnInit() {
  4184. this.createForm();
  4185. this.subscription = this.activatedRoute.params.subscribe(params => {
  4186. this.token = params.token;
  4187. });
  4188. }
  4189. ngOnDestroy() {
  4190. this.subscription.unsubscribe();
  4191. }
  4192. createForm() {
  4193. this.formGroup = this.formBuilder.group({
  4194. password: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, this.checkPassword]],
  4195. confirmPassword: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]
  4196. }, {
  4197. validator: Object(_shared_validator_confirm_password_validator__WEBPACK_IMPORTED_MODULE_3__["MustMatch"])('password', 'confirmPassword')
  4198. });
  4199. }
  4200. checkPassword(control) {
  4201. let enteredPassword = control.value;
  4202. let passwordCheck = /^(?=.*[a-z])(?=.{6,})/;
  4203. return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null;
  4204. }
  4205. getErrorPassword() {
  4206. return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' :
  4207. this.formGroup.get('password').hasError('requirements') ?
  4208. 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule' : '';
  4209. }
  4210. getErrorConfirmPassword() {
  4211. return this.formGroup.get('confirmPassword').hasError('required') ? 'Confirmation mot de passe requise' :
  4212. this.formGroup.hasError('MustMatch') ?
  4213. '' : 'Les mots de passe saisis ne sont pas identiques';
  4214. }
  4215. get f() { return this.formGroup.controls; }
  4216. // login
  4217. ResetPassword() {
  4218. this.submitted = true;
  4219. if (this.formGroup.invalid) {
  4220. return;
  4221. }
  4222. this.loading = true;
  4223. let data = { 'password': this.formGroup.value.password, 'resetLink': this.token };
  4224. this.authService.resetPassword(data).subscribe(data => {
  4225. console.log(data);
  4226. this.loading = false;
  4227. this.openDialog(data);
  4228. }, err => {
  4229. this.loading = false;
  4230. this.authService.openSnackBar(err.error.message);
  4231. });
  4232. }
  4233. openDialog(data) {
  4234. const dialogRef = this.dialog.open(_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_0__["ConfirmMessageComponent"], {
  4235. width: '38%',
  4236. data: {
  4237. response: data
  4238. }
  4239. });
  4240. dialogRef.afterClosed().subscribe(() => {
  4241. this.router.navigate(['/login']);
  4242. });
  4243. }
  4244. }
  4245. ResetPasswordComponent.ɵfac = function ResetPasswordComponent_Factory(t) { return new (t || ResetPasswordComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBar"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__["MatDialog"])); };
  4246. ResetPasswordComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ResetPasswordComponent, selectors: [["app-reset-password"]], decls: 22, vars: 4, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-10", "col-lg-7", 2, "border-radius", "30px"], ["class", "col-12", "mode", "indeterminate", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "mt-2"], [1, "text-center"], [1, "col-10"], ["matInput", "", "placeholder", "Nouveau mot de passe", "type", "password", "formControlName", "password", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "Confirmer votre mot de passe", "type", "password", "formControlName", "confirmPassword", "required", ""], [1, "row", "justify-content-center", "my-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-8", "col-md-4", "color-theme"], ["mode", "indeterminate", 1, "col-12"]], template: function ResetPasswordComponent_Template(rf, ctx) { if (rf & 1) {
  4247. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
  4248. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
  4249. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "mat-card", 2);
  4250. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, ResetPasswordComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 3);
  4251. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "mat-card-content");
  4252. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "form", 4);
  4253. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngSubmit", function ResetPasswordComponent_Template_form_ngSubmit_5_listener() { return ctx.ResetPassword(); });
  4254. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h1", 5);
  4255. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "b");
  4256. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "R\u00E9initialiser votre mot de passe");
  4257. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4258. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4259. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "h3", 6);
  4260. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Renseignez votre nouveau mot de passe ci-dessous.");
  4261. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4262. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 1);
  4263. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "mat-form-field", 7);
  4264. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "input", 8);
  4265. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, ResetPasswordComponent_mat_error_14_Template, 2, 1, "mat-error", 9);
  4266. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4267. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4268. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 1);
  4269. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "mat-form-field", 7);
  4270. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](17, "input", 10);
  4271. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, ResetPasswordComponent_mat_error_18_Template, 2, 1, "mat-error", 9);
  4272. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4273. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4274. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 11);
  4275. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "button", 12);
  4276. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, " Envoyer");
  4277. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4278. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4279. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4280. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4281. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4282. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4283. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  4284. } if (rf & 2) {
  4285. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
  4286. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.loading);
  4287. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
  4288. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup);
  4289. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
  4290. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched);
  4291. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
  4292. _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched);
  4293. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_8__["MatCard"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_material_card__WEBPACK_IMPORTED_MODULE_8__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_11__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_button__WEBPACK_IMPORTED_MODULE_12__["MatButton"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_13__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 9em;\n margin-bottom: 3.8em;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi9yZXNldC1wYXNzd29yZC9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxsb2dpblxccmVzZXQtcGFzc3dvcmRcXHJlc2V0LXBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2xvZ2luL3Jlc2V0LXBhc3N3b3JkL3Jlc2V0LXBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZUFBQTtFQUNBLG9CQUFBO0FDQ0o7O0FER0U7RUFDRSw2QkFBQTtBQ0FKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi9yZXNldC1wYXNzd29yZC9yZXNldC1wYXNzd29yZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiA5ZW07XHJcbiAgICBtYXJnaW4tYm90dG9tOiAzLjhlbTtcclxuICB9XHJcbiBcclxuXHJcbiAgLm1hcmdpbkJ1dHRvbntcclxuICAgIG1hcmdpbi1ib3R0b206IDBlbSAhaW1wb3J0YW50O1xyXG4gIH1cclxuXHJcbiAiLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogOWVtO1xuICBtYXJnaW4tYm90dG9tOiAzLjhlbTtcbn1cblxuLm1hcmdpbkJ1dHRvbiB7XG4gIG1hcmdpbi1ib3R0b206IDBlbSAhaW1wb3J0YW50O1xufSJdfQ== */"] });
  4294. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](ResetPasswordComponent, [{
  4295. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
  4296. args: [{
  4297. selector: 'app-reset-password',
  4298. templateUrl: './reset-password.component.html',
  4299. styleUrls: ['./reset-password.component.scss']
  4300. }]
  4301. }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBar"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"] }, { type: _services_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__["MatDialog"] }]; }, null); })();
  4302. /***/ }),
  4303. /***/ "./src/app/components/register/register.component.ts":
  4304. /*!***********************************************************!*\
  4305. !*** ./src/app/components/register/register.component.ts ***!
  4306. \***********************************************************/
  4307. /*! exports provided: RegisterComponent */
  4308. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4309. "use strict";
  4310. __webpack_require__.r(__webpack_exports__);
  4311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterComponent", function() { return RegisterComponent; });
  4312. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  4313. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  4314. /* harmony import */ var _shared_validator_confirm_password_validator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared/validator/confirm-password.validator */ "./src/app/components/shared/validator/confirm-password.validator.ts");
  4315. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  4316. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  4317. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  4318. /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
  4319. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  4320. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  4321. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  4322. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  4323. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  4324. /* harmony import */ var _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/datepicker */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/datepicker.js");
  4325. /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js");
  4326. function RegisterComponent_mat_progress_bar_5_Template(rf, ctx) { if (rf & 1) {
  4327. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-progress-bar", 36);
  4328. } }
  4329. function RegisterComponent_mat_error_31_Template(rf, ctx) { if (rf & 1) {
  4330. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  4331. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  4332. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4333. } if (rf & 2) {
  4334. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  4335. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4336. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorLastname(), " ");
  4337. } }
  4338. function RegisterComponent_mat_error_34_Template(rf, ctx) { if (rf & 1) {
  4339. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  4340. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  4341. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4342. } if (rf & 2) {
  4343. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  4344. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4345. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorFirstname(), " ");
  4346. } }
  4347. function RegisterComponent_mat_error_38_Template(rf, ctx) { if (rf & 1) {
  4348. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  4349. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  4350. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4351. } if (rf & 2) {
  4352. const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  4353. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4354. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r3.getErrorPhonenumber(), " ");
  4355. } }
  4356. function RegisterComponent_mat_error_47_Template(rf, ctx) { if (rf & 1) {
  4357. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  4358. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  4359. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4360. } if (rf & 2) {
  4361. const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  4362. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4363. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r5.getErrorDate(), " ");
  4364. } }
  4365. function RegisterComponent_mat_error_51_Template(rf, ctx) { if (rf & 1) {
  4366. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  4367. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  4368. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4369. } if (rf & 2) {
  4370. const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  4371. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4372. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r6.getErrorAdress(), " ");
  4373. } }
  4374. function RegisterComponent_mat_error_55_Template(rf, ctx) { if (rf & 1) {
  4375. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  4376. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  4377. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4378. } if (rf & 2) {
  4379. const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  4380. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4381. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r7.getErrorEmail(), " ");
  4382. } }
  4383. function RegisterComponent_mat_error_61_Template(rf, ctx) { if (rf & 1) {
  4384. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  4385. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  4386. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4387. } if (rf & 2) {
  4388. const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  4389. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4390. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r8.getErrorPassword(), " ");
  4391. } }
  4392. function RegisterComponent_mat_error_67_Template(rf, ctx) { if (rf & 1) {
  4393. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error");
  4394. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  4395. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4396. } if (rf & 2) {
  4397. const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  4398. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4399. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r9.getErrorConfirmPassword(), " ");
  4400. } }
  4401. function RegisterComponent_mat_error_79_Template(rf, ctx) { if (rf & 1) {
  4402. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error", 37);
  4403. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  4404. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4405. } if (rf & 2) {
  4406. const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  4407. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4408. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r10.getErrorTerms(), " ");
  4409. } }
  4410. const googleLogoURL = "../assets/img/social/google+.svg";
  4411. const facebookLogoURL = "../assets/img/social/facebook.svg";
  4412. class RegisterComponent {
  4413. constructor(router, authService, formBuilder, matIconRegistry, domSanitizer) {
  4414. this.router = router;
  4415. this.authService = authService;
  4416. this.formBuilder = formBuilder;
  4417. this.matIconRegistry = matIconRegistry;
  4418. this.domSanitizer = domSanitizer;
  4419. this.submitted = false;
  4420. this.loading = false;
  4421. this.hide = true;
  4422. this.matIconRegistry.addSvgIcon("googleLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(googleLogoURL)),
  4423. this.matIconRegistry.addSvgIcon("facebookLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(facebookLogoURL));
  4424. const currentYear = new Date().getFullYear();
  4425. this.maxDate = new Date(currentYear - 10, 11, 31);
  4426. }
  4427. ngOnInit() {
  4428. this.createForm();
  4429. }
  4430. createForm() {
  4431. let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  4432. let caracereregex = /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/;
  4433. let adressregex = /^[A-z0-9À-ž\s ,.'-]+$/;
  4434. let phonenumberregex = /^(?:(?:\+|00)33|0)\s*[1-9](?:[\s.-]*\d{2}){4}$/;
  4435. let dateregex = /^((31(?!\ (Feb(ruary)?|Apr(il)?|June?|(Sep(?=\b|t)t?|Nov)(ember)?)))|((30|29)(?!\ Feb(ruary)?))|(29(?=\ Feb(ruary)?\ (((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))))|(0?[1-9])|1\d|2[0-8])\ (Jan(uary)?|Feb(ruary)?|Ma(r(ch)?|y)|Apr(il)?|Ju((ly?)|(ne?))|Aug(ust)?|Oct(ober)?|(Sep(?=\b|t)t?|Nov|Dec)(ember)?)\ ((1[6-9]|[2-9]\d)\d{2})$/;
  4436. this.formGroup = this.formBuilder.group({
  4437. lastname: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]],
  4438. firstname: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]],
  4439. phonenumber: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(phonenumberregex)]],
  4440. birthday: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
  4441. terms: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].requiredTrue],
  4442. adress: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(adressregex)]],
  4443. email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(emailregex)]],
  4444. password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, this.checkPassword]],
  4445. confirmPassword: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]
  4446. }, {
  4447. validator: Object(_shared_validator_confirm_password_validator__WEBPACK_IMPORTED_MODULE_2__["MustMatch"])('password', 'confirmPassword')
  4448. });
  4449. }
  4450. checkPasswords(group) {
  4451. let pass = group.controls.password.value;
  4452. let confirmPass = group.controls.confirmPassword.value;
  4453. return pass === confirmPass ? null : { notSame: true };
  4454. }
  4455. getErrorLastname() {
  4456. return this.formGroup.get('lastname').hasError('required') ? 'Nom requis' :
  4457. this.formGroup.get('lastname').hasError('pattern') ? 'Nom non valide' : 'Nom non valide';
  4458. }
  4459. getErrorFirstname() {
  4460. return this.formGroup.get('firstname').hasError('required') ? 'Prénom requis' :
  4461. this.formGroup.get('firstname').hasError('pattern') ? 'Prénom non valide' : 'Prénom non valide';
  4462. }
  4463. getErrorPhonenumber() {
  4464. return this.formGroup.get('phonenumber').hasError('required') ? 'Numéro de téléphone requis' :
  4465. this.formGroup.get('phonenumber').hasError('pattern') ? 'Numéro de téléphone non valide' : '';
  4466. }
  4467. getErrorAdress() {
  4468. return this.formGroup.get('adress').hasError('required') ? 'adresse requise' :
  4469. this.formGroup.get('adress').hasError('pattern') ? 'Prénom non valide' : 'Prénom non valide';
  4470. }
  4471. getErrorDate() {
  4472. return this.formGroup.get('birthday').hasError('required') ? 'Date de naissance requise' :
  4473. this.formGroup.get('birthday').hasError('pattern') ? 'Date de naissance non valide' : '';
  4474. }
  4475. getErrorTerms() {
  4476. return this.formGroup.get('terms').hasError('required') ? 'Please accept the terms' :
  4477. this.formGroup.get('terms').hasError('pattern') ? 'terms not accepted' : '';
  4478. }
  4479. getErrorConfirmPassword() {
  4480. return this.formGroup.get('confirmPassword').hasError('required') ? 'Confirmation mot de passe requise' :
  4481. this.formGroup.hasError('MustMatch') ?
  4482. '' : 'Les mots de passe saisis ne sont pas identiques';
  4483. }
  4484. checkPassword(control) {
  4485. let enteredPassword = control.value;
  4486. let passwordCheck = /^(?=.*[A-Z])(?=.*[a-z])(?=.{8,})/;
  4487. return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null;
  4488. }
  4489. getErrorEmail() {
  4490. return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' :
  4491. this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : '';
  4492. }
  4493. getErrorPassword() {
  4494. return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' :
  4495. this.formGroup.get('password').hasError('requirements') ?
  4496. 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule, une lettre majuscule' : '';
  4497. }
  4498. get f() { return this.formGroup.controls; }
  4499. // openSnackBar(message : string) {
  4500. // this.snackBar.open(message, 'action', {
  4501. // duration: 5000,
  4502. // });
  4503. // }
  4504. //google signIn
  4505. signInWithGoogle() {
  4506. this.authService.signInWithGoogle().subscribe(_user => {
  4507. // Redirection après l'authentification réussie avec Google
  4508. this.router.navigate(['/auth']);
  4509. }, error => {
  4510. console.log(error);
  4511. // Gérer l'erreur
  4512. });
  4513. }
  4514. // this.authService.signGoogle().subscribe(
  4515. // data=> {
  4516. // console.log(data);
  4517. // this.router.navigate(['/auth']);
  4518. // },
  4519. // error=> {
  4520. // console.log(error);
  4521. // });
  4522. signUp() {
  4523. this.submitted = true;
  4524. if (this.formGroup.invalid) {
  4525. return;
  4526. }
  4527. this.loading = true;
  4528. this.authService.signUP(this.formGroup.value).subscribe(data => {
  4529. console.log(data);
  4530. this.loading = false;
  4531. this.router.navigate(['/auth']);
  4532. setTimeout(() => {
  4533. document.location.reload();
  4534. }, 2000);
  4535. }, err => {
  4536. this.loading = false;
  4537. console.log(err.error.message);
  4538. this.authService.openSnackBar(err.error.message);
  4539. });
  4540. console.log(this.formGroup.value);
  4541. }
  4542. }
  4543. RegisterComponent.ɵfac = function RegisterComponent_Factory(t) { return new (t || RegisterComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"])); };
  4544. RegisterComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: RegisterComponent, selectors: [["app-register"]], decls: 87, vars: 18, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-11", "col-lg-7"], [3, "formGroup", "ngSubmit"], ["class", "row ", "mode", "indeterminate", 4, "ngIf"], ["mat-raised-button", "", 1, "col-10", "col-lg-5", "mr-lg-2", "mb-2", "googlelogin", 2, "background-color", "#AD0505", "color", "white", 3, "click"], [1, "row", "mt-1", "ml-3"], ["svgIcon", "googleLogo", 1, "ml-2"], [1, "ml-2", "marginButton"], ["mat-raised-button", "", 1, "col-10", "col-lg-5", "ml-lg-2", "mb-2", "facebooklogin", 2, "background-color", "#2121A1", "color", "white"], ["svgIcon", "facebookLogo", 1, "ml-2"], [1, "col-4"], [1, "col-1"], [1, "col-5"], ["matInput", "", "placeholder", "Nom :", "formControlName", "lastname", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "Pr\u00E9nom :", "formControlName", "firstname", "required", ""], [1, "col-10"], ["matInput", "", "placeholder", "Num\u00E9ro de t\u00E9l\u00E9phone :", "formControlName", "phonenumber", "required", ""], ["matInput", "", "disabled", "true", "formControlName", "birthday", "required", "", 3, "matDatepicker", "max", "click"], ["matSuffix", "", 3, "for"], ["touchUi", "", "disabled", "false"], ["picker", ""], ["matInput", "", "placeholder", "Adresse :", "formControlName", "adress", "required", ""], ["matInput", "", "placeholder", "Adresse email :", "formControlName", "email", "required", ""], ["matInput", "", "placeholder", "Mot de passe :", "formControlName", "password", "required", "", 3, "type"], ["matSuffix", "", 3, "click"], ["matInput", "", "placeholder", "Confirmer le mot de passe :", "formControlName", "confirmPassword", "required", "", 3, "type"], [1, "stay-signed", "in", "checkbox-container"], [1, "terms"], ["type", "checkbox", "formControlName", "terms"], ["href", "#", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], ["style", "color: rgb(170, 19, 8); background-color: rgb(255, 255, 255);", 4, "ngIf"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", "color-theme"], ["routerLink", "/login", 1, "ml-1", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], ["mode", "indeterminate", 1, "row"], [2, "color", "rgb(170, 19, 8)", "background-color", "rgb(255, 255, 255)"]], template: function RegisterComponent_Template(rf, ctx) { if (rf & 1) {
  4545. const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  4546. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  4547. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  4548. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-card", 2);
  4549. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "mat-card-content");
  4550. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "form", 3);
  4551. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function RegisterComponent_Template_form_ngSubmit_4_listener() { return ctx.signUp(); });
  4552. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, RegisterComponent_mat_progress_bar_5_Template, 1, 0, "mat-progress-bar", 4);
  4553. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h1", 1);
  4554. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "b");
  4555. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Inscription");
  4556. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4557. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4558. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 1);
  4559. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 5);
  4560. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function RegisterComponent_Template_button_click_10_listener() { return ctx.signInWithGoogle(); });
  4561. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 6);
  4562. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "mat-icon", 7);
  4563. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p", 8);
  4564. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Se connecter avec Google");
  4565. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4566. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4567. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4568. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "button", 9);
  4569. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 6);
  4570. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "mat-icon", 10);
  4571. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "p", 8);
  4572. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Se connecter avec Facebook");
  4573. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4574. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4575. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4576. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4577. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 1);
  4578. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 11);
  4579. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "hr");
  4580. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4581. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 12);
  4582. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "p");
  4583. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "ou");
  4584. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4585. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4586. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 11);
  4587. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](27, "hr");
  4588. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4589. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4590. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 1);
  4591. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "mat-form-field", 13);
  4592. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "input", 14);
  4593. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](31, RegisterComponent_mat_error_31_Template, 2, 1, "mat-error", 15);
  4594. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4595. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "mat-form-field", 13);
  4596. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](33, "input", 16);
  4597. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, RegisterComponent_mat_error_34_Template, 2, 1, "mat-error", 15);
  4598. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4599. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4600. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 1);
  4601. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "mat-form-field", 17);
  4602. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "input", 18);
  4603. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](38, RegisterComponent_mat_error_38_Template, 2, 1, "mat-error", 15);
  4604. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4605. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4606. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 1);
  4607. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "mat-form-field", 17);
  4608. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "mat-label");
  4609. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "Date de naissance :");
  4610. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4611. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "input", 19);
  4612. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function RegisterComponent_Template_input_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](46); return _r4.open(); });
  4613. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4614. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](44, "mat-datepicker-toggle", 20);
  4615. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](45, "mat-datepicker", 21, 22);
  4616. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](47, RegisterComponent_mat_error_47_Template, 2, 1, "mat-error", 15);
  4617. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4618. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4619. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "div", 1);
  4620. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "mat-form-field", 17);
  4621. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](50, "input", 23);
  4622. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](51, RegisterComponent_mat_error_51_Template, 2, 1, "mat-error", 15);
  4623. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4624. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4625. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 1);
  4626. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "mat-form-field", 17);
  4627. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "input", 24);
  4628. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](55, RegisterComponent_mat_error_55_Template, 2, 1, "mat-error", 15);
  4629. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4630. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4631. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "div", 1);
  4632. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "mat-form-field", 17);
  4633. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](58, "input", 25);
  4634. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "mat-icon", 26);
  4635. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function RegisterComponent_Template_mat_icon_click_59_listener() { return ctx.hide = !ctx.hide; });
  4636. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60);
  4637. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4638. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](61, RegisterComponent_mat_error_61_Template, 2, 1, "mat-error", 15);
  4639. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4640. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4641. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 1);
  4642. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "mat-form-field", 17);
  4643. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](64, "input", 27);
  4644. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "mat-icon", 26);
  4645. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function RegisterComponent_Template_mat_icon_click_65_listener() { return ctx.hide = !ctx.hide; });
  4646. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](66);
  4647. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4648. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](67, RegisterComponent_mat_error_67_Template, 2, 1, "mat-error", 15);
  4649. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4650. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4651. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "div", 1);
  4652. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "span", 28);
  4653. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "label", 29);
  4654. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](71, "input", 30);
  4655. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](72, " J'ai lu et j'accepte ");
  4656. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "a", 31);
  4657. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74, " les conditions g\u00E9n\u00E9rales d'utilisation ");
  4658. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4659. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, " et j'ai pris connaissance de la ");
  4660. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "a", 31);
  4661. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, " politique de confidentialit\u00E9.");
  4662. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4663. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4664. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "label", 29);
  4665. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](79, RegisterComponent_mat_error_79_Template, 2, 1, "mat-error", 32);
  4666. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4667. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4668. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4669. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "div", 33);
  4670. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "button", 34);
  4671. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](82, "S'inscrire");
  4672. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4673. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4674. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](83, "p", 33);
  4675. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](84, "Vous avez un compte?");
  4676. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](85, "a", 35);
  4677. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](86, "Se connecter");
  4678. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4679. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4680. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4681. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4682. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4683. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4684. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4685. } if (rf & 2) {
  4686. const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](46);
  4687. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  4688. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup);
  4689. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4690. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loading);
  4691. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](26);
  4692. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["lastname"].valid || ctx.formGroup.controls["lastname"].touched);
  4693. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  4694. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["firstname"].valid || ctx.formGroup.controls["firstname"].touched);
  4695. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  4696. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["phonenumber"].valid || ctx.formGroup.controls["phonenumber"].touched);
  4697. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
  4698. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matDatepicker", _r4)("max", ctx.maxDate);
  4699. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4700. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("for", _r4);
  4701. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  4702. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["birthday"].valid || ctx.formGroup.controls["birthday"].touched);
  4703. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  4704. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["adress"].valid || ctx.formGroup.controls["adress"].touched);
  4705. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  4706. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid || ctx.formGroup.controls["email"].touched);
  4707. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  4708. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx.hide ? "password" : "text");
  4709. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  4710. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.hide ? "visibility_off" : "visibility");
  4711. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4712. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched);
  4713. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  4714. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx.hide ? "password" : "text");
  4715. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  4716. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.hide ? "visibility_off" : "visibility");
  4717. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4718. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched);
  4719. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
  4720. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["terms"].valid || ctx.formGroup.controls["terms"].touched);
  4721. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIcon"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_11__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatLabel"], _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_12__["MatDatepickerInput"], _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_12__["MatDatepickerToggle"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatSuffix"], _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_12__["MatDatepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["CheckboxControlValueAccessor"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterLinkWithHref"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_13__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n\n.terms[_ngcontent-%COMP%] {\n display: inline-block;\n margin-inline: 4.5rem;\n margin-top: 0.5rem;\n}\n\n.test[_ngcontent-%COMP%] {\n display: block;\n margin-left: 3.5rem;\n}\n\n.checkbox[_ngcontent-%COMP%] {\n display: block;\n margin-right: 3.5rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9yZWdpc3Rlci9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxyZWdpc3RlclxccmVnaXN0ZXIuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvcmVnaXN0ZXIvcmVnaXN0ZXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxlQUFBO0VBQ0Esa0JBQUE7QUNDRjs7QURFRTtFQUNFLDZCQUFBO0FDQ0o7O0FERUE7RUFDRSxxQkFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7QUNDRjs7QURFRTtFQUNFLGNBQUE7RUFDQSxtQkFBQTtBQ0NKOztBRENBO0VBQ0UsY0FBQTtFQUNBLG9CQUFBO0FDRUYiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL3JlZ2lzdGVyL3JlZ2lzdGVyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdnRvcHtcclxuICBtYXJnaW4tdG9wOiA3ZW07XHJcbiAgbWFyZ2luLWJvdHRvbTogM2VtO1xyXG4gIH1cclxuXHJcbiAgLm1hcmdpbkJ1dHRvbntcclxuICAgIG1hcmdpbi1ib3R0b206IDBlbSAhaW1wb3J0YW50O1xyXG4gIH1cclxuICBcclxuLnRlcm1zeyAgXHJcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xyXG4gIG1hcmdpbi1pbmxpbmU6IDQuNXJlbTtcclxuICBtYXJnaW4tdG9wOiAwLjVyZW07XHJcbiAgfVxyXG5cclxuICAudGVzdHsgXHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIG1hcmdpbi1sZWZ0OiAzLjVyZW07XHJcbn1cclxuLmNoZWNrYm94eyAgXHJcbiAgZGlzcGxheTogYmxvY2s7XHJcbiAgbWFyZ2luLXJpZ2h0OiAzLjVyZW07XHJcbiAgfVxyXG4iLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogN2VtO1xuICBtYXJnaW4tYm90dG9tOiAzZW07XG59XG5cbi5tYXJnaW5CdXR0b24ge1xuICBtYXJnaW4tYm90dG9tOiAwZW0gIWltcG9ydGFudDtcbn1cblxuLnRlcm1zIHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBtYXJnaW4taW5saW5lOiA0LjVyZW07XG4gIG1hcmdpbi10b3A6IDAuNXJlbTtcbn1cblxuLnRlc3Qge1xuICBkaXNwbGF5OiBibG9jaztcbiAgbWFyZ2luLWxlZnQ6IDMuNXJlbTtcbn1cblxuLmNoZWNrYm94IHtcbiAgZGlzcGxheTogYmxvY2s7XG4gIG1hcmdpbi1yaWdodDogMy41cmVtO1xufSJdfQ== */"] });
  4722. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RegisterComponent, [{
  4723. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  4724. args: [{
  4725. selector: 'app-register',
  4726. templateUrl: './register.component.html',
  4727. styleUrls: ['./register.component.scss']
  4728. }]
  4729. }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"] }]; }, null); })();
  4730. /***/ }),
  4731. /***/ "./src/app/components/shared/alert-message/alert-message.component.ts":
  4732. /*!****************************************************************************!*\
  4733. !*** ./src/app/components/shared/alert-message/alert-message.component.ts ***!
  4734. \****************************************************************************/
  4735. /*! exports provided: AlertMessageComponent */
  4736. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4737. "use strict";
  4738. __webpack_require__.r(__webpack_exports__);
  4739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertMessageComponent", function() { return AlertMessageComponent; });
  4740. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  4741. /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js");
  4742. class AlertMessageComponent {
  4743. constructor(snackBarRef, data) {
  4744. this.snackBarRef = snackBarRef;
  4745. this.data = data;
  4746. }
  4747. }
  4748. AlertMessageComponent.ɵfac = function AlertMessageComponent_Factory(t) { return new (t || AlertMessageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__["MatSnackBarRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__["MAT_SNACK_BAR_DATA"])); };
  4749. AlertMessageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AlertMessageComponent, selectors: [["app-alert-message"]], decls: 8, vars: 1, consts: [[1, ""], [1, "row"], [1, "col-10"], [1, "col-1", "text-right"], [3, "click"]], template: function AlertMessageComponent_Template(rf, ctx) { if (rf & 1) {
  4750. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  4751. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  4752. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  4753. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "p");
  4754. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
  4755. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4756. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4757. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
  4758. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "p", 4);
  4759. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AlertMessageComponent_Template_p_click_6_listener() { return ctx.snackBarRef.dismiss(); });
  4760. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "X");
  4761. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4762. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4763. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4764. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4765. } if (rf & 2) {
  4766. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  4767. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.data);
  4768. } }, styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2FsZXJ0LW1lc3NhZ2UvYWxlcnQtbWVzc2FnZS5jb21wb25lbnQuc2NzcyJ9 */"] });
  4769. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AlertMessageComponent, [{
  4770. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  4771. args: [{
  4772. selector: 'app-alert-message',
  4773. templateUrl: './alert-message.component.html',
  4774. styleUrls: ['./alert-message.component.scss']
  4775. }]
  4776. }], function () { return [{ type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__["MatSnackBarRef"] }, { type: undefined, decorators: [{
  4777. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  4778. args: [_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__["MAT_SNACK_BAR_DATA"]]
  4779. }] }]; }, null); })();
  4780. /***/ }),
  4781. /***/ "./src/app/components/shared/cgu/cgu.component.ts":
  4782. /*!********************************************************!*\
  4783. !*** ./src/app/components/shared/cgu/cgu.component.ts ***!
  4784. \********************************************************/
  4785. /*! exports provided: CguComponent */
  4786. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4787. "use strict";
  4788. __webpack_require__.r(__webpack_exports__);
  4789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CguComponent", function() { return CguComponent; });
  4790. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  4791. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  4792. /* harmony import */ var _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/flex-layout/flex */ "./node_modules/@angular/flex-layout/__ivy_ngcc__/esm2015/flex.js");
  4793. class CguComponent {
  4794. constructor() { }
  4795. ngOnInit() {
  4796. }
  4797. }
  4798. CguComponent.ɵfac = function CguComponent_Factory(t) { return new (t || CguComponent)(); };
  4799. CguComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CguComponent, selectors: [["app-cgu"]], decls: 77, vars: 0, consts: [["fxLayout", "column", "fxLayoutAlign", "center stretch"], [1, "title", "my-h1"], [1, "row"]], template: function CguComponent_Template(rf, ctx) { if (rf & 1) {
  4800. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card", 0);
  4801. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card-content");
  4802. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h1", 1);
  4803. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "ARTICLE 1 \u2013 SOCIETE ORGANISATRICE");
  4804. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4805. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p");
  4806. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " La soci\u00E9t\u00E9 Fatboar, soci\u00E9t\u00E9 anonyme au capital de 750 000 Euros, num\u00E9ro SIRET 77942658200013, ayant son si\u00E8ge social au 1 bis Rue Gustave Eiffel, 78280 Guyancourt (ci-apr\u00E8s, \u00AB la Soci\u00E9t\u00E9 Organisatrice \u00BB), organise du 20 Septembre 2021 au 20 Octobre 2021, un jeu gratuit avec obligation d\u2019achat (ci-apr\u00E8s d\u00E9nomm\u00E9 le \u00AB Jeu \u00BB), sur fatboar.fr (ci-apr\u00E8s le \u00AB Site internet \u00BB). ");
  4807. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4808. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h1", 1);
  4809. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "ARTICLE 2 \u2013 PARTICIPANTS");
  4810. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4811. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p");
  4812. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " La participation au Jeu est ouverte \u00E0 toute personne physique majeure domicili\u00E9e en France m\u00E9tropolitaine (ci-apr\u00E8s d\u00E9nomm\u00E9 le ou les \u00AB Participant(s) \u00BB). Toute indication d'identit\u00E9 fausse, erron\u00E9e, incompl\u00E8te entra\u00EEnera l'\u00E9limination imm\u00E9diate de la participation. Fatboar se r\u00E9serve le droit de proc\u00E9der \u00E0 toutes v\u00E9rifications concernant notamment l\u2019identit\u00E9, l\u2018\u00E2ge, les coordonn\u00E9es postales des Participants pour le respect du pr\u00E9sent article comme de l'ensemble du R\u00E8glement, notamment pour \u00E9carter tout Participant ayant commis un abus quelconque, sans toutefois qu'elle ait l'obligation de proc\u00E9der \u00E0 une v\u00E9rification syst\u00E9matique de l'ensemble des Participants, pouvant limiter cette v\u00E9rification au gagnant du Jeu Concours. ");
  4813. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4814. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "h1", 1);
  4815. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "ARTICLE 3 \u2013 MODALITES DE PARTICIPATION");
  4816. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4817. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "p");
  4818. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " La participation au Jeu implique l\u2019acceptation pleine, enti\u00E8re et sans r\u00E9serve du pr\u00E9sent R\u00E8glement, de la l\u00E9gislation en vigueur sur le territoire fran\u00E7ais (notamment, les lois relatives \u00E0 l\u2019Informatique et aux Libert\u00E9s, au respect des bonnes m\u0153urs, \u00E0 la propri\u00E9t\u00E9 litt\u00E9raire et artistique) ainsi que des r\u00E8gles de d\u00E9ontologie en vigueur sur Internet (n\u00E9tiquette, chartes de bonnes conduites, etc.). ");
  4819. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4820. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "p");
  4821. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "La participation au Jeu est sous obligation d\u2019achat.");
  4822. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4823. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "p");
  4824. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Pour participer au Jeu, le Participant doit d\u00E9tenir un code ou qrcode obtenu en caisse apr\u00E8s achat en restaurant d\u2019un montant \u00E9gal ou sup\u00E9rieur \u00E0 18 euros. Ne seront pris en consid\u00E9ration que les formulaires de participations correctement remplis. ");
  4825. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4826. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "p");
  4827. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " Les frais de communication et de connexion au r\u00E9seau Internet engag\u00E9s pour la participation au Jeu Concours demeurent \u00E0 la charge du Participant. ");
  4828. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4829. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "p");
  4830. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " L\u2019inscription au Jeu est strictement nominative et le joueur ne peut en aucun cas s\u2019y inscrire \u00E0 l\u2019aide de plusieurs comptes, plusieurs pseudonymes, ni pour le compte d'autres participants ou sous une ou plusieurs fausse(s) identit\u00E9(s). ");
  4831. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4832. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "p");
  4833. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " Les Participants qui tenteraient de participer au Jeu par des moyens tels qu\u2019automates de participation, programmes \u00E9labor\u00E9s pour des participations automatis\u00E9es, utilisation d\u2019informations autres que celles correspondant \u00E0 leur identit\u00E9, et plus g\u00E9n\u00E9ralement par tous moyens non conformes au pr\u00E9sent R\u00E8glement seraient automatiquement \u00E9limin\u00E9s. ");
  4834. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4835. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "p");
  4836. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, " Toute inscription au Jeu non conforme aux caract\u00E9ristiques \u00E9nonc\u00E9es ci-dessus ne sera pas prise en compte. Notamment, toute indication d'identit\u00E9 ou d'adresse fausse, erron\u00E9e, incompl\u00E8te entra\u00EEnera l'\u00E9limination imm\u00E9diate de la participation. Toute participation incompl\u00E8te, illisible et/ou incompr\u00E9hensible sera consid\u00E9r\u00E9e comme nulle pour la participation au Jeu. ");
  4837. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4838. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 2);
  4839. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "h1", 1);
  4840. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "ARTICLE 4 \u2013 DESIGNATIONS DES GAGNANTS ET DOTATIONS");
  4841. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4842. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "p");
  4843. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, " Dotation mise en jeu lors du tirage au sort, 100 % des tickets seront gagnants, pour un total de 1 000 000 lots dont la r\u00E9partition des gains est d\u00E9finie de la fa\u00E7on suivante: ");
  4844. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4845. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "ul");
  4846. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "li");
  4847. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "60% des tickets offrent une entr\u00E9e ou un dessert au choix.");
  4848. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4849. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "li");
  4850. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "20% des tickets offrent un burger au choix.");
  4851. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4852. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "li");
  4853. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "10% des tickets offrent un menu du jour.");
  4854. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4855. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "li");
  4856. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, "6% des tickets offrent un menu au choix.");
  4857. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4858. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "li");
  4859. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "4% des tickets offrent une r\u00E9duction de 70% sur la commande.");
  4860. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4861. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "li");
  4862. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "1 v\u00E9hicule Range Rover (Tirage au sort \u00E0 la fin du jeu).");
  4863. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4864. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4865. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "p");
  4866. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, " A titre d\u2019information Le v\u00E9hicule Range Rover, d\u2019une valeur de 59 900 \u20AC TTC (selon le tarif applicable au 10 Septembre 2021), consommation mixte (5,4-8,1 L/100km mixte). homologu\u00E9 selon r\u00E9glementation applicable. ");
  4867. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4868. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "p");
  4869. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "Les frais d\u2019immatriculation et de mise \u00E0 la route sont \u00E0 la charge du gagnant.");
  4870. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4871. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "p");
  4872. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, " Le gagnant devra r\u00E9pondre \u00E0 la soci\u00E9t\u00E9 organisatrice avant le 30/11/2021 pour confirmer l\u2019acceptation du lot gagn\u00E9. Tout gagnant qui ne se sera pas manifest\u00E9 avant cette date sera consid\u00E9r\u00E9 comme ayant d\u00E9finitivement renonc\u00E9 \u00E0 son gain. ");
  4873. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4874. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "h1", 1);
  4875. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "ARTICLE 5 \u2013 ATTRIBUTION DES LOTS");
  4876. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4877. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "p");
  4878. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, " Les Gagnants seront contact\u00E9s par Fatboar par mail sur l\u2019adresse utilis\u00E9 par le Gagnant lors de la participation au Jeu, dans un d\u00E9lai de quarante (40) jours ouvr\u00E9s \u00E0 compter de la fin du Jeu. ");
  4879. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4880. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "p");
  4881. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55, " Toute coordonn\u00E9e incompl\u00E8te, inexacte ou r\u00E9v\u00E9lant une in\u00E9ligibilit\u00E9 sera consid\u00E9r\u00E9e comme nulle et ne permettra pas au Gagnant d\u2019obtenir sa dotation. L\u2019absence de r\u00E9ponse dans les quarante (40) jours ouvr\u00E9s vaudra abandon de la dotation par le Gagnant. En cas d\u2019abandon de la dotation par le Gagnant et/ou en l\u2019absence de Gagnant \u00E0 l\u2019issue du Jeu, il sera proc\u00E9d\u00E9 \u00E0 la d\u00E9signation d\u2019un autre gagnant. ");
  4882. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4883. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "h1", 1);
  4884. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](57, "ARTICLE 6 \u2013 RESPONSABILITE");
  4885. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4886. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "p");
  4887. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59, " La participation au Jeu implique la connaissance et l'acceptation des caract\u00E9ristiques et des limites de l'Internet, notamment en ce qui concerne les performances techniques, les risques d'interruption, et plus g\u00E9n\u00E9ralement, les risques inh\u00E9rents \u00E0 toute connexion et transmission sur Internet, l'absence de protection de certaines donn\u00E9es contre des d\u00E9tournements \u00E9ventuels et les risques de contamination par des \u00E9ventuels virus circulant sur le r\u00E9seau. ");
  4888. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4889. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "p");
  4890. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](61, " Fatboar ne saurait donc \u00EAtre tenue pour responsable de la contamination par d\u2019\u00E9ventuels virus ou de l\u2019intrusion d\u2019un tiers dans le syst\u00E8me du terminal des Participants au Jeu et d\u00E9cline toute responsabilit\u00E9 quant aux cons\u00E9quences de la connexion des Participants au r\u00E9seau via le Site internet pour des causes qui ne seraient pas directement et exclusivement imputables \u00E0 Fatboar. ");
  4891. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4892. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "p");
  4893. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, " Fatboar ne pourra \u00EAtre tenue pour responsable en cas de dysfonctionnements du r\u00E9seau Internet, notamment dus \u00E0 des actes de malveillance externe, qui emp\u00EAcheraient le bon d\u00E9roulement du Jeu et notamment l\u2019acc\u00E8s au Site internet. ");
  4894. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4895. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "p");
  4896. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, " Fatboar ne pourra \u00EAtre tenue responsable si, pour une raison ind\u00E9pendante de sa volont\u00E9 et/ou en cas de force majeure, le Jeu venait \u00E0 \u00EAtre \u00E9court\u00E9, prolong\u00E9, modifi\u00E9, report\u00E9 ou annul\u00E9 par annonce de Fatboar et ce sans qu\u2019une quelconque indemnisation ne soit due aux Participants. Ces annonces seront consid\u00E9r\u00E9es comme des annexes au pr\u00E9sent R\u00E8glement. ");
  4897. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4898. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "h1", 1);
  4899. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](67, "ARTICLE 7 \u2013 PUBLICITE");
  4900. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4901. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "p");
  4902. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](69, " Le Gagnant autorise Fatboar \u00E0 diffuser, dans le cadre du Jeu, leurs noms, coordonn\u00E9es et images (photographie ou film) sur tout support pendant un d\u00E9lai d'un an \u00E0 compter de la date de fin du Jeu. ");
  4903. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4904. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "p");
  4905. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71, " La diffusion du nom, des coordonn\u00E9es et/ou de l'image du Gagnant n\u2019ouvre droit, dans les conditions susvis\u00E9es \u00E0 aucun droit ou contrepartie financi\u00E8re \u00E0 leur profit. Fatboar se r\u00E9serve le droit d\u2019exiger le cas \u00E9ch\u00E9ant du Gagnants la signature d\u2019un document confirmant le droit susvis\u00E9 de diffuser leur image avant de b\u00E9n\u00E9ficier de leur dotation. ");
  4906. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4907. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "h1", 1);
  4908. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](73, "ARTICLE 8 \u2013 DONNEES A CARACTERE PERSONNEL");
  4909. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4910. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "p");
  4911. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, " La fourniture d\u2019informations nominatives concernant le Participant est n\u00E9cessaire \u00E0 la bonne ex\u00E9cution et gestion du pr\u00E9sent Jeu. Ces informations nominatives sont destin\u00E9es \u00E0 Fatboar repr\u00E9sent\u00E9e par son Directeur G\u00E9n\u00E9ral aux fins d\u2019organisation et de gestion du Jeu. Ces donn\u00E9es sont conserv\u00E9es pour la dur\u00E9e d\u2019ex\u00E9cution du Jeu en ce compris, le cas \u00E9ch\u00E9ant, pour la dur\u00E9e n\u00E9cessaire \u00E0 la gestion des dotations attribu\u00E9es aux Gagnants et/ou conform\u00E9ment \u00E0 ce que la loi oblige. Conform\u00E9ment \u00E0 la r\u00E8glementation relative \u00E0 la protection des donn\u00E9es personnelles, le Participant dispose d\u2019un droit d'acc\u00E8s, d'opposition, de rectification, d'effacement des donn\u00E9es personnelles le concernant, ainsi que du droit d'obtenir la limitation du traitement et de retirer son consentement qu\u2019il peut exercer en justifiant de son identit\u00E9 et en s\u2019adressant \u00E0 Fatboar : Par courrier postal : Fatboar \u2013 1 bis rue Gustave Eiffel, 78280 Guyancourt. Ou par email \u00E0 l\u2019adresse suivante : support@fatboar.fr. Il dispose \u00E9galement du droit d'introduire une r\u00E9clamation aupr\u00E8s d'une autorit\u00E9 de contr\u00F4le. ");
  4912. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4913. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](76, "br");
  4914. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4915. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4916. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4917. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_1__["MatCard"], _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_2__["DefaultLayoutDirective"], _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_2__["DefaultLayoutAlignDirective"], _angular_material_card__WEBPACK_IMPORTED_MODULE_1__["MatCardContent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY2d1L0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXHNoYXJlZFxcY2d1XFxjZ3UuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NndS9jZ3UuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxlQUFBO0VBQ0Esa0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NndS9jZ3UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogN2VtO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogM2VtO1xyXG4gICAgfSIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiA3ZW07XG4gIG1hcmdpbi1ib3R0b206IDNlbTtcbn0iXX0= */"] });
  4918. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CguComponent, [{
  4919. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  4920. args: [{
  4921. selector: 'app-cgu',
  4922. templateUrl: './cgu.component.html',
  4923. styleUrls: ['./cgu.component.scss']
  4924. }]
  4925. }], function () { return []; }, null); })();
  4926. /***/ }),
  4927. /***/ "./src/app/components/shared/confirm-message/confirm-message.component.ts":
  4928. /*!********************************************************************************!*\
  4929. !*** ./src/app/components/shared/confirm-message/confirm-message.component.ts ***!
  4930. \********************************************************************************/
  4931. /*! exports provided: ConfirmMessageComponent */
  4932. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4933. "use strict";
  4934. __webpack_require__.r(__webpack_exports__);
  4935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmMessageComponent", function() { return ConfirmMessageComponent; });
  4936. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  4937. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  4938. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  4939. class ConfirmMessageComponent {
  4940. constructor(data) {
  4941. this.data = data;
  4942. }
  4943. }
  4944. ConfirmMessageComponent.ɵfac = function ConfirmMessageComponent_Factory(t) { return new (t || ConfirmMessageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"])); };
  4945. ConfirmMessageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ConfirmMessageComponent, selectors: [["app-confirm-message"]], decls: 8, vars: 2, consts: [[1, "container"], [1, "justify-content-center", "mb-2"], ["mat-dialog-content", "", 1, "row", "justify-content-center", "my-2"], [1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-2", "mb-1"], ["mat-raised-button", "", "color", "primary", 3, "mat-dialog-close"]], template: function ConfirmMessageComponent_Template(rf, ctx) { if (rf & 1) {
  4946. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  4947. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "div", 1);
  4948. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  4949. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h3", 3);
  4950. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
  4951. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4952. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4953. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
  4954. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "button", 5);
  4955. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Ok");
  4956. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4957. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4958. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4959. } if (rf & 2) {
  4960. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  4961. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.data.response.message);
  4962. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  4963. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("mat-dialog-close", true);
  4964. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogClose"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbmZpcm0tbWVzc2FnZS9jb25maXJtLW1lc3NhZ2UuY29tcG9uZW50LnNjc3MifQ== */"] });
  4965. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ConfirmMessageComponent, [{
  4966. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  4967. args: [{
  4968. selector: 'app-confirm-message',
  4969. templateUrl: './confirm-message.component.html',
  4970. styleUrls: ['./confirm-message.component.scss']
  4971. }]
  4972. }], function () { return [{ type: undefined, decorators: [{
  4973. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  4974. args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]]
  4975. }] }]; }, null); })();
  4976. /***/ }),
  4977. /***/ "./src/app/components/shared/contact/contact.component.ts":
  4978. /*!****************************************************************!*\
  4979. !*** ./src/app/components/shared/contact/contact.component.ts ***!
  4980. \****************************************************************/
  4981. /*! exports provided: ContactComponent */
  4982. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4983. "use strict";
  4984. __webpack_require__.r(__webpack_exports__);
  4985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContactComponent", function() { return ContactComponent; });
  4986. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  4987. /* harmony import */ var _formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formulaire/formulaire.component */ "./src/app/components/shared/contact/formulaire/formulaire.component.ts");
  4988. /* harmony import */ var _information_information_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./information/information.component */ "./src/app/components/shared/contact/information/information.component.ts");
  4989. /* harmony import */ var _map_map_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map/map.component */ "./src/app/components/shared/contact/map/map.component.ts");
  4990. class ContactComponent {
  4991. constructor() { }
  4992. ngOnInit() {
  4993. }
  4994. }
  4995. ContactComponent.ɵfac = function ContactComponent_Factory(t) { return new (t || ContactComponent)(); };
  4996. ContactComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ContactComponent, selectors: [["app-contact"]], decls: 7, vars: 0, consts: [[1, "container", "navtop"], [1, "row"], [1, "col-md-6"]], template: function ContactComponent_Template(rf, ctx) { if (rf & 1) {
  4997. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  4998. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  4999. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  5000. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "app-formulaire");
  5001. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5002. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
  5003. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "app-information");
  5004. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "app-map");
  5005. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5006. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5007. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5008. } }, directives: [_formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_1__["FormulaireComponent"], _information_information_component__WEBPACK_IMPORTED_MODULE_2__["InformationComponent"], _map_map_component__WEBPACK_IMPORTED_MODULE_3__["MapComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxzaGFyZWRcXGNvbnRhY3RcXGNvbnRhY3QuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbnRhY3QvY29udGFjdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGVBQUE7RUFDQSxrQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9jb250YWN0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdnRvcHtcclxuICAgIG1hcmdpbi10b3A6IDdlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDNlbTtcclxuICB9IiwiLm5hdnRvcCB7XG4gIG1hcmdpbi10b3A6IDdlbTtcbiAgbWFyZ2luLWJvdHRvbTogM2VtO1xufSJdfQ== */"] });
  5009. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ContactComponent, [{
  5010. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5011. args: [{
  5012. selector: 'app-contact',
  5013. templateUrl: './contact.component.html',
  5014. styleUrls: ['./contact.component.scss']
  5015. }]
  5016. }], function () { return []; }, null); })();
  5017. /***/ }),
  5018. /***/ "./src/app/components/shared/contact/formulaire/confirm/confirm.component.ts":
  5019. /*!***********************************************************************************!*\
  5020. !*** ./src/app/components/shared/contact/formulaire/confirm/confirm.component.ts ***!
  5021. \***********************************************************************************/
  5022. /*! exports provided: ConfirmComponent */
  5023. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5024. "use strict";
  5025. __webpack_require__.r(__webpack_exports__);
  5026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmComponent", function() { return ConfirmComponent; });
  5027. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  5028. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  5029. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  5030. class ConfirmComponent {
  5031. constructor(data) {
  5032. this.data = data;
  5033. }
  5034. }
  5035. ConfirmComponent.ɵfac = function ConfirmComponent_Factory(t) { return new (t || ConfirmComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"])); };
  5036. ConfirmComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ConfirmComponent, selectors: [["app-confirm"]], decls: 10, vars: 2, consts: [[1, "container"], [1, "justify-content-center", "mb-4"], ["mat-dialog-title", "", 1, "text-center"], ["mat-dialog-content", "", 1, "row", "justify-content-center", "my-2"], [1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-5"], ["mat-raised-button", "", "color", "primary", 3, "mat-dialog-close"]], template: function ConfirmComponent_Template(rf, ctx) { if (rf & 1) {
  5037. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  5038. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  5039. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h1", 2);
  5040. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Merci pour votre message");
  5041. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5042. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5043. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
  5044. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h3", 4);
  5045. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
  5046. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5047. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5048. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
  5049. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 6);
  5050. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Ok");
  5051. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5052. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5053. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5054. } if (rf & 2) {
  5055. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  5056. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.data.response);
  5057. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  5058. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("mat-dialog-close", true);
  5059. } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogClose"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbnRhY3QvZm9ybXVsYWlyZS9jb25maXJtL2NvbmZpcm0uY29tcG9uZW50LnNjc3MifQ== */"] });
  5060. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ConfirmComponent, [{
  5061. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5062. args: [{
  5063. selector: 'app-confirm',
  5064. templateUrl: './confirm.component.html',
  5065. styleUrls: ['./confirm.component.scss']
  5066. }]
  5067. }], function () { return [{ type: undefined, decorators: [{
  5068. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  5069. args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]]
  5070. }] }]; }, null); })();
  5071. /***/ }),
  5072. /***/ "./src/app/components/shared/contact/formulaire/formulaire.component.ts":
  5073. /*!******************************************************************************!*\
  5074. !*** ./src/app/components/shared/contact/formulaire/formulaire.component.ts ***!
  5075. \******************************************************************************/
  5076. /*! exports provided: FormulaireComponent */
  5077. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5078. "use strict";
  5079. __webpack_require__.r(__webpack_exports__);
  5080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormulaireComponent", function() { return FormulaireComponent; });
  5081. /* harmony import */ var _confirm_confirm_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./confirm/confirm.component */ "./src/app/components/shared/contact/formulaire/confirm/confirm.component.ts");
  5082. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  5083. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
  5084. /* harmony import */ var src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/contact.service */ "./src/app/services/contact.service.ts");
  5085. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  5086. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  5087. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  5088. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  5089. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  5090. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  5091. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  5092. /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js");
  5093. function FormulaireComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) {
  5094. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "mat-progress-bar", 11);
  5095. } }
  5096. function FormulaireComponent_mat_error_12_Template(rf, ctx) { if (rf & 1) {
  5097. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-error");
  5098. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
  5099. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5100. } if (rf & 2) {
  5101. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
  5102. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
  5103. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorLastname(), " ");
  5104. } }
  5105. function FormulaireComponent_mat_error_18_Template(rf, ctx) { if (rf & 1) {
  5106. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-error");
  5107. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
  5108. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5109. } if (rf & 2) {
  5110. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
  5111. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
  5112. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorEmail(), " ");
  5113. } }
  5114. function FormulaireComponent_mat_error_24_Template(rf, ctx) { if (rf & 1) {
  5115. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-error");
  5116. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
  5117. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5118. } if (rf & 2) {
  5119. const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
  5120. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
  5121. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r3.getErrorMessage(), " ");
  5122. } }
  5123. const googleLogoURL = "../assets/img/social/google+.svg";
  5124. const facebookLogoURL = "../assets/img/social/facebook.svg";
  5125. class FormulaireComponent {
  5126. constructor(contactService, authService, formBuilder, dialog) {
  5127. this.contactService = contactService;
  5128. this.authService = authService;
  5129. this.formBuilder = formBuilder;
  5130. this.dialog = dialog;
  5131. this.submitted = false;
  5132. this.loading = false;
  5133. }
  5134. ngOnInit() {
  5135. this.createForm();
  5136. }
  5137. createForm() {
  5138. let caracereregex = /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/;
  5139. let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  5140. this.formGroup = this.formBuilder.group({
  5141. lastname: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern(caracereregex)]],
  5142. email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern(emailregex)]],
  5143. message: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
  5144. });
  5145. }
  5146. getErrorLastname() {
  5147. return this.formGroup.get('lastname').hasError('required') ? 'Nom requis' :
  5148. this.formGroup.get('lastname').hasError('pattern') ? 'Nom non valide' : '';
  5149. }
  5150. getErrorEmail() {
  5151. return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' :
  5152. this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : '';
  5153. }
  5154. getErrorMessage() {
  5155. return this.formGroup.get('message').hasError('required') ? 'Message requis' : '';
  5156. }
  5157. get f() { return this.formGroup.controls; }
  5158. sendMsgContact() {
  5159. this.submitted = true;
  5160. if (this.formGroup.invalid) {
  5161. return;
  5162. }
  5163. this.loading = true;
  5164. this.contactService.sendMsgContact(this.formGroup.value).subscribe(data => {
  5165. console.log(data);
  5166. this.response = data.message;
  5167. this.loading = false;
  5168. this.openDialog();
  5169. }, err => {
  5170. this.loading = false;
  5171. console.log(err.error.message);
  5172. this.authService.openSnackBar(err.error.message);
  5173. });
  5174. }
  5175. openDialog() {
  5176. const dialogRef = this.dialog.open(_confirm_confirm_component__WEBPACK_IMPORTED_MODULE_0__["ConfirmComponent"], {
  5177. height: '40%',
  5178. width: '38%',
  5179. data: {
  5180. response: this.response
  5181. }
  5182. });
  5183. dialogRef.afterClosed().subscribe(() => {
  5184. location.reload();
  5185. });
  5186. }
  5187. }
  5188. FormulaireComponent.ɵfac = function FormulaireComponent_Factory(t) { return new (t || FormulaireComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__["MatDialog"])); };
  5189. FormulaireComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: FormulaireComponent, selectors: [["app-formulaire"]], decls: 28, vars: 5, consts: [[1, ""], [3, "formGroup", "ngSubmit"], ["class", "row ", "mode", "indeterminate", 4, "ngIf"], [1, "row", "justify-content-center"], ["appearance", "outline", 1, "col-10"], ["matInput", "", "placeholder", "Nom", "formControlName", "lastname"], [4, "ngIf"], ["matInput", "", "placeholder", "Adresse email", "formControlName", "email"], ["rows", "7", "matInput", "", "formControlName", "message"], [1, "row", "justify-content-center", "mt-3", "mb-2"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", "color-theme"], ["mode", "indeterminate", 1, "row"]], template: function FormulaireComponent_Template(rf, ctx) { if (rf & 1) {
  5190. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-card", 0);
  5191. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "mat-card-content");
  5192. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "form", 1);
  5193. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function FormulaireComponent_Template_form_ngSubmit_2_listener() { return ctx.sendMsgContact(); });
  5194. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, FormulaireComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 2);
  5195. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h1", 3);
  5196. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "b");
  5197. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Contactez-nous");
  5198. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5199. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5200. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 3);
  5201. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "mat-form-field", 4);
  5202. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "mat-label");
  5203. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nom");
  5204. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5205. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "input", 5);
  5206. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, FormulaireComponent_mat_error_12_Template, 2, 1, "mat-error", 6);
  5207. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5208. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5209. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 3);
  5210. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "mat-form-field", 4);
  5211. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "mat-label");
  5212. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Adresse email");
  5213. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5214. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 7);
  5215. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, FormulaireComponent_mat_error_18_Template, 2, 1, "mat-error", 6);
  5216. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5217. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5218. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 3);
  5219. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "mat-form-field", 4);
  5220. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "mat-label");
  5221. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "Message");
  5222. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5223. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](23, "textarea", 8);
  5224. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, FormulaireComponent_mat_error_24_Template, 2, 1, "mat-error", 6);
  5225. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5226. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5227. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 9);
  5228. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "button", 10);
  5229. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, "Envoyer");
  5230. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5231. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5232. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5233. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5234. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  5235. } if (rf & 2) {
  5236. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
  5237. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.formGroup);
  5238. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
  5239. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.loading);
  5240. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
  5241. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["lastname"].valid && ctx.formGroup.controls["lastname"].touched);
  5242. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
  5243. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid && ctx.formGroup.controls["email"].touched);
  5244. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
  5245. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["message"].valid && ctx.formGroup.controls["message"].touched);
  5246. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_6__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_6__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__["MatFormField"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__["MatLabel"], _angular_material_input__WEBPACK_IMPORTED_MODULE_9__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _angular_material_button__WEBPACK_IMPORTED_MODULE_10__["MatButton"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_11__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__["MatError"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbnRhY3QvZm9ybXVsYWlyZS9mb3JtdWxhaXJlLmNvbXBvbmVudC5zY3NzIn0= */"] });
  5247. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FormulaireComponent, [{
  5248. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
  5249. args: [{
  5250. selector: 'app-formulaire',
  5251. templateUrl: './formulaire.component.html',
  5252. styleUrls: ['./formulaire.component.scss']
  5253. }]
  5254. }], function () { return [{ type: src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__["MatDialog"] }]; }, null); })();
  5255. /***/ }),
  5256. /***/ "./src/app/components/shared/contact/information/information.component.ts":
  5257. /*!********************************************************************************!*\
  5258. !*** ./src/app/components/shared/contact/information/information.component.ts ***!
  5259. \********************************************************************************/
  5260. /*! exports provided: InformationComponent */
  5261. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5262. "use strict";
  5263. __webpack_require__.r(__webpack_exports__);
  5264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InformationComponent", function() { return InformationComponent; });
  5265. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  5266. /* harmony import */ var _angular_material_list__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/list */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/list.js");
  5267. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  5268. class InformationComponent {
  5269. constructor() { }
  5270. ngOnInit() {
  5271. }
  5272. }
  5273. InformationComponent.ɵfac = function InformationComponent_Factory(t) { return new (t || InformationComponent)(); };
  5274. InformationComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: InformationComponent, selectors: [["app-information"]], decls: 25, vars: 0, consts: [["lang", "en"], ["charset", "utf-8"], [1, "text-center"], [1, "info"], ["mat-list-item", ""], [1, "icon", "mr-2"], [1, "label", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], ["mat-list-item", "", "type", "button"], [1, "mr-2"], [1, "", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], [1, "label"]], template: function InformationComponent_Template(rf, ctx) { if (rf & 1) {
  5275. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "html", 0);
  5276. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "head");
  5277. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "meta", 1);
  5278. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "title");
  5279. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "FatBoar - Page de contact o\u00F9 un client peut venir faire une r\u00E9clamation ou bien si il a besoins d'informations par rapport au jeu concours");
  5280. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5281. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5282. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "body");
  5283. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h1", 2);
  5284. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "FatBoar");
  5285. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5286. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5287. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 3);
  5288. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "a", 4);
  5289. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "mat-icon", 5);
  5290. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "room");
  5291. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5292. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "span", 6);
  5293. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "1 Bis Rue Gustave Eiffel, 78280 Guyancourt");
  5294. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5295. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5296. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "a", 7);
  5297. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "mat-icon", 8);
  5298. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "phone_enabled");
  5299. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5300. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "label", 9);
  5301. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "01 74 56 64 31");
  5302. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5303. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5304. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "a", 4);
  5305. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "mat-icon", 5);
  5306. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "email");
  5307. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5308. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "span", 10);
  5309. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 9);
  5310. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "contact@fatboar.fr");
  5311. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5312. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5313. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5314. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5315. } }, directives: [_angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatListItem"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_2__["MatIcon"]], styles: [".info[_ngcontent-%COMP%] {\n margin-left: 4em;\n margin-right: auto;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9pbmZvcm1hdGlvbi9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxzaGFyZWRcXGNvbnRhY3RcXGluZm9ybWF0aW9uXFxpbmZvcm1hdGlvbi5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9pbmZvcm1hdGlvbi9pbmZvcm1hdGlvbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGdCQUFBO0VBQ0Esa0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbnRhY3QvaW5mb3JtYXRpb24vaW5mb3JtYXRpb24uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuaW5mb3tcclxuICAgIG1hcmdpbi1sZWZ0OiA0ZW07XHJcbiAgICBtYXJnaW4tcmlnaHQ6IGF1dG87XHJcbn0iLCIuaW5mbyB7XG4gIG1hcmdpbi1sZWZ0OiA0ZW07XG4gIG1hcmdpbi1yaWdodDogYXV0bztcbn0iXX0= */"] });
  5316. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](InformationComponent, [{
  5317. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5318. args: [{
  5319. selector: 'app-information',
  5320. templateUrl: './information.component.html',
  5321. styleUrls: ['./information.component.scss']
  5322. }]
  5323. }], function () { return []; }, null); })();
  5324. /***/ }),
  5325. /***/ "./src/app/components/shared/contact/map/map.component.ts":
  5326. /*!****************************************************************!*\
  5327. !*** ./src/app/components/shared/contact/map/map.component.ts ***!
  5328. \****************************************************************/
  5329. /*! exports provided: MapComponent */
  5330. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5331. "use strict";
  5332. __webpack_require__.r(__webpack_exports__);
  5333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MapComponent", function() { return MapComponent; });
  5334. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  5335. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  5336. /* harmony import */ var src_app_services_restaurants_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/restaurants.service */ "./src/app/services/restaurants.service.ts");
  5337. /* harmony import */ var src_app_services_leaflet_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/leaflet.service */ "./src/app/services/leaflet.service.ts");
  5338. class MapComponent {
  5339. constructor(restaurantsService, leafletService, platformId) {
  5340. this.restaurantsService = restaurantsService;
  5341. this.leafletService = leafletService;
  5342. this.platformId = platformId;
  5343. }
  5344. ngOnInit() {
  5345. if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this.platformId)) {
  5346. this.L = this.leafletService.getLeaflet();
  5347. this.initMap();
  5348. }
  5349. }
  5350. initMap() {
  5351. if (!this.L)
  5352. return;
  5353. // Déclaration de la carte avec les coordonnées du centre et le niveau de zoom.
  5354. this.macarte = this.L.map('frugalmap').setView([48.85513, 2.353429], 9);
  5355. this.L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
  5356. attribution: 'FatBoar',
  5357. }).addTo(this.macarte);
  5358. const myIcon = this.L.icon({
  5359. iconUrl: "../assets/img/marker/markericon.png"
  5360. });
  5361. this.restaurantsService.getRestaurants().subscribe((data) => {
  5362. console.log('test resto', data);
  5363. data.forEach((res) => {
  5364. const marker = this.L.marker([res.latitude, res.longitude], { icon: myIcon }).addTo(this.macarte);
  5365. marker.bindPopup(`<h5 style="text-align: center"><b>${res.name}</b></h5> <b> adresse : </b>${res.adress}`, { maxWidth: 130, minWidth: 120 });
  5366. });
  5367. });
  5368. }
  5369. }
  5370. MapComponent.ɵfac = function MapComponent_Factory(t) { return new (t || MapComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_restaurants_service__WEBPACK_IMPORTED_MODULE_2__["RestaurantsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_leaflet_service__WEBPACK_IMPORTED_MODULE_3__["LeafletService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"])); };
  5371. MapComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MapComponent, selectors: [["app-map"]], decls: 1, vars: 0, consts: [["id", "frugalmap"]], template: function MapComponent_Template(rf, ctx) { if (rf & 1) {
  5372. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 0);
  5373. } }, styles: ["#frugalmap[_ngcontent-%COMP%] {\n height: 300px;\n width: 100%;\n border-radius: 1em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9tYXAvQzpcXEZhdGJvYXJQcm9qZWN0XFxhbmd1bGFyLWNsaWVudC9zcmNcXGFwcFxcY29tcG9uZW50c1xcc2hhcmVkXFxjb250YWN0XFxtYXBcXG1hcC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9tYXAvbWFwLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9tYXAvbWFwLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiI2ZydWdhbG1hcCB7XHJcbiAgICBoZWlnaHQ6IDMwMHB4O1xyXG4gICAgd2lkdGg6IDEwMCU7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxZW07XHJcbn0iLCIjZnJ1Z2FsbWFwIHtcbiAgaGVpZ2h0OiAzMDBweDtcbiAgd2lkdGg6IDEwMCU7XG4gIGJvcmRlci1yYWRpdXM6IDFlbTtcbn0iXX0= */"] });
  5374. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MapComponent, [{
  5375. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5376. args: [{
  5377. selector: 'app-map',
  5378. templateUrl: './map.component.html',
  5379. styleUrls: ['./map.component.scss']
  5380. }]
  5381. }], function () { return [{ type: src_app_services_restaurants_service__WEBPACK_IMPORTED_MODULE_2__["RestaurantsService"] }, { type: src_app_services_leaflet_service__WEBPACK_IMPORTED_MODULE_3__["LeafletService"] }, { type: Object, decorators: [{
  5382. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  5383. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
  5384. }] }]; }, null); })();
  5385. /***/ }),
  5386. /***/ "./src/app/components/shared/footer/footer.component.ts":
  5387. /*!**************************************************************!*\
  5388. !*** ./src/app/components/shared/footer/footer.component.ts ***!
  5389. \**************************************************************/
  5390. /*! exports provided: FooterComponent */
  5391. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5392. "use strict";
  5393. __webpack_require__.r(__webpack_exports__);
  5394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FooterComponent", function() { return FooterComponent; });
  5395. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  5396. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  5397. class FooterComponent {
  5398. constructor() { }
  5399. ngOnInit() {
  5400. }
  5401. }
  5402. FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
  5403. FooterComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FooterComponent, selectors: [["app-footer"]], decls: 58, vars: 0, consts: [[1, "main-footer", "mt-6"], [1, "col-12"], [1, "row"], [1, "col-md-3", "col-12"], [1, "row", "justify-content-end", "border-right", "my-3"], [1, "col-12", "mb-2"], ["routerLink", "/", "routerLinkActive", "active", 1, "row", "justify-content-center"], ["width", "80", "height", "80", "src", "assets/img/logo-fatboar.png", "alt", "An image of logo-fatboar"], [1, "col-12", "mt-2"], [1, "row", "justify-content-center"], ["href", "", 1, "mr-2"], ["width", "30", "height", "30", "src", "assets/img/social/twitter.svg", "alt", "Twitter logo linking to the Fatboar twitter page"], ["width", "30", "height", "30", "src", "assets/img/social/facebook.svg", "alt", "Facebook logo linking to the Fatboar facebook page"], ["href", "", 1, ""], ["width", "30", "height", "30", "src", "assets/img/social/instagram.svg", "alt", "Instagram logo linking to the FatBoar instagram page"], [1, "col-md-12", "text-md-left", "text-center"], ["href", "", 1, "col-md-12", "text-md-left", "text-center"], [1, "col-md-12", "text-md-left", "text-center", 2, "color", "white !important"], ["routerLink", "cgu", 1, "col-md-12"], ["routerLink", "mention-legales", 1, "col-md-12"], ["routerLink", "politique-de-confidentialite", 1, "col-md-12"], [1, "col-md-3", "col-12", "mb-3"], ["href", "mailto:", 1, "col-md-12", "text-md-left", "text-center"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
  5404. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  5405. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  5406. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  5407. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
  5408. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
  5409. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 5);
  5410. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "a", 6);
  5411. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "img", 7);
  5412. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5413. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5414. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 8);
  5415. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 9);
  5416. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "a", 10);
  5417. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "img", 11);
  5418. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5419. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 10);
  5420. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "img", 12);
  5421. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5422. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "a", 13);
  5423. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "img", 14);
  5424. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5425. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5426. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5427. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5428. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5429. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 3);
  5430. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 2);
  5431. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "h3", 15);
  5432. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Informations utiles");
  5433. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5434. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "a", 16);
  5435. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "h4", 17);
  5436. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Comment \u00E7a marche ?");
  5437. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5438. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5439. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "a", 16);
  5440. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "h4", 17);
  5441. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "Qui sommes-nous ?");
  5442. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5443. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5444. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "a", 16);
  5445. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "h4", 17);
  5446. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "FatBoar pour ses clients");
  5447. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5448. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5449. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5450. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5451. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 3);
  5452. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 2);
  5453. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "h3", 15);
  5454. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Informations l\u00E9gales");
  5455. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5456. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "a", 18);
  5457. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "h4", 15);
  5458. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Conditions g\u00E9n\u00E9rales d'utilisation");
  5459. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5460. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5461. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "a", 19);
  5462. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "h4", 15);
  5463. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Mention l\u00E9gales");
  5464. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5465. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5466. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "a", 20);
  5467. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "h4", 15);
  5468. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Politique de confidentialit\u00E9");
  5469. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5470. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5471. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5472. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5473. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 21);
  5474. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 2);
  5475. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "h3", 15);
  5476. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, "Nous contacter");
  5477. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5478. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "h4", 15);
  5479. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "Service client : ");
  5480. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "b");
  5481. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "01 74 56 64 31");
  5482. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5483. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5484. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "h4", 15);
  5485. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "De 9h \u00E0 12h et de 13h \u00E0 19h");
  5486. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5487. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "h4", 15);
  5488. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, "du lundi au vendredi");
  5489. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5490. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "a", 22);
  5491. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "h4", 15);
  5492. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "b");
  5493. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](57, "Envoyer un mail");
  5494. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5495. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5496. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5497. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5498. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5499. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5500. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5501. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5502. } }, directives: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterLinkWithHref"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterLinkActive"]], styles: [".main-footer[_ngcontent-%COMP%] {\n color: white !important;\n background-image: linear-gradient(to right, #f5af19, #f12711);\n}\n\n.border-right[_ngcontent-%COMP%] {\n border-right: 1px, solid white;\n}\n\nh2[_ngcontent-%COMP%] {\n text-align: left;\n font-weight: bold;\n margin: 0px;\n margin-top: 30px;\n}\n\nh5[_ngcontent-%COMP%] {\n text-align: left;\n margin: 0px;\n}\n\na[_ngcontent-%COMP%] {\n color: white;\n margin: 0px;\n padding: 0px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvZm9vdGVyL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXHNoYXJlZFxcZm9vdGVyXFxmb290ZXIuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2Zvb3Rlci9mb290ZXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSx1QkFBQTtFQUVBLDZEQUFBO0FDQUo7O0FER0E7RUFDSSw4QkFBQTtBQ0FKOztBREVBO0VBQ0ksZ0JBQUE7RUFDQSxpQkFBQTtFQUNBLFdBQUE7RUFDQSxnQkFBQTtBQ0NKOztBREVBO0VBQ0ksZ0JBQUE7RUFDQSxXQUFBO0FDQ0o7O0FEQ0E7RUFDSSxZQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7QUNFSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2Zvb3Rlci9mb290ZXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubWFpbi1mb290ZXIge1xyXG4gICAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XHJcbiAgICAvLyBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQodG8gcmlnaHQsICNlM2NmNDgsICNlNmMxMzksICNlOGIyMmMsICNlYWEzMjIsICNlYjkzMWIsICNlYjg4MTgsICNlYjdkMTcsICNlYTcxMTgsICNlOTY4MTksICNlNzVlMWEsICNlNTU0MWMsICNlMzQ5MWUpO1xyXG4gICAgYmFja2dyb3VuZC1pbWFnZTogbGluZWFyLWdyYWRpZW50KHRvIHJpZ2h0LCAjZjVhZjE5LCAjZjEyNzExICk7XHJcbn1cclxuXHJcbi5ib3JkZXItcmlnaHQge1xyXG4gICAgYm9yZGVyLXJpZ2h0OiAxcHgsIHNvbGlkIHdoaXRlO1xyXG59XHJcbmgyIHtcclxuICAgIHRleHQtYWxpZ246IGxlZnQ7XHJcbiAgICBmb250LXdlaWdodDogYm9sZDtcclxuICAgIG1hcmdpbjogMHB4O1xyXG4gICAgbWFyZ2luLXRvcDogMzBweDtcclxufVxyXG5cclxuaDUge1xyXG4gICAgdGV4dC1hbGlnbjogbGVmdDtcclxuICAgIG1hcmdpbjogMHB4O1xyXG59XHJcbmEge1xyXG4gICAgY29sb3I6IHdoaXRlO1xyXG4gICAgbWFyZ2luOiAwcHg7XHJcbiAgICBwYWRkaW5nOiAwcHg7XHJcbn1cclxuIiwiLm1haW4tZm9vdGVyIHtcbiAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG4gIGJhY2tncm91bmQtaW1hZ2U6IGxpbmVhci1ncmFkaWVudCh0byByaWdodCwgI2Y1YWYxOSwgI2YxMjcxMSk7XG59XG5cbi5ib3JkZXItcmlnaHQge1xuICBib3JkZXItcmlnaHQ6IDFweCwgc29saWQgd2hpdGU7XG59XG5cbmgyIHtcbiAgdGV4dC1hbGlnbjogbGVmdDtcbiAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gIG1hcmdpbjogMHB4O1xuICBtYXJnaW4tdG9wOiAzMHB4O1xufVxuXG5oNSB7XG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIG1hcmdpbjogMHB4O1xufVxuXG5hIHtcbiAgY29sb3I6IHdoaXRlO1xuICBtYXJnaW46IDBweDtcbiAgcGFkZGluZzogMHB4O1xufSJdfQ== */"] });
  5503. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FooterComponent, [{
  5504. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5505. args: [{
  5506. selector: 'app-footer',
  5507. templateUrl: './footer.component.html',
  5508. styleUrls: ['./footer.component.scss']
  5509. }]
  5510. }], function () { return []; }, null); })();
  5511. /***/ }),
  5512. /***/ "./src/app/components/shared/mentions-legales/mentions-legales.component.ts":
  5513. /*!**********************************************************************************!*\
  5514. !*** ./src/app/components/shared/mentions-legales/mentions-legales.component.ts ***!
  5515. \**********************************************************************************/
  5516. /*! exports provided: MentionsLegalesComponent */
  5517. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5518. "use strict";
  5519. __webpack_require__.r(__webpack_exports__);
  5520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MentionsLegalesComponent", function() { return MentionsLegalesComponent; });
  5521. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  5522. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  5523. /* harmony import */ var _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/flex-layout/flex */ "./node_modules/@angular/flex-layout/__ivy_ngcc__/esm2015/flex.js");
  5524. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  5525. class MentionsLegalesComponent {
  5526. constructor() { }
  5527. ngOnInit() {
  5528. }
  5529. }
  5530. MentionsLegalesComponent.ɵfac = function MentionsLegalesComponent_Factory(t) { return new (t || MentionsLegalesComponent)(); };
  5531. MentionsLegalesComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MentionsLegalesComponent, selectors: [["app-mentions-legales"]], decls: 96, vars: 0, consts: [["fxLayout", "column", "fxLayoutAlign", "center stretch"], ["mat-button", "", "rel", "noopener noreferrer", "href", "https://www.cnil.fr/", "target", "_blank", "color", "primary"], [1, "title", "my-h1"], [1, "title", "my-h2"], ["href", "https://www.cnil.fr/fr/cookies-traceurs-que-dit-la-loi"], ["href", "https://www.cnil.fr/fr/cookies-les-outils-pour-les-maitriser "]], template: function MentionsLegalesComponent_Template(rf, ctx) { if (rf & 1) {
  5532. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card", 0);
  5533. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card-content");
  5534. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p");
  5535. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " La soci\u00E9t\u00E9 Fatboar, soucieuse des droits des individus, notamment au regard des traitements automatis\u00E9s, et dans une volont\u00E9 de transparence avec ses clients, a mis en place une politique reprenant l\u2019ensemble de ces traitements, des finalit\u00E9s poursuivies par ces derniers ainsi que des moyens d\u2019actions \u00E0 la disposition des individus afin qu\u2019ils puissent au mieux exercer leurs droits. Pour toute information compl\u00E9mentaire sur la protection des donn\u00E9es personnelles, nous vous invitons \u00E0 consulter le site :");
  5536. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
  5537. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5538. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "ul");
  5539. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "li");
  5540. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "a", 1);
  5541. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Cnil");
  5542. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5543. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5544. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5545. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "p");
  5546. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " La poursuite de la navigation sur ce site vaut acceptation sans r\u00E9serve des dispositions et conditions d'utilisation qui suivent. Vous acceptez l'utilisation de cookies et autres traceurs. La version actuellement en ligne de ces conditions d'utilisation est la seule opposable pendant toute la dur\u00E9e d'utilisation du site et jusqu'\u00E0 ce qu'une nouvelle version la remplace. ");
  5547. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5548. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "h1", 2);
  5549. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Article 1 - Mentions l\u00E9gales");
  5550. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5551. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "h2", 3);
  5552. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "1.1 Site (ci-apr\u00E8s \u00AB le site \u00BB) : Fatboar");
  5553. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5554. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "h2", 3);
  5555. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "1.2 \u00C9diteur (ci-apr\u00E8s \u00AB l'\u00E9diteur \u00BB) :");
  5556. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5557. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "p");
  5558. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Fatboar SA, au capital de 750 000\u20AC, ");
  5559. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "br");
  5560. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, " dont le si\u00E8ge social est situ\u00E9: 1 bis Rue Gustave Eiffel, 78280 Guyancourt ");
  5561. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "br");
  5562. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, " repr\u00E9sent\u00E9e Mr E. BOURDON, en sa qualit\u00E9 de directeur g\u00E9n\u00E9ral, ");
  5563. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "br");
  5564. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, " immatricul\u00E9e au RCS de Paris, 484 969 950, ");
  5565. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "br");
  5566. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, " n\u00B0 de t\u00E9l\u00E9phone : 01 42 51 62 01, ");
  5567. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](27, "br");
  5568. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " adresse mail : contact@fatbor.fr ");
  5569. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "br");
  5570. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5571. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "h2", 3);
  5572. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "1.3 H\u00E9bergeur (ci-apr\u00E8s \u00AB l'h\u00E9bergeur \u00BB) :");
  5573. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5574. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "p");
  5575. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Gusto coffee est h\u00E9berg\u00E9 par Scalway, dont le si\u00E8ge social est au 8 rue de la ville l\u2019\u00E9v\u00EAque 75008 Paris.");
  5576. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5577. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "h1", 2);
  5578. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Article 2 - Acc\u00E8s au site");
  5579. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5580. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "p");
  5581. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, " L'acc\u00E8s au site et son utilisation sont r\u00E9serv\u00E9s \u00E0 un usage strictement personnel. ");
  5582. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](38, "br");
  5583. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " Vous vous engagez \u00E0 ne pas utiliser ce site et les informations ou donn\u00E9es qui y figurent \u00E0 des fins commerciales, politiques, publicitaires et pour toute forme de sollicitation commerciale et notamment l'envoi de courriers \u00E9lectroniques non sollicit\u00E9s. ");
  5584. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5585. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "h1", 2);
  5586. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Article 3 - Contenu du site");
  5587. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5588. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "p");
  5589. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, " Toutes les marques, photographies, textes, commentaires, illustrations, images anim\u00E9es ou non, s\u00E9quences vid\u00E9o, sons, ainsi que toutes les applications informatiques qui pourraient \u00EAtre utilis\u00E9es pour faire fonctionner ce site et plus g\u00E9n\u00E9ralement tous les \u00E9l\u00E9ments reproduits ou utilis\u00E9s sur le site sont prot\u00E9g\u00E9s par les lois en vigueur au titre de la propri\u00E9t\u00E9 intellectuelle. Ils sont la propri\u00E9t\u00E9 pleine et enti\u00E8re de l'\u00E9diteur ou de ses partenaires. Toute reproduction, repr\u00E9sentation, utilisation ou adaptation, sous quelque forme que ce soit, de tout ou partie de ces \u00E9l\u00E9ments, y compris les applications informatiques, sans l'accord pr\u00E9alable et \u00E9crit de l'\u00E9diteur, sont strictement interdites. Le fait pour l'\u00E9diteur de ne pas engager de proc\u00E9dure d\u00E8s la prise de connaissance de ces utilisations non autoris\u00E9es ne vaut pas acceptation desdites utilisations et renonciation aux poursuites. ");
  5590. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5591. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "h1", 2);
  5592. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, "Article 4 - Gestion du site");
  5593. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5594. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "p");
  5595. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, " Pour la bonne gestion du site, l'\u00E9diteur pourra \u00E0 tout moment : suspendre, interrompre ou limiter l'acc\u00E8s \u00E0 tout ou partie du site, r\u00E9server l'acc\u00E8s au site, ou \u00E0 certaines parties du site, \u00E0 une cat\u00E9gorie d\u00E9termin\u00E9e d'internautes supprimer toute information pouvant en perturber le fonctionnement ou entrant en contravention avec les lois nationales ou internationales, ou avec les r\u00E8gles de la N\u00E9tiquette suspendre le site afin de proc\u00E9der \u00E0 des mises \u00E0 jour. Article 5 - Responsabilit\u00E9s La responsabilit\u00E9 de l'\u00E9diteur ne peut \u00EAtre engag\u00E9e en cas de d\u00E9faillance, panne, difficult\u00E9 ou interruption de fonctionnement, emp\u00EAchant l'acc\u00E8s au site ou \u00E0 une de ses fonctionnalit\u00E9s. Le mat\u00E9riel de connexion au site que vous utilisez est sous votre enti\u00E8re responsabilit\u00E9. Vous devez prendre toutes les mesures appropri\u00E9es pour prot\u00E9ger votre mat\u00E9riel et vos propres donn\u00E9es notamment d'attaques virales par Internet. Vous \u00EAtes par ailleurs seul responsable des sites et donn\u00E9es que vous consultez. L'\u00E9diteur ne pourra \u00EAtre tenu responsable en cas de poursuites judiciaires \u00E0 votre encontre : du fait de l'usage du site ou de tout service accessible via Internet du fait du non-respect par vous des pr\u00E9sentes conditions g\u00E9n\u00E9rales. L'\u00E9diteur n'est pas responsable des dommages caus\u00E9s \u00E0 vous-m\u00EAme, \u00E0 des tiers et/ou \u00E0 votre \u00E9quipement du fait de votre connexion ou de votre utilisation du site et vous renoncez \u00E0 toute action contre lui de ce fait. Si l'\u00E9diteur venait \u00E0 faire l'objet d'une proc\u00E9dure amiable ou judiciaire \u00E0 raison de votre utilisation du site, il pourrait se retourner contre vous pour obtenir l'indemnisation de tous les pr\u00E9judices, sommes, condamnations et frais qui pourraient d\u00E9couler de cette proc\u00E9dure. ");
  5596. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5597. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "h1", 2);
  5598. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Article 6 - Liens hypertextes");
  5599. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5600. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "p");
  5601. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, " La mise en place par les utilisateurs de tous liens hypertextes vers tout ou partie du site est autoris\u00E9e par l'\u00E9diteur. Tout lien devra \u00EAtre retir\u00E9 sur simple demande de l'\u00E9diteur. Toute information accessible via un lien vers d'autres sites n'est pas sous le contr\u00F4le de l'\u00E9diteur qui d\u00E9cline toute responsabilit\u00E9 quant \u00E0 leur contenu. ");
  5602. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5603. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "h1", 2);
  5604. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, "Article 7 - Collecte de donn\u00E9es");
  5605. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5606. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "p");
  5607. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55, " Vos donn\u00E9es sont collect\u00E9es par La soci\u00E9t\u00E9 Fatboar. Une donn\u00E9e \u00E0 caract\u00E8re personnel d\u00E9signe toute information concernant une personne physique identifi\u00E9e ou identifiable (personne concern\u00E9e) ; est r\u00E9put\u00E9e identifiable une personne qui peut \u00EAtre identifi\u00E9e, directement ou indirectement, notamment par r\u00E9f\u00E9rence \u00E0 un nom, un num\u00E9ro d'identification ou \u00E0 un ou plusieurs \u00E9l\u00E9ments sp\u00E9cifiques, propres \u00E0 son identit\u00E9 physique, physiologique, g\u00E9n\u00E9tique, psychique, \u00E9conomique, culturelle ou sociale. Les informations personnelles pouvant \u00EAtre recueillies sur le site sont principalement utilis\u00E9es par l'\u00E9diteur pour la gestion des relations avec vous, et le cas \u00E9ch\u00E9ant pour le traitement de vos commandes. Elles sont enregistr\u00E9es dans le fichier de clients de l'\u00E9diteur et le fichier ainsi \u00E9labor\u00E9 \u00E0 partir de donn\u00E9es \u00E0 caract\u00E8re personnel est d\u00E9clar\u00E9 aupr\u00E8s de la CNIL. Le num\u00E9ro d\u2019enregistrement de l\u2019\u00E9diteur \u00E0 la CNIL est le suivant : XXXX-XXXX-XXXX-XXXX ");
  5608. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5609. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "h1", 2);
  5610. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](57, "Article 8 - Droit d\u2019acc\u00E8s, de rectification et de d\u00E9r\u00E9f\u00E9rencement de vos donn\u00E9es");
  5611. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5612. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "p");
  5613. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59, " Chaque personne dispose d\u2019un droit d\u2019acc\u00E8s, de rectification et d\u2019opposition \u00E0 ses donn\u00E9es personnelles. Chaque personne dispose aussi du droit de limitation du traitement relatif \u00E0 sa personne, du droit de d\u00E9r\u00E9f\u00E9rencement et du droit \u00E0 la portabilit\u00E9 des donn\u00E9es personnelles qu\u2019elle a transmise au responsable de traitement. Vous pouvez exercer ce droit en nous contactant, \u00E0 l\u2019adresse suivante : 1 bis rue Gustave Eiffel, 78280 Guyancourt. Ou par email \u00E0 l\u2019adresse info@fatboar.fr. Toute demande doit \u00EAtre accompagn\u00E9e de la photocopie d\u2019un titre d\u2019identit\u00E9 en cours de validit\u00E9 sign\u00E9 et faire mention de l\u2019adresse \u00E0 laquelle l'\u00E9diteur pourra contacter le demandeur. La r\u00E9ponse sera adress\u00E9e dans le mois suivant la r\u00E9ception de la demande. Ce d\u00E9lai d'un mois peut \u00EAtre prolong\u00E9 de deux mois si la complexit\u00E9 de la demande et/ou le nombre de demandes l'exigent. De plus, et depuis la loi n\u00B02016-1321 du 7 octobre 2016, les personnes qui le souhaitent, ont la possibilit\u00E9 d\u2019organiser le sort de leurs donn\u00E9es apr\u00E8s leur d\u00E9c\u00E8s. Pour plus d\u2019information sur le sujet, vous pouvez consulter le site Internet de la CNIL : ");
  5614. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5615. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "ul");
  5616. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "li");
  5617. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "a", 1);
  5618. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, "Cnil");
  5619. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5620. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5621. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5622. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "h1", 2);
  5623. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, "Article 9 - Utilisation des donn\u00E9es");
  5624. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5625. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "p");
  5626. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](67, " Les informations recueillies pourront \u00E9ventuellement \u00EAtre communiqu\u00E9es \u00E0 des tiers li\u00E9s \u00E0 l'\u00E9diteur par contrat pour l'ex\u00E9cution de t\u00E2ches sous-trait\u00E9es n\u00E9cessaires \u00E0 la gestion de votre compte et sans que vous ayez \u00E0 donner votre autorisation. En cas d'infraction de tout type, pour lesquelles les parties seraient mises en cause, et pour lesquelles les autorit\u00E9s judiciaires auraient besoin d'avoir connaissance des informations recueillies, ces derni\u00E8res seront alors n\u00E9cessairement communiqu\u00E9es \u00E0 ces autorit\u00E9s sur leur demande expresse et motiv\u00E9e, et ne b\u00E9n\u00E9ficieront plus des dispositions relatives \u00E0 la protection des donn\u00E9es personnelles. Lorsque certaines informations sont obligatoires pour acc\u00E9der \u00E0 des fonctionnalit\u00E9s sp\u00E9cifiques du site, l'\u00E9diteur indiquera ce caract\u00E8re obligatoire au moment de la saisie des donn\u00E9es. ");
  5627. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5628. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "h1", 2);
  5629. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](69, "Article 10 - Offres commerciales");
  5630. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5631. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "p");
  5632. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71, " Vous \u00EAtes susceptible de recevoir des offres commerciales de l'\u00E9diteur. Vos donn\u00E9es sont susceptibles d\u2019\u00EAtre utilis\u00E9es par les partenaires de l'\u00E9diteur \u00E0 des fins de prospection commerciale. Si, lors de la consultation du site, vous acc\u00E9dez \u00E0 des donn\u00E9es \u00E0 caract\u00E8re personnel, vous devez vous abstenir de toute collecte, de toute utilisation non autoris\u00E9e et de tout acte pouvant constituer une atteinte \u00E0 la vie priv\u00E9e ou \u00E0 la r\u00E9putation des personnes. L'\u00E9diteur d\u00E9cline toute responsabilit\u00E9 \u00E0 cet \u00E9gard. Les donn\u00E9es sont conserv\u00E9es et utilis\u00E9es pour une dur\u00E9e conforme \u00E0 la l\u00E9gislation en vigueur. ");
  5633. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5634. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "h1", 2);
  5635. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](73, "Article 11 - Cookies");
  5636. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5637. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "p");
  5638. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, " Qu\u2019est-ce qu\u2019un \u00AB cookie \u00BB ? Un \u00AB Cookie \u00BB ou traceur est un fichier \u00E9lectronique d\u00E9pos\u00E9 sur un terminal (ordinateur, tablette, smartphone,\u2026) et lu par exemple lors de la consultation d'un site internet, de la lecture d'un courrier \u00E9lectronique, de l'installation ou de l'utilisation d'un logiciel ou d'une application mobile et ce quel que soit le type de terminal utilis\u00E9 (source: ");
  5639. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "a", 4);
  5640. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, "Cnil");
  5641. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5642. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](78, " ). En naviguant sur ce site, des \u00AB cookies \u00BB \u00E9manant de la soci\u00E9t\u00E9 responsable du site concern\u00E9 et/ou des soci\u00E9t\u00E9s tiers pourront \u00EAtre d\u00E9pos\u00E9s sur votre terminal. Lors de la premi\u00E8re navigation sur ce site, une banni\u00E8re explicative sur l\u2019utilisation des \u00AB cookies \u00BB appara\u00EEtra. D\u00E8s lors, en poursuivant la navigation, le client et/ou prospect sera r\u00E9put\u00E9 inform\u00E9 et avoir accept\u00E9 l\u2019utilisation desdits \u00AB cookies \u00BB. Le consentement donn\u00E9 sera valable pour une p\u00E9riode de treize (13) mois. Toutes les informations collect\u00E9es ne seront utilis\u00E9es que pour suivre le volume, le type et la configuration du trafic utilisant ce site, pour en d\u00E9velopper la conception et l'agencement et \u00E0 d'autres fins administratives et de planification et plus g\u00E9n\u00E9ralement pour am\u00E9liorer le service que nous vous offrons. Les cookies suivants sont pr\u00E9sents sur ce site : Cookies de navigation, Cookies de performance. Leur finalit\u00E9 est la suivante : Ces cookies collectent des informations sur les modes d'utilisation des sites Internet par l'ensemble des visiteurs. Leur dur\u00E9e de vie est de treize mois. Pour plus d\u2019informations sur l\u2019utilisation, la gestion et la suppression des \u00AB cookies \u00BB, pour tout type de navigateur, nous vous invitons \u00E0 consulter le lien suivant : ");
  5643. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "a", 5);
  5644. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80, "Cnil");
  5645. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5646. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](81, ". ");
  5647. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5648. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](82, "h1", 2);
  5649. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, "Article 12 - Photographies et repr\u00E9sentation des produits");
  5650. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5651. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "p");
  5652. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](85, " Les photographies de produits, accompagnant leur description, ne sont pas contractuelles et n'engagent pas l'\u00E9diteur. ");
  5653. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5654. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "h1", 2);
  5655. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](87, "Article 13 - Loi applicable");
  5656. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5657. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "p");
  5658. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](89, " Les pr\u00E9sentes conditions d'utilisation du site sont r\u00E9gies par la loi fran\u00E7aise et soumises \u00E0 la comp\u00E9tence des tribunaux du si\u00E8ge social de l'\u00E9diteur, sous r\u00E9serve d'une attribution de comp\u00E9tence sp\u00E9cifique d\u00E9coulant d'un texte de loi ou r\u00E9glementaire particulier. ");
  5659. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5660. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "h1", 2);
  5661. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](91, "Article 14 - Contactez-nous");
  5662. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5663. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](92, "p");
  5664. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](93, " Pour toute question, information sur les produits pr\u00E9sent\u00E9s sur le site, ou concernant le site lui-m\u00EAme, vous pouvez laisser un message \u00E0 l'adresse suivante : ");
  5665. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5666. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "strong");
  5667. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](95, "contact@fatbor.fr");
  5668. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5669. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5670. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5671. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_1__["MatCard"], _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_2__["DefaultLayoutDirective"], _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_2__["DefaultLayoutAlignDirective"], _angular_material_card__WEBPACK_IMPORTED_MODULE_1__["MatCardContent"], _angular_material_button__WEBPACK_IMPORTED_MODULE_3__["MatAnchor"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvbWVudGlvbnMtbGVnYWxlcy9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxzaGFyZWRcXG1lbnRpb25zLWxlZ2FsZXNcXG1lbnRpb25zLWxlZ2FsZXMuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL21lbnRpb25zLWxlZ2FsZXMvbWVudGlvbnMtbGVnYWxlcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGVBQUE7RUFDQSxrQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvbWVudGlvbnMtbGVnYWxlcy9tZW50aW9ucy1sZWdhbGVzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdnRvcHtcclxuICAgIG1hcmdpbi10b3A6IDdlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDNlbTtcclxuICAgIH0iLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogN2VtO1xuICBtYXJnaW4tYm90dG9tOiAzZW07XG59Il19 */"] });
  5672. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MentionsLegalesComponent, [{
  5673. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5674. args: [{
  5675. selector: 'app-mentions-legales',
  5676. templateUrl: './mentions-legales.component.html',
  5677. styleUrls: ['./mentions-legales.component.scss']
  5678. }]
  5679. }], function () { return []; }, null); })();
  5680. /***/ }),
  5681. /***/ "./src/app/components/shared/navbar/navbar.component.ts":
  5682. /*!**************************************************************!*\
  5683. !*** ./src/app/components/shared/navbar/navbar.component.ts ***!
  5684. \**************************************************************/
  5685. /*! exports provided: NavbarComponent */
  5686. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5687. "use strict";
  5688. __webpack_require__.r(__webpack_exports__);
  5689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavbarComponent", function() { return NavbarComponent; });
  5690. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  5691. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  5692. /* harmony import */ var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/toolbar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/toolbar.js");
  5693. /* harmony import */ var _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/flex-layout/extended */ "./node_modules/@angular/flex-layout/__ivy_ngcc__/esm2015/extended.js");
  5694. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  5695. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  5696. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  5697. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  5698. /* harmony import */ var _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/sidenav */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/sidenav.js");
  5699. /* harmony import */ var _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/flex-layout/flex */ "./node_modules/@angular/flex-layout/__ivy_ngcc__/esm2015/flex.js");
  5700. /* harmony import */ var _angular_material_list__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/list */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/list.js");
  5701. /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/core */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/core.js");
  5702. /* harmony import */ var _footer_footer_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../footer/footer.component */ "./src/app/components/shared/footer/footer.component.ts");
  5703. function NavbarComponent_a_11_Template(rf, ctx) { if (rf & 1) {
  5704. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 33);
  5705. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Connexion");
  5706. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5707. } }
  5708. function NavbarComponent_a_12_Template(rf, ctx) { if (rf & 1) {
  5709. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 34);
  5710. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Inscription");
  5711. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5712. } }
  5713. function NavbarComponent_a_13_Template(rf, ctx) { if (rf & 1) {
  5714. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 35);
  5715. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Gain");
  5716. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5717. } }
  5718. function NavbarComponent_a_16_Template(rf, ctx) { if (rf & 1) {
  5719. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 36);
  5720. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-icon");
  5721. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "person");
  5722. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5723. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Mon profil");
  5724. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5725. } }
  5726. function NavbarComponent_a_25_Template(rf, ctx) { if (rf & 1) {
  5727. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 37);
  5728. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Contact");
  5729. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5730. } }
  5731. function NavbarComponent_a_26_Template(rf, ctx) { if (rf & 1) {
  5732. const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  5733. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 38);
  5734. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NavbarComponent_a_26_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.logOut(); });
  5735. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-icon");
  5736. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "power_settings_new");
  5737. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5738. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5739. } }
  5740. function NavbarComponent_a_32_Template(rf, ctx) { if (rf & 1) {
  5741. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 39);
  5742. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-icon", 27);
  5743. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "home");
  5744. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5745. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 28);
  5746. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Menu");
  5747. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5748. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5749. } }
  5750. function NavbarComponent_a_33_Template(rf, ctx) { if (rf & 1) {
  5751. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 40);
  5752. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-icon", 27);
  5753. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "account_circle");
  5754. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5755. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 28);
  5756. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Connexion");
  5757. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5758. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5759. } }
  5760. function NavbarComponent_a_34_Template(rf, ctx) { if (rf & 1) {
  5761. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 41);
  5762. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-icon", 27);
  5763. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "article");
  5764. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5765. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 28);
  5766. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Inscription");
  5767. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5768. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5769. } }
  5770. function NavbarComponent_a_35_Template(rf, ctx) { if (rf & 1) {
  5771. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 42);
  5772. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-icon", 27);
  5773. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "account_circle");
  5774. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5775. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 28);
  5776. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "users");
  5777. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5778. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5779. } }
  5780. function NavbarComponent_a_41_Template(rf, ctx) { if (rf & 1) {
  5781. const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  5782. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 30);
  5783. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NavbarComponent_a_41_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r14.logOut(); });
  5784. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-icon", 27);
  5785. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "power_settings_new");
  5786. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5787. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 28);
  5788. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "D\u00E9connecter");
  5789. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5790. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5791. } }
  5792. class NavbarComponent {
  5793. constructor(authService) {
  5794. this.authService = authService;
  5795. this.isAdmin = false;
  5796. console.log('Variable', this.isAdmin);
  5797. this.authService.user_info.subscribe((x) => {
  5798. this.isLogged = x;
  5799. this.isLogged.role === 'admin' ? this.isAdmin = true : this.isAdmin = false;
  5800. console.log('Variable dedans', this.isAdmin);
  5801. });
  5802. }
  5803. ngOnInit() {
  5804. //console.log(this.isLogged)
  5805. }
  5806. logOut() {
  5807. this.authService.logout();
  5808. }
  5809. }
  5810. NavbarComponent.ɵfac = function NavbarComponent_Factory(t) { return new (t || NavbarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"])); };
  5811. NavbarComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NavbarComponent, selectors: [["app-navbar"]], decls: 51, vars: 16, consts: [["color", "primary", 1, "fatboar-navbar"], ["fxShow", "true", "fxHide.gt-sm", "true"], ["mat-icon-button", "", 3, "click"], ["routerLink", "/", 1, ""], ["src", "assets/img/logo-fatboar.png", "width", "50", "height", "50", "alt", "fatboar", 1, "logo-fatboar"], [1, "example-spacer"], ["fxShow", "true", "fxHide.lt-md", "true"], ["class", "navbtn", "mat-button", "", "routerLink", "/login", 4, "ngIf"], ["class", "navbtn", "mat-button", "", "routerLink", "/register", 4, "ngIf"], ["class", "navbtn", "mat-button", "", "routerLink", "/auth", 4, "ngIf"], ["mat-button", "", "routerLink", "/tirage", 1, "navbtn", 3, "hidden"], ["class", "navbtn", "mat-button", "", "routerLink", "/profil", 4, "ngIf"], ["mat-button", "", "routerLink", "/users", 1, "navbtn", 3, "hidden"], ["mat-button", "", "routerLink", "/statistique", 1, "navbtn", 3, "hidden"], ["mat-button", "", "routerLink", "/emailing", 1, "navbtn", 3, "hidden"], ["mat-button", "", "routerLink", "/assistance", 1, "navbtn", 3, "hidden"], ["class", "navbtn", "mat-button", "", "routerLink", "/contact", 4, "ngIf"], ["class", "navbtn", "mat-icon-button", "", "color", "basic", "aria-label", "", 3, "click", 4, "ngIf"], ["fxFlexFill", "", 1, "fatboar-sidenav-containe"], ["color", "primary", "fxLayout", "column", "mode", "over", "opened", "false", "fxHide.gt-sm", "true"], ["sidenav", ""], ["fxLayout", "column", 1, "msidenav"], ["mat-list-item", "", "routerLink", "/", 4, "ngIf"], ["mat-list-item", "", "routerLink", "/login", 4, "ngIf"], ["mat-list-item", "", "routerLink", "/register", 4, "ngIf"], ["mat-list-item", "", "routerLink", "/user", 4, "ngIf"], ["mat-list-item", "", "routerLink", "/contact"], ["mat-list-icon", ""], ["mat-line", ""], ["mat-list-item", "", 3, "click", 4, "ngIf"], ["mat-list-item", "", 3, "click"], ["fxFlexFill", "", 1, "fatboar-sidenav-content"], [1, "footer"], ["mat-button", "", "routerLink", "/login", 1, "navbtn"], ["mat-button", "", "routerLink", "/register", 1, "navbtn"], ["mat-button", "", "routerLink", "/auth", 1, "navbtn"], ["mat-button", "", "routerLink", "/profil", 1, "navbtn"], ["mat-button", "", "routerLink", "/contact", 1, "navbtn"], ["mat-icon-button", "", "color", "basic", "aria-label", "", 1, "navbtn", 3, "click"], ["mat-list-item", "", "routerLink", "/"], ["mat-list-item", "", "routerLink", "/login"], ["mat-list-item", "", "routerLink", "/register"], ["mat-list-item", "", "routerLink", "/user"]], template: function NavbarComponent_Template(rf, ctx) { if (rf & 1) {
  5812. const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  5813. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
  5814. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-toolbar", 0);
  5815. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1);
  5816. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 2);
  5817. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NavbarComponent_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](29); return _r6.toggle(); });
  5818. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "mat-icon");
  5819. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "menu");
  5820. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5821. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5822. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5823. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "a", 3);
  5824. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "span");
  5825. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "img", 4);
  5826. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5827. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5828. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "span", 5);
  5829. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 6);
  5830. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, NavbarComponent_a_11_Template, 2, 0, "a", 7);
  5831. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, NavbarComponent_a_12_Template, 2, 0, "a", 8);
  5832. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, NavbarComponent_a_13_Template, 2, 0, "a", 9);
  5833. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "a", 10);
  5834. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Tirage");
  5835. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5836. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, NavbarComponent_a_16_Template, 4, 0, "a", 11);
  5837. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "a", 12);
  5838. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "Clients");
  5839. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5840. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "a", 13);
  5841. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Statistique");
  5842. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5843. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "a", 14);
  5844. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Emailing");
  5845. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5846. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "a", 15);
  5847. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Assistance");
  5848. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5849. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, NavbarComponent_a_25_Template, 2, 0, "a", 16);
  5850. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, NavbarComponent_a_26_Template, 3, 0, "a", 17);
  5851. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5852. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5853. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "mat-sidenav-container", 18);
  5854. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "mat-sidenav", 19, 20);
  5855. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 21);
  5856. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "mat-nav-list");
  5857. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](32, NavbarComponent_a_32_Template, 5, 0, "a", 22);
  5858. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, NavbarComponent_a_33_Template, 5, 0, "a", 23);
  5859. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, NavbarComponent_a_34_Template, 5, 0, "a", 24);
  5860. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](35, NavbarComponent_a_35_Template, 5, 0, "a", 25);
  5861. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "a", 26);
  5862. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "mat-icon", 27);
  5863. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "forward_to_inbox");
  5864. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5865. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "span", 28);
  5866. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Contact");
  5867. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5868. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5869. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](41, NavbarComponent_a_41_Template, 5, 0, "a", 29);
  5870. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "a", 30);
  5871. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NavbarComponent_Template_a_click_42_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](29); return _r6.toggle(); });
  5872. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "mat-icon", 27);
  5873. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "clear");
  5874. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5875. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "span", 28);
  5876. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Fermer");
  5877. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5878. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5879. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5880. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5881. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5882. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "mat-sidenav-content", 31);
  5883. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](48, "router-outlet");
  5884. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 32);
  5885. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](50, "app-footer");
  5886. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5887. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5888. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5889. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5890. } if (rf & 2) {
  5891. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
  5892. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isLogged);
  5893. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  5894. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isLogged);
  5895. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  5896. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLogged && !ctx.isAdmin);
  5897. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  5898. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx.isAdmin);
  5899. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  5900. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLogged);
  5901. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  5902. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx.isAdmin);
  5903. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  5904. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx.isAdmin);
  5905. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  5906. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx.isAdmin);
  5907. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  5908. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx.isAdmin);
  5909. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  5910. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isLogged && !ctx.isAdmin);
  5911. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  5912. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLogged);
  5913. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  5914. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isLogged);
  5915. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  5916. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isLogged);
  5917. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  5918. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isLogged);
  5919. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  5920. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLogged);
  5921. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
  5922. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLogged);
  5923. } }, directives: [_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_2__["MatToolbar"], _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["DefaultShowHideDirective"], _angular_material_button__WEBPACK_IMPORTED_MODULE_4__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIcon"], _angular_router__WEBPACK_IMPORTED_MODULE_6__["RouterLinkWithHref"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_4__["MatAnchor"], _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_8__["MatSidenavContainer"], _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_9__["FlexFillDirective"], _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_8__["MatSidenav"], _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_9__["DefaultLayoutDirective"], _angular_material_list__WEBPACK_IMPORTED_MODULE_10__["MatNavList"], _angular_material_list__WEBPACK_IMPORTED_MODULE_10__["MatListItem"], _angular_material_list__WEBPACK_IMPORTED_MODULE_10__["MatListIconCssMatStyler"], _angular_material_core__WEBPACK_IMPORTED_MODULE_11__["MatLine"], _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_8__["MatSidenavContent"], _angular_router__WEBPACK_IMPORTED_MODULE_6__["RouterOutlet"], _footer_footer_component__WEBPACK_IMPORTED_MODULE_12__["FooterComponent"]], styles: [".fatboar-navbar[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 9999;\n background-image: linear-gradient(to right, #f5af19, #f12711);\n}\n\n.fatboar-sidenav-container[_ngcontent-%COMP%] {\n background-color: white;\n min-height: 94vh !important;\n}\n\na[_ngcontent-%COMP%] {\n text-decoration: none;\n white-space: normal;\n}\n\n.navbtn[_ngcontent-%COMP%]:hover {\n color: #140c8b;\n}\n\n.msidenav[_ngcontent-%COMP%] {\n margin-top: 4em;\n}\n\n.example-icon[_ngcontent-%COMP%] {\n padding: 0 14px;\n}\n\n.example-spacer[_ngcontent-%COMP%] {\n flex: 1 1 auto;\n}\n\n@media screen and (max-width: 603px) {\n .logo-fatboar[_ngcontent-%COMP%] {\n margin-left: 5em;\n }\n}\n\n@media screen and (min-width: 603px) {\n .logo-fatboar[_ngcontent-%COMP%] {\n margin-left: 3.4em;\n }\n}\n\n.footer[_ngcontent-%COMP%] {\n margin-top: 8rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvbmF2YmFyL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXHNoYXJlZFxcbmF2YmFyXFxuYXZiYXIuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL25hdmJhci9uYXZiYXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0E7RUFFQSxlQUFBO0VBQ0EsTUFBQTtFQUNBLE9BQUE7RUFDQSxhQUFBO0VBQ0EsNkRBQUE7QUNEQTs7QURLQTtFQUNBLHVCQUFBO0VBQ0EsMkJBQUE7QUNGQTs7QURLQTtFQUNFLHFCQUFBO0VBQ0EsbUJBQUE7QUNGRjs7QURLQTtFQUNFLGNBQUE7QUNGRjs7QURLQTtFQUNFLGVBQUE7QUNGRjs7QURLQTtFQUNFLGVBQUE7QUNGRjs7QURLQTtFQUNFLGNBQUE7QUNGRjs7QURhQTtFQUNFO0lBQ0UsZ0JBQUE7RUNWRjtBQUNGOztBRFlBO0VBQ0U7SUFDRSxrQkFBQTtFQ1ZGO0FBQ0Y7O0FEYUE7RUFDRSxnQkFBQTtBQ1hGIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvbmF2YmFyL25hdmJhci5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG4uZmF0Ym9hci1uYXZiYXJ7XHJcbi8vIGhlaWdodDogMTF2aDtcclxucG9zaXRpb246IGZpeGVkO1xyXG50b3A6IDA7XHJcbmxlZnQ6IDA7XHJcbnotaW5kZXg6IDk5OTk7XHJcbmJhY2tncm91bmQtaW1hZ2U6IGxpbmVhci1ncmFkaWVudCh0byByaWdodCwgI2Y1YWYxOSwgI2YxMjcxMSApO1xyXG4vLyBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQodG8gcmlnaHQsICNkNmMwNTUsICNkYWI1NDYsICNkZWE5MzgsICNlMjlkMmIsICNlNjkwMjEsICNlODg1MWUsICNlOTdhMWUsICNlYTZlMWYsICNlOTYyMjQsICNlNzU1MjksICNlNDQ4MmUsICNlMTNhMzMpO1xyXG59XHJcblxyXG4uZmF0Ym9hci1zaWRlbmF2LWNvbnRhaW5lcntcclxuYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XHJcbm1pbi1oZWlnaHQ6IDk0dmggIWltcG9ydGFudDtcclxufVxyXG5cclxuYXtcclxuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XHJcbiAgd2hpdGUtc3BhY2U6IG5vcm1hbDtcclxufVxyXG5cclxuLm5hdmJ0bjpob3ZlcntcclxuICBjb2xvcjogcmdiKDIwLCAxMiwgMTM5KSA7XHJcbn1cclxuXHJcbi5tc2lkZW5hdntcclxuICBtYXJnaW4tdG9wOiA0ZW07XHJcbn1cclxuXHJcbi5leGFtcGxlLWljb24ge1xyXG4gIHBhZGRpbmc6IDAgMTRweDtcclxufVxyXG5cclxuLmV4YW1wbGUtc3BhY2VyIHtcclxuICBmbGV4OiAxIDEgYXV0bztcclxufVxyXG5cclxuLy8gLmZhdGJvYXItc2lkZW5hdi1jb250ZW50e1xyXG4gICBcclxuLy8gfVxyXG5cclxuXHJcblxyXG5cclxuXHJcbkBtZWRpYSBzY3JlZW4gIGFuZCAobWF4LXdpZHRoOiA2MDNweCkge1xyXG4gIC5sb2dvLWZhdGJvYXJ7XHJcbiAgICBtYXJnaW4tbGVmdDogNWVtO1xyXG4gICB9XHJcbn1cclxuQG1lZGlhIHNjcmVlbiAgYW5kIChtaW4td2lkdGg6IDYwM3B4KSB7XHJcbiAgLmxvZ28tZmF0Ym9hcntcclxuICAgIG1hcmdpbi1sZWZ0OiAzLjRlbTtcclxuICAgfVxyXG59XHJcblxyXG4uZm9vdGVyIHtcclxuICBtYXJnaW4tdG9wOiA4cmVtO1xyXG59XHJcbiIsIi5mYXRib2FyLW5hdmJhciB7XG4gIHBvc2l0aW9uOiBmaXhlZDtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICB6LWluZGV4OiA5OTk5O1xuICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQodG8gcmlnaHQsICNmNWFmMTksICNmMTI3MTEpO1xufVxuXG4uZmF0Ym9hci1zaWRlbmF2LWNvbnRhaW5lciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuICBtaW4taGVpZ2h0OiA5NHZoICFpbXBvcnRhbnQ7XG59XG5cbmEge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIHdoaXRlLXNwYWNlOiBub3JtYWw7XG59XG5cbi5uYXZidG46aG92ZXIge1xuICBjb2xvcjogIzE0MGM4Yjtcbn1cblxuLm1zaWRlbmF2IHtcbiAgbWFyZ2luLXRvcDogNGVtO1xufVxuXG4uZXhhbXBsZS1pY29uIHtcbiAgcGFkZGluZzogMCAxNHB4O1xufVxuXG4uZXhhbXBsZS1zcGFjZXIge1xuICBmbGV4OiAxIDEgYXV0bztcbn1cblxuQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogNjAzcHgpIHtcbiAgLmxvZ28tZmF0Ym9hciB7XG4gICAgbWFyZ2luLWxlZnQ6IDVlbTtcbiAgfVxufVxuQG1lZGlhIHNjcmVlbiBhbmQgKG1pbi13aWR0aDogNjAzcHgpIHtcbiAgLmxvZ28tZmF0Ym9hciB7XG4gICAgbWFyZ2luLWxlZnQ6IDMuNGVtO1xuICB9XG59XG4uZm9vdGVyIHtcbiAgbWFyZ2luLXRvcDogOHJlbTtcbn0iXX0= */"] });
  5924. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NavbarComponent, [{
  5925. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5926. args: [{
  5927. selector: 'app-navbar',
  5928. templateUrl: './navbar.component.html',
  5929. styleUrls: ['./navbar.component.scss']
  5930. }]
  5931. }], function () { return [{ type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"] }]; }, null); })();
  5932. /***/ }),
  5933. /***/ "./src/app/components/shared/not-found/not-found.component.ts":
  5934. /*!********************************************************************!*\
  5935. !*** ./src/app/components/shared/not-found/not-found.component.ts ***!
  5936. \********************************************************************/
  5937. /*! exports provided: NotFoundComponent */
  5938. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5939. "use strict";
  5940. __webpack_require__.r(__webpack_exports__);
  5941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotFoundComponent", function() { return NotFoundComponent; });
  5942. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  5943. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  5944. class NotFoundComponent {
  5945. constructor() { }
  5946. ngOnInit() {
  5947. }
  5948. }
  5949. NotFoundComponent.ɵfac = function NotFoundComponent_Factory(t) { return new (t || NotFoundComponent)(); };
  5950. NotFoundComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NotFoundComponent, selectors: [["app-not-found"]], decls: 14, vars: 0, consts: [[1, "container"], ["id", "notfound"], [1, "notfound"], [1, "notfound-404"], ["routerLink", "/"]], template: function NotFoundComponent_Template(rf, ctx) { if (rf & 1) {
  5951. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  5952. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  5953. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  5954. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
  5955. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "h1");
  5956. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "4");
  5957. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "span");
  5958. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "4");
  5959. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5960. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5961. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "h3");
  5962. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " Page non trouv\u00E9e");
  5963. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5964. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "p");
  5965. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "D\u00E9sol\u00E9 mais la page que vous recherchez n'existe pas");
  5966. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5967. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 4);
  5968. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Revenir \u00E0 la page d'accueil");
  5969. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5970. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5971. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5972. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5973. } }, directives: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterLinkWithHref"]], styles: ["*[_ngcontent-%COMP%] {\n box-sizing: border-box;\n}\n\nbody[_ngcontent-%COMP%] {\n padding: 0;\n margin: 0;\n}\n\n#notfound[_ngcontent-%COMP%] {\n position: relative;\n height: 90vh;\n}\n\n#notfound[_ngcontent-%COMP%] .notfound[_ngcontent-%COMP%] {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.notfound[_ngcontent-%COMP%] {\n max-width: 520px;\n width: 100%;\n text-align: center;\n line-height: 1.4;\n}\n\n.notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] {\n height: 190px;\n}\n\n.notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n font-family: \"Montserrat\", sans-serif;\n font-size: 146px;\n font-weight: 700;\n margin: 0px;\n color: #232323;\n}\n\n.notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\n display: inline-block;\n width: 120px;\n height: 120px;\n background-size: cover;\n transform: scale(1.4);\n z-index: -1;\n}\n\n.notfound[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n font-family: \"Montserrat\", sans-serif;\n font-size: 22px;\n font-weight: 700;\n margin: 0;\n text-transform: uppercase;\n color: #232323;\n}\n\n.notfound[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n font-family: \"Montserrat\", sans-serif;\n color: #787878;\n font-weight: 300;\n}\n\n.notfound[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n font-family: \"Montserrat\", sans-serif;\n display: inline-block;\n padding: 12px 30px;\n font-weight: 700;\n background-color: #f99827;\n color: #fff;\n border-radius: 40px;\n text-decoration: none;\n transition: 0.2s all;\n}\n\n.notfound[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n opacity: 0.8;\n}\n\n@media only screen and (max-width: 767px) {\n .notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] {\n height: 115px;\n }\n\n .notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n font-size: 86px;\n }\n\n .notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\n width: 86px;\n height: 86px;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvbm90LWZvdW5kL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXHNoYXJlZFxcbm90LWZvdW5kXFxub3QtZm91bmQuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL25vdC1mb3VuZC9ub3QtZm91bmQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFFWSxzQkFBQTtBQ0NaOztBREVFO0VBQ0UsVUFBQTtFQUNBLFNBQUE7QUNDSjs7QURFRTtFQUNFLGtCQUFBO0VBQ0EsWUFBQTtBQ0NKOztBREVFO0VBQ0Usa0JBQUE7RUFDQSxTQUFBO0VBQ0EsUUFBQTtFQUdRLGdDQUFBO0FDQ1o7O0FERUU7RUFDRSxnQkFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FDQ0o7O0FERUU7RUFDRSxhQUFBO0FDQ0o7O0FERUU7RUFDRSxxQ0FBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxXQUFBO0VBQ0EsY0FBQTtBQ0NKOztBREVFO0VBQ0UscUJBQUE7RUFDQSxZQUFBO0VBQ0EsYUFBQTtFQUVBLHNCQUFBO0VBR1EscUJBQUE7RUFDUixXQUFBO0FDQUo7O0FER0U7RUFDRSxxQ0FBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLFNBQUE7RUFDQSx5QkFBQTtFQUNBLGNBQUE7QUNBSjs7QURHRTtFQUNFLHFDQUFBO0VBQ0EsY0FBQTtFQUNBLGdCQUFBO0FDQUo7O0FER0U7RUFDRSxxQ0FBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLHlCQUFBO0VBQ0EsV0FBQTtFQUNBLG1CQUFBO0VBQ0EscUJBQUE7RUFFQSxvQkFBQTtBQ0FKOztBREdFO0VBQ0UsWUFBQTtBQ0FKOztBREdFO0VBQ0U7SUFDRSxhQUFBO0VDQUo7O0VERUU7SUFDRSxlQUFBO0VDQ0o7O0VEQ0U7SUFDRSxXQUFBO0lBQ0EsWUFBQTtFQ0VKO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL3NoYXJlZC9ub3QtZm91bmQvbm90LWZvdW5kLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiKiB7XHJcbiAgICAtd2Via2l0LWJveC1zaXppbmc6IGJvcmRlci1ib3g7XHJcbiAgICAgICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XHJcbiAgfVxyXG4gIFxyXG4gIGJvZHkge1xyXG4gICAgcGFkZGluZzogMDtcclxuICAgIG1hcmdpbjogMDtcclxuICB9XHJcbiAgXHJcbiAgI25vdGZvdW5kIHtcclxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIGhlaWdodDogOTB2aDtcclxuICB9XHJcbiAgXHJcbiAgI25vdGZvdW5kIC5ub3Rmb3VuZCB7XHJcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICBsZWZ0OiA1MCU7XHJcbiAgICB0b3A6IDUwJTtcclxuICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7XHJcbiAgICAgICAgLW1zLXRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC01MCUpO1xyXG4gICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcclxuICB9XHJcbiAgXHJcbiAgLm5vdGZvdW5kIHtcclxuICAgIG1heC13aWR0aDogNTIwcHg7XHJcbiAgICB3aWR0aDogMTAwJTtcclxuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcclxuICAgIGxpbmUtaGVpZ2h0OiAxLjQ7XHJcbiAgfVxyXG4gIFxyXG4gIC5ub3Rmb3VuZCAubm90Zm91bmQtNDA0IHtcclxuICAgIGhlaWdodDogMTkwcHg7XHJcbiAgfVxyXG4gIFxyXG4gIC5ub3Rmb3VuZCAubm90Zm91bmQtNDA0IGgxIHtcclxuICAgIGZvbnQtZmFtaWx5OiAnTW9udHNlcnJhdCcsIHNhbnMtc2VyaWY7XHJcbiAgICBmb250LXNpemU6IDE0NnB4O1xyXG4gICAgZm9udC13ZWlnaHQ6IDcwMDtcclxuICAgIG1hcmdpbjogMHB4O1xyXG4gICAgY29sb3I6ICMyMzIzMjM7XHJcbiAgfVxyXG4gIFxyXG4gIC5ub3Rmb3VuZCAubm90Zm91bmQtNDA0IGgxPnNwYW4ge1xyXG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xyXG4gICAgd2lkdGg6IDEyMHB4O1xyXG4gICAgaGVpZ2h0OiAxMjBweDtcclxuICAgIC8vIGJhY2tncm91bmQtaW1hZ2U6IHVybCgnc3JjL2Fzc2V0cy9pbWcvZW1vamkvZW1vamkucG5nJyk7XHJcbiAgICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xyXG4gICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDEuNCk7XHJcbiAgICAgICAgLW1zLXRyYW5zZm9ybTogc2NhbGUoMS40KTtcclxuICAgICAgICAgICAgdHJhbnNmb3JtOiBzY2FsZSgxLjQpO1xyXG4gICAgei1pbmRleDogLTE7XHJcbiAgfVxyXG4gIFxyXG4gIC5ub3Rmb3VuZCBoMyB7XHJcbiAgICBmb250LWZhbWlseTogJ01vbnRzZXJyYXQnLCBzYW5zLXNlcmlmO1xyXG4gICAgZm9udC1zaXplOiAyMnB4O1xyXG4gICAgZm9udC13ZWlnaHQ6IDcwMDtcclxuICAgIG1hcmdpbjogMDtcclxuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XHJcbiAgICBjb2xvcjogIzIzMjMyMztcclxuICB9XHJcbiAgXHJcbiAgLm5vdGZvdW5kIHAge1xyXG4gICAgZm9udC1mYW1pbHk6ICdNb250c2VycmF0Jywgc2Fucy1zZXJpZjtcclxuICAgIGNvbG9yOiAjNzg3ODc4O1xyXG4gICAgZm9udC13ZWlnaHQ6IDMwMDtcclxuICB9XHJcbiAgXHJcbiAgLm5vdGZvdW5kIGEge1xyXG4gICAgZm9udC1mYW1pbHk6ICdNb250c2VycmF0Jywgc2Fucy1zZXJpZjtcclxuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcclxuICAgIHBhZGRpbmc6IDEycHggMzBweDtcclxuICAgIGZvbnQtd2VpZ2h0OiA3MDA7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjk5ODI3O1xyXG4gICAgY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXItcmFkaXVzOiA0MHB4O1xyXG4gICAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xyXG4gICAgLXdlYmtpdC10cmFuc2l0aW9uOiAwLjJzIGFsbDtcclxuICAgIHRyYW5zaXRpb246IDAuMnMgYWxsO1xyXG4gIH1cclxuICBcclxuICAubm90Zm91bmQgYTpob3ZlciB7XHJcbiAgICBvcGFjaXR5OiAwLjg7XHJcbiAgfVxyXG4gIFxyXG4gIEBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogNzY3cHgpIHtcclxuICAgIC5ub3Rmb3VuZCAubm90Zm91bmQtNDA0IHtcclxuICAgICAgaGVpZ2h0OiAxMTVweDtcclxuICAgIH1cclxuICAgIC5ub3Rmb3VuZCAubm90Zm91bmQtNDA0IGgxIHtcclxuICAgICAgZm9udC1zaXplOiA4NnB4O1xyXG4gICAgfVxyXG4gICAgLm5vdGZvdW5kIC5ub3Rmb3VuZC00MDQgaDE+c3BhbiB7XHJcbiAgICAgIHdpZHRoOiA4NnB4O1xyXG4gICAgICBoZWlnaHQ6IDg2cHg7XHJcbiAgICB9XHJcbiAgfVxyXG4gICIsIioge1xuICAtd2Via2l0LWJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG59XG5cbmJvZHkge1xuICBwYWRkaW5nOiAwO1xuICBtYXJnaW46IDA7XG59XG5cbiNub3Rmb3VuZCB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgaGVpZ2h0OiA5MHZoO1xufVxuXG4jbm90Zm91bmQgLm5vdGZvdW5kIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBsZWZ0OiA1MCU7XG4gIHRvcDogNTAlO1xuICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC01MCUpO1xuICAtbXMtdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7XG4gIHRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC01MCUpO1xufVxuXG4ubm90Zm91bmQge1xuICBtYXgtd2lkdGg6IDUyMHB4O1xuICB3aWR0aDogMTAwJTtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBsaW5lLWhlaWdodDogMS40O1xufVxuXG4ubm90Zm91bmQgLm5vdGZvdW5kLTQwNCB7XG4gIGhlaWdodDogMTkwcHg7XG59XG5cbi5ub3Rmb3VuZCAubm90Zm91bmQtNDA0IGgxIHtcbiAgZm9udC1mYW1pbHk6IFwiTW9udHNlcnJhdFwiLCBzYW5zLXNlcmlmO1xuICBmb250LXNpemU6IDE0NnB4O1xuICBmb250LXdlaWdodDogNzAwO1xuICBtYXJnaW46IDBweDtcbiAgY29sb3I6ICMyMzIzMjM7XG59XG5cbi5ub3Rmb3VuZCAubm90Zm91bmQtNDA0IGgxID4gc3BhbiB7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgd2lkdGg6IDEyMHB4O1xuICBoZWlnaHQ6IDEyMHB4O1xuICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMS40KTtcbiAgLW1zLXRyYW5zZm9ybTogc2NhbGUoMS40KTtcbiAgdHJhbnNmb3JtOiBzY2FsZSgxLjQpO1xuICB6LWluZGV4OiAtMTtcbn1cblxuLm5vdGZvdW5kIGgzIHtcbiAgZm9udC1mYW1pbHk6IFwiTW9udHNlcnJhdFwiLCBzYW5zLXNlcmlmO1xuICBmb250LXNpemU6IDIycHg7XG4gIGZvbnQtd2VpZ2h0OiA3MDA7XG4gIG1hcmdpbjogMDtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgY29sb3I6ICMyMzIzMjM7XG59XG5cbi5ub3Rmb3VuZCBwIHtcbiAgZm9udC1mYW1pbHk6IFwiTW9udHNlcnJhdFwiLCBzYW5zLXNlcmlmO1xuICBjb2xvcjogIzc4Nzg3ODtcbiAgZm9udC13ZWlnaHQ6IDMwMDtcbn1cblxuLm5vdGZvdW5kIGEge1xuICBmb250LWZhbWlseTogXCJNb250c2VycmF0XCIsIHNhbnMtc2VyaWY7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgcGFkZGluZzogMTJweCAzMHB4O1xuICBmb250LXdlaWdodDogNzAwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjk5ODI3O1xuICBjb2xvcjogI2ZmZjtcbiAgYm9yZGVyLXJhZGl1czogNDBweDtcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xuICAtd2Via2l0LXRyYW5zaXRpb246IDAuMnMgYWxsO1xuICB0cmFuc2l0aW9uOiAwLjJzIGFsbDtcbn1cblxuLm5vdGZvdW5kIGE6aG92ZXIge1xuICBvcGFjaXR5OiAwLjg7XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogNzY3cHgpIHtcbiAgLm5vdGZvdW5kIC5ub3Rmb3VuZC00MDQge1xuICAgIGhlaWdodDogMTE1cHg7XG4gIH1cblxuICAubm90Zm91bmQgLm5vdGZvdW5kLTQwNCBoMSB7XG4gICAgZm9udC1zaXplOiA4NnB4O1xuICB9XG5cbiAgLm5vdGZvdW5kIC5ub3Rmb3VuZC00MDQgaDEgPiBzcGFuIHtcbiAgICB3aWR0aDogODZweDtcbiAgICBoZWlnaHQ6IDg2cHg7XG4gIH1cbn0iXX0= */"] });
  5974. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NotFoundComponent, [{
  5975. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5976. args: [{
  5977. selector: 'app-not-found',
  5978. templateUrl: './not-found.component.html',
  5979. styleUrls: ['./not-found.component.scss']
  5980. }]
  5981. }], function () { return []; }, null); })();
  5982. /***/ }),
  5983. /***/ "./src/app/components/shared/politique-confidentialite/politique-confidentialite.component.ts":
  5984. /*!****************************************************************************************************!*\
  5985. !*** ./src/app/components/shared/politique-confidentialite/politique-confidentialite.component.ts ***!
  5986. \****************************************************************************************************/
  5987. /*! exports provided: PolitiqueConfidentialiteComponent */
  5988. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5989. "use strict";
  5990. __webpack_require__.r(__webpack_exports__);
  5991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PolitiqueConfidentialiteComponent", function() { return PolitiqueConfidentialiteComponent; });
  5992. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  5993. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  5994. /* harmony import */ var _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/flex-layout/flex */ "./node_modules/@angular/flex-layout/__ivy_ngcc__/esm2015/flex.js");
  5995. class PolitiqueConfidentialiteComponent {
  5996. constructor() { }
  5997. ngOnInit() {
  5998. }
  5999. }
  6000. PolitiqueConfidentialiteComponent.ɵfac = function PolitiqueConfidentialiteComponent_Factory(t) { return new (t || PolitiqueConfidentialiteComponent)(); };
  6001. PolitiqueConfidentialiteComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: PolitiqueConfidentialiteComponent, selectors: [["app-politique-confidentialite"]], decls: 138, vars: 0, consts: [["fxLayout", "column", "fxLayoutAlign", "center stretch"], ["href", "https://fatboar.fr/account"]], template: function PolitiqueConfidentialiteComponent_Template(rf, ctx) { if (rf & 1) {
  6002. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card", 0);
  6003. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card-content");
  6004. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p");
  6005. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Fatboar recueille des informations vous concernant lorsque vous utilisez nos applications mobiles, sites Web et d'autres produits et services (collectivement, les \u00ABServices\u00BB) ainsi que par le biais de toutes les interactions et communications que vous avez avec nous en ligne.");
  6006. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6007. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p");
  6008. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Les services sont fournis par Fatboar qui veille \u00E0 ce que votre vie priv\u00E9e soit prot\u00E9g\u00E9e. Si nous vous demandons de fournir certaines informations par lesquelles vous pouvez \u00EAtre identifi\u00E9 lors de l'utilisation de ce site, vous pouvez \u00EAtre assur\u00E9 qu'elles seront utilis\u00E9es conform\u00E9ment \u00E0 la pr\u00E9sente d\u00E9claration de confidentialit\u00E9.");
  6009. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6010. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "p");
  6011. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Fatboar peut changer cette politique de temps \u00E0 autre en mettant \u00E0 jour cette page. Vous devriez consulter cette page de temps en temps pour vous assurer que vous \u00EAtes satisfait des changements. Cette politique est en vigueur au 1er mars 2021.");
  6012. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6013. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p");
  6014. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "strong");
  6015. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Champ d'application ");
  6016. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6017. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6018. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "p");
  6019. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Cette d\u00E9claration de confidentialit\u00E9 (\u00ABD\u00E9claration\u00BB) s'applique aux personnes localis\u00E9es partout dans le monde et qui utilisent nos applications (\u00AButilisateurs\u00BB).");
  6020. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6021. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p");
  6022. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "strong");
  6023. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Collecte et utilisation des informations");
  6024. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6025. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6026. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "p");
  6027. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Nous traitons vos informations en toute conformit\u00E9 avec la l\u00E9gislation europ\u00E9enne en vertu des principes suivants :");
  6028. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6029. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "ul");
  6030. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "li");
  6031. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Il peut \u00EAtre n\u00E9cessaire de traiter vos informations pour vous fournir nos Services, conform\u00E9ment \u00E0 nos Conditions G\u00E9n\u00E9rales d\u2019Utilisation. Ce traitement est n\u00E9cessaire \u00E0 l'ex\u00E9cution du contrat conclu entre vous et nous. En effet, nos Conditions G\u00E9n\u00E9rales d'Utilisation stipulent clairement que le traitement de vos informations dans le but de personnaliser votre contenu et les publicit\u00E9s est un aspect n\u00E9cessaire des Services que nous fournissons.");
  6032. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6033. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "li");
  6034. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Vous devez nous donner votre consentement afin de traiter vos donn\u00E9es, et votre consentement peut \u00EAtre retir\u00E9 \u00E0 tout moment");
  6035. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6036. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "li");
  6037. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "dans certaines conditions d\u2019obligations l\u00E9gales, de d\u00E9cision de justice ou de sauvegarde d\u2019int\u00E9r\u00EAts vitaux, nous pouvons \u00EAtre oblig\u00E9s de traiter vos informations.");
  6038. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6039. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6040. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "p");
  6041. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "u");
  6042. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "Informations que vous nous fournissez");
  6043. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6044. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, ": Nous recueillons les informations que vous nous fournissez directement, par exemple lorsque vous cr\u00E9ez ou modifiez votre compte.");
  6045. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6046. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "p");
  6047. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Ces informations peuvent inclure: nom, email, num\u00E9ro de t\u00E9l\u00E9phone, adresse postale, photo de profil et d'autres informations que vous choisissez de fournir. Ces informations nous permettent de vous contacter pour vous transmettre vos gains.");
  6048. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6049. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "p");
  6050. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "u");
  6051. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Communications par courrier \u00E9lectronique ");
  6052. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6053. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, ": nous vous envoyons des emails afin de v\u00E9rifier la validit\u00E9 de votre compte lorsque vous nous fournissez votre email lors du processus d\u2019inscription, lorsque vous gagnez un lot, et nous pouvons \u00E9galement vous envoyer de temps \u00E0 autres des communications sur les nouveaut\u00E9s des Services. Les emails n\u00E9cessaires au bon fonctionnement des Services ne peuvent \u00EAtre d\u00E9sactiv\u00E9s, en revanche les emails d\u2019informations sur les services peuvent \u00EAtre d\u00E9valid\u00E9s en enlevant votre autorisation \u00E0 tout instant.");
  6054. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6055. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "p");
  6056. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "Nous pouvons \u00E9galement si vous nous en avez donn\u00E9 l\u2019autorisation vous envoyer des messages promotionnels de partenaires..");
  6057. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6058. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "p");
  6059. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "u");
  6060. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, "Informations que vous partagez");
  6061. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6062. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, " : toute information que vous partagez avec d'autres personnes sont consid\u00E9r\u00E9es comme du public, et \u00E0 votre propre discr\u00E9tion.");
  6063. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6064. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "p");
  6065. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "Caract\u00E9ristiques du partage social :");
  6066. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6067. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "p");
  6068. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "Nos services peuvent int\u00E9grer des fonctionnalit\u00E9s de partage social et d'autres outils connexes qui vous permettent de partager les actions que vous effectuez sur nos services avec d'autres applications, sites ou m\u00E9dias, et vice versa.");
  6069. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6070. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "p");
  6071. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Votre utilisation de ces fonctionnalit\u00E9s permet le partage des informations avec vos amis ou le public, en fonction des param\u00E8tres que vous avez \u00E9tablis avec le service de partage social.");
  6072. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6073. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "p");
  6074. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "Vous pouvez vous r\u00E9f\u00E9rer aux politiques de confidentialit\u00E9 de ces services de partage social pour plus d'informations sur la fa\u00E7on dont ils traitent les donn\u00E9es que vous fournissez ou partager.");
  6075. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6076. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "p");
  6077. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50, "Informations Obtenue par vos comptes de Services Tiers : vous pouvez nous transmettre des informations au travers de services tiers, comme par exemple Facebook Connect, afin de faciliter votre cr\u00E9ation de compte sur nos Services. Cela nous permet de compl\u00E9ter plus rapidement les donn\u00E9es de votre profil. Nous ne recevons jamais vos mots de passes de Services Tiers et n\u2019interagissons avec eux que gr\u00E2ce \u00E0 un identifiant ou Token valide pour une dur\u00E9e limit\u00E9e.");
  6078. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6079. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "p");
  6080. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](52, "Informations que nous obtenons de services tiers : nous pouvons \u00EAtre amen\u00E9s \u00E0 obtenir de services tiers de informations n\u00E9cessaires au bon fonctionnement des\u00A0 Services, comme par exemple le pays de provenance en fonction de l\u2019adresse IP afin de limiter l\u2019acc\u00E8s aux Services aux seuls pays autoris\u00E9s.");
  6081. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6082. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "p");
  6083. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "Informations relatives \u00E0 l'utilisation des Services ");
  6084. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "strong");
  6085. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](56, ":");
  6086. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6087. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](57, " Nous collectons des informations relatives \u00E0 la fa\u00E7on dont les personnes utilisent les Services. Ce type d'informations peut \u00EAtre collect\u00E9 dans nos fichiers de journaux chaque fois que vous interagissez avec les Services, par exemple lorsque vous visitez une page ou naviguez dans une application. Nous utilisons des outils internes ainsi que des applications et services tiers (comme Google Analytics ...) pour collecter et analyser ces informations. Certaines de ces informations peuvent \u00E9galement \u00EAtre associ\u00E9es \u00E0 l'adresse Internet Protocol (\u00AB Adresse IP \u00BB) utilis\u00E9e pour acc\u00E9der aux Services. Certaines peuvent \u00EAtre associ\u00E9es \u00E0 votre Compte et d'autres ne peuvent \u00EAtre collect\u00E9es et utilis\u00E9es que sous forme agr\u00E9g\u00E9e (\u00E0 savoir en tant que donn\u00E9e statistique qui ne permettrait pas de vous identifier ou d'identifier votre Compte). Nous pouvons utiliser les informations sur la fa\u00E7on dont vous ou d'autres personnes interagissez avec les Services pour diff\u00E9rentes raisons et g\u00E9n\u00E9ralement pour optimiser, am\u00E9liorer et prot\u00E9ger les Services, ainsi que pour d\u00E9velopper de nouveaux Services, y compris, sans s'y limiter, dans le but de : fournir des contenus personnalis\u00E9s aux utilisateurs ; proposer aux utilisateurs des publicit\u00E9s cibl\u00E9es; am\u00E9liorer nos r\u00E9sultats de recherche ; identifier les Services les plus populaires\u00A0 ; ainsi que pour des motifs juridiques et de s\u00E9curit\u00E9.");
  6088. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6089. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "p");
  6090. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59, "Informations relatives \u00E0 votre appareil mobile : nous pouvons collecter et stocker des informations relatives \u00E0 votre appareil mobile. Dans certains cas, nous pouvons recevoir, g\u00E9n\u00E9rer ou attribuer \u00E0 votre appareil mobile un identifiant unique, obtenir les caract\u00E9ristiques techniques de votre t\u00E9l\u00E9phone comme la r\u00E9solution d\u2019\u00E9cran et le mod\u00E8le, ou encore dans certain cas la liste des applications install\u00E9es. Ces informations sont utilis\u00E9es aux fins d\u00E9crites dans la section \u201CInformations relatives \u00E0 l'utilisation des Services\u201D ou \u201CInformations relatives au ciblage publicitaire\u201D.");
  6091. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6092. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "p");
  6093. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](61, "Informations relatives au ciblage publicitaire : nous pouvons utiliser les informations comme des identifiants publicitaires, votre sexe, vos applications favorites afin de nous permettre de vous proposer les offres publicitaires et promotionnelles les plus adapt\u00E9es \u00E0 votre profil. Le ciblage publicitaire est important pour nous permettre d\u2019obtenir le financement n\u00E9cessaire au bon fonctionnement des Services et de conserver leur gratuit\u00E9.");
  6094. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6095. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "p");
  6096. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "strong");
  6097. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](64, "Liens vers d'autres sites ");
  6098. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6099. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6100. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "p");
  6101. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](66, "Notre site peut contenir des liens vers d'autres sites . Cependant, une fois que vous avez utilis\u00E9 ces liens, notez que nous ne disposons pas de contr\u00F4le sur cet autre site. Par cons\u00E9quent, nous ne pouvons pas \u00EAtre responsables de la protection et la confidentialit\u00E9 des informations que vous fournissez tout en visitant ces sites et ces sites ne sont pas r\u00E9gis par la pr\u00E9sente d\u00E9claration de confidentialit\u00E9.");
  6102. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6103. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "p");
  6104. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68, "Vous devez faire preuve de prudence et regarder la d\u00E9claration applicable au site en question.");
  6105. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6106. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "p");
  6107. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "strong");
  6108. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71, "Utilisation des cookies ");
  6109. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6110. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6111. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "p");
  6112. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](73, "Un cookie est un petit fichier qui demande la permission d'\u00EAtre plac\u00E9 sur le disque dur de votre ordinateur. Une fois que vous \u00EAtes d'accord, le fichier est ajout\u00E9 et le cookie permet d'analyser le trafic web ou vous permet de savoir quand vous visitez un site particulier.");
  6113. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6114. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "p");
  6115. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, "Les cookies permettent aux applications web de vous r\u00E9pondre en tant qu'individu. Nous utilisons des cookies de trafic pour identifier les pages qui sont utilis\u00E9es. Cela nous aide \u00E0 analyser des donn\u00E9es sur le trafic Web et ainsi \u00E0 am\u00E9liorer notre site afin de l'adapter aux besoins des clients.");
  6116. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6117. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "p");
  6118. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, "Nous utilisons ces informations \u00E0 des fins d'analyse statistique puis les donn\u00E9es sont supprim\u00E9es du syst\u00E8me.");
  6119. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6120. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "p");
  6121. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](79, "Globalement, les cookies nous aident \u00E0 vous fournir un meilleur application/site web, en nous permettant de suivre les pages que vous utilisez.");
  6122. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6123. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "p");
  6124. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "strong");
  6125. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](82, "\u00A0");
  6126. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6127. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6128. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](83, "p");
  6129. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "strong");
  6130. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](85, "S\u00E9curit\u00E9 et conservation de vos informations");
  6131. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6132. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6133. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "p");
  6134. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](87, "Nous prenons la s\u00E9curit\u00E9 des donn\u00E9es qui nous sont confi\u00E9es tr\u00E8s au s\u00E9rieux.");
  6135. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6136. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "p");
  6137. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](89, "Afin d'emp\u00EAcher l'acc\u00E8s non autoris\u00E9 ou la divulgation d\u2019informations, nous avons mis en place des proc\u00E9dures physiques, \u00E9lectroniques et de gestion appropri\u00E9es pour sauvegarder et s\u00E9curiser les informations que nous recueillons en ligne.Vos donn\u00E9es personnelles sont conserv\u00E9es sur des serveurs s\u00E9curis\u00E9s en Europe, et ne sont accessible qu\u2019\u00E0 un personnel autoris\u00E9 disposant des acc\u00E8s n\u00E9cessaires.");
  6138. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](90, "br");
  6139. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](91, " Nous les conservons pour la dur\u00E9e strictement n\u00E9cessaire pour vous fournir les Services.");
  6140. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](92, "br");
  6141. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](93, " Si vous ne souhaitez plus que nous utilisions vos Informations pour vous fournir les Services, vous pouvez \u00E0 tout instant cl\u00F4turer votre compte et nous d\u00E9truirons toutes les informations dont nous disposons \u00E0 votre sujet, \u00E0 moins que nous ne devions les conserver pour r\u00E9pondre \u00E0 des obligations l\u00E9gales.");
  6142. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6143. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "p");
  6144. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "strong");
  6145. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](96, "Droits et moyens de contr\u00F4le en mati\u00E8re de confidentialit\u00E9 au sein de l'Union europ\u00E9enne");
  6146. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6147. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6148. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](97, "p");
  6149. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](98, "Modifications de vos consentements");
  6150. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](99, "strong");
  6151. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](100, ".");
  6152. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6153. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](101, " Vous \u00EAtes en droit de retirer \u00E0 tout moment votre consentement au traitement de vos informations et de votre utilisation de nos Services. De la m\u00EAme fa\u00E7on que vous pouvez donner votre consentement en interagissant avec nos Services, vous pouvez \u00E9galement le retirer par l'interm\u00E9diaire de nos Services en vous connectant \u00E0 la page d\u00E9di\u00E9e (disponible prochainement).");
  6154. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](102, "br");
  6155. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](103, " Si vous retirez votre consentement pour l'utilisation ou le partage de vos informations pour les finalit\u00E9s \u00E9nonc\u00E9es dans la pr\u00E9sente Politique relative \u00E0 la vie priv\u00E9e, il se peut que vous n'ayez pas acc\u00E8s \u00E0 tout ou partie de nos Services et que nous ne soyons pas en mesure de vous fournir tout ou partie des Services en vertu de la pr\u00E9sente Politique relative \u00E0 la vie priv\u00E9e et de nos Conditions G\u00E9n\u00E9rales d'Utilisation. Dans certains cas, nous pouvons continuer \u00E0 traiter vos informations apr\u00E8s le retrait de votre consentement si cela repose sur un fondement juridique nous permettant de le faire ou si le retrait de votre consentement se limite \u00E0 certains traitements. Par exemple, nous pouvons conserver des informations si nous sommes dans l'obligation l\u00E9gale de le faire.");
  6156. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6157. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](104, "p");
  6158. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](105, "Suppression de votre compte : si vous souhaitez supprimer votre Compte, vous pouvez le faire en acc\u00E9dant \u00E0 la ");
  6159. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](106, "a", 1);
  6160. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](107, "page de suppression de compte");
  6161. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6162. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](108, ". Vos donn\u00E9es personnelles seront supprim\u00E9es sous 15 jours maximum.");
  6163. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6164. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](109, "p");
  6165. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](110, "strong");
  6166. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](111, "Information sur votre compte");
  6167. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6168. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6169. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](112, "p");
  6170. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](113, "- Contr\u00F4le de vos informations personnelles.");
  6171. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6172. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](114, "p");
  6173. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](115, "Vous pouvez corriger les informations de votre compte \u00E0 tout moment en vous connectant sur notre application ou site. Notez que dans certains cas, nous pouvons conserver certaines informations vous concernant conform\u00E9ment \u00E0 la loi, ou \u00E0 des fins l\u00E9gitimes dans la mesure permise par la loi. Par exemple, si nous croyons que vous avez commis une fraude ou violation de nos conditions, nous pouvons chercher \u00E0 r\u00E9soudre le probl\u00E8me avant de supprimer vos informations.");
  6174. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6175. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](116, "p");
  6176. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](117, "- Droits d'acc\u00E8s.");
  6177. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6178. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](118, "p");
  6179. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](119, "strong");
  6180. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](120, "Protection des enfants ");
  6181. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6182. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6183. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](121, "p");
  6184. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](122, "Prot\u00E9ger la vie priv\u00E9e des jeunes enfants est extr\u00EAmement important. Ainsi Bravoloto ne collecte ni ne sollicite des renseignements personnels des enfants de moins de 13 ans ou sciemment leur permettre d'enregistrer en tant que joueurs.");
  6185. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6186. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](123, "p");
  6187. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](124, "Dans le cas o\u00F9 nous avons recueilli des renseignements personnels d'un enfant de moins de 13 ans sans v\u00E9rification du consentement des parents, nous supprimerons ces informations aussi vite que possible.");
  6188. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6189. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](125, "p");
  6190. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](126, "strong");
  6191. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](127, "Modifications des conditions g\u00E9n\u00E9rales ");
  6192. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6193. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6194. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](128, "p");
  6195. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](129, "Nous pouvons modifier la pr\u00E9sente D\u00E9claration de temps \u00E0 autre. Si nous faisons des changements significatifs dans la fa\u00E7on dont nous traitons vos renseignements personnels ou \u00E0 la d\u00E9claration, nous vous le ferons savoir via un message sur l'application ou par d'autres moyens, tels que par courrier \u00E9lectronique. Votre utilisation de bravoloto apr\u00E8s un tel avis constitue votre consentement aux changements.");
  6196. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6197. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](130, "p");
  6198. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](131, "Nous vous encourageons \u00E0 consulter r\u00E9guli\u00E8rement les informations concernant nos pratiques en mati\u00E8re de confidentialit\u00E9.");
  6199. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6200. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](132, "p");
  6201. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](133, "strong");
  6202. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](134, "Nous contacter");
  6203. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6204. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6205. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](135, "p");
  6206. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](136, "Si vous avez des questions au sujet de cette d\u00E9claration de confidentialit\u00E9, vous pouvez nous contacter \u00E0 contact@fatboar.fr");
  6207. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6208. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](137, "br");
  6209. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6210. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  6211. } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_1__["MatCard"], _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_2__["DefaultLayoutDirective"], _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_2__["DefaultLayoutAlignDirective"], _angular_material_card__WEBPACK_IMPORTED_MODULE_1__["MatCardContent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvcG9saXRpcXVlLWNvbmZpZGVudGlhbGl0ZS9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxzaGFyZWRcXHBvbGl0aXF1ZS1jb25maWRlbnRpYWxpdGVcXHBvbGl0aXF1ZS1jb25maWRlbnRpYWxpdGUuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL3BvbGl0aXF1ZS1jb25maWRlbnRpYWxpdGUvcG9saXRpcXVlLWNvbmZpZGVudGlhbGl0ZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGVBQUE7RUFDQSxrQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvcG9saXRpcXVlLWNvbmZpZGVudGlhbGl0ZS9wb2xpdGlxdWUtY29uZmlkZW50aWFsaXRlLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdnRvcHtcclxuICAgIG1hcmdpbi10b3A6IDdlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDNlbTtcclxuICAgIH0iLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogN2VtO1xuICBtYXJnaW4tYm90dG9tOiAzZW07XG59Il19 */"] });
  6212. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PolitiqueConfidentialiteComponent, [{
  6213. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  6214. args: [{
  6215. selector: 'app-politique-confidentialite',
  6216. templateUrl: './politique-confidentialite.component.html',
  6217. styleUrls: ['./politique-confidentialite.component.scss']
  6218. }]
  6219. }], function () { return []; }, null); })();
  6220. /***/ }),
  6221. /***/ "./src/app/components/shared/validator/confirm-password.validator.ts":
  6222. /*!***************************************************************************!*\
  6223. !*** ./src/app/components/shared/validator/confirm-password.validator.ts ***!
  6224. \***************************************************************************/
  6225. /*! exports provided: MustMatch */
  6226. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6227. "use strict";
  6228. __webpack_require__.r(__webpack_exports__);
  6229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MustMatch", function() { return MustMatch; });
  6230. // custom validator to check that two fields match
  6231. function MustMatch(controlName, matchingControlName) {
  6232. return (formGroup) => {
  6233. const control = formGroup.controls[controlName];
  6234. const matchingControl = formGroup.controls[matchingControlName];
  6235. if (matchingControl.errors && !matchingControl.errors.mustMatch) {
  6236. // return if another validator has already found an error on the matchingControl
  6237. return;
  6238. }
  6239. // set error on matchingControl if validation fails
  6240. if (control.value !== matchingControl.value) {
  6241. matchingControl.setErrors({ mustMatch: true });
  6242. }
  6243. else {
  6244. matchingControl.setErrors(null);
  6245. }
  6246. };
  6247. }
  6248. /***/ }),
  6249. /***/ "./src/app/guards/auth.guard.ts":
  6250. /*!**************************************!*\
  6251. !*** ./src/app/guards/auth.guard.ts ***!
  6252. \**************************************/
  6253. /*! exports provided: AuthGuard */
  6254. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6255. "use strict";
  6256. __webpack_require__.r(__webpack_exports__);
  6257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthGuard", function() { return AuthGuard; });
  6258. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6259. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  6260. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  6261. class AuthGuard {
  6262. constructor(router, authService) {
  6263. this.router = router;
  6264. this.authService = authService;
  6265. }
  6266. canActivate(route, state) {
  6267. const currentUser = this.authService.userValue;
  6268. if (currentUser) {
  6269. // check if route is restricted by role
  6270. if (route.data.roles && route.data.roles.indexOf(currentUser.role) === -1) {
  6271. // role not authorised so redirect to home page
  6272. this.router.navigate(['/']);
  6273. return false;
  6274. }
  6275. // authorised so return true
  6276. return true;
  6277. }
  6278. // not logged in so redirect to login page with the return url
  6279. this.router.navigate(['/login'], { queryParams: { returnUrl: state.url } });
  6280. return false;
  6281. }
  6282. }
  6283. AuthGuard.ɵfac = function AuthGuard_Factory(t) { return new (t || AuthGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"])); };
  6284. AuthGuard.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: AuthGuard, factory: AuthGuard.ɵfac, providedIn: 'root' });
  6285. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AuthGuard, [{
  6286. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  6287. args: [{
  6288. providedIn: 'root'
  6289. }]
  6290. }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"] }]; }, null); })();
  6291. /***/ }),
  6292. /***/ "./src/app/interceptors/jwt.interceptor.ts":
  6293. /*!*************************************************!*\
  6294. !*** ./src/app/interceptors/jwt.interceptor.ts ***!
  6295. \*************************************************/
  6296. /*! exports provided: JwtInterceptor */
  6297. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6298. "use strict";
  6299. __webpack_require__.r(__webpack_exports__);
  6300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JwtInterceptor", function() { return JwtInterceptor; });
  6301. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6302. /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
  6303. class JwtInterceptor {
  6304. constructor(authService) {
  6305. this.authService = authService;
  6306. }
  6307. intercept(request, next) {
  6308. // add auth header with jwt if user is logged in and request is to api url
  6309. const getToken = this.authService.tokenValue;
  6310. const isLoggedIn = getToken && getToken.token;
  6311. if (isLoggedIn) {
  6312. request = request.clone({
  6313. setHeaders: {
  6314. Authorization: `Bearer ${getToken.token}`
  6315. }
  6316. });
  6317. }
  6318. return next.handle(request);
  6319. }
  6320. }
  6321. JwtInterceptor.ɵfac = function JwtInterceptor_Factory(t) { return new (t || JwtInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"])); };
  6322. JwtInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: JwtInterceptor, factory: JwtInterceptor.ɵfac });
  6323. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](JwtInterceptor, [{
  6324. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  6325. }], function () { return [{ type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"] }]; }, null); })();
  6326. /***/ }),
  6327. /***/ "./src/app/material/material.module.ts":
  6328. /*!*********************************************!*\
  6329. !*** ./src/app/material/material.module.ts ***!
  6330. \*********************************************/
  6331. /*! exports provided: MaterialModule */
  6332. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6333. "use strict";
  6334. __webpack_require__.r(__webpack_exports__);
  6335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialModule", function() { return MaterialModule; });
  6336. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6337. /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js");
  6338. /* harmony import */ var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/toolbar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/toolbar.js");
  6339. /* harmony import */ var _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/sidenav */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/sidenav.js");
  6340. /* harmony import */ var _angular_material_list__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/list */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/list.js");
  6341. /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js");
  6342. /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/table */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js");
  6343. /* harmony import */ var _angular_material_sort__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/sort */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/sort.js");
  6344. /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/paginator */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/paginator.js");
  6345. /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js");
  6346. /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js");
  6347. /* harmony import */ var _angular_material_expansion__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/expansion */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/expansion.js");
  6348. /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js");
  6349. /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js");
  6350. /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js");
  6351. /* harmony import */ var _angular_material_select__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/material/select */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/select.js");
  6352. /* harmony import */ var _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/material/datepicker */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/datepicker.js");
  6353. /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js");
  6354. /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/material/core */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/core.js");
  6355. /* harmony import */ var _angular_material_badge__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/material/badge */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/badge.js");
  6356. /* harmony import */ var _angular_material_radio__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/material/radio */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/radio.js");
  6357. // import { MatMomentDateModule } from "@angular/material-moment-adapter";
  6358. const MaterialComponents = [
  6359. _angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatButtonModule"],
  6360. _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_2__["MatToolbarModule"],
  6361. _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_3__["MatSidenavModule"],
  6362. _angular_material_list__WEBPACK_IMPORTED_MODULE_4__["MatListModule"],
  6363. _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconModule"],
  6364. _angular_material_table__WEBPACK_IMPORTED_MODULE_6__["MatTableModule"],
  6365. _angular_material_sort__WEBPACK_IMPORTED_MODULE_7__["MatSortModule"],
  6366. _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__["MatPaginatorModule"],
  6367. _angular_material_input__WEBPACK_IMPORTED_MODULE_9__["MatInputModule"],
  6368. _angular_material_card__WEBPACK_IMPORTED_MODULE_10__["MatCardModule"],
  6369. _angular_material_expansion__WEBPACK_IMPORTED_MODULE_11__["MatExpansionModule"],
  6370. _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBarModule"],
  6371. _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_13__["MatSnackBarModule"],
  6372. _angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__["MatDialogModule"],
  6373. _angular_material_select__WEBPACK_IMPORTED_MODULE_15__["MatSelectModule"],
  6374. _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_16__["MatDatepickerModule"],
  6375. _angular_material_form_field__WEBPACK_IMPORTED_MODULE_17__["MatFormFieldModule"],
  6376. _angular_material_core__WEBPACK_IMPORTED_MODULE_18__["MatNativeDateModule"],
  6377. _angular_material_badge__WEBPACK_IMPORTED_MODULE_19__["MatBadgeModule"],
  6378. _angular_material_radio__WEBPACK_IMPORTED_MODULE_20__["MatRadioModule"],
  6379. ];
  6380. class MaterialModule {
  6381. }
  6382. MaterialModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MaterialModule });
  6383. MaterialModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MaterialModule_Factory(t) { return new (t || MaterialModule)(); }, imports: [[MaterialComponents],
  6384. _angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatButtonModule"],
  6385. _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_2__["MatToolbarModule"],
  6386. _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_3__["MatSidenavModule"],
  6387. _angular_material_list__WEBPACK_IMPORTED_MODULE_4__["MatListModule"],
  6388. _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconModule"],
  6389. _angular_material_table__WEBPACK_IMPORTED_MODULE_6__["MatTableModule"],
  6390. _angular_material_sort__WEBPACK_IMPORTED_MODULE_7__["MatSortModule"],
  6391. _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__["MatPaginatorModule"],
  6392. _angular_material_input__WEBPACK_IMPORTED_MODULE_9__["MatInputModule"],
  6393. _angular_material_card__WEBPACK_IMPORTED_MODULE_10__["MatCardModule"],
  6394. _angular_material_expansion__WEBPACK_IMPORTED_MODULE_11__["MatExpansionModule"],
  6395. _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBarModule"],
  6396. _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_13__["MatSnackBarModule"],
  6397. _angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__["MatDialogModule"],
  6398. _angular_material_select__WEBPACK_IMPORTED_MODULE_15__["MatSelectModule"],
  6399. _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_16__["MatDatepickerModule"],
  6400. _angular_material_form_field__WEBPACK_IMPORTED_MODULE_17__["MatFormFieldModule"],
  6401. _angular_material_core__WEBPACK_IMPORTED_MODULE_18__["MatNativeDateModule"],
  6402. _angular_material_badge__WEBPACK_IMPORTED_MODULE_19__["MatBadgeModule"],
  6403. _angular_material_radio__WEBPACK_IMPORTED_MODULE_20__["MatRadioModule"]] });
  6404. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MaterialModule, { imports: [_angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatButtonModule"],
  6405. _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_2__["MatToolbarModule"],
  6406. _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_3__["MatSidenavModule"],
  6407. _angular_material_list__WEBPACK_IMPORTED_MODULE_4__["MatListModule"],
  6408. _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconModule"],
  6409. _angular_material_table__WEBPACK_IMPORTED_MODULE_6__["MatTableModule"],
  6410. _angular_material_sort__WEBPACK_IMPORTED_MODULE_7__["MatSortModule"],
  6411. _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__["MatPaginatorModule"],
  6412. _angular_material_input__WEBPACK_IMPORTED_MODULE_9__["MatInputModule"],
  6413. _angular_material_card__WEBPACK_IMPORTED_MODULE_10__["MatCardModule"],
  6414. _angular_material_expansion__WEBPACK_IMPORTED_MODULE_11__["MatExpansionModule"],
  6415. _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBarModule"],
  6416. _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_13__["MatSnackBarModule"],
  6417. _angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__["MatDialogModule"],
  6418. _angular_material_select__WEBPACK_IMPORTED_MODULE_15__["MatSelectModule"],
  6419. _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_16__["MatDatepickerModule"],
  6420. _angular_material_form_field__WEBPACK_IMPORTED_MODULE_17__["MatFormFieldModule"],
  6421. _angular_material_core__WEBPACK_IMPORTED_MODULE_18__["MatNativeDateModule"],
  6422. _angular_material_badge__WEBPACK_IMPORTED_MODULE_19__["MatBadgeModule"],
  6423. _angular_material_radio__WEBPACK_IMPORTED_MODULE_20__["MatRadioModule"]], exports: [_angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatButtonModule"],
  6424. _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_2__["MatToolbarModule"],
  6425. _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_3__["MatSidenavModule"],
  6426. _angular_material_list__WEBPACK_IMPORTED_MODULE_4__["MatListModule"],
  6427. _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconModule"],
  6428. _angular_material_table__WEBPACK_IMPORTED_MODULE_6__["MatTableModule"],
  6429. _angular_material_sort__WEBPACK_IMPORTED_MODULE_7__["MatSortModule"],
  6430. _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__["MatPaginatorModule"],
  6431. _angular_material_input__WEBPACK_IMPORTED_MODULE_9__["MatInputModule"],
  6432. _angular_material_card__WEBPACK_IMPORTED_MODULE_10__["MatCardModule"],
  6433. _angular_material_expansion__WEBPACK_IMPORTED_MODULE_11__["MatExpansionModule"],
  6434. _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBarModule"],
  6435. _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_13__["MatSnackBarModule"],
  6436. _angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__["MatDialogModule"],
  6437. _angular_material_select__WEBPACK_IMPORTED_MODULE_15__["MatSelectModule"],
  6438. _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_16__["MatDatepickerModule"],
  6439. _angular_material_form_field__WEBPACK_IMPORTED_MODULE_17__["MatFormFieldModule"],
  6440. _angular_material_core__WEBPACK_IMPORTED_MODULE_18__["MatNativeDateModule"],
  6441. _angular_material_badge__WEBPACK_IMPORTED_MODULE_19__["MatBadgeModule"],
  6442. _angular_material_radio__WEBPACK_IMPORTED_MODULE_20__["MatRadioModule"]] }); })();
  6443. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MaterialModule, [{
  6444. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  6445. args: [{
  6446. imports: [MaterialComponents],
  6447. exports: [MaterialComponents]
  6448. }]
  6449. }], null, null); })();
  6450. /***/ }),
  6451. /***/ "./src/app/services/auth.service.ts":
  6452. /*!******************************************!*\
  6453. !*** ./src/app/services/auth.service.ts ***!
  6454. \******************************************/
  6455. /*! exports provided: AuthService */
  6456. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6457. "use strict";
  6458. __webpack_require__.r(__webpack_exports__);
  6459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthService", function() { return AuthService; });
  6460. /* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
  6461. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6462. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
  6463. /* harmony import */ var src_app_components_shared_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/components/shared/alert-message/alert-message.component */ "./src/app/components/shared/alert-message/alert-message.component.ts");
  6464. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js");
  6465. /* harmony import */ var jwt_decode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! jwt-decode */ "./node_modules/jwt-decode/lib/index.js");
  6466. /* harmony import */ var jwt_decode__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(jwt_decode__WEBPACK_IMPORTED_MODULE_5__);
  6467. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  6468. /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  6469. /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
  6470. /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js");
  6471. /* harmony import */ var src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/services/storage.service */ "./src/app/services/storage.service.ts");
  6472. class AuthService {
  6473. constructor(http, router, snackBar, storageService, platformId) {
  6474. this.http = http;
  6475. this.router = router;
  6476. this.snackBar = snackBar;
  6477. this.storageService = storageService;
  6478. this.platformId = platformId;
  6479. this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__["environment"].apiUrl;
  6480. this.currentUserSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](null);
  6481. this.currentUser = this.currentUserSubject.asObservable();
  6482. this.messageSource = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]('default message');
  6483. this.currentMessage = this.messageSource.asObservable();
  6484. this.tokenSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](JSON.parse(this.storageService.getItem('token')));
  6485. this.token = this.tokenSubject.asObservable();
  6486. this.user_infoSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](JSON.parse(this.storageService.getItem('user')));
  6487. this.user_info = this.user_infoSubject.asObservable();
  6488. }
  6489. changeMessage(message) {
  6490. this.messageSource.next(message);
  6491. }
  6492. get tokenValue() {
  6493. return this.tokenSubject.value;
  6494. }
  6495. get userValue() {
  6496. return this.user_infoSubject.value;
  6497. }
  6498. signIn(credentials) {
  6499. return this.http.post(`${this.apiUrl}/api/auth/login`, credentials)
  6500. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])(token => {
  6501. this.storageService.setItem('token', JSON.stringify(token));
  6502. this.tokenSubject.next(token);
  6503. return token;
  6504. }));
  6505. }
  6506. signInWithGoogle() {
  6507. return this.http.get(`${this.apiUrl}/api/auth/google`).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])(user => {
  6508. console.log('je suis present', user);
  6509. this.storageService.setItem('user', JSON.stringify(user));
  6510. return user;
  6511. }));
  6512. }
  6513. signInAdmin(credentials) {
  6514. return this.http.post(`${this.apiUrl}/api/auth/admin`, credentials)
  6515. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])(token => {
  6516. this.storageService.setItem('token', JSON.stringify(token));
  6517. this.tokenSubject.next(token);
  6518. return token;
  6519. }));
  6520. }
  6521. signUP(data) {
  6522. return this.http.post(`${this.apiUrl}/api/auth/signup`, data)
  6523. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])(token => {
  6524. this.storageService.setItem('token', JSON.stringify(token));
  6525. this.tokenSubject.next(token);
  6526. return token;
  6527. }));
  6528. }
  6529. lostPassword(email) {
  6530. return this.http.put(`${this.apiUrl}/api/auth/forgot-password`, email);
  6531. }
  6532. resetPassword(data) {
  6533. return this.http.put(`${this.apiUrl}/api/auth/reset-password`, data);
  6534. }
  6535. isLoggedIn() {
  6536. return this.storageService.getItem('token') !== null;
  6537. }
  6538. getCurrentUser() {
  6539. return this.http.get('/api/auth/user').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["tap"])((user) => {
  6540. this.currentUserSubject.next(user);
  6541. }));
  6542. }
  6543. logout() {
  6544. this.storageService.removeItem('token');
  6545. this.tokenSubject.next(null);
  6546. this.storageService.removeItem('user');
  6547. this.user_infoSubject.next(null);
  6548. this.router.navigate(['/login']);
  6549. if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_6__["isPlatformBrowser"])(this.platformId)) {
  6550. setTimeout(() => {
  6551. document.location.reload();
  6552. }, 1000);
  6553. }
  6554. }
  6555. getUserInfo() {
  6556. let decodedToken = jwt_decode__WEBPACK_IMPORTED_MODULE_5__(this.tokenSubject.value.token);
  6557. return this.http.get(`${this.apiUrl}/api/users/${decodedToken.userId}`)
  6558. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])(user => {
  6559. this.storageService.setItem('user', JSON.stringify(user));
  6560. this.user_infoSubject.next(user);
  6561. return user;
  6562. }));
  6563. }
  6564. openSnackBar(message) {
  6565. this.snackBar.openFromComponent(src_app_components_shared_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_3__["AlertMessageComponent"], {
  6566. data: message,
  6567. panelClass: ['blue-snackbar'],
  6568. duration: 10000
  6569. });
  6570. }
  6571. }
  6572. AuthService.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_8__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_9__["MatSnackBar"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_10__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["PLATFORM_ID"])); };
  6573. AuthService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' });
  6574. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AuthService, [{
  6575. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
  6576. args: [{
  6577. providedIn: 'root'
  6578. }]
  6579. }], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_8__["Router"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_9__["MatSnackBar"] }, { type: src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_10__["StorageService"] }, { type: Object, decorators: [{
  6580. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  6581. args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["PLATFORM_ID"]]
  6582. }] }]; }, null); })();
  6583. /***/ }),
  6584. /***/ "./src/app/services/contact.service.ts":
  6585. /*!*********************************************!*\
  6586. !*** ./src/app/services/contact.service.ts ***!
  6587. \*********************************************/
  6588. /*! exports provided: ContactService */
  6589. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6590. "use strict";
  6591. __webpack_require__.r(__webpack_exports__);
  6592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContactService", function() { return ContactService; });
  6593. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6594. /* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
  6595. /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  6596. class ContactService {
  6597. constructor(http) {
  6598. this.http = http;
  6599. //url api
  6600. this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].apiUrl;
  6601. }
  6602. // send message contact
  6603. sendMsgContact(credentials) {
  6604. return this.http.post(`${this.apiUrl}/api/contact`, credentials);
  6605. }
  6606. // get contact open
  6607. getOpenMessage() {
  6608. return this.http.get(`${this.apiUrl}/api/contact/open`);
  6609. }
  6610. // get contact close
  6611. getColseMessage() {
  6612. return this.http.get(`${this.apiUrl}/api/contact/closed`);
  6613. }
  6614. // close contact
  6615. closeContact(body) {
  6616. return this.http.patch(`${this.apiUrl}/api/contact`, body);
  6617. }
  6618. // response contact
  6619. responseContact(id, body) {
  6620. return this.http.post(`${this.apiUrl}/api/contact/response?id=${id}`, body);
  6621. }
  6622. }
  6623. ContactService.ɵfac = function ContactService_Factory(t) { return new (t || ContactService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"])); };
  6624. ContactService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: ContactService, factory: ContactService.ɵfac, providedIn: 'root' });
  6625. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ContactService, [{
  6626. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  6627. args: [{
  6628. providedIn: 'root'
  6629. }]
  6630. }], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }]; }, null); })();
  6631. /***/ }),
  6632. /***/ "./src/app/services/email.service.ts":
  6633. /*!*******************************************!*\
  6634. !*** ./src/app/services/email.service.ts ***!
  6635. \*******************************************/
  6636. /*! exports provided: EmailService */
  6637. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6638. "use strict";
  6639. __webpack_require__.r(__webpack_exports__);
  6640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailService", function() { return EmailService; });
  6641. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6642. /* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
  6643. /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  6644. class EmailService {
  6645. constructor(http) {
  6646. this.http = http;
  6647. //url api
  6648. this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].apiUrl;
  6649. }
  6650. // send email
  6651. sendEmail(data, email, isgain, isactiive) {
  6652. return this.http.post(`${this.apiUrl}/api/emails/send?email=${email}&isgain=${isgain}&isactive=${isactiive}`, data);
  6653. }
  6654. // get emails
  6655. getAllEmail() {
  6656. return this.http.get(`${this.apiUrl}/api/emails`);
  6657. }
  6658. }
  6659. EmailService.ɵfac = function EmailService_Factory(t) { return new (t || EmailService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"])); };
  6660. EmailService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: EmailService, factory: EmailService.ɵfac, providedIn: 'root' });
  6661. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EmailService, [{
  6662. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  6663. args: [{
  6664. providedIn: 'root'
  6665. }]
  6666. }], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }]; }, null); })();
  6667. /***/ }),
  6668. /***/ "./src/app/services/leaflet.service.ts":
  6669. /*!*********************************************!*\
  6670. !*** ./src/app/services/leaflet.service.ts ***!
  6671. \*********************************************/
  6672. /*! exports provided: LeafletService */
  6673. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6674. "use strict";
  6675. __webpack_require__.r(__webpack_exports__);
  6676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LeafletService", function() { return LeafletService; });
  6677. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6678. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  6679. // leaflet.service.ts
  6680. class LeafletService {
  6681. constructor(platformId) {
  6682. this.platformId = platformId;
  6683. if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this.platformId)) {
  6684. this.L = __webpack_require__(/*! leaflet */ "./node_modules/leaflet/dist/leaflet-src.js");
  6685. }
  6686. }
  6687. getLeaflet() {
  6688. return this.L;
  6689. }
  6690. }
  6691. LeafletService.ɵfac = function LeafletService_Factory(t) { return new (t || LeafletService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"])); };
  6692. LeafletService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: LeafletService, factory: LeafletService.ɵfac, providedIn: 'root' });
  6693. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LeafletService, [{
  6694. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  6695. args: [{
  6696. providedIn: 'root'
  6697. }]
  6698. }], function () { return [{ type: Object, decorators: [{
  6699. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  6700. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
  6701. }] }]; }, null); })();
  6702. /***/ }),
  6703. /***/ "./src/app/services/restaurants.service.ts":
  6704. /*!*************************************************!*\
  6705. !*** ./src/app/services/restaurants.service.ts ***!
  6706. \*************************************************/
  6707. /*! exports provided: RestaurantsService */
  6708. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6709. "use strict";
  6710. __webpack_require__.r(__webpack_exports__);
  6711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestaurantsService", function() { return RestaurantsService; });
  6712. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6713. /* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
  6714. /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  6715. class RestaurantsService {
  6716. constructor(http) {
  6717. this.http = http;
  6718. //url api
  6719. this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].apiUrl;
  6720. }
  6721. // get users
  6722. getRestaurants() {
  6723. return this.http.get(`${this.apiUrl}/api/restaurants`);
  6724. }
  6725. }
  6726. RestaurantsService.ɵfac = function RestaurantsService_Factory(t) { return new (t || RestaurantsService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"])); };
  6727. RestaurantsService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: RestaurantsService, factory: RestaurantsService.ɵfac, providedIn: 'root' });
  6728. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RestaurantsService, [{
  6729. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  6730. args: [{
  6731. providedIn: 'root'
  6732. }]
  6733. }], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }]; }, null); })();
  6734. /***/ }),
  6735. /***/ "./src/app/services/statistic.service.ts":
  6736. /*!***********************************************!*\
  6737. !*** ./src/app/services/statistic.service.ts ***!
  6738. \***********************************************/
  6739. /*! exports provided: StatisticService */
  6740. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6741. "use strict";
  6742. __webpack_require__.r(__webpack_exports__);
  6743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticService", function() { return StatisticService; });
  6744. /* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
  6745. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6746. /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  6747. class StatisticService {
  6748. constructor(http) {
  6749. this.http = http;
  6750. this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_0__["environment"].apiUrl;
  6751. // header de requete http
  6752. this.headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"](
  6753. // { 'Access-Control-Allow-Origin':'*',
  6754. // // 'Access-Control-Allow-Headers': 'X-Requested-With, Content-Type',
  6755. // // {'Content-Type': 'application/json',}
  6756. // // 'Access-Control-Allow-Methods': 'POST, GET',
  6757. // }
  6758. );
  6759. }
  6760. // get statistic
  6761. getStatistic() {
  6762. // return this.http.get<StatisticResponse>('assets/data/stat.json');
  6763. const options = { headers: this.headers };
  6764. let data = this.http.get(`${this.apiUrl}/api/tickets/stats`, options);
  6765. console.log(JSON.stringify(data));
  6766. return data;
  6767. }
  6768. }
  6769. StatisticService.ɵfac = function StatisticService_Factory(t) { return new (t || StatisticService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"])); };
  6770. StatisticService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: StatisticService, factory: StatisticService.ɵfac, providedIn: 'root' });
  6771. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](StatisticService, [{
  6772. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
  6773. args: [{
  6774. providedIn: 'root'
  6775. }]
  6776. }], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }]; }, null); })();
  6777. /***/ }),
  6778. /***/ "./src/app/services/storage.service.ts":
  6779. /*!*********************************************!*\
  6780. !*** ./src/app/services/storage.service.ts ***!
  6781. \*********************************************/
  6782. /*! exports provided: StorageService */
  6783. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6784. "use strict";
  6785. __webpack_require__.r(__webpack_exports__);
  6786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StorageService", function() { return StorageService; });
  6787. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6788. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
  6789. class StorageService {
  6790. constructor(platformId) {
  6791. this.platformId = platformId;
  6792. this.storage = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this.platformId) ? localStorage : {
  6793. getItem: (key) => null,
  6794. setItem: (key, value) => { },
  6795. removeItem: (key) => { },
  6796. length: 0,
  6797. clear: () => { },
  6798. key: (index) => null
  6799. };
  6800. }
  6801. getItem(key) {
  6802. return this.storage.getItem(key);
  6803. }
  6804. setItem(key, value) {
  6805. this.storage.setItem(key, value);
  6806. }
  6807. removeItem(key) {
  6808. this.storage.removeItem(key);
  6809. }
  6810. }
  6811. StorageService.ɵfac = function StorageService_Factory(t) { return new (t || StorageService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"])); };
  6812. StorageService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: StorageService, factory: StorageService.ɵfac, providedIn: 'root' });
  6813. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StorageService, [{
  6814. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  6815. args: [{
  6816. providedIn: 'root'
  6817. }]
  6818. }], function () { return [{ type: Object, decorators: [{
  6819. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  6820. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
  6821. }] }]; }, null); })();
  6822. /***/ }),
  6823. /***/ "./src/app/services/users.service.ts":
  6824. /*!*******************************************!*\
  6825. !*** ./src/app/services/users.service.ts ***!
  6826. \*******************************************/
  6827. /*! exports provided: UsersService */
  6828. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6829. "use strict";
  6830. __webpack_require__.r(__webpack_exports__);
  6831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersService", function() { return UsersService; });
  6832. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6833. /* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
  6834. /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
  6835. class UsersService {
  6836. constructor(http) {
  6837. this.http = http;
  6838. //url api
  6839. this.apiUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].apiUrl;
  6840. }
  6841. // get all users
  6842. getUsers(page, limit, lastname, firstname, email, adress, startregister, endregister) {
  6843. if (lastname === null) {
  6844. lastname = '';
  6845. }
  6846. if (firstname === null) {
  6847. firstname = '';
  6848. }
  6849. if (email === null) {
  6850. email = '';
  6851. }
  6852. if (adress === null) {
  6853. adress = '';
  6854. }
  6855. if (startregister === null) {
  6856. startregister = '';
  6857. }
  6858. if (endregister === null) {
  6859. endregister = '';
  6860. }
  6861. return this.http.get(`${this.apiUrl}/api/users/?page=${page}&limit=${limit}
  6862. &lastname=${lastname}&firstname=${firstname}&email=${email}&adress=${adress}&startregister=${startregister}&endregister=${endregister}`);
  6863. }
  6864. // get user
  6865. getOneUser(id) {
  6866. return this.http.get(`${this.apiUrl}/api/${id}`);
  6867. }
  6868. // edit user
  6869. editOneUser(id, body) {
  6870. debugger;
  6871. console.log("url ========", this.apiUrl);
  6872. return this.http.patch(`${this.apiUrl}/api/users/${id}`, body);
  6873. }
  6874. // delete user
  6875. deleteOneUser(id) {
  6876. return this.http.delete(`${this.apiUrl}/api/users/${id}`);
  6877. }
  6878. // verifier gain user
  6879. verifyLotUser(id, code) {
  6880. console.log('toto');
  6881. return this.http.post(`${this.apiUrl}/api/users/gain?id=${id}`, code);
  6882. }
  6883. updateUserGains(userId, gains) {
  6884. return this.http.put(`${this.apiUrl}/api/users/${userId}/gains`, { gains });
  6885. }
  6886. }
  6887. UsersService.ɵfac = function UsersService_Factory(t) { return new (t || UsersService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"])); };
  6888. UsersService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: UsersService, factory: UsersService.ɵfac, providedIn: 'root' });
  6889. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersService, [{
  6890. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  6891. args: [{
  6892. providedIn: 'root'
  6893. }]
  6894. }], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }]; }, null); })();
  6895. /***/ }),
  6896. /***/ "./src/environments/environment.ts":
  6897. /*!*****************************************!*\
  6898. !*** ./src/environments/environment.ts ***!
  6899. \*****************************************/
  6900. /*! exports provided: environment */
  6901. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6902. "use strict";
  6903. __webpack_require__.r(__webpack_exports__);
  6904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
  6905. // This file can be replaced during build by using the `fileReplacements` array.
  6906. // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
  6907. // The list of file replacements can be found in `angular.json`.
  6908. const environment = {
  6909. production: false,
  6910. name: "(Test)",
  6911. apiUrl: `http://localhost:4000`,
  6912. };
  6913. /*
  6914. * For easier debugging in development mode, you can import the following file
  6915. * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
  6916. *
  6917. * This import should be commented out in production mode because it will have a negative impact
  6918. * on performance if an error is thrown.
  6919. */
  6920. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
  6921. /***/ }),
  6922. /***/ "./src/main.ts":
  6923. /*!*********************!*\
  6924. !*** ./src/main.ts ***!
  6925. \*********************/
  6926. /*! no exports provided */
  6927. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6928. "use strict";
  6929. __webpack_require__.r(__webpack_exports__);
  6930. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
  6931. /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
  6932. /* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
  6933. /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
  6934. if (_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].production) {
  6935. Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
  6936. }
  6937. document.addEventListener('DOMContentLoaded', () => {
  6938. _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__["platformBrowser"]().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"])
  6939. .catch(err => console.error(err));
  6940. });
  6941. /***/ }),
  6942. /***/ 0:
  6943. /*!***************************!*\
  6944. !*** multi ./src/main.ts ***!
  6945. \***************************/
  6946. /*! no static exports found */
  6947. /***/ (function(module, exports, __webpack_require__) {
  6948. module.exports = __webpack_require__(/*! C:\FatboarProject\angular-client\src\main.ts */"./src/main.ts");
  6949. /***/ })
  6950. },[[0,"runtime","vendor"]]]);
  6951. //# sourceMappingURL=main.js.map