-
Notifications
You must be signed in to change notification settings - Fork 0
/
5870.919c535678720dcd.js
1 lines (1 loc) · 10.3 KB
/
5870.919c535678720dcd.js
1
"use strict";(self.webpackChunkbusu_city_ui=self.webpackChunkbusu_city_ui||[]).push([[5870],{5870:(A,c,n)=>{n.r(c),n.d(c,{LandscapeModule:()=>y});var d=n(1524),u=n(5295),p=n(3699),e=n(3354),h=n(8148),l=n(1002),s=n(529),g=n(6991),m=n(3369);function f(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"swiper-slide",38)(1,"div",39),e.NdJ("click",function(){const T=e.CHM(t).$implicit,U=e.oxw();return e.KtG(U.weatherService.currentHourData=T)}),e.TgZ(2,"span",40),e._uU(3),e.qZA(),e._UZ(4,"img",41),e.TgZ(5,"span",42),e._uU(6),e.qZA()()()}if(2&r){const t=i.$implicit,a=e.oxw();e.xp6(3),e.Oqu(a.weatherService.checkHourIsNow(t.datetimeEpoch)),e.xp6(1),e.Q6J("src","assets/icon/"+t.icon+".svg",e.LSH),e.xp6(2),e.hij(" ",a.weatherService.fahrenheitToCelcius(null==t?null:t.temp),"\xb0 ")}}function w(r,i){if(1&r&&(e.TgZ(0,"li",43)(1,"span",44),e._UZ(2,"img",45),e.TgZ(3,"i",46),e._UZ(4,"fa-icon",21),e._uU(5),e.qZA()(),e.TgZ(6,"ion-label",47)(7,"ion-text",48),e._uU(8),e.ALo(9,"date"),e.qZA(),e.TgZ(10,"span",49),e._uU(11),e.qZA()(),e.TgZ(12,"span",50),e._uU(13),e._UZ(14,"br"),e.TgZ(15,"i",51),e._UZ(16,"fa-icon",24),e._uU(17),e.qZA()()()),2&r){const t=i.$implicit,a=e.oxw();e.xp6(2),e.Q6J("src","assets/icon/"+t.icon+".svg",e.LSH),e.xp6(3),e.hij(" ",(null==t?null:t.precipprob)||0,"% "),e.xp6(3),e.hij(" ",e.xi3(9,6,t.datetime,"EE, MMM d")," "),e.xp6(3),e.hij(" ",t.conditions," "),e.xp6(2),e.hij(" ",a.weatherService.fahrenheitToCelcius(null==t?null:t.temp),"\xb0 "),e.xp6(4),e.hij(" ",(null==t?null:t.solarenergy)||0," ")}}function Z(r,i){1&r&&(e.TgZ(0,"div",52),e._UZ(1,"button",53),e._uU(2," Weather App - v1.0.0 "),e.qZA(),e.TgZ(3,"div",54)(4,"ul")(5,"li"),e._uU(6," Do you detect any bugs or errors? "),e.qZA(),e.TgZ(7,"li"),e._uU(8," Or know how better we can improve this app? "),e.qZA()(),e._UZ(9,"br"),e._uU(10," ...share with the Developer: "),e._UZ(11,"br"),e._uU(12," +234-7036-2000-96. "),e.TgZ(13,"p",55),e._uU(14,"THANK YOU!"),e.qZA()())}const b=[{path:"",component:(()=>{class r{constructor(t,a){this.weatherService=t,this.cdr=a,this.displayImg="weather.jpg",this.forecastDays=[],this.swiperModules=[p.L$]}ngOnInit(){this.weatherService.newWeatherData.subscribe(t=>{this.chooseBgImg(),this.weatherService.drawMoonPhase(this.weatherService.todayWeatherData?.moonphase,"moon-phase",40)})}ionViewDidEnter(){this.forecastDays=this.weatherService.weatherData?.days.filter(t=>t.datetime>(0,u.Z)(new Date,"yyyy-MM-dd")),this.weatherService.drawMoonPhase(this.weatherService.todayWeatherData?.moonphase,"moon-phase-v2",30),this.chooseBgImg(),this.cdr.detectChanges()}chooseBgImg(){const t=this.weatherService.currentHourData?.conditions?.toLowerCase(),a=(new Date).getHours(),o=a>6&&a<20;this.displayImg=(t?.includes("clear")||t?.includes("sun"))&&o?"clear-day.jpg":t?.includes("clear")&&!o?"clear-night.jpg":t?.includes("rain")&&o?"rainy-day.jpg":t?.includes("rain")&&!o?"rainy-night.jpg":(t?.includes("cloud")||t?.includes("overcast"))&&o?"cloudy-day.jpg":!t?.includes("cloud")&&!t?.includes("overcast")||o?t?.includes("thunder")||t?.includes("storm")?"thunder.jpg":"weather.jpg":"cloudy-night.jpg"}}return r.\u0275fac=function(t){return new(t||r)(e.Y36(h.F),e.Y36(e.sBO))},r.\u0275cmp=e.Xpm({type:r,selectors:[["healmah-landscape"]],decls:74,vars:26,consts:[["fallbackImg","",3,"onlyBgImg","src"],[1,"w:70%","d:flex","flex:column","p:1.5rem","p:1rem@xs&<sm","jc:space-between"],[1,"rel","d:flex","jc:space-between","z:10","gap:5","{text-shadow:0|0|1|#1A2833}","{f:beryl-70!}_b"],[1,"f:3rem","f:white","f:'Roboto',sans-serif"],[1,"f:1.8rem","f:1.5rem@xs&<sm","f:fade-90"],[1,"d:flex","gap:5"],[1,"f:1.8rem","f:1.2rem@xs&<sm","f:#00c387","text-shadow:0|0|1|black","text-align:right"],["id","menu-btn","icon","info-circle",1,"f:gray-86","f:1.8rem"],[1,"f:fade-90","text-shadow:0|0|1|black","f:2rem","f:1rem@xs&<sm","line-height:1"],[1,"d:flex","flex:column","gap:10","f:white!"],[1,"d:flex","flex:column@>sm","gap:50@xs&<sm","f:4.5rem","f:3rem@xs&<sm"],[1,"f:white","f:bold","m:0"],[1,"m:0"],[1,"bg:fade-90","h:3"],[1,"bg:url('assets/img/icon.png')","d:none","h:20","w:20"],[1,"bg:url('assets/img/weather.jpg')","d:none","h:20","w:20"],[1,"",3,"modules","slidesPerView"],["class","bg:rgba(74,111,201,.3) f:white! r:7 max-w:80 min-h:110 p:5 mr:10 b:.5|solid|fade-86",4,"ngFor","ngForOf"],[1,"bg:rgba(74,111,201,.3)","min-w:30%","d:flex","flex:column","jc:flex-start"],[1,"h:fit-content"],[1,"bg:","d:flex","jc:space-evenly","f:1rem","p:5","{d:flex;jc:center;ai:center;flex:column;bg:rgba(0,0,0,.2);p:5;r:10}_span"],["icon","droplet",1,"f:#63BEA8"],[1,"f:white","f:.7rem","center","text-align:center"],[1,"f:white","bg:rgba(0,0,0,.5)!"],["icon","solar-panel",1,"f:#63BEA8"],["icon","cloud",1,"f:#63BEA8"],[1,"bg:rgba(0,0,0,.5)","d:flex","jc:space-around","ai:center","h:fit-content!","p:10","rt:10","{d:flex;flex:column;jc:center;ai:center;gap:3px;}_ion-label","bt:.2|solid|rgba(255,255,255,.3)"],[1,"f:fade-90","f:0.9rem"],[2,"width","20px","height","20px","background-color","#FF8996","border-radius","50%"],[1,"rel"],["id","moon-phase-v2"],[1,"f:white","f:0.8rem","abs","top:50%","translateY(45%)","z:100"],[2,"width","20px","height","20px","background-color","#FFE8B4","border-radius","50%"],[1,"f:bold","f:white!","d:none@xs&<sm","text-align:center","my:10"],[1,"f:white","px:15","m:0","text-align:center"],[1,"max-h:100%","overflow-y:auto","d:flex","flex:column","gap:5","gap:10@>sm","p:5","p:10@>sm","px:1rem@>sm"],["class","d:flex gap:5 ai:center p:5 {flex:1}>ion-label bb:1|solid|rgba(255,255,255,0.3) ",4,"ngFor","ngForOf"],["trigger","menu-btn","mode","ios","triggerAction","click"],[1,"bg:rgba(74,111,201,.3)","f:white!","r:7","max-w:80","min-h:110","p:5","mr:10","b:.5|solid|fade-86"],[1,"h:100%","w:100%","d:flex!","flex:column!","ai:center!",3,"click"],[1,"f:1.3rem","time","bb:0.2|solid|fade-96"],["fallbackImg","",1,"w:50","h:50",3,"src"],[1,"temp"],[1,"d:flex","gap:5","ai:center","p:5","{flex:1}>ion-label","bb:1|solid|rgba(255,255,255,0.3)"],[1,"d:flex","flex:column","bg:rgba(255,255,255,0.3)","p:3","r:5"],["fallbackImg","",1,"w:35","h:35",3,"src"],[1,"font-style:normal","f:0.8rem","d:flex","gap:5","f:white"],[1,"d:flex","flex:column","f:white","line-height:1","gap:5"],[1,"f:1.5rem@>sm","f:0.8rem@landscape","f:bold"],[1,"f:1.5rem","f:0.8rem@landscape","f:fade-88"],[1,"f:'TimesNewRoman',Times,serif","text-align:center","f:1.5rem@>sm","f:white","p:10|5","r:5","bg:rgba(255,255,255,0.3)"],[1,"font-style:normal","f:0.8rem"],[1,"d:flex","flex:column","jc:center","ai:center","p:10","f:white"],[1,"b:0.5px|dashed|#00c387","w:80","h:80","bg:url('assets/img/icon.png')","bg:fixed","bg:center","bg:cover","bg:no-repeat"],[1,"p:15","f:white","text-center"],[1,"text-align:center"]],template:function(t,a){1&t&&(e.TgZ(0,"ion-content")(1,"main",0)(2,"section",1)(3,"header",2)(4,"ion-label",3)(5,"b"),e._uU(6,"B"),e.qZA(),e._uU(7,"usu"),e.TgZ(8,"b"),e._uU(9,"C"),e.qZA(),e._uU(10,"ity "),e.TgZ(11,"span",4),e._uU(12," - weather"),e.qZA()(),e.TgZ(13,"div",5)(14,"ion-text",6),e._uU(15),e.ALo(16,"date"),e.qZA(),e._UZ(17,"fa-icon",7),e.qZA()(),e.TgZ(18,"ion-text",8)(19,"q"),e._uU(20),e.qZA()(),e.TgZ(21,"footer",9)(22,"div",10)(23,"h1",11),e._uU(24),e.qZA(),e.TgZ(25,"h1",12),e._uU(26),e.ALo(27,"uppercase"),e.qZA()(),e._UZ(28,"hr",13),e.TgZ(29,"div"),e._UZ(30,"div",14)(31,"div",15),e.TgZ(32,"swiper-container",16),e.YNc(33,f,7,3,"swiper-slide",17),e.qZA()()()(),e.TgZ(34,"aside",18)(35,"div",19)(36,"div",20)(37,"span"),e._UZ(38,"fa-icon",21),e.TgZ(39,"ion-text",22),e._uU(40),e.qZA()(),e.TgZ(41,"span",23),e._UZ(42,"fa-icon",24),e.TgZ(43,"ion-text",22),e._uU(44),e.TgZ(45,"sup"),e._uU(46,"2"),e.qZA()()(),e.TgZ(47,"span"),e._UZ(48,"fa-icon",25),e.TgZ(49,"ion-text",22),e._uU(50),e.qZA()()(),e.TgZ(51,"div",26)(52,"ion-label",27),e._UZ(53,"span",28),e.TgZ(54,"ion-text"),e._uU(55),e.qZA()(),e.TgZ(56,"ion-label",29),e._UZ(57,"ion-label",30),e.TgZ(58,"ion-text",31),e._uU(59),e.TgZ(60,"sup"),e._uU(61,"th"),e.qZA()()(),e.TgZ(62,"ion-label",27),e._UZ(63,"span",32),e.TgZ(64,"ion-text"),e._uU(65),e.qZA()()(),e.TgZ(66,"ion-title",33),e._uU(67),e.qZA(),e.TgZ(68,"h6",34),e._uU(69),e.qZA()(),e.TgZ(70,"div",35),e.YNc(71,w,18,9,"li",36),e.qZA()()(),e.TgZ(72,"ion-popover",37),e.YNc(73,Z,15,0,"ng-template"),e.qZA()()),2&t&&(e.xp6(1),e.Gre("bg:url(","assets/img/"+a.displayImg,") bg:fixed bg:center bg:cover bg:no-repeat w:100% h:100% d:flex"),e.Q6J("onlyBgImg",!0)("src","assets/img/"+a.displayImg),e.xp6(14),e.Oqu(e.xi3(16,21,null==a.weatherService.todayWeatherData?null:a.weatherService.todayWeatherData.datetime,"LLL d, yyyy")),e.xp6(5),e.hij(" ",(null==a.weatherService.todayWeatherData?null:a.weatherService.todayWeatherData.description)||""," "),e.xp6(4),e.hij("",a.weatherService.fahrenheitToCelcius((null==a.weatherService.currentHourData?null:a.weatherService.currentHourData.temp)||0),"\xb0"),e.xp6(2),e.Oqu(e.lcZ(27,24,(null==a.weatherService.currentHourData?null:a.weatherService.currentHourData.conditions)||"")),e.xp6(6),e.Q6J("modules",a.swiperModules)("slidesPerView",5),e.xp6(1),e.Q6J("ngForOf",a.weatherService.todayHours),e.xp6(7),e.hij(" ",(null==a.weatherService.currentHourData?null:a.weatherService.currentHourData.precipprob)||0," % "),e.xp6(4),e.hij(" ",(null==a.weatherService.todayWeatherData?null:a.weatherService.todayWeatherData.solarenergy)||0," MJ/m"),e.xp6(6),e.hij(" ",(null==a.weatherService.currentHourData?null:a.weatherService.currentHourData.cloudcover)||0," % "),e.xp6(5),e.hij(" ",(null==a.weatherService.todayWeatherData?null:a.weatherService.todayWeatherData.sunrise)||""," "),e.xp6(4),e.hij(" ",a.weatherService.moonAge()||"",""),e.xp6(6),e.hij(" ",(null==a.weatherService.todayWeatherData?null:a.weatherService.todayWeatherData.sunset)||""," "),e.xp6(2),e.hij("Next ",null==a.forecastDays?null:a.forecastDays.length," Days Forecast"),e.xp6(2),e.hij(' "',null==a.weatherService||null==a.weatherService.weatherData?null:a.weatherService.weatherData.description,'" '),e.xp6(2),e.Q6J("ngForOf",a.forecastDays))},dependencies:[l.sg,s.W2,s.Q$,s.yW,s.wd,s.d8,g.BN,m.Z,l.gd,l.uU],styles:["ion-popover{--background: linear-gradient(to bottom,rgba(74,111,201,.8),#061011);--min-width: 400px;--width: 400px} ion-popover ion-content{--background: transparent !important}"]}),r})()}];let x=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[d.Bz.forChild(b),d.Bz]}),r})();var v=n(4446);let y=(()=>{class r{constructor(){}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[v._o,x]}),r})()}}]);