PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
wilcity
/
assets
/
production
/
js
(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{520:function(t,i,s){"use strict";s.r(i);var e=s(752),a=s(653);for(var o in a)"default"!==o&&function(t){s.d(i,t,function(){return a[t]})}(o);var n=s(0),r=Object(n.a)(a.default,e.a,e.b,!1,null,null,null);r.options.__file="assets/dev/js/shortcodes/MessageNotifications.vue",i.default=r.exports},653:function(t,i,s){"use strict";s.r(i);var e=s(654),a=s.n(e);for(var o in e)"default"!==o&&function(t){s.d(i,t,function(){return e[t]})}(o);i.default=a.a},654:function(t,i,s){"use strict";var e=s(1);Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=e(s(114)),o=e(s(373)),n=e(s(79)),r=s(4),l={data:function(){return{oTranslation:WILCITY_I18,isShowing:!1,isLoading:"no",isListenOutsideClick:!1,needDashboardUrl:"yes",errMsg:"",messageDashboardUrl:this.dashboardUrl+"#/messages",countNewNotifications:0,oNotifications:null}},props:["userId","dashboardUrl"],components:{BlockLoading:n.default},watch:{oNewMessages:{handler:function(t){if(null===t)this.countNewNotifications=0;else{var i=Object.values(t).filter(function(t){return!0===t.new});this.countNewNotifications=i.length,i.sort(function(t,i){return i.timestamp-t.timestamp}),this.oNotifications=(0,o.default)(i)}},immediate:!0}},computed:(0,a.default)({wrapperNotificationsClass:function(){return this.isShowing?"header_loginBody__2hz2g active":"header_loginBody__2hz2g"},aCssClass:function(){return this.isShowing?"header_loginHead__3HoVP active":"header_loginHead__3HoVP"}},(0,r.mapState)({oNewMessages:function(t){return t.ModuleMessage.oMyNewMessages},isUsingFirebase:function(t){return"yes"===t.ModuleMessage.isUsingFirebase}})),mounted:function(){var t=this;this.isUsingFirebase?this.getMyNewMessages():setTimeout(function(){t.fetchNewNotifications(),t.$store.commit("updateTimeout")},this.$store.getters.getTimeout),this.hideMenuWhenOutsideClick()},methods:{getMyNewMessages:function(){var t=this;return this.$store.dispatch("ModuleMessage/signInToFirebase").then(function(i){i&&t.$store.dispatch("ModuleMessage/fetchMyNewMessages")})},renderLink:function(t){return this.isUsingFirebase?this.dashboardUrl+"#/messages?u="+t.displayName:t.link},buildUserKey:function(){return"___"+this.userId+"___"},sentAt:function(t){return this.isUsingFirebase?WilCityHelpers.timestampToDate(t.timestamp):t.time},pollingNotification:function(){var t=this;setInterval(function(){t.fetchNewNotifications()},3e5)},fetchNewNotifications:function(){var t=this;jQuery.ajax({type:"POST",url:WILOKE_GLOBAL.ajaxurl,data:{action:"wilcity_count_new_messages"},success:function(i){t.countNewNotifications=i.data}})},toggleShowing:function(){var t=this;this.isShowing=!this.isShowing,this.isUsingFirebase?this.isLoading="no":(this.isLoading="yes",jQuery.ajax({type:"post",url:WILOKE_GLOBAL.ajaxurl,data:{action:"wilcity_fetch_list_messages",needDashboardUrl:this.needDashboardUrl,limit:5},success:function(i){i.success?(t.oNotifications=i.data.aInfo,"#"===t.messageDashboardUrl&&(t.messageDashboardUrl=i.data.dashboardUrl,t.needDashboardUrl="no")):t.errMsg=i.data.msg,t.isLoading="no"}}))},hideMenuWhenOutsideClick:function(){var t=this;jQuery(document).on("click",function(i){jQuery(i.target).hasClass("js-message-notification")||(t.isShowing=!1)})}}};i.default=l},752:function(t,i,s){"use strict";var e=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("a",{class:t.aCssClass,attrs:{href:"#","data-toggle-minWidth":"768",dataTooltip:t.oTranslation.messages,"data-tooltip-placement":"top","data-tooltip-theme":"light"},on:{click:function(i){return i.preventDefault(),t.toggleShowing(i)}}},[s("i",{staticClass:"la la-envelope js-message-notification"}),s("span",{directives:[{name:"show",rawName:"v-show",value:t.countNewNotifications,expression:"countNewNotifications"}],staticClass:"header_number__1a6F5 bg-color-quaternary"},[t._v(t._s(t.countNewNotifications))])]),t._v(" "),s("div",{class:t.wrapperNotificationsClass},[s("div",{directives:[{name:"show",rawName:"v-show",value:"yes"==t.isLoading,expression:"isLoading=='yes'"}],staticClass:"pos-r",staticStyle:{"min-height":"100px"}},[s("block-loading",{attrs:{"is-loading":t.isLoading,position:"pos-a-center"}})],1),t._v(" "),s("ul",{directives:[{name:"show",rawName:"v-show",value:"no"==t.isLoading,expression:"isLoading=='no'"}],staticClass:"list-utility_module__32oNg list-none list-utility_abs__OYiyL arrow--top-right"},[t._l(t.oNotifications,function(i){return s("li",{staticClass:"list-utility_list__1DzGk"},[s("a",{staticClass:"list-utility_link__3BRZx",attrs:{href:t.renderLink(i)}},[s("div",{staticClass:"utility-box-1_module__MYXpX utility-box-1_sm__mopok utility-box-1_boxLeft__3iS6b clearfix "},[i.avatar?s("div",{staticClass:"utility-box-1_avatar__DB9c_ rounded-circle",style:{"background-image":"url("+i.avatar+")"}},[s("img",{attrs:{src:i.avatar,alt:i.displayName}})]):t._e(),t._v(" "),s("div",{staticClass:"utility-box-1_body__8qd9j"},[s("div",{staticClass:"utility-box-1_group__2ZPA2 text-ellipsis",staticStyle:{"white-space":"normal"}},[i.displayName?s("h3",{staticClass:"utility-box-1_title__1I925",domProps:{innerHTML:t._s(i.displayName)}}):t._e(),t._v(" "),s("div",{staticClass:"utility-box-1_content__3jEL7",domProps:{innerHTML:t._s(i.message)}})]),t._v(" "),s("div",{staticClass:"utility-box-1_description__2VDJ6"},[s("i",{staticClass:"la la-comments color-primary"}),t._v(" "),s("span",{domProps:{innerHTML:t._s(t.sentAt(i))}})])])])])])}),t._v(" "),s("li",{staticClass:"list-utility_list__1DzGk"},[s("a",{staticClass:"list-utility_more__2Y_w7 wil-text-center color-primary--hover",attrs:{href:t.messageDashboardUrl},domProps:{innerHTML:t._s(t.oTranslation.viewAll)}})])],2),t._v(" "),s("ul",{directives:[{name:"show",rawName:"v-show",value:t.errMsg.length,expression:"errMsg.length"}],staticClass:"list-utility_module__32oNg list-none list-utility_abs__OYiyL arrow--top-right"},[s("li",{staticClass:"list-utility_list__1DzGk"},[s("a",{staticClass:"list-utility_link__3BRZx",attrs:{href:"#"}},[s("div",{staticClass:"utility-box-1_module__MYXpX utility-box-1_sm__mopok utility-box-1_boxLeft__3iS6b clearfix"},[s("div",{staticClass:"utility-box-1_body__8qd9j"},[s("div",{staticClass:"utility-box-1_group__2ZPA2 text-ellipsis"},[s("div",{staticClass:"utility-box-1_content__3jEL7",domProps:{innerHTML:t._s(t.errMsg)}})])])])])])])])])},a=[];e._withStripped=!0,s.d(i,"a",function(){return e}),s.d(i,"b",function(){return a})}}]);
[+]
..
[-] vendors~WilAddToCalendar~WilFieldsGroup~WilSearchFormV1.0.js
[edit]
[-] review.min.js
[edit]
[-] 30.min.js
[edit]
[-] WilDateRange.WilDateRange.js
[edit]
[-] 70.min.js
[edit]
[-] 26.min.js
[edit]
[-] 14.14.js
[edit]
[-] map.min.js
[edit]
[-] 66.min.js
[edit]
[-] shortcodes.min.js
[edit]
[-] 91.min.js
[edit]
[-] 24.24.js
[edit]
[-] single-general.min.js
[edit]
[-] WilSingleNavPosts.WilSingleNavPosts.js
[edit]
[-] 51.min.js
[edit]
[-] 11.min.js
[edit]
[-] 2.min.js
[edit]
[-] WilSocialSharingFacebook.WilSocialSharingFacebook.js
[edit]
[-] WilSocialSharingVk.WilSocialSharingVk.js
[edit]
[-] 47.min.js
[edit]
[-] LoginForm.LoginForm.js
[edit]
[-] WilSocialSharingLinkedIn.WilSocialSharingLinkedIn.js
[edit]
[-] 87.min.js
[edit]
[-] vendors~WilMapbox.vendors~WilMapbox.js
[edit]
[-] vendors~UserProfile.vendors~UserProfile.js
[edit]
[-] no-map-search.min.js
[edit]
[-] SearchFormV2.min.js
[edit]
[-] 72.min.js
[edit]
[-] quick-search.min.js
[edit]
[-] WilReviewDiscussionForm.WilReviewDiscussionForm.js
[edit]
[-] .DS_Store
[edit]
[-] 32.min.js
[edit]
[-] 29.min.js
[edit]
[-] WilCheckoutPopup.WilCheckoutPopup.js
[edit]
[-] WilokeStripe.min.js
[edit]
[-] 69.min.js
[edit]
[-] WilAddToCalendar.WilAddToCalendar.js
[edit]
[-] 0.0.js
[edit]
[-] single-event.min.js
[edit]
[-] single-mapbox.min.js
[edit]
[-] WilSocialSharingCopy.WilSocialSharingCopy.js
[edit]
[-] 64.min.js
[edit]
[-] proceedPayment.min.js
[edit]
[-] 24.min.js
[edit]
[-] LoginRegisterPopup.LoginRegisterPopup.js
[edit]
[-] 25.25.js
[edit]
[-] addlisting.min.js
[edit]
[-] 88.min.js
[edit]
[-] 0.min.js
[edit]
[-] 13.min.js
[edit]
[-] 53.min.js
[edit]
[-] vendors~WilFieldsGroup.vendors~WilFieldsGroup.js
[edit]
[-] WilGrid.WilGrid.js
[edit]
[-] WilListingSettingsEditNavigation.WilListingSettingsEditNavigation.js
[edit]
[-] 48.min.js
[edit]
[-] WilBoxesIconItem.WilBoxesIconItem.js
[edit]
[-] WilToggleController.WilToggleController.js
[edit]
[-] WilListingSettingsGeneral.WilListingSettingsGeneral.js
[edit]
[-] 5.5.js
[edit]
[-] 15.15.js
[edit]
[-] WilGridCustomSelectField.WilGridCustomSelectField.js
[edit]
[-] 85.min.js
[edit]
[-] 45.min.js
[edit]
[-] WilPromotionListingStatistic.WilPromotionListingStatistic.js
[edit]
[-] 39.min.js
[edit]
[-] mapbox.min.js
[edit]
[-] 79.min.js
[edit]
[-] 62.min.js
[edit]
[-] WilSingleNavTerm.WilSingleNavTerm.js
[edit]
[-] 22.min.js
[edit]
[-] 74.min.js
[edit]
[-] 17.17.js
[edit]
[-] vendors~WilFieldsGroup~WilSearchFormList.vendors~WilFieldsGroup~WilSearchFormList.js
[edit]
[-] 4.4.js
[edit]
[-] resetPassword.min.js
[edit]
[-] WilReviewDetails.WilReviewDetails.js
[edit]
[-] 34.min.js
[edit]
[-] general.min.js
[edit]
[-] WilokeGoogleMap.min.js
[edit]
[-] WilGoogleMap.WilGoogleMap.js
[edit]
[-] WilIcon.WilIcon.js
[edit]
[-] LoginRegister.min.js
[edit]
[-] WilRestaurantMenuItem.WilRestaurantMenuItem.js
[edit]
[-] 58.min.js
[edit]
[-] 27.27.js
[edit]
[-] UserProfile.UserProfile.js
[edit]
[-] WilCouponPopup.WilCouponPopup.js
[edit]
[-] 18.min.js
[edit]
[-] 83.min.js
[edit]
[-] single-settings-sidebar.min.js
[edit]
[-] 1.1.js
[edit]
[-] single-google-map.min.js
[edit]
[-] 43.min.js
[edit]
[-] customLogin.min.js
[edit]
[-] LostPasswordForm.LostPasswordForm.js
[edit]
[-] 15.min.js
[edit]
[-] 6.min.js
[edit]
[-] 55.min.js
[edit]
[-] WilSingleNavWrapper.WilSingleNavWrapper.js
[edit]
[-] 20.min.js
[edit]
[-] 60.min.js
[edit]
[-] WilCouponListing.WilCouponListing.js
[edit]
[-] 30.30.js
[edit]
[-] WilSocialSharingPinterest.WilSocialSharingPinterest.js
[edit]
[-] 36.min.js
[edit]
[-] WilSingleNavMyProducts.WilSingleNavMyProducts.js
[edit]
[-] vendors~WilDateRange~WilFieldsGroup.vendors~WilDateRange~WilFieldsGroup.js
[edit]
[-] 26.26.js
[edit]
[-] WilSocialSharingTumblr.WilSocialSharingTumblr.js
[edit]
[-] single-listing.min.js
[edit]
[-] 76.min.js
[edit]
[-] activeListItem.min.js
[edit]
[-] 41.min.js
[edit]
[-] FavoriteStatistics.min.js
[edit]
[-] 81.min.js
[edit]
[-] 9.min.js
[edit]
[-] 16.16.js
[edit]
[-] WilListingSettings.WilListingSettings.js
[edit]
[-] WilFavorite.WilFavorite.js
[edit]
[-] 57.min.js
[edit]
[-] 4.min.js
[edit]
[-] 17.min.js
[edit]
[-] WilSocialSharingEmail.WilSocialSharingEmail.js
[edit]
[-] 54.min.js
[edit]
[-] WilokeDirectBankTransfer.min.js
[edit]
[-] dashboard.min.js
[edit]
[-] 7.min.js
[edit]
[-] 14.min.js
[edit]
[-] WilEventDate.WilEventDate.js
[edit]
[-] 28.28.js
[edit]
[-] 19.min.js
[edit]
[-] 82.min.js
[edit]
[-] 12.12.js
[edit]
[-] index.min.js
[edit]
[-] 59.min.js
[edit]
[-] 42.min.js
[edit]
[-] WilReviewAverageRating.WilReviewAverageRating.js
[edit]
[-] WilSocialSharingReddit.WilSocialSharingReddit.js
[edit]
[-] 35.min.js
[edit]
[-] 75.min.js
[edit]
[-] 22.22.js
[edit]
[-] 9.9.js
[edit]
[-] WilSocialSharingDigg.WilSocialSharingDigg.js
[edit]
[-] app.min.js
[edit]
[-] 78.min.js
[edit]
[-] 38.min.js
[edit]
[-] 23.min.js
[edit]
[-] 63.min.js
[edit]
[-] 18.18.js
[edit]
[-] 19.19.js
[edit]
[-] WilGridFeaturedImage.WilGridFeaturedImage.js
[edit]
[-] WilGridTerm.WilGridTerm.js
[edit]
[-] 16.min.js
[edit]
[-] 5.min.js
[edit]
[-] bundle.min.js
[edit]
[-] WilEventWeekly.WilEventWeekly.js
[edit]
[-] MagnificGalleryPopup.min.js
[edit]
[-] 56.min.js
[edit]
[-] WilBoxesColorItems.WilBoxesColorItems.js
[edit]
[-] RegisterForm.RegisterForm.js
[edit]
[-] WilSingleNavPhotos.WilSingleNavPhotos.js
[edit]
[-] 40.min.js
[edit]
[-] 3.3.js
[edit]
[-] 23.23.js
[edit]
[-] 80.min.js
[edit]
[-] vendors~WilGoogleMap.vendors~WilGoogleMap.js
[edit]
[-] 8.min.js
[edit]
[-] WilCountdown.WilCountdown.js
[edit]
[-] AppleLogin.AppleLogin.js
[edit]
[-] vendors~WilAddToCalendar~WilSearchFormV1.vendors~WilAddToCalendar~WilSearchFormV1.js
[edit]
[-] 6.6.js
[edit]
[-] 13.13.js
[edit]
[-] 77.min.js
[edit]
[-] 37.min.js
[edit]
[-] 29.29.js
[edit]
[-] 61.min.js
[edit]
[-] WilokePayPal.min.js
[edit]
[-] 21.min.js
[edit]
[-] WilFieldsGroup.WilFieldsGroup.js
[edit]
[-] WilMapbox.WilMapbox.js
[edit]
[-] WilReviewDiscussionItem.WilReviewDiscussionItem.js
[edit]
[-] 46.min.js
[edit]
[-] WilReviewDetail.WilReviewDetail.js
[edit]
[-] becomeAnAuthor.min.js
[edit]
[-] 86.min.js
[edit]
[-] WilSearchFormPriceRange.WilSearchFormPriceRange.js
[edit]
[-] WilGridAverageRating.WilGridAverageRating.js
[edit]
[-] 90.min.js
[edit]
[-] 11.11.js
[edit]
[-] WilSocialSharingTwitter.WilSocialSharingTwitter.js
[edit]
[-] 3.min.js
[edit]
[-] 10.min.js
[edit]
[-] 7.7.js
[edit]
[-] 50.min.js
[edit]
[-] 67.min.js
[edit]
[-] 2.2.js
[edit]
[-] WilListingSettingsSidebar.WilListingSettingsSidebar.js
[edit]
[-] 27.min.js
[edit]
[-] vendors~WilCountdown.vendors~WilCountdown.js
[edit]
[-] 21.21.js
[edit]
[-] HeroSearchForm.min.js
[edit]
[-] WilSingleNavCustomContent.WilSingleNavCustomContent.js
[edit]
[-] SocialsLogin.SocialsLogin.js
[edit]
[-] WilokeSubmissionCouponCode.min.js
[edit]
[-] Follow.min.js
[edit]
[-] default~WilGoogleMap~WilMapbox.default~WilGoogleMap~WilMapbox.js
[edit]
[-] WilMessageBtn.WilMessageBtn.js
[edit]
[-] WilReportPopup.WilReportPopup.js
[edit]
[-] WilGridSkeleton.WilGridSkeleton.js
[edit]
[-] WilMessagePopup.WilMessagePopup.js
[edit]
[-] WilSocialSharingStumbleupon.WilSocialSharingStumbleupon.js
[edit]
[-] 71.min.js
[edit]
[-] 31.min.js
[edit]
[-] vendors~VueGallerySlideshow.vendors~VueGallerySlideshow.js
[edit]
[-] 84.min.js
[edit]
[-] WilSearchFormV1.WilSearchFormV1.js
[edit]
[-] SearchFormV1.min.js
[edit]
[-] vendors~WilGoogleMap~WilMapbox.vendors~WilGoogleMap~WilMapbox.js
[edit]
[-] WilSearchFormList.WilSearchFormList.js
[edit]
[-] 44.min.js
[edit]
[-] WilLayoutSwitch.WilLayoutSwitch.js
[edit]
[-] WilSingleNavContent.WilSingleNavContent.js
[edit]
[-] WilSocialSharingWhatsapp.WilSocialSharingWhatsapp.js
[edit]
[-] WilGridItem.WilGridItem.js
[edit]
[-] 52.min.js
[edit]
[-] 89.min.js
[edit]
[-] 12.min.js
[edit]
[-] 1.min.js
[edit]
[-] 20.20.js
[edit]
[-] WilFavoriteBtn.WilFavoriteBtn.js
[edit]
[-] 92.min.js
[edit]
[-] WilSingleNavVideos.WilSingleNavVideos.js
[edit]
[-] WilCommentForm.WilCommentForm.js
[edit]
[-] 8.8.js
[edit]
[-] 49.min.js
[edit]
[-] WilPromotionBtn.WilPromotionBtn.js
[edit]
[-] WilSocialSharingLists.WilSocialSharingLists.js
[edit]
[-] WilSingleListProducts.WilSingleListProducts.js
[edit]
[-] googlemap.min.js
[edit]
[-] WilQuickSearchFormPopup.WilQuickSearchFormPopup.js
[edit]
[-] vendors~single-general.min.js
[edit]
[-] 10.10.js
[edit]
[-] 25.min.js
[edit]
[-] WilSingleProductTwo.WilSingleProductTwo.js
[edit]
[-] 65.min.js
[edit]
[-] RegisterLogin.RegisterLogin.js
[edit]
[-] 33.min.js
[edit]
[-] 73.min.js
[edit]
[-] vendors~WilSearchFormV1.vendors~WilSearchFormV1.js
[edit]
[-] 68.min.js
[edit]
[-] 28.min.js
[edit]