(function(t){function e(e){for(var a,n,o=e[0],d=e[1],u=e[2],m=0,h=[];m<o.length;m++)n=o[m],Object.prototype.hasOwnProperty.call(r,n)&&r[n]&&h.push(r[n][0]),r[n]=0;for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(t[a]=d[a]);c&&c(e);while(h.length)h.shift()();return i.push.apply(i,u||[]),s()}function s(){for(var t,e=0;e<i.length;e++){for(var s=i[e],a=!0,o=1;o<s.length;o++){var d=s[o];0!==r[d]&&(a=!1)}a&&(i.splice(e--,1),t=n(n.s=s[0]))}return t}var a={},r={app:0},i=[];function n(e){if(a[e])return a[e].exports;var s=a[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=a,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(s,a,function(e){return t[e]}.bind(null,a));return s},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],d=o.push.bind(o);o.push=e,o=o.slice();for(var u=0;u<o.length;u++)e(o[u]);var c=d;i.push([0,"chunk-vendors"]),s()})({0:function(t,e,s){t.exports=s("56d7")},4678:function(t,e,s){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(t){var e=i(t);return s(e)}function i(t){if(!s.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}r.keys=function(){return Object.keys(a)},r.resolve=i,t.exports=r,r.id="4678"},"56d7":function(t,e,s){"use strict";s.r(e);s("e260"),s("e6cf"),s("cca6"),s("a79d");var a=s("2b0e"),r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"container mx-auto text-white",attrs:{id:"app"}},[s("modal",{attrs:{name:"popup",width:"30%",height:"50%"}},[s("h4",{staticClass:"text-center text-black text-2xl"},[t._v("Ramadhan Karim. Selamat Berpuasa dan Bangun Subuh")]),s("h6",{staticClass:"text-center text-black text-2xl"},[t._v("dari Izzudin Anuar")])]),s("div",{staticClass:"flex-row"},[s("h1",{staticClass:"text-center text-6xl"},[t._v(t._s(t.displayTime))]),s("h2",{staticClass:"text-center text-3xl"},[t._v(t._s(t.displayDate))])]),s("div",{staticClass:"flex justify-center"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.location,expression:"location"}],staticClass:"shadow appearance-none border rounded w-64 py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline",attrs:{type:"text"},domProps:{value:t.location},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getPrayerTime(e)},input:function(e){e.target.composing||(t.location=e.target.value)}}})]),s("div",{staticClass:"flex justify-center p-5"},[s("button",{on:{click:function(e){return t.playAzan(t.azanPaths.AZAN1)}}},[t._v("Play Azan")])]),this.todayPrayerTimes?s("div",{staticClass:"flex space-around justify-center"},[s("div",{staticClass:"flex-col p-10 w-1/3"},[s("div",{staticClass:"text-5xl text-center"},[t._v(" Subuh ")]),s("div",{staticClass:"text-4xl text-center"},[t._v(" "+t._s(t.fajrTime)+" ")]),t.fajrShow?s("div",{staticClass:"text-xl text-center"},[t._v(" "+t._s(t.fajrCountdown)+" ")]):t._e()]),s("div",{staticClass:"flex-col p-10 w-1/3"},[s("div",{staticClass:"text-5xl text-center"},[t._v(" Subuh Habis ")]),s("div",{staticClass:"text-4xl text-center"},[t._v(" "+t._s(t.sunriseTime)+" ")]),t.sunriseShow?s("div",{staticClass:"text-xl text-center"},[t._v(" "+t._s(t.sunriseCountdown)+" ")]):t._e()]),s("div",{staticClass:"flex-col p-10 w-1/3"},[s("div",{staticClass:"text-5xl text-center"},[t._v(" Zohor ")]),s("div",{staticClass:"text-4xl text-center"},[t._v(" "+t._s(t.dhuhrTime)+" ")]),t.dhuhrShow?s("div",{staticClass:"text-xl text-center"},[t._v(" "+t._s(t.dhuhrCountdown)+" ")]):t._e()])]):t._e(),this.todayPrayerTimes?s("div",{staticClass:"flex space-around justify-center"},[s("div",{staticClass:"flex-col p-10 w-1/3"},[s("div",{staticClass:"text-5xl text-center"},[t._v(" Asar ")]),s("div",{staticClass:"text-4xl text-center"},[t._v(" "+t._s(t.asrTime)+" ")]),t.asrShow?s("div",{staticClass:"text-xl text-center"},[t._v(" "+t._s(t.asrCountdown)+" ")]):t._e()]),s("div",{staticClass:"flex-col p-10 w-1/3"},[s("div",{staticClass:"text-5xl text-center"},[t._v(" Maghrib ")]),s("div",{staticClass:"text-4xl text-center"},[t._v(" "+t._s(t.maghribTime)+" ")]),t.maghribShow?s("div",{staticClass:"text-xl text-center"},[t._v(" "+t._s(t.maghribCountdown)+" ")]):t._e()]),s("div",{staticClass:"flex-col p-10 w-1/3"},[s("div",{staticClass:"text-5xl text-center"},[t._v(" Isha' ")]),s("div",{staticClass:"text-4xl text-center"},[t._v(" "+t._s(t.ishaTime)+" ")]),t.ishaShow?s("div",{staticClass:"text-xl text-center"},[t._v(" "+t._s(t.ishaCountdown)+" ")]):t._e()])]):t._e()],1)},i=[],n=(s("99af"),s("5aea"),s("bc3a")),o=s("c1df"),d={AZAN1:"/azan/Azan2020.mp3"},u={name:"app",data:function(){return{location:"Hamilton, New Zealand",prayerTimes:null,todayPrayerTimes:null,currentTime:null,azanPaths:d,isEndOfDay:!1}},computed:{displayTime:function(){return o(this.currentTime).format("h:mm:ss a")},displayDate:function(){return o(this.currentTime).format("MMMM Do YYYY")},fajrShow:function(){return this.currentTime.isBefore(this.todayPrayerTimes["Fajr"])||this.isEndOfDay},sunriseShow:function(){return this.currentTime.isBefore(this.todayPrayerTimes["Sunrise"])||this.isEndOfDay},dhuhrShow:function(){return this.currentTime.isBefore(this.todayPrayerTimes["Dhuhr"])||this.isEndOfDay},asrShow:function(){return this.currentTime.isBefore(this.todayPrayerTimes["Asr"])||this.isEndOfDay},maghribShow:function(){return this.currentTime.isBefore(this.todayPrayerTimes["Maghrib"])||this.isEndOfDay},ishaShow:function(){return this.currentTime.isBefore(this.todayPrayerTimes["Isha"])||this.isEndOfDay},fajrTime:function(){return this.todayPrayerTimes["Fajr"].format("h:mm:ss a")},sunriseTime:function(){return this.todayPrayerTimes["Sunrise"].format("h:mm:ss a")},dhuhrTime:function(){return this.todayPrayerTimes["Dhuhr"].format("h:mm:ss a")},asrTime:function(){return this.todayPrayerTimes["Asr"].format("h:mm:ss a")},maghribTime:function(){return this.todayPrayerTimes["Maghrib"].format("h:mm:ss a")},ishaTime:function(){return this.todayPrayerTimes["Isha"].format("h:mm:ss a")},fajrCountdown:function(){return parseInt(this.prayerTimesCountdown["Fajr"].asHours())+" hours "+parseInt(this.prayerTimesCountdown["Fajr"].asMinutes())%60+" minutes and "+parseInt(this.prayerTimesCountdown["Fajr"].asSeconds())%60+" seconds"},sunriseCountdown:function(){return parseInt(this.prayerTimesCountdown["Sunrise"].asHours())+" hours "+parseInt(this.prayerTimesCountdown["Sunrise"].asMinutes())%60+" minutes and "+parseInt(this.prayerTimesCountdown["Sunrise"].asSeconds())%60+" seconds"},dhuhrCountdown:function(){return parseInt(this.prayerTimesCountdown["Dhuhr"].asHours())+" hours "+parseInt(this.prayerTimesCountdown["Dhuhr"].asMinutes())%60+" minutes and "+parseInt(this.prayerTimesCountdown["Dhuhr"].asSeconds())%60+" seconds"},asrCountdown:function(){return parseInt(this.prayerTimesCountdown["Asr"].asHours())+" hours "+parseInt(this.prayerTimesCountdown["Asr"].asMinutes())%60+" minutes and "+parseInt(this.prayerTimesCountdown["Asr"].asSeconds())%60+" seconds"},maghribCountdown:function(){return parseInt(this.prayerTimesCountdown["Maghrib"].asHours())+" hours "+parseInt(this.prayerTimesCountdown["Maghrib"].asMinutes())%60+" minutes and "+parseInt(this.prayerTimesCountdown["Maghrib"].asSeconds())%60+" seconds"},ishaCountdown:function(){return parseInt(this.prayerTimesCountdown["Isha"].asHours())+" hours "+parseInt(this.prayerTimesCountdown["Isha"].asMinutes())%60+" minutes and "+parseInt(this.prayerTimesCountdown["Isha"].asSeconds())%60+" seconds"},prayerTimesCountdown:function(){var t={};return null!=this.prayerTimes&&(t["Asr"]=o.duration(this.todayPrayerTimes["Asr"].diff(this.currentTime)),t["Dhuhr"]=o.duration(this.todayPrayerTimes["Dhuhr"].diff(this.currentTime)),t["Fajr"]=o.duration(this.todayPrayerTimes["Fajr"].diff(this.currentTime)),t["Imsak"]=o.duration(this.todayPrayerTimes["Imsak"].diff(this.currentTime)),t["Isha"]=o.duration(this.todayPrayerTimes["Isha"].diff(this.currentTime)),t["Maghrib"]=o.duration(this.todayPrayerTimes["Maghrib"].diff(this.currentTime)),t["Midnight"]=o.duration(this.todayPrayerTimes["Midnight"].diff(this.currentTime)),t["Sunrise"]=o.duration(this.todayPrayerTimes["Sunrise"].diff(this.currentTime)),t["Sunset"]=o.duration(this.todayPrayerTimes["Sunset"].diff(this.currentTime))),t}},mounted:function(){window.moment=o,this.$modal.show("popup"),this.setTime(),this.updateTime();var t=o(this.currentTime).format("D"),e=o(this.currentTime).format("M"),s=o(this.currentTime).format("Y");this.getPrayerTime(t,e,s)},methods:{getPrayerTime:function(t,e,s){var a=this,r=2;n.get("https://api.aladhan.com/v1/calendarByAddress?address="+this.location+"&method=".concat(r,"&month=").concat(e,"&year=").concat(s)).then((function(r){a.prayerTimes=r.data["data"],a.todayPrayerTimes=a.prayerTimes[t-1]["timings"],a.todayPrayerTimes["Asr"]=o(a.todayPrayerTimes["Asr"],"HH:mm").year(s).month(e-1).date(t),a.todayPrayerTimes["Dhuhr"]=o(a.todayPrayerTimes["Dhuhr"],"HH:mm").year(s).month(e-1).date(t),a.todayPrayerTimes["Fajr"]=o(a.todayPrayerTimes["Fajr"],"HH:mm").year(s).month(e-1).date(t),a.todayPrayerTimes["Imsak"]=o(a.todayPrayerTimes["Imsak"],"HH:mm").year(s).month(e-1).date(t),a.todayPrayerTimes["Isha"]=o(a.todayPrayerTimes["Isha"],"HH:mm").year(s).month(e-1).date(t),a.todayPrayerTimes["Maghrib"]=o(a.todayPrayerTimes["Maghrib"],"HH:mm").year(s).month(e-1).date(t),a.todayPrayerTimes["Midnight"]=o(a.todayPrayerTimes["Midnight"],"HH:mm").year(s).month(e-1).date(t),a.todayPrayerTimes["Sunrise"]=o(a.todayPrayerTimes["Sunrise"],"HH:mm").year(s).month(e-1).date(t),a.todayPrayerTimes["Sunset"]=o(a.todayPrayerTimes["Sunset"],"HH:mm").year(s).month(e-1).date(t)})).catch((function(){a.getPrayerTime()}))},setTomorrowPrayerTimes:function(){var t=o(this.currentTime.add(1,"days")).format("D"),e=o(this.currentTime.add(1,"days")).format("M"),s=o(this.currentTime.add(1,"days")).format("Y");this.isEndOfDay=!0,this.getPrayerTime(t,e,s)},setTime:function(){this.currentTime=o()},updateTime:function(){setInterval(this.setTime,1e3),setInterval(this.playAzanIfTimed,1e3)},playAzanIfTimed:function(){var t=this.currentTime.format("HH:mm:ss");t==this.todayPrayerTimes["Fajr"].format("HH:mm:ss")?(this.isEndOfDay=!1,this.playAzan(this.azanPaths.AZAN1)):t==this.todayPrayerTimes["Dhuhr"].format("HH:mm:ss")||t==this.todayPrayerTimes["Asr"].format("HH:mm:ss")||t==this.todayPrayerTimes["Maghrib"].format("HH:mm:ss")?this.playAzan(this.azanPaths.AZAN1):t==this.todayPrayerTimes["Isha"].format("HH:mm:ss")?(this.playAzan(this.azanPaths.AZAN1),this.setTomorrowPrayerTimes()):this.currentTime.isAfter(this.todayPrayerTimes["Isha"])&&!this.isEndOfDay&&this.setTomorrowPrayerTimes()},playAzan:function(t){if(t){var e=new Audio(t);e.play()}}}},c=u,m=s("2877"),h=Object(m["a"])(c,r,i,!1,null,null,null),f=h.exports,y=s("1881"),l=s.n(y);a["a"].config.productionTip=!1,a["a"].use(l.a),new a["a"]({render:function(t){return t(f)}}).$mount("#app")},"5aea":function(t,e,s){}});
//# sourceMappingURL=app.3461e305.js.map