1"use strict";(self["webpackChunkPhone2Fork"]=self["webpackChunkPhone2Fork"]||[]).push([[91],{70091:function(t,e,n){n.r(e),n.d(e,{default:function(){return h}});var a=function(){var t=this,e=t._self._c;return e("main",{staticClass:"l-main l-main--header l-main--footer"},[e("Header"),e("section",{staticClass:"c-account l-section--vertPadding l-section--footerPaddingE h-centerText"},[e("h1",{staticClass:"f-h1"},[t._v("Chilled Team")]),e("hr",{staticClass:"o-hr"}),t.$store.getters.isAuthed&&t.$store.getters.isTeamMember?e("div",{staticClass:"team-menu-button-grid"},[t.$store.getters.moduleActive("app.management.chilledway")||t.$store.getters.showLab?e("TeamMenuButton",{attrs:{text:"The Chilled Recipe Book",icon:"book","font-size":"22",mt:"3",badge:t.recipeBookOutstandingQuizCount,link:"/site/"+t.$route.params.siteId+"/management/chilled-way/pages/home"}}):t._e(),t.$store.getters.moduleActive("app.management.dynamicForms")||t.$store.getters.showLab?e("TeamMenuButton",{attrs:{text:"Forms",icon:"news","font-size":"22",mt:"3",badge:t.dynamicFormsNotificationCount,link:"/site/"+t.$route.params.siteId+"/management/dynamic-forms"}}):t._e(),t.$store.getters.moduleActive("app.management.audits")||t.$store.getters.showLab?e("TeamMenuButton",{attrs:{text:"Audits",icon:"clipboard","font-size":"22",mt:"3",badge:t.venueAuditsOutstandingCount,link:"/site/"+t.$route.params.siteId+"/management/audits"}}):t._e(),t.$store.getters.moduleActive("app.management.teamInduction")||t.$store.getters.showLab?e("TeamMenuButton",{attrs:{text:"Alpaca Academy",icon:"alpaca-academy","font-size":"24",mt:"3",badge:t.teamInductionNotificationCount,link:"/site/"+t.$route.params.siteId+"/management/team-induction"}}):t._e(),t.$store.getters.moduleActive("app.management.oneToOneMeetings")||t.$store.getters.showLab?e("TeamMenuButton",{attrs:{text:"1-1 Meetings",icon:"contact","font-size":"22",mt:"1",badge:t.oneToOneOutstandingCount,link:"/site/"+t.$route.params.siteId+"/management/one-to-one"}}):t._e(),t.$store.getters.moduleActive("app.management.showHostTables")||t.$store.getters.showLab?e("TeamMenuButton",{attrs:{text:"Tables I'm Hosting Today",icon:"table","font-size":"22",mt:"3",link:"/site/"+t.$route.params.siteId+"/management/team-host-tables"}}):t._e(),t.$store.getters.isHost&&!t.$store.getters.isManagement?e("TeamMenuButton",{attrs:{text:"Payments",icon:"paybill","font-size":"22",mt:"3",link:"/site/"+t.$route.params.siteId+"/management/payments"}}):t._e(),e("TeamMenuButton",{attrs:{text:"New Menu Items",icon:"pizza","font-size":"22",mt:"3",link:"/site/"+t.$route.params.siteId+"/new-menu-products"}}),t.$store.getters.moduleActive("app.management.teamProducts")?e("TeamMenuButton",{attrs:{text:"Wine Club",icon:"drinks","font-size":"22",mt:"3",link:"/site/"+t.$route.params.siteId+"/management/team-products/home"}}):t._e(),t.$store.getters.isHubTeam()?e("TeamMenuButton",{attrs:{text:"Hub Item Prep",icon:"search","font-size":"22",mt:"3",link:"/site/"+t.$route.params.siteId+"/management/hub/prep"}}):t._e()],1):t._e()])],1)},s=[],i=n(88467),o=n(80266),u=n(9669),r=n.n(u),m={name:"ManagementTeamMenu",components:{TeamMenuButton:o.Z,Header:i.Z},data(){return{recipeBookOutstandingQuizCount:0,dynamicFormsViewerOutstandingCount:0,dynamicFormsSubmitterUpdatesCount:0,teamInductionTrainerOutstandingCount:0,teamInductionMemberOutstandingCount:0,oneToOneOutstandingCount:0,venueAuditsOutstandingCount:0}},computed:{dynamicFormsNotificationCount(){return(Number(this.dynamicFormsViewerOutstandingCount)||0)+(Number(this.dynamicFormsSubmitterUpdatesCount)||0)},teamInductionNotificationCount(){return(Number(this.teamInductionMemberOutstandingCount)||0)+(Number(this.teamInductionTrainerOutstandingCount)||0)}},mounted(){!0===this.$store.getters.isAuthed&&this.$store.getters.isTeamMember?(this.$root.$emit("toggleFooter",!0),this.fetchRecipeBookOutstandingQuizCount(),this.fetchDynamicFormsViewerOutstandingCount(),this.fetchTeamInductionTrainerOutstandingCount(),this.fetchOneToOneOutstandingCount(),this.fetchVenueAuditsOutstandingCount()):this.$router.go(-1)},watch:{"$route.params.siteId"(){this.fetchRecipeBookOutstandingQuizCount(),this.fetchDynamicFormsViewerOutstandingCount(),this.fetchTeamInductionTrainerOutstandingCount(),this.fetchOneToOneOutstandingCount(),this.fetchVenueAuditsOutstandingCount()}},methods:{fetchRecipeBookOutstandingQuizCount(){const t=this.$store.getters.showLab,e=this.$store.getters.moduleActive("app.management.chilledway.quiz");e||t?r().get("/chilled-way/quizzes",{skipInactiveAccount403:!0}).then((t=>{const e=t&&t.data&&t.data.meta&&t.data.meta.counts?t.data.meta.counts:null;this.recipeBookOutstandingQuizCount=e&&"number"===typeof e.outstanding?e.outstanding:0})).catch((()=>{this.recipeBookOutstandingQuizCount=0})):this.recipeBookOutstandingQuizCount=0},fetchDynamicFormsViewerOutstandingCount(){const t=this.$store.getters.showLab,e=this.$store.getters.moduleActive("app.management.dynamicForms");if(!e&&!t)return this.dynamicFormsViewerOutstandingCount=0,void(this.dynamicFormsSubmitterUpdatesCount=0);const n=this.$route.params.siteId;if(!n)return this.dynamicFormsViewerOutstandingCount=0,void(this.dynamicFormsSubmitterUpdatesCount=0);r().get("/site/"+n+"/management/dynamic-forms/viewer-outstanding-count",{skipInactiveAccount403:!0}).then((t=>{const e=t&&t.data&&t.data.data?t.data.data:null;this.dynamicFormsViewerOutstandingCount=e&&"number"===typeof e.outstanding?e.outstanding:0,this.dynamicFormsSubmitterUpdatesCount=e&&"number"===typeof e.submitter_updates?e.submitter_updates:0}
1)).catch((()=>{this.dynamicFormsViewerOutstandingCount=0,this.dynamicFormsSubmitterUpdatesCount=0}))},fetchTeamInductionTrainerOutstandingCount(){const t=this.$store.getters.showLab,e=this.$store.getters.moduleActive("app.management.teamInduction");if(!e&&!t)return this.teamInductionTrainerOutstandingCount=0,void(this.teamInductionMemberOutstandingCount=0);const n=this.$route.params.siteId;if(!n)return this.teamInductionTrainerOutstandingCount=0,void(this.teamInductionMemberOutstandingCount=0);r().get("/site/"+n+"/management/team-induction/trainer-outstanding-count",{skipInactiveAccount403:!0}).then((t=>{const e=t&&t.data&&t.data.data?t.data.data:null;this.teamInductionTrainerOutstandingCount=e&&e.can_assess&&"number"===typeof e.outstanding?e.outstanding:0,this.teamInductionMemberOutstandingCount=e&&"number"===typeof e.member_outstanding?e.member_outstanding:0})).catch((()=>{this.teamInductionTrainerOutstandingCount=0,this.teamInductionMemberOutstandingCount=0}))},fetchOneToOneOutstandingCount(){const t=this.$store.getters.showLab,e=this.$store.getters.moduleActive("app.management.oneToOneMeetings");if(!e&&!t)return void(this.oneToOneOutstandingCount=0);const n=this.$route.params.siteId;n?r().get("/site/"+n+"/management/one-to-one/outstanding-count",{skipInactiveAccount403:!0}).then((t=>{const e=t&&t.data&&t.data.data?t.data.data:null;this.oneToOneOutstandingCount=e&&"number"===typeof e.outstanding?e.outstanding:0})).catch((()=>{this.oneToOneOutstandingCount=0})):this.oneToOneOutstandingCount=0},fetchVenueAuditsOutstandingCount(){const t=this.$store.getters.showLab,e=this.$store.getters.moduleActive("app.management.audits");if(!e&&!t)return void(this.venueAuditsOutstandingCount=0);const n=this.$route.params.siteId;n?r().get("/site/"+n+"/management/audits/outstanding-count",{skipInactiveAccount403:!0}).then((t=>{const e=t&&t.data&&t.data.data?t.data.data:{};this.venueAuditsOutstandingCount="number"===typeof e.outstanding?e.outstanding:0})).catch((()=>{this.venueAuditsOutstandingCount=0})):this.venueAuditsOutstandingCount=0}}},d=m,c=n(1001),g=(0,c.Z)(d,a,s,!1,null,null,null),h=g.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.