PageSourceSearch

https://www.cab.org.nz/_resources/app/client/dist/assets/StaffLangSupport-DiDJ7k3w.js

js cab.org.nz collected 2026-09-24 18:50:12 UTC 7,748 bytes, 23 lines download raw bytes

1import{i as s}from"./vendor-CHCIo3bd.js";import{n,k as r,F as l,H as c,D as o}from"./app-oVuUJ3MT.js";import"./vendor-filepond-C-Be2LEg.js";/* empty css            */const _={name:"staffLanguageSupport",components:{Dropdown:o,icon:s,Header:c,Footer:l},props:{public:{type:Boolean,default:!1}},data(){return{language:null,staff:[],pager:{},progress:!1}},computed:{staffByLanguage(){return this.staff.filter(i=>this.language&&i.langSupports.includes(this.language)||!this.language)},fetchStaffRequest(){return`/api/v1/bureau/languageSupport?lang=${this.language}`}},mixins:[r],created(){this.init()},watch:{language(){this.fetchStaff(this.fetchStaffRequest)}},methods:{init(){this.fetchStaff(this.fetchStaffRequest)},fetchStaff(i){this.progress=!0,this.$axios.get(i).then(t=>{this.staff=t.data.items,this.pager={total:t.data.total,pages:t.data.pages,current:t.data.current,next:t.data.next,back:t.data.back,end:t.data.end}}).catch(t=>{throw new Error("Faild to fetch users for this branch.",t)}).finally(()=>{this.progress=!1})},statusStyle(i){return{"background-color":i.currently_active?"#008E50":"#ccc",height:"43px",width:"43px"}},paginateNext(i){i.next&&this.fetchStaff(i.next)},paginateBack(i){i.back&&this.fetchStaff(i.back)}}};var d=function(){var t=this,a=t._self._c;return a("div",{staticClass:"language-support"},[a("Header"),t._v(" "),a("div",{staticClass:"flex flex--start content-header container pb-0"},[a("div",{staticClass:"column column-100 flex flex--column flex--end typography"},[a("div",{staticClass:"px-3 pb-3"},[a("div",{staticClass:"page__breadcrumbs hidden-print"},[a("ul",{staticClass:"unstyled"},[a("li",[a("a",{attrs:{href:"/",title:"Home"}},[t._v(`
2                Home
3              `)]),t._v(" "),a("icon",{attrs:{name:"caret-right"}})],1),t._v(" "),t._m(0)])]),t._v(" "),a("h1",{staticClass:"h1 font-avenir-medium mt-3 mb-1"},[t._v("Language support volunteers")])])])]),t._v(" "),a("div",{staticClass:"flex flex--start container pt-0"},[a("div",{staticClass:"column-100"},[t.public?a("div",{directives:[{name:"show",rawName:"v-show",value:t.$cabSettings.LangSupport.PublicIntro,expression:"$cabSettings.LangSupport.PublicIntro"}],staticClass:"bg--white p-3"},[a("div",{staticClass:"mr-lg-10",domProps:{innerHTML:t._s(t.$cabSettings.LangSupport.PublicIntro)}})]):a("div",{directives:[{name:"show",rawName:"v-show",value:t.$cabSettings.LangSupport.Intro,expression:"$cabSettings.LangSupport.Intro"}],staticClass:"bg--white p-3"},[a("div",{staticClass:"mr-lg-10",domProps:{innerHTML:t._s(t.$cabSettings.LangSupport.Intro)}})]),t._v(" "),a("div",{staticClass:"flex flex--start hidden-print bg--white mt-3 py-3 px-2"},[a("div",{staticClass:"column column-40"},[a("div",{staticClass:"flex flex--start group-filter"},[a("Dropdown",{staticClass:"column-80 m-0",attrs:{placeholder:"Select a language",multiple:!1,options:t.$cabSettings.LangSupport.Languages.filter(e=>t.$cabSettings.LangSupport.ActiveLanguageIds.includes(e.value)),validate:!1,searchable:!0},model:{value:t.language,callback:function(e){t.language=e},expression:"language"}}),t._v(" "),a("a",{directives:[{name:"show",rawName:"v-show",value:t.language,expression:"language"}],staticClass:"column-20 p-0 pt-2 pl-md-2 pt-md-3",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.language=null}}},[t._v(`
4              Clear
5            `)])],1)])]),t._v(" "),t.staff.length&&!t.progress?a("div",{staticClass:"bg--white mt-3 dashboard-list dashboard-list--generic"},[a("ul",{staticClass:"dashboard-list__list dashboard-list--generic-list no-list-style"},[a("li",{staticClass:"d-none d-xl-block"},[a("div",{staticClass:"dashboard-list__row dashboard-list__row--header read-only"},[a("div",{staticClass:"dashboard-list__item list__item--generic-graph list__item--generic-100 list__item--generic-first hidden-print"}),t._v(" "),t.public?t._e():a("div",{staticClass:"dashboard-list__item list__item--generic-250 list__item--generic-first"},[t._v(`
6                Name
7              `)]),t._v(" "),a("div",{staticClass:"dashboard-list__item list__item--generic-250"}
7,[t._v("Languages")]),t._v(" "),t.public?t._e():a("div",{staticClass:"dashboard-list__item list__item--generic-250"},[t._v(`
8                Usual availability
9              `)]),t._v(" "),a("div",{staticClass:"dashboard-list__item list__item--generic-250"},[t._v("CAB")]),t._v(" "),a("div",{staticClass:"dashboard-list__item list__item--generic-150"},[t._v("CAB Phone")]),t._v(" "),a("div",{staticClass:"dashboard-list__item list__item--generic-250"},[t._v("CAB Email")])])]),t._v(" "),t._l(t.staffByLanguage,function(e){return a("li",{key:e.id},[a("div",{staticClass:"dashboard-list__row read-only"},[a("div",{staticClass:"dashboard-list__item list__item--generic-graph list__item--generic-100 list__item--generic-first hidden-print"},[a("div",{staticClass:"user-circle",style:t.statusStyle(e),attrs:{title:e.currently_active?"Available":"Not available"}})]),t._v(" "),t.public?t._e():a("div",{staticClass:"dashboard-list__item list__item--generic-250 list__item--generic-first"},[t._v(`
10                `+t._s(e.name)+`
11              `)]),t._v(" "),a("div",{staticClass:"dashboard-list__item list__item--generic-250",domProps:{innerHTML:t._s(e.langSupportList.join("<br />"))}}),t._v(" "),t.public?t._e():a("div",{staticClass:"dashboard-list__item list__item--generic-250"},[t._v(`
12                `+t._s(e.langSupportAvailability)+`
13              `)]),t._v(" "),a("router-link",{staticClass:"dashboard-list__item list__item--generic-250",attrs:{to:{name:"cab",params:{name:e.activeRole.bureau.slug}}}},[t._v(`
14                `+t._s(e.activeRole.bureau.title)+`
15              `)]),t._v(" "),a("div",{staticClass:"dashboard-list__item list__item--generic-150",domProps:{innerHTML:t._s(e.activeRole.bureau.phone)}},[t._v(`
16                `+t._s(e.activeRole.bureau.phone)+`
17              `)]),t._v(" "),a("div",{staticClass:"dashboard-list__item list__item--generic-250"},[a("a",{attrs:{href:`mailto:${e.activeRole.bureau.email}`,title:`Email: ${e.activeRole.bureau.email}`}},[t._v(`
18                  `+t._s(e.activeRole.bureau.email)+`
19                `)])])],1)])})],2),t._v(" "),t.staff.length>1?a("div",{staticClass:"dashboard__inbox-list__pagination dashboard-list__pagination"},[t.pager.current>1?a("a",{staticClass:"dashboard-list__pagination__prev",attrs:{href:t.pager.back},on:{click:function(e){return e.preventDefault(),t.paginateBack(t.pager)}}},[a("icon",{attrs:{name:"cabicons-arrow-left"}}),t._v(" "),a("span",[t._v("Previous")])],1):a("div",{staticClass:"dashboard-list__pagination__prev dashboard-list__pagination__prev--disabled"},[a("icon",{attrs:{name:"cabicons-arrow-left"}})],1),t._v(" "),a("div",{staticClass:"dashboard-list__pagination__page"},[t._v(`
20            `+t._s(t.pager.current)+" - "+t._s(t.pager.end)+" of "+t._s(t.pager.total)+`
21          `)]),t._v(" "),t.pager.current<t.pager.end?a("a",{staticClass:"dashboard-list__pagination__next",attrs:{href:t.pager.next},on:{click:function(e){return e.preventDefault(),t.paginateNext(t.pager)}}},[a("span",[t._v("Next")]),t._v(" "),a("icon",{attrs:{name:"cabicons-arrow-right"}})],1):a("div",{staticClass:"dashboard-list__pagination__next dashboard-list__pagination__next--disabled"},[a("icon",{attrs:{name:"cabicons-arrow-right"}})],1)]):t._e()]):t.progress?a("div",{staticClass:"page-loading-wrapper m-5 text-center text--gray"},[a("icon",{attrs:{name:"spinner",scale:"4",pulse:""}})],1):a("div",{staticClass:"m-5 text-center text--gray"},[t._v(`
22        There are no records matches your filter.
23      `)])])]),t._v(" "),a("Footer")],1)},g=[function(){var i=this,t=i._self._c;return t("li",[t("span",[i._v("Language support volunteers")])])}],p=n(_,d,g,!1,null,null);const f=p.exports;export{f as default};

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.