text: (window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"ct+p":function(n,t,e){"use strict";e.r(t),e.d(t,"HomePageModule",function(){return b});var o=e("ofXK"),r=e("TEn/"),l=e("3Pt+"),c=e("tyNb"),i=e("fXoL");function a(n,t){if(1&n&&(i.Nb(0,"ion-col"),i.fc(1),i.Mb()),2&n){const n=t.$implicit,e=i.Wb().$implicit,o=i.Wb();i.dc("background",o.hintergrundFarbeArray[7*e+n+1]),i.Ab(1),i.gc(7*e+n+1)}}function s(n,t){if(1&n&&(i.Nb(0,"ion-row"),i.ec(1,a,2,3,"ion-col",4),i.Mb()),2&n){const n=i.Wb();i.Ab(1),i.Zb("ngForOf",n.nullBisSechsArray)}}const u=[{path:"",component:(()=>{class n{constructor(){this.nullBisSechsArray=[...new Array(7)].map((n,t)=>t),this.hintergrundFarbeArray=[],this.hintergrundFarbeArray.push("dummy");for(let n=1;n<=49;n++)this.hintergrundFarbeArray.push("white")}alleZahlenWeiss(){for(let n=1;n<=49;n++)this.hintergrundFarbeArray[n]="white"}onLottozahlenErzeugen(){this.alleZahlenWeiss();const n=this.lottoZahlenErzeugen();for(let t=0;t<n.length;t++)this.hintergrundFarbeArray[n[t]]="orange"}lottoZahlenErzeugen(){const n=[];for(let e=1;e<=49;e++){const t={lottozahl:e,zufallszahl:Math.random()};n.push(t)}n.sort(function(n,t){return n.zufallszahl===t.zufallszahl?0:n.zufallszahl<t.zufallszahl?-1:n.zufallszahl>t.zufallszahl?1:void 0});const t=[];for(let e=0;e<6;e++)t.push(n[e].lottozahl);return t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=i.Eb({type:n,selectors:[["app-home"]],decls:10,vars:3,consts:[[3,"translucent"],[3,"fullscreen"],["expand","block","color","success",3,"click"],[4,"ngFor","ngForOf"],[3,"background",4,"ngFor","ngForOf"]],template:function(n,t){1&n&&(i.Nb(0,"ion-header",0),i.Nb(1,"ion-toolbar"),i.Nb(2,"ion-title"),i.fc(3,'Lottozahlen-Generator f\xfcr "6 aus 49"'),i.Mb(),i.Mb(),i.Mb(),i.Nb(4,"ion-content",1),i.Nb(5,"ion-button",2),i.Ub("click",function(){return t.onLottozahlenErzeugen()}),i.fc(6,"Lottozahlen ausw\xfcrfeln"),i.Mb(),i.fc(7," \xa0 "),i.Nb(8,"ion-grid"),i.ec(9,s,2,1,"ion-row",3),i.Mb(),i.Mb()),2&n&&(i.Zb("translucent",!0),i.Ab(4),i.Zb("fullscreen",!0),i.Ab(5),i.Zb("ngForOf",t.nullBisSechsArray))},directives:[r.f,r.j,r.i,r.d,r.b,r.e,o.h,r.h,r.c],styles:["#container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:0;right:0;top:50%;transform:translateY(-50%)}#container[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:20px;line-height:26px}#container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#8c8c8c;margin:0}#container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}ion-col[_ngcontent-%COMP%]{border:1px solid #ddd;width:3em;color:#000}"]}),n})()}];let h=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.Ib({type:n}),n.\u0275inj=i.Hb({imports:[[c.i.forChild(u)],c.i]}),n})(),b=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=i.Ib({type:n}),n.\u0275inj=i.Hb({imports:[[o.b,l.a,r.k,h]]}),n})()}}]);