/*! * xivado-web * Version: master-0e1b7c58 * Author: Anna Hiden * License: proprietary */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Teams"],{"0635":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container-xxl"},[n("h2",{directives:[{name:"t",rawName:"v-t",value:"page.profile.teams",expression:"'page.profile.teams'"}],staticClass:"page-title"}),n("Promised",{attrs:{promise:t.teams},scopedSlots:t._u([{key:"pending",fn:function(){return[n("div",{staticClass:"text-center py-6"},[n("spinner",{attrs:{color:"primary",width:"3rem",height:"3rem"}})],1)]},proxy:!0},{key:"rejected",fn:function(e){return[n("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[t._v(" "+t._s(e.message)+" ")])]}},{key:"default",fn:function(e){return[n("div",{staticClass:"row"},t._l(e,(function(e){return n("div",{key:"team"+e.id,staticClass:"col-12 col-sm-6 col-lg-4 col-xxl-3 mb-4"},[n("TeamCard",t._b({on:{confirm:function(a){t.confirm=e},addParticipant:function(a){t.addParticipant=e}},scopedSlots:t._u([{key:"member",fn:function(r){return[e.canRemoveMembers&&"captain"!==r.teamRole?n("button",{staticClass:"btn btn-outline-dark btn-sm ml-auto border-0",staticStyle:{"min-width":"0"},attrs:{type:"button"},on:{click:function(a){t.remove=[r,e]}}},[n("icon",{attrs:{src:a("d06c")}})],1):t._e()]}}],null,!0)},"TeamCard",e,!1))],1)})),0)]}}])}),t.remove?n("RemoveTeamMemberModal",{attrs:{value:!0,member:t.remove[0],team:t.remove[1]},on:{input:function(e){t.remove=null,t.fetch()}}}):t._e(),t.confirm?n("ConfirmTeamModal",{attrs:{value:!0,team:t.confirm},on:{input:function(e){t.confirm=null,t.fetch()}}}):t._e(),t.addParticipant?n("AddParticipantToTeamModal",{attrs:{value:!0,team:t.addParticipant},on:{input:function(e){t.addParticipant=null,t.fetch()}}}):t._e()],1)},r=[],i=a("27d1"),s=a("7f87"),o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card mb-4 h-100"},[n("div",{staticClass:"card-body d-flex flex-column"},[n("h3",{staticClass:"card-title font-condensed mb-0"},[t._v(" "+t._s(t.event.name)+" ")]),n("h6",{staticClass:"mb-4 mt-0"},[t._v(" "+t._s(t.competitionName)+" ")]),n("ul",{staticClass:"list-unstyled border-bottom pb-3"},[n("li",[n("icon",{staticClass:"mr-2",attrs:{src:a("7e93")}}),t.isSingleDayEvent?n("time",{attrs:{datetime:"event.startsAt"}},[t._v(t._s(t.$filters.date(t.event.startsAt)))]):n("DateRange",{attrs:{start:t.event.startsAt,end:t.event.endsAt}})],1),n("li",[n("div",{staticClass:"row"},[n("div",{staticClass:"col-auto pr-0"},[n("icon",{staticClass:"mr-2",attrs:{src:a("a7b5")}})],1),n("div",{staticClass:"col-9 px-0"},[n("span",[t._v(t._s(t.name))])])])])]),n("div",[n("div",{staticClass:"w-auto float-left"},[n("h5",{directives:[{name:"t",rawName:"v-t",value:"team.members",expression:"'team.members'"}],staticClass:"font-size-base"})]),n("div",{staticClass:"w-auto float-right"},[n("span",[t._v(t._s(t.members.length)+" / "+t._s(t.limit||t.members.length))])])]),n("ul",{class:["list-group list-group-flush flex-grow-1",t.$style.memberList]},[t._l(t.$members,(function(e){return n("li",{key:"member"+e.id,staticClass:"list-group-item px-0 d-flex align-items-center border-bottom-0"},[t._v(" "+t._s([e.firstname,e.lastname].join(" "))+" "),t._t("member",null,null,e)],2)})),t.members.length>t.$members.length?n("li",{staticClass:"list-group-item px-0"},[n("button",{directives:[{name:"t",rawName:"v-t",value:"team.expandMembers",expression:"'team.expandMembers'"}],staticClass:"btn btn-link p-0 font-weight-bold text-body",attrs:{type:"button"},on:{click:function(e){t.maxMembers=1/0}}})]):t._e()],2),n("div",{staticClass:"border-top pt-3"},[t.inviteLink?n("a",{attrs:{href:t.inviteLink},on:{click:function(e){return e.preventDefault(),t.copy(t.inviteLink)}}},[n("icon",{staticClass:"mr-2",attrs:{src:a("4560")}}),t._v(" "+t._s(t.$t("team.inviteLink"))+" "),t.copied?n("icon",{staticClass:"ml-2 text-success",attrs:{src:a("e31f")}}):t._e()],1):t._e(),n("br"),t.needToConfirm&&!t.limitReached&&t.members.length>=t.minParticipants?n("a",{staticClass:"btn btn-link p-0 font-weight-bold text-body",on:{click:function(e){return e.preventDefault(),t.$emit("confirm")}}},[t._v(" "+t._s(t.$t("team.confirm"))+" ")]):t._e(),n("br"),t.needToConfirm&&!t.limitReached&&t.members.length<t.minParticipants?n("div",[t._v(" "+t._s(t.$t("team.confirmation.impossible"))+" ")]):t._e(),t.canAddMembers?n("a",{staticClass:"btn btn-link p-0 font-weight-bold text-body",on:{click:function(e){return e.preventDefault(),t.$emit("addParticipant")}}},[t._v(" "+t._s(t.$t("team.addParticipant"))+" ")]):t._e()])])])},l=[],c=a("f1cd"),m=a.n(c),d=a("9db7"),u={name:"TeamCard",components:{DateRange:d["a"]},props:{name:{type:String,required:!0},event:{type:Object,required:!0},members:{type:Array,required:!0},limit:{type:Number,default:void 0},inviteLink:{type:String,default:void 0},needToConfirm:{type:Boolean,default:!1},canAddMembers:{type:Boolean,default:!1},limitReached:{type:Boolean,default:!1},competitionName:{type:String,default:""},minParticipants:{type:Number,default:1}},data(){return{maxMembers:3,copied:!1,isSingleDayEvent:!1}},computed:{$members(){return this.members.slice(0,this.maxMembers)}},mounted(){null!==this.event.endsAt&&this.event.endsAt.substr(0,10)!==this.event.startsAt.substr(0,10)||(this.isSingleDayEvent=!0)},methods:{copy(t){m()(t),this.copied=!0,setTimeout(()=>{this.copied=!1},2e3)}}},f=u,p=a("9d12"),b=a("2877");function _(t){this["$style"]=p["default"].locals||p["default"]}var g=Object(b["a"])(f,o,l,!1,_,null,null),v=g.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Modal",t._g({ref:"modal",attrs:{value:t.value},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" "+t._s(t.$t("confirmTeam.title",[t.team.name]))+" ")]},proxy:!0},{key:"body-footer",fn:function(e){var n=e.close;return[a("form-component",{attrs:{name:"confirmTeam",submit:t.submit}},[a("div",{staticClass:"modal-body"},[t._v(" "+t._s(t.$t("confirmTeam.body",[t.team.name]))+" ")]),a("div",{staticClass:"modal-footer"},[a("button",{directives:[{name:"t",rawName:"v-t",value:"confirmTeam.cancel",expression:"'confirmTeam.cancel'"}],staticClass:"btn btn-outline-primary",attrs:{type:"button"},on:{click:n}}),a("submit-button",[t._v(t._s(t.$t("confirmTeam.submit")))])],1)])]}}])},t.$listeners))},w=[],C=a("1f54"),y={name:"ConfirmTeamModal",components:{Modal:C["a"]},props:{value:{type:Boolean,default:!1},team:{type:Object,required:!0}},methods:{async submit(){await Object(s["b"])(this.team.id),this.$refs.modal.close()}}},T=y,x=Object(b["a"])(T,h,w,!1,null,null,null),P=x.exports,j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Modal",t._g({ref:"modal",attrs:{value:t.value},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" "+t._s(t.$t("addParticipantToTeam.title",[t.team.name]))+" ")]},proxy:!0},{key:"body-footer",fn:function(e){var r=e.close;return[n("form-component",{attrs:{name:"addToTeam",submit:t.submit}},[n("div",{staticClass:"modal-body"},[n("form",{staticClass:"text-left",attrs:{id:"search",validate:!0,name:"search"},on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[t._v(" "+t._s(t.$t("addParticipantToTeam.body",[t.team.name]))+" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"form-control mb-3",attrs:{name:"search",type:"text",placeholder:t.$t("participant.name"),label:t.$t("participant.name")},domProps:{value:t.search},on:{input:function(e){e.target.composing||(t.search=e.target.value)}}}),n("submit-button",{attrs:{form:"search"}},[t._v(" "+t._s(t.$t("form.search"))+" ")])],1),t.participants?n("div",{staticClass:"mt-4 mb-4"},[n("h4",[t._v(t._s(t.$t("addParticipantToTeam.searchResults",[t.team.name])))]),n("Promised",{attrs:{promise:t.promise},scopedSlots:t._u([{key:"combined",fn:function(e){return[n("div",{staticClass:"text-right align-self-center mb-1"},[n("b",{staticClass:"align-middle"},[t._v(t._s(t.participants?t.participants.meta.total:"0")+" ")]),n("i18n",{staticClass:"align-middle",attrs:{path:"team.participants",tag:"span"}})],1),n("table",{staticClass:"table table-striped w-100"},[n("tbody",[t._l(t.participants?t.participants.data:[],(function(e,r){return[n("tr",{key:"participant-"+r},[n("td",[t._v(" "+t._s(e.attributes.name)+" ")]),n("td",{staticClass:"text-center"},[n("button",{staticClass:"btn btn-primary mt-1 mb-1",staticStyle:{"min-width":"auto"},on:{click:function(a){return t.addToTeam(e.id)}}},[n("icon",{attrs:{src:a("0af8"),sm:""}})],1)])])]})),t.participants&&0===t.participants.data.length?n("tr",[n("td",{staticStyle:{"text-align":"center"}},[n("i18n",{attrs:{path:"event.startlist.empty"}})],1)]):t._e(),t._v(" "+t._s(t.errors)+" ")],2)]),t.participants.meta?n("Pagination",t._b({staticClass:"mt-5",on:{navigate:t.onNavigate}},"Pagination",t.participants.meta,!1)):t._e()]}}],null,!0)})],1):t._e()]),n("div",{staticClass:"modal-footer"},[n("button",{directives:[{name:"t",rawName:"v-t",value:"addToTeam.cancel",expression:"'addToTeam.cancel'"}],staticClass:"btn btn-outline-primary",attrs:{type:"button"},on:{click:r}})])])]}}])},t.$listeners))},$=[],O=a("1799"),M=a("1962"),k=a("f7c9"),S={name:"AddParticipantToTeamModal",components:{Modal:C["a"],Pagination:O["a"],Promised:i["a"]},props:{value:{type:Boolean,default:!1},team:{type:Object,required:!0}},data(){return{data:[],promise:null,participants:null,search:null,errors:null}},computed:{listPage:{get(){const{page:t=1}=this.$route.query;return t},set(t){this.$router.push({query:{...this.$route.query,page:t}})}}},methods:{async submit(){this.participants=await Object(M["f"])(this.team.event.id,{params:{search:this.search}})},async addToTeam(t){this.errors=null;try{await Object(k["a"])(this.team.id,t)}catch(a){var e;403===(null===a||void 0===a||null===(e=a.response)||void 0===e?void 0:e.status)&&(this.errors=""+a.response.data.message)}},onNavigate(t){this.listPage=t,this.pageChanged(this.listPage)},pageChanged(t){this.page="object"===typeof t?t.target.value:t,this.refreshList()},async refreshList(){this.promise=Object(M["f"])(this.team.event.id,{params:{search:this.search,page:this.page}}),this.participants=await this.promise}}},A=S,D=Object(b["a"])(A,j,$,!1,null,null,null),L=D.exports,N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Modal",t._g({ref:"modal",attrs:{value:t.value},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" "+t._s(t.$t("removeTeamMember.title",[t.memberName,t.team.name]))+" ")]},proxy:!0},{key:"body-footer",fn:function(e){var n=e.close;return[a("form-component",{attrs:{name:"removeTeamMember",submit:t.submit}},[a("div",{staticClass:"modal-body"},[t._v(" "+t._s(t.$t("removeTeamMember.body",[t.memberName,t.team.name]))+" ")]),a("div",{staticClass:"modal-footer"},[a("button",{directives:[{name:"t",rawName:"v-t",value:"removeTeamMember.cancel",expression:"'removeTeamMember.cancel'"}],staticClass:"btn btn-outline-primary",attrs:{type:"button"},on:{click:n}}),a("submit-button",[t._v(t._s(t.$t("removeTeamMember.submit")))])],1)])]}}])},t.$listeners))},E=[],F={name:"RemoveTeamMemberModal",components:{Modal:C["a"]},props:{value:{type:Boolean,default:!1},member:{type:Object,required:!0},team:{type:Object,required:!0}},computed:{memberName(){const{firstname:t,lastname:e}=this.member;return[t,e].join(" ")}},methods:{async submit(){await Object(s["g"])(this.team.id,this.member.id),this.$refs.modal.close()}}},z=F,q=Object(b["a"])(z,N,E,!1,null,null,null),B=q.exports,V={name:"Teams",maxMembers:3,components:{ConfirmTeamModal:P,AddParticipantToTeamModal:L,RemoveTeamMemberModal:B,TeamCard:v,Promised:i["a"]},data(){return{teams:null,remove:null,confirm:null,addParticipant:null}},mounted(){this.fetch()},methods:{fetch(){this.teams=Object(s["e"])()}}},R=V,Z=Object(b["a"])(R,n,r,!1,null,null,null);e["default"]=Z.exports},"0af8":function(t,e,a){"use strict";a.r(e);var n=a("92fa"),r=a.n(n);e["default"]={name:"Plus",functional:!0,render:function(t,e){return t("svg",r()([{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},e.data]),[t("path",{attrs:{d:"M18 11.25h-5.25V6a.5.5 0 00-.5-.5h-.5a.5.5 0 00-.5.5v5.25H6a.5.5 0 00-.5.5v.5a.5.5 0 00.5.5h5.25V18a.5.5 0 00.5.5h.5a.5.5 0 00.5-.5v-5.25H18a.5.5 0 00.5-.5v-.5a.5.5 0 00-.5-.5z",fill:"currentColor"}})])}}},1147:function(t,e,a){"use strict";function n(t){return null!=t&&"object"==typeof t}e["a"]=n},1799:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.last_page>1||0===t.last_page&&t.to>=t.per_page?n("nav",{staticClass:"d-flex"},[n("transition",{attrs:{name:"fade"}},[t.isFirstPage&&t.isLastPage?t._e():n("ul",{staticClass:"mx-auto mb-0 pagination align-items-center",class:t.$style.pagination},[n("li",{staticClass:"page-item",class:{disabled:t.isFirstPage}},[n("a",{class:["page-link px-2",t.linkCls],attrs:{tabindex:!!t.isFirstPage&&-1,"aria-disabled":!!t.isFirstPage&&"true",href:"#"},on:{click:function(e){e.preventDefault(),t.page-=1}}},[n("icon",{staticStyle:{"margin-top":"-2px"},attrs:{src:a("93ff"),sm:""}}),n("span",{staticClass:"d-none d-md-inline sr-only"},[t._v(t._s(t.btnPrev))])],1)]),t._t("default",[n("li",{staticClass:"page-item"},[n("span",{staticClass:"mr-2"},[t._v(t._s(t.$t("pagination.page")))]),n("select-field",{class:["mb-0 d-inline-block",t.$style.indicator],attrs:{label:t.$t("pagination.page"),name:"page",items:t.elements},scopedSlots:t._u([{key:"option:label",fn:function(e){var a=e.item;return[t._v(" "+t._s(a)+" ")]}}],null,!1,3943655754),model:{value:t.page,callback:function(e){t.page=e},expression:"page"}}),n("span",{staticClass:"ml-2"},[t._v("/ "+t._s(t.last_page))])],1)],null,t.$props),n("li",{staticClass:"page-item",class:{disabled:t.isLastPage}},[n("a",{class:["page-link px-2",t.linkCls],attrs:{tabindex:!!t.isLastPage&&-1,"aria-disabled":!!t.isLastPage&&"true",href:"#"},on:{click:function(e){e.preventDefault(),t.page+=1}}},[n("span",{staticClass:"d-none d-md-inline sr-only"},[t._v(t._s(t.btnNext))]),n("icon",{staticStyle:{"margin-top":"-2px"},attrs:{src:a("89d2"),sm:""}})],1)])],2)])],1):t._e()},r=[],i=a("5e1b"),s={name:"Pagination",inheritAttrs:!1,props:{current_page:{type:Number,required:!0},from:{type:Number,default:0},to:{type:Number,default:0},last_page:{type:Number,default:0},total:{type:Number,default:0},per_page:{type:Number,default:0},btnPrev:{type:String,default:"Prev"},btnNext:{type:String,default:"Next"},linkCls:{type:[Object,Number,String],default:void 0}},computed:{page:{get(){return this.current_page},set(t){this.$emit("navigate",t)}},isFirstPage(){return this.page<=1},isLastPage(){return this.page===this.last_page},elements(){return Object(i["a"])(1,this.last_page+1)}}},o=s,l=a("862e"),c=a("2877");function m(t){this["$style"]=l["default"].locals||l["default"]}var d=Object(c["a"])(o,n,r,!1,m,null,null);e["a"]=d.exports},"1bc6":function(t,e,a){"use strict";var n=a("f0ce"),r=a("1147"),i="[object Symbol]";function s(t){return"symbol"==typeof t||Object(r["a"])(t)&&Object(n["a"])(t)==i}e["a"]=s},"1cf1":function(t,e,a){t.exports={"w-0":"Pagination_w-0_2QpM7","w-25":"Pagination_w-25_1Deaq","w-50":"Pagination_w-50_FkKBi","w-75":"Pagination_w-75_ChOJs","w-100":"Pagination_w-100_BTYVF","w-auto":"Pagination_w-auto_1Z0qD","w-sm-0":"Pagination_w-sm-0_3-VMT","w-sm-25":"Pagination_w-sm-25_2bKJ6","w-sm-50":"Pagination_w-sm-50_1qb7m","w-sm-75":"Pagination_w-sm-75_2sZlb","w-sm-100":"Pagination_w-sm-100_1MxcB","w-sm-auto":"Pagination_w-sm-auto_1s9wC","w-md-0":"Pagination_w-md-0_3x9ie","w-md-25":"Pagination_w-md-25_1LJ1S","w-md-50":"Pagination_w-md-50_2Jef6","w-md-75":"Pagination_w-md-75_3K49a","w-md-100":"Pagination_w-md-100_30G2S","w-md-auto":"Pagination_w-md-auto_jTP2H","w-lg-0":"Pagination_w-lg-0_tOKrW","w-lg-25":"Pagination_w-lg-25_esLc4","w-lg-50":"Pagination_w-lg-50_3uTKi","w-lg-75":"Pagination_w-lg-75_2Wnfw","w-lg-100":"Pagination_w-lg-100_11Jkh","w-lg-auto":"Pagination_w-lg-auto_ABS2e","w-xl-0":"Pagination_w-xl-0_32UfM","w-xl-25":"Pagination_w-xl-25_1RcmP","w-xl-50":"Pagination_w-xl-50_ZkQl7","w-xl-75":"Pagination_w-xl-75_1AHsP","w-xl-100":"Pagination_w-xl-100_1D6uD","w-xl-auto":"Pagination_w-xl-auto_3cVKT",lightbox:"Pagination_lightbox_czt3I","modal-inner":"Pagination_modal-inner_3duFm","rdb-btn":"Pagination_rdb-btn_2jiMr","rdb-btn-dropdown":"Pagination_rdb-btn-dropdown_1vs6E",dropdown:"Pagination_dropdown_39V74","dropdown-menu":"Pagination_dropdown-menu_1jsLC","page-title":"Pagination_page-title_3Dujf","card-body":"Pagination_card-body_3xCWO","card-title":"Pagination_card-title_18E5V","card-date":"Pagination_card-date_1qirO","card-flag":"Pagination_card-flag_Y9zVE","b-toaster":"Pagination_b-toaster_1mXFM","b-toaster-top-right":"Pagination_b-toaster-top-right_3wGKk","b-toaster-top-left":"Pagination_b-toaster-top-left_2t6PZ","b-toaster-top-center":"Pagination_b-toaster-top-center_6WJsc","b-toaster-top-full":"Pagination_b-toaster-top-full_1nWpN","b-toaster-bottom-right":"Pagination_b-toaster-bottom-right_2_Izd","b-toaster-bottom-left":"Pagination_b-toaster-bottom-left_m_MAw","b-toaster-bottom-center":"Pagination_b-toaster-bottom-center_20Mq0","b-toaster-bottom-full":"Pagination_b-toaster-bottom-full_1dsre","b-toaster-slot":"Pagination_b-toaster-slot_1z4Kh","b-toast":"Pagination_b-toast_2saCt","rounded-md":"Pagination_rounded-md_1ZY-M",pagination:"Pagination_pagination_2v60Q",indicator:"Pagination_indicator_2ZxI5"}},2332:function(t,e,a){"use strict";function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}e["a"]=n},"26ce":function(t,e,a){"use strict";var n=9007199254740991;function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}e["a"]=r},"26ee":function(t,e,a){"use strict";var n=a("5ea3"),r="object"==typeof self&&self&&self.Object===Object&&self,i=n["a"]||r||Function("return this")();e["a"]=i},"27d1":function(t,e,a){"use strict"; /** * vue-promised v1.2.2 * (c) 2020 Eduardo San Martin Morote <posva13@gmail.com> * @license MIT */ function n(t,e){if(!t)throw new Error("[vue-promised] "+e)}a.d(e,"a",(function(){return r}));var r={props:{tag:{type:String,default:"span"},promise:{validator:function(t){return t&&"function"===typeof t.then&&"function"===typeof t.catch}},pendingDelay:{type:[Number,String],default:200}},data:function(){return{resolved:!1,data:null,error:null,isDelayElapsed:!1}},render:function(t){if(this.$scopedSlots.combined){var e=this.$scopedSlots.combined({isPending:!this.resolved,isDelayOver:this.isDelayElapsed,data:this.data,error:this.error});return n(Array.isArray(e)&&e.length||e,'Provided scoped slot "combined" cannot be empty'),Array.isArray(e)?i(t,this.tag,e):e}return this.error?s(this,t,"rejected",this.error):this.resolved?s(this,t,"default",this.data):this.isDelayElapsed?s(this,t,"pending",this.data):t()},watch:{promise:{handler:function(t){var e=this;if(this.resolved=!1,this.error=null,!t)return this.data=null,this.isDelayElapsed=!1,this.timerId&&clearTimeout(this.timerId),void(this.timerId=null);this.setupDelay(),t.then((function(a){e.promise===t&&(e.data=a,e.resolved=!0)})).catch((function(a){e.promise===t&&(e.error=a,e.resolved=!0)}))},immediate:!0}},methods:{setupDelay:function(){var t=this;this.pendingDelay>0?(this.isDelayElapsed=!1,this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout((function(){return t.isDelayElapsed=!0}),this.pendingDelay)):this.isDelayElapsed=!0}}};function i(t,e,a){return a.length>1||!a[0].tag?t(e,{},a):a[0]}function s(t,e,a,r){if(t.$scopedSlots[a]){var s=t.$scopedSlots[a](r);return n(Array.isArray(s)&&s.length||s,'Provided scoped slot "'+a+'" is empty'),Array.isArray(s)?i(e,t.tag,s):s}var o=t.$slots[a];return n(o,'No slot "'+a+'" provided'),n(o.length,'Provided slot "'+a+'" is empty'),i(e,t.tag,o)}},"361c":function(t,e,a){t.exports={"w-0":"TeamCard_w-0_1llQ7","w-25":"TeamCard_w-25_1AiL8","w-50":"TeamCard_w-50_6KUsb","w-75":"TeamCard_w-75_2hyLF","w-100":"TeamCard_w-100_24I8g","w-auto":"TeamCard_w-auto_1CnIJ","w-sm-0":"TeamCard_w-sm-0_CPXom","w-sm-25":"TeamCard_w-sm-25_2r_C8","w-sm-50":"TeamCard_w-sm-50_ycsFP","w-sm-75":"TeamCard_w-sm-75_1xZLD","w-sm-100":"TeamCard_w-sm-100_T54W-","w-sm-auto":"TeamCard_w-sm-auto_2-Dsg","w-md-0":"TeamCard_w-md-0_3SCFA","w-md-25":"TeamCard_w-md-25_1Nc9b","w-md-50":"TeamCard_w-md-50_2mRkU","w-md-75":"TeamCard_w-md-75_tUTiz","w-md-100":"TeamCard_w-md-100_15u1j","w-md-auto":"TeamCard_w-md-auto_2_5O3","w-lg-0":"TeamCard_w-lg-0_30fnP","w-lg-25":"TeamCard_w-lg-25_E1eo0","w-lg-50":"TeamCard_w-lg-50_3oYxp","w-lg-75":"TeamCard_w-lg-75_NaMQA","w-lg-100":"TeamCard_w-lg-100_1msVP","w-lg-auto":"TeamCard_w-lg-auto_2xLQI","w-xl-0":"TeamCard_w-xl-0_1rAMs","w-xl-25":"TeamCard_w-xl-25_3EC4S","w-xl-50":"TeamCard_w-xl-50_11tqC","w-xl-75":"TeamCard_w-xl-75__Czc4","w-xl-100":"TeamCard_w-xl-100_3KgzK","w-xl-auto":"TeamCard_w-xl-auto_3Ygm1",lightbox:"TeamCard_lightbox_2JnlT","modal-inner":"TeamCard_modal-inner_2nCT3","rdb-btn":"TeamCard_rdb-btn_3u0sl","rdb-btn-dropdown":"TeamCard_rdb-btn-dropdown_23Y2q",dropdown:"TeamCard_dropdown_20WJM","dropdown-menu":"TeamCard_dropdown-menu_3ZmhS","page-title":"TeamCard_page-title_3C-3B","card-body":"TeamCard_card-body_2jDZi","card-title":"TeamCard_card-title_OpEFP","card-date":"TeamCard_card-date_39vB6","card-flag":"TeamCard_card-flag_EEB5C","b-toaster":"TeamCard_b-toaster_3Szsy","b-toaster-top-right":"TeamCard_b-toaster-top-right_1SKPx","b-toaster-top-left":"TeamCard_b-toaster-top-left_3YUe9","b-toaster-top-center":"TeamCard_b-toaster-top-center_2nbAF","b-toaster-top-full":"TeamCard_b-toaster-top-full_1IPbf","b-toaster-bottom-right":"TeamCard_b-toaster-bottom-right_1I_gJ","b-toaster-bottom-left":"TeamCard_b-toaster-bottom-left_2EZZJ","b-toaster-bottom-center":"TeamCard_b-toaster-bottom-center_2dnSw","b-toaster-bottom-full":"TeamCard_b-toaster-bottom-full_2OkVK","b-toaster-slot":"TeamCard_b-toaster-slot_3lE0C","b-toast":"TeamCard_b-toast_2O0-g","rounded-md":"TeamCard_rounded-md_G-QQT",memberList:"TeamCard_memberList_QwDvs"}},4560:function(t,e,a){"use strict";a.r(e);var n=a("92fa"),r=a.n(n);e["default"]={name:"PersonFollow",functional:!0,render:function(t,e){return t("svg",r()([{attrs:{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},e.data]),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.35912 9.70095C4.476 11.671 6.12242 13.2003 8.09573 13.1717C10.0686 13.2002 11.7152 11.6723 11.834 9.70279L12.1322 7.05993C12.3348 5.89257 12.0146 4.69512 11.2563 3.78471C10.45 2.89685 9.2945 2.40768 8.09573 2.44663C6.8975 2.40758 5.74238 2.89575 4.93531 3.78226C4.18064 4.68714 3.85969 5.87692 4.05688 7.03858L4.35912 9.70095ZM6.09241 4.78715C6.61026 4.23855 7.34176 3.94329 8.09534 3.97869C8.84981 3.94352 9.58207 4.23933 10.1004 4.78868C10.5667 5.37288 10.7541 6.13188 10.6132 6.86597L10.3118 9.53068C10.2532 10.7117 9.27844 11.6391 8.09597 11.6388C6.91351 11.6386 5.93913 10.7108 5.88097 9.52976L5.57679 6.84544C5.43966 6.11696 5.62805 5.36495 6.09241 4.78715ZM15.2983 19.0142C15.2025 16.9834 14.1202 15.1275 12.3998 14.0441C12.2918 13.9603 12.1544 13.924 12.0191 13.9436C11.8839 13.9633 11.7624 14.0372 11.6828 14.1483L11.3654 14.5025C11.2503 14.5965 11.1927 14.7438 11.2136 14.8908C11.2345 15.0379 11.3308 15.1634 11.4675 15.2215C12.4733 15.8676 13.2173 16.8496 13.567 17.9928H2.7212C3.0755 16.8518 3.81844 15.8712 4.82085 15.2212C4.95862 15.1648 5.05685 15.0405 5.07984 14.8934C5.10282 14.7463 5.0472 14.598 4.93321 14.5022L4.61565 14.148C4.53604 14.0369 4.41461 13.963 4.27935 13.9433C4.14408 13.9237 4.00665 13.96 3.8987 14.0438C2.17846 15.1274 1.09633 16.9834 1.00059 19.0142C0.993861 19.1547 1.04467 19.2918 1.1413 19.394C1.23793 19.4961 1.37202 19.5545 1.51264 19.5556H14.7862C14.9268 19.5545 15.0609 19.4961 15.1575 19.394C15.2542 19.2918 15.305 19.1547 15.2983 19.0142ZM17.3765 5.5C17.0902 5.5 16.8401 5.73411 16.8401 6.04545V8.33145H14.5365C14.2501 8.33145 14 8.56556 14 8.87689V9.12311C14 9.43444 14.2501 9.66855 14.5365 9.66855H16.8401V11.9546C16.8401 12.2659 17.0902 12.5 17.3765 12.5H17.6235C17.9098 12.5 18.1599 12.2659 18.1599 11.9546V9.66855H20.4635C20.7499 9.66855 21 9.43444 21 9.12311V8.87689C21 8.56556 20.7499 8.33145 20.4635 8.33145H18.1599V6.04545C18.1599 5.73411 17.9098 5.5 17.6235 5.5H17.3765Z",fill:"#000F1E"}})])}}},"4a24":function(t,e,a){"use strict";var n=a("2332"),r=a("1bc6"),i=NaN,s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,m=parseInt;function d(t){if("number"==typeof t)return t;if(Object(r["a"])(t))return i;if(Object(n["a"])(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Object(n["a"])(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var a=l.test(t);return a||c.test(t)?m(t.slice(2),a?2:8):o.test(t)?i:+t}e["a"]=d},"5c59":function(t,e,a){"use strict";var n=a("6071"),r=a("e56b"),i=a("7129"),s=a("2332");function o(t,e,a){if(!Object(s["a"])(a))return!1;var o=typeof e;return!!("number"==o?Object(r["a"])(a)&&Object(i["a"])(e,a.length):"string"==o&&e in a)&&Object(n["a"])(a[e],t)}e["a"]=o},"5e1b":function(t,e,a){"use strict";var n=a("787a"),r=Object(n["a"])();e["a"]=r},"5ea3":function(t,e,a){"use strict";(function(t){var a="object"==typeof t&&t&&t.Object===Object&&t;e["a"]=a}).call(this,a("c8ba"))},6071:function(t,e,a){"use strict";function n(t,e){return t===e||t!==t&&e!==e}e["a"]=n},7129:function(t,e,a){"use strict";var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(t,e){var a=typeof t;return e=null==e?n:e,!!e&&("number"==a||"symbol"!=a&&r.test(t))&&t>-1&&t%1==0&&t<e}e["a"]=i},"787a":function(t,e,a){"use strict";var n=Math.ceil,r=Math.max;function i(t,e,a,i){var s=-1,o=r(n((e-t)/(a||1)),0),l=Array(o);while(o--)l[i?o:++s]=t,t+=a;return l}var s=i,o=a("5c59"),l=a("cb09");function c(t){return function(e,a,n){return n&&"number"!=typeof n&&Object(o["a"])(e,a,n)&&(a=n=void 0),e=Object(l["a"])(e),void 0===a?(a=e,e=0):a=Object(l["a"])(a),n=void 0===n?e<a?1:-1:Object(l["a"])(n),s(e,a,n,t)}}e["a"]=c},"7e93":function(t,e,a){"use strict";a.r(e);var n=a("92fa"),r=a.n(n);e["default"]={name:"Calendar",functional:!0,render:function(t,e){return t("svg",r()([{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},e.data]),[t("path",{attrs:{d:"M19.5 4h-4V3a.5.5 0 00-.5-.5h-.5a.5.5 0 00-.5.5v1h-4V3a.5.5 0 00-.5-.5H9a.5.5 0 00-.5.5v1h-4a.5.5 0 00-.5.5v15a.5.5 0 00.5.5h15a.5.5 0 00.5-.5v-15a.5.5 0 00-.5-.5zm-1 14.5h-13v-13h3v1A.5.5 0 009 7h.5a.5.5 0 00.5-.5v-1h4v1a.5.5 0 00.5.5h.5a.5.5 0 00.5-.5v-1h3v13z",fill:"currentColor"}})])}}},"7f87":function(t,e,a){"use strict";a.d(e,"d",(function(){return r})),a.d(e,"e",(function(){return i})),a.d(e,"g",(function(){return s})),a.d(e,"b",(function(){return o})),a.d(e,"f",(function(){return l})),a.d(e,"h",(function(){return c})),a.d(e,"c",(function(){return m})),a.d(e,"a",(function(){return d}));var n=a("b39f");function r(t){return Object(n["c"])(n["a"].get("users/me/registrations",t))}function i(t){return Object(n["c"])(n["a"].get("users/me/teams",t))}function s(t,e,a){return Object(n["c"])(n["a"].delete(`users/me/teams/${t}/members/${e}`,a))}function o(t,e){return Object(n["c"])(n["a"].post(`users/me/teams/${t}/confirm`,e))}function l(t){return Object(n["c"])(n["a"].get("users/me/edit",t))}function c(t,e){return Object(n["c"])(n["a"].put("users/me",t,e))}function m(t){return Object(n["c"])(n["a"].delete("users/me",t))}function d(t,e){return n["a"].put("users/me/password",t,e)}},"862e":function(t,e,a){"use strict";var n=a("1cf1"),r=a.n(n);e["default"]=r.a},"89d2":function(t,e,a){"use strict";a.r(e);var n=a("92fa"),r=a.n(n);e["default"]={name:"ArrowRight",functional:!0,render:function(t,e){return t("svg",r()([{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},e.data]),[t("path",{attrs:{d:"M16.45 11.38l-5.83-5.82a.48.48 0 00-.7 0l-.36.35a.51.51 0 000 .71l5.12 5.12-5.12 5.11a.51.51 0 000 .71l.36.35a.48.48 0 00.7 0l5.83-5.82a.51.51 0 000-.71z",fill:"currentColor"}})])}}},"93ff":function(t,e,a){"use strict";a.r(e);var n=a("92fa"),r=a.n(n);e["default"]={name:"ArrowLeft",functional:!0,render:function(t,e){return t("svg",r()([{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},e.data]),[t("path",{attrs:{d:"M7.56 12.09l5.83 5.82a.5.5 0 00.71 0l.35-.35a.51.51 0 000-.71l-5.12-5.12 5.12-5.11a.51.51 0 000-.71l-.35-.35a.5.5 0 00-.71 0l-5.83 5.82a.51.51 0 000 .71z",fill:"currentColor"}})])}}},"9d12":function(t,e,a){"use strict";var n=a("361c"),r=a.n(n);e["default"]=r.a},"9db7":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",[t._v(t._s(t.date))])},r=[],i=(a("5319"),a("a4fc"));function s(t){return t instanceof Date?t:new Date(t)}var o={name:"DateRange",props:{start:{type:[String,Number,Date],required:!0},end:{type:[String,Number,Date],default:void 0}},computed:{$start(){return s(this.start)},$end(){return s(this.end)},date(){if(!this.end)return Object(i["a"])(this.$start);const t=[Object(i["a"])(this.$start),Object(i["a"])(this.$end)];return this.$start.getFullYear()===this.$end.getFullYear()&&(t[0]=t[0].replace(this.$start.getFullYear(),"").replace(/, $/,"")),t.join(" - ")}}},l=o,c=a("2877"),m=Object(c["a"])(l,n,r,!1,null,null,null);e["a"]=m.exports},a7b5:function(t,e,a){"use strict";a.r(e);var n=a("92fa"),r=a.n(n);e["default"]={name:"Team",functional:!0,render:function(t,e){return t("svg",r()([{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},e.data]),[t("path",{attrs:{d:"M10.49 14.24a.5.5 0 01.51 0 3.47 3.47 0 012 3.1v.16a.5.5 0 01-.5.5h-8a.5.5 0 01-.5-.5v-.16a3.5 3.5 0 012.11-3.1.52.52 0 01.51 0 3.57 3.57 0 003.87 0zm7.46.04A3.47 3.47 0 0120 17.34v.16a.5.5 0 01-.5.5h-4a.5.5 0 01-.5-.5 5.76 5.76 0 00-.47-2.32c-.13-.27 0-.45.31-.39.221.04.445.06.67.06a3.39 3.39 0 001.93-.57.5.5 0 01.51 0zM8.57 6.41a2.58 2.58 0 012 .8c.403.503.56 1.16.43 1.79l-.36 2.47a2.05 2.05 0 01-2.17 1.9 2.05 2.05 0 01-2.17-1.9L6 9a2.12 2.12 0 01.57-1.79 2.61 2.61 0 012-.8zm7 0a2.58 2.58 0 012 .8c.403.503.56 1.16.43 1.79l-.36 2.47a2.05 2.05 0 01-2.17 1.9 2.05 2.05 0 01-2.17-1.9L13 9a2.12 2.12 0 01.57-1.79 2.61 2.61 0 012-.8z",fill:"currentColor"}})])}}},bc9b:function(t,e,a){"use strict";var n=a("f0ce"),r=a("2332"),i="[object AsyncFunction]",s="[object Function]",o="[object GeneratorFunction]",l="[object Proxy]";function c(t){if(!Object(r["a"])(t))return!1;var e=Object(n["a"])(t);return e==s||e==o||e==i||e==l}e["a"]=c},ca54:function(t,e,a){"use strict";var n=a("26ee"),r=n["a"].Symbol;e["a"]=r},cb09:function(t,e,a){"use strict";var n=a("4a24"),r=1/0,i=17976931348623157e292;function s(t){if(!t)return 0===t?t:0;if(t=Object(n["a"])(t),t===r||t===-r){var e=t<0?-1:1;return e*i}return t===t?t:0}e["a"]=s},d06c:function(t,e,a){"use strict";a.r(e);var n=a("92fa"),r=a.n(n);e["default"]={name:"Trash",functional:!0,render:function(t,e){return t("svg",r()([{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},e.data]),[t("path",{attrs:{d:"M6.388 9a.5.5 0 01.497.46l.8 8.795h8.629l.8-8.8A.5.5 0 0117.615 9h.5a.5.5 0 01.5.545l-.887 9.75a.5.5 0 01-.5.455H6.775a.5.5 0 01-.5-.455l-.887-9.75a.5.5 0 01.5-.545zm7.862 0a.5.5 0 01.5.5l-.259 6a.5.5 0 01-.5.5h-.5a.5.5 0 01-.5-.5l.259-6a.5.5 0 01.5-.5zm-4 0a.5.5 0 01.5.5l.259 6a.5.5 0 01-.5.5h-.5a.5.5 0 01-.5-.5l-.259-6a.5.5 0 01.5-.5zm4.25-5a.5.5 0 01.5.5V5h4.5a.5.5 0 01.5.5V6a.5.5 0 01-.5.5h-15A.5.5 0 014 6v-.5a.5.5 0 01.5-.5H9v-.5a.5.5 0 01.5-.5z",fill:"currentColor"}})])}}},e31f:function(t,e,a){"use strict";a.r(e);var n=a("92fa"),r=a.n(n);e["default"]={name:"Success",functional:!0,render:function(t,e){return t("svg",r()([{attrs:{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},e.data]),[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.11998 10.88L9.99998 13.72C10.1991 13.9013 10.5073 13.8879 10.69 13.69L19.57 3.13998C19.6566 3.03996 19.6991 2.90915 19.6878 2.7773C19.6765 2.64546 19.6124 2.52379 19.51 2.43998L19.13 2.11998C18.9163 1.94392 18.6011 1.97055 18.42 2.17998L10.25 11.89L8.17998 9.81998C7.98216 9.62819 7.66779 9.62819 7.46998 9.81998L7.11998 10.18C7.0233 10.2707 6.96846 10.3974 6.96846 10.53C6.96846 10.6626 7.0233 10.7892 7.11998 10.88ZM17.71 12.89C18.0808 11.6198 18.0808 10.2701 17.71 8.99998C17.6522 8.76439 17.7756 8.52201 18 8.42998L18.4 8.18998C18.5299 8.12445 18.682 8.1188 18.8165 8.17451C18.9509 8.23021 19.0544 8.34174 19.1 8.47998C19.3743 9.24629 19.5064 10.0562 19.49 10.87C19.4958 11.3519 19.4624 11.8335 19.39 12.31C18.784 16.0644 15.7737 18.9688 12 19.44C8.82878 19.7447 5.75345 18.2505 4.03302 15.5692C2.3126 12.8879 2.23596 9.46964 3.8345 6.71391C5.43303 3.95819 8.43831 2.3277 11.62 2.48998C12.4372 2.51823 13.2429 2.69089 14 2.99998C14.1327 3.05483 14.2347 3.16518 14.279 3.30184C14.3233 3.43849 14.3054 3.58769 14.23 3.70998L14 4.17998C13.8719 4.41569 13.5807 4.50835 13.34 4.38998C10.6343 3.41918 7.61015 4.20121 5.71426 6.36194C3.81837 8.52267 3.43617 11.6228 4.75051 14.1793C6.06485 16.7358 8.80852 18.2289 11.669 17.9443C14.5294 17.6597 16.9251 15.6553 17.71 12.89Z",fill:"#000F1E"}})])}}},e56b:function(t,e,a){"use strict";var n=a("bc9b"),r=a("26ce");function i(t){return null!=t&&Object(r["a"])(t.length)&&!Object(n["a"])(t)}e["a"]=i},f0ce:function(t,e,a){"use strict";var n=a("ca54"),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,o=n["a"]?n["a"].toStringTag:void 0;function l(t){var e=i.call(t,o),a=t[o];try{t[o]=void 0;var n=!0}catch(l){}var r=s.call(t);return n&&(e?t[o]=a:delete t[o]),r}var c=l,m=Object.prototype,d=m.toString;function u(t){return d.call(t)}var f=u,p="[object Null]",b="[object Undefined]",_=n["a"]?n["a"].toStringTag:void 0;function g(t){return null==t?void 0===t?b:p:_&&_ in Object(t)?c(t):f(t)}e["a"]=g},f1cd:function(t,e){function a(t){if(navigator.clipboard)return navigator.clipboard.writeText(t).catch((function(t){throw void 0!==t?t:new DOMException("The request is not allowed","NotAllowedError")}));var e=document.createElement("span");e.textContent=t,e.style.whiteSpace="pre",e.style.webkitUserSelect="auto",e.style.userSelect="all",document.body.appendChild(e);var a=window.getSelection(),n=window.document.createRange();a.removeAllRanges(),n.selectNode(e),a.addRange(n);var r=!1;try{r=window.document.execCommand("copy")}catch(i){console.log("error",i)}return a.removeAllRanges(),window.document.body.removeChild(e),r?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))} /*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ t.exports=a},f7c9:function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"e",(function(){return l}));var n=a("b39f");function r(t,e){return Object(n["c"])(n["a"].post(`team-participants/${t}/${e}`))}function i(t){return Object(n["c"])(n["a"].get(`/events/${t}/teams/joined`))}function s(t,e){return Object(n["c"])(n["a"].get(`/events/${t}/teams/all`,e))}function o(t){return Object(n["c"])(n["a"].get(`/events/${t}/teams/registration-types`))}function l(t,e,a){return Object(n["c"])(n["a"].post(`/events/${t}/${e}/join-team/${a}`))}}}]);