(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["a3d3daaa"],{"2d11":function(i,t,e){},"3a36":function(i,t,e){"use strict";var n=e("2d11"),o=e.n(n);o.a},bb49:function(i,t,e){"use strict";e.r(t);var n,o,a=e("7037"),s=e.n(a),r=e("ef81"),f={name:"NotificationBar",data:function(){return{isOffline:!1,hide:!1}},computed:{isDev:{get:function(){return!1},cache:!1},showBar:{get:function(){return(this.isDev||this.isOffline)&&"object"===s()(this.barProperties)},cache:!1},barProperties:{get:function(){return this.isOffline?{type:"negative",icon:"fal fa-wifi-slash",message:this.$t("error.notificationBar.offline"),detail:""}:!!this.isDev&&{type:"info",icon:"fab fa-dev",message:this.$t("error.notificationBar.devMode.message"),detail:this.$t("error.notificationBar.devMode.detail")}},cache:!1}},watch:{isOffline:{handler:function(i){i||this.$q.notify({message:this.$t("error.notificationBar.online"),timeout:3e3,type:"positive",icon:"fal fa-wifi",position:"bottom"})}}},beforeMount:function(){window.addEventListener("offline",this.checkNetworkStatus),window.addEventListener("online",this.checkNetworkStatus)},mounted:function(){setTimeout(this.hideNotification,5e3)},methods:{checkNetworkStatus:function(){this.isOffline=!navigator.onLine},hideNotification:function(){this.$refs.notificationAlert&&(this.$refs.notificationAlert.$el.classList.add("hideAlert"),setTimeout(function(){document.getElementById("notificationBar").style.display="none"},1600))}},render:function(i){var t=this;return this.showBar?i(r["a"],{ref:"notificationAlert",style:{borderRadius:0},attrs:{id:"notificationBar"},props:{type:this.barProperties.type,icon:this.barProperties.icon,detail:this.barProperties.detail,actions:[{label:"OK",icon:"done",handler:function(){t.hideNotification()}}]}},this.barProperties.message):null}},c=f,d=(e("3a36"),e("2877")),h=Object(d["a"])(c,n,o,!1,null,null,null);h.options.__file="notificationBar.vue";t["default"]=h.exports}}]);
//# sourceMappingURL=a3d3daaa.0bcf9757.2024-10-22T18:36:13.257Z.js.map