1"use strict";(self["webpackChunktjing"]=self["webpackChunktjing"]||[]).push([[536],{47572:function(t,e,s){s.d(e,{A:function(){return l}});var i=function(){var t=this,e=t._self._c;return e("svg",{class:t.color,attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14.412",height:"14.828",viewBox:"0 0 14.412 14.828"}},[e("g",{attrs:{transform:"translate(-330.002 -1291.586)"}},[e("path",{staticClass:"a",attrs:{d:"M1193.787,2693.444h12",transform:"translate(-862.785 -1394.444)"}}),e("line",{staticClass:"a",attrs:{x1:"6",y1:"6",transform:"translate(337 1293)"}}),e("line",{staticClass:"a",attrs:{x1:"6",y2:"6",transform:"translate(337 1299)"}})])])},n=[],a={name:"Arrow",props:["color"]},o=a,r=s(81656),d=(0,r.A)(o,i,n,!1,null,"6b8cb218",null),l=d.exports},33527:function(t,e,s){s.d(e,{A:function(){return l}});var i=function(){var t=this,e=t._self._c;return e("svg",{class:t.color,attrs:{xmlns:"http://www.w3.org/2000/svg",width:"11.314",height:"8.485",viewBox:"0 0 11.314 8.485"}},[e("g",{attrs:{transform:"translate(-546.343 -1215.172)"}},[e("path",{staticClass:"a",attrs:{d:"M550.586,1223.657l-4.243-4.243,1.414-1.414,2.828,2.828,5.657-5.657,1.414,1.414Z"}})])])},n=[],a={props:["color"],name:"Checkmark"},o=a,r=s(81656),d=(0,r.A)(o,i,n,!1,null,"75395898",null),l=d.exports},61642:function(t,e,s){s.d(e,{A:function(){return l}});var i=function(){var t=this,e=t._self._c;return e("svg",{attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M10.6664 14C10.6664 15.3332 9.33359 15.9999 8.00037 16C6.66703 16 5.33337 15.3333 5.33337 14H10.6664ZM8.00037 0C9.32033 0.000215279 9.65983 1.30732 9.66638 1.33301C11.333 1.33301 13.3332 3.33312 13.3334 5.33301V10.667L14.6664 11.333V12.667H1.33337V11.333L2.66638 10.667V5.33301C2.6666 3.33312 4.6668 1.33301 6.33337 1.33301C6.33922 1.31002 6.67873 0 8.00037 0Z",fill:"#10B981"}})])},n=[],a={name:"Notification",props:{color:{type:String,default:"midnight"}}},o=a,r=s(81656),d=(0,r.A)(o,i,n,!1,null,"5bf98ee2",null),l=d.exports},37174:function(t,e,s){s.d(e,{A:function(){return l}});var i=function(){var t=this,e=t._self._c;return e("svg",{attrs:{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.44819 14C9.44819 15.3333 8.11452 16 6.7812 16C5.44787 16 4.11421 15.3333 4.11421 14H9.44819ZM13.3945 1.41406C13.6548 1.15371 14.0775 1.15371 14.3378 1.41406C14.5981 1.67442 14.5982 2.09709 14.3378 2.35742L12.038 4.65625C12.0863 4.88001 12.1142 5.10622 12.1142 5.33301V10.667L13.4472 11.333V12.667H4.02827L1.13862 15.5566C0.878294 15.817 0.455617 15.8169 0.195262 15.5566C-0.0650873 15.2963 -0.0650873 14.8736 0.195262 14.6133L2.14155 12.667H2.14057L11.4814 3.3252V3.32617L13.3945 1.41406ZM6.7812 0C8.09998 0.000215087 8.44008 1.30505 8.44722 1.33301C9.17177 1.33301 9.95927 1.71206 10.6181 2.30371L0.255809 12.667H0.114207V11.333L1.44722 10.667V5.33301C1.44743 3.33324 3.44769 1.33325 5.11421 1.33301C5.12005 1.31003 5.45981 0.000198439 6.7812 0Z",fill:"#A1A1AA"}})])},n=[],a={name:"NotificationDisabled",props:{color:{type:String,default:"midnight"}}},o=a,r=s(81656),d=(0,r.A)(o,i,n,!1,null,"4d457738",null),l=d.exports},51818:function(t,e,s){s.d(e,{A:function(){return l}});var i=function(){var t=this,e=t._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"66",height:"22",viewBox:"0 0 66 22"}},[e("g",{attrs:{id:"Group_4716","data-name":"Group 4716",transform:"translate(-29 -32)"}},[e("rect",{attrs:{id:"Rectangle_1499","data-name":"Rectangle 1499",width:"66",height:"22",rx:"11",transform:"translate(29 32)",fill:"#b40068"}}),e("path",{attrs:{id:"Path_2383","data-name":"Path 2383",d:"M3.912.168A2.915,2.915,0,0,0,7.128-2.748V-8.4H5.472v5.52c0,.816-.432,1.428-1.56,1.428s-1.56-.612-1.56-1.428V-8.4H.708v5.652A2.911,2.911,0,0,0,3.912.168Zm8.364-6.336a2.331,2.331,0,0,0-1.944.876V-6H8.784V2.4h1.548V-.708a2.331,2.331,0,0,0,1.944.876A3.037,3.037,0,0,0,15.2-3,3.037,3.037,0,0,0,12.276-6.168Zm-.288,4.86A1.61,1.61,0,0,1,10.332-3a1.61,1.61,0,0,1,1.656-1.692A1.613,1.613,0,0,1,13.656-3,1.613,1.613,0,0,1,11.988-1.308ZM21.132-6v.744a2.293,2.293,0,0,0-1.92-.912A3.007,3.007,0,0,0,16.224-3.1,3,3,0,0,0,19.212-.024a2.293,2.293,0,0,0,1.92-.912v.648A1.4,1.4,0,0,1,19.56,1.188a1.559,1.559,0,0,1-1.572-.84l-1.32.756a3.038,3.038,0,0,0,2.844,1.464A2.847,2.847,0,0,0,22.644-.288V-6Zm-1.68,4.548A1.6,1.6,0,0,1,17.772-3.1a1.6,1.6,0,0,1,1.68-1.632A1.6,1.6,0,0,1,21.132-3.1,1.6,1.6,0,0,1,19.452-1.452Zm6.384-3.516V-6H24.288V0h1.548V-2.868A1.5,1.5,0,0,1,27.66-4.392V-6.12A1.847,1.847,
10,0,0,25.836-4.968ZM33.132-6v.708a2.389,2.389,0,0,0-1.956-.876A3.035,3.035,0,0,0,28.26-3,3.035,3.035,0,0,0,31.176.168a2.389,2.389,0,0,0,1.956-.876V0H34.68V-6ZM31.464-1.308A1.61,1.61,0,0,1,29.808-3a1.61,1.61,0,0,1,1.656-1.692A1.613,1.613,0,0,1,33.132-3,1.613,1.613,0,0,1,31.464-1.308ZM40.872-8.4v3.108a2.331,2.331,0,0,0-1.944-.876A3.037,3.037,0,0,0,36-3,3.037,3.037,0,0,0,38.928.168a2.331,2.331,0,0,0,1.944-.876V0H42.42V-8.4ZM39.216-1.308A1.613,1.613,0,0,1,37.548-3a1.613,1.613,0,0,1,1.668-1.692A1.61,1.61,0,0,1,40.872-3,1.61,1.61,0,0,1,39.216-1.308Zm6.168-1.056h4.524A3.576,3.576,0,0,0,49.968-3a3.033,3.033,0,0,0-3.036-3.168A3.063,3.063,0,0,0,43.764-3,3.088,3.088,0,0,0,47.052.168a3.036,3.036,0,0,0,2.616-1.284l-1.248-.72a1.663,1.663,0,0,1-1.344.6A1.575,1.575,0,0,1,45.384-2.364Zm-.024-1.2a1.5,1.5,0,0,1,1.572-1.212A1.456,1.456,0,0,1,48.42-3.564Z",transform:"translate(36.792 46.4)",fill:"#fff"}})])])},n=[],a={name:"Padlock"},o=a,r=s(81656),d=(0,r.A)(o,i,n,!1,null,"17a2411c",null),l=d.exports},25029:function(t,e,s){s.d(e,{A:function(){return u}});var i=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.close,expression:"close"}],staticClass:"action-menu"},[e("div",{staticClass:"action-menu-container",class:t.color,on:{click:function(e){t.open=!t.open}}},[e("span",[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"}},[e("circle",{staticClass:"a",attrs:{cx:"16",cy:"16",r:"16"}}),e("g",{attrs:{transform:"translate(-1281 -267)"}},[e("circle",{staticClass:"b",attrs:{cx:"3",cy:"3",r:"3",transform:"translate(1284 280)"}}),e("circle",{staticClass:"b",attrs:{cx:"3",cy:"3",r:"3",transform:"translate(1294 280)"}}),e("circle",{staticClass:"b",attrs:{cx:"3",cy:"3",r:"3",transform:"translate(1304 280)"}})])])]),e("transition",{attrs:{name:"menufade",mode:"out-in"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"items-container"},t._l(t.items,(function(i,n){return e("div",{key:n,staticClass:"item",class:{separator:i.separator,disabled:i.disabled,expanded:t.openSubItem==n,padded:i.subItems.length>0},style:{color:i.textColor},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.emitter(i,n)}}},[e("p",[t._v(t._s(i.title))]),i.subItems.length>0?e("img",{attrs:{src:s(83296),alt:""}}):t._e(),i.subItems.length>0?e("div",{staticClass:"sub-item"},t._l(i.subItems,(function(s,i){return e("div",{key:i,staticClass:"child",class:{disabled:s.disabled},style:{color:s.textColor},on:{click:function(e){return t.subEmitter(s)}}},[e("p",[t._v(t._s(s.title))])])})),0):t._e(),t.showConfirmation==n?e("div",{staticClass:"confirmation-container"},[e("transition",{attrs:{name:"slideinleft"}},[e("div",{staticClass:"yes",on:{click:function(e){return e.stopPropagation(),t.emitter(i,n)}}},[t._v(" Yes ")])]),e("transition",{attrs:{name:"slideinright"}},[e("div",{staticClass:"no",on:{click:function(e){e.stopPropagation(),t.showConfirmation=-1}}},[t._v("No")])])],1):t._e()])})),0)])],1)])},n=[],a=s(25276),o=s.n(a),r={name:"ActionMenu",props:["items","color"],data(){return{open:!1,showConfirmation:-1,openSubItem:null}},methods:{subEmitter(t){t.disabled||(this.close(),setTimeout((()=>{this.$emit(t.action,t)}),300))},emitter(t,e){t.subItems.length>0?this.openSubItem==e?this.openSubItem=null:this.openSubItem=e:t.confirmationRequired&&this.showConfirmation!=e?this.showConfirmation=e:t.disabled||0!=t.subItems.length||(this.close(),setTimeout((()=>{this.$emit(t.action)}),300))},close(){this.open=!1}},watch:{escapePressed(){this.open=!1}},computed:{escapePressed(){return this.$store.getters.escapePressed}},directives:{ClickOutside:o()}},d=r,l=s(81656),c=(0,l.A)(d,i,n,!1,null,"477dc03b",null),u=c.exports},38999:function(t,e,s){s.d(e,{A:function(){return f}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-body"},[t._m(0),e("p",{staticClass:"add-admins-subtext"},[t._v(" Search for a user to add as an admin for this tour. ")]),e("PlayerSearch",{attrs:{disabledUserIds:t.admins.map((t=>t.user.id))},on:{selected:function(e){t.selectedUser=e}}}),e("div",{staticClass:"tip"},[e("Tip"),e("p",[t._v(" Find users with a Tjing account by searching for their name or email address. Users can view their email address in the âProfileâ tab. ")])],1),t.selectedUser?e("div",{staticClass:"selected-user-container"},[e("UserProfileAvatar",{attrs:{profileImageUrl:t.selectedUser.profile.profileImageUrl,user:t.selectedUser,initials:t.selectedUser.firstName.charAt(0)+t.selectedUser.lastName.charAt(0)}}),e("p",[t._v(t._s(t.selectedUser.firstName)+" "+t._s(t.selectedUser.lastName))]),e("span",{staticClass:"remove-icon",on:{click:function(e){t.selectedUser=null}}},[e("Remove")],1)],1):t._e(),e("div",{staticClass:"action-buttons"},[e("TjingButton",{attrs:{title:"Cancel"},on:{click:function(e){return t.$emit("close")}}}),e("TjingButton",{attrs:{title:"Add",variant:"solid"},on:{click:function(e){return t.addAdmin(t.selectedUser.id)}}}
1)],1)],1)},n=[function(){var t=this,e=t._self._c;return e("p",{staticClass:"add-admins-title"},[e("b",[t._v("Add admin")])])}],a=s(67920),o=s(15616),r=s(36498),d=s(53167),l=s(62256),c={name:"ManageAdminsSidebar",props:{admins:{type:Array,required:!0},tourId:{type:String,required:!0}},components:{Tip:a.A,PlayerSearch:l.A,UserProfileAvatar:r.A,TjingButton:d.A,Remove:o.A},data(){return{selectedUser:null}},computed:{},methods:{async addAdmin(t){try{const e=await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:`\n mutation {\n AddAdministratorById(tourId:"${this.tourId}",userId:"${t}"){\n user{\n id\n }\n }\n }\n `}});if(e.data.errors)throw e.data.errors[0];this.$store.dispatch("showMessage",{show:!0,message:"Admin added",type:"success"}),this.$emit("updated")}catch(e){this.$store.dispatch("showMessage",{show:!0,message:e.message||"Error adding admin",type:"error"})}}},mounted(){},beforeCreate(){},destroyed(){}},u=c,p=s(81656),h=(0,p.A)(u,i,n,!1,null,"62930ed2",null),f=h.exports},20214:function(t,e,s){s.d(e,{A:function(){return b}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"subscription-popup-container"},[e("span",{staticClass:"close-modal",on:{click:function(e){return t.$emit("close")}}},[e("Crossmark")],1),e("FeatureSubscription",{staticClass:"feature-icon"}),e("h4",[e("b",[t._v("You are currently on the "+t._s(t.tiers[t.subscriptionTier])+" plan")])]),e("p",[t._v(t._s(t.text))]),e("StandardSolidButton",{attrs:{title:"Upgrade now"},on:{click:function(e){return t.go()}}})],1)},n=[],a=(s(28743),s(31694)),o=s(96694),r=function(){var t=this,e=t._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"84",height:"80",viewBox:"0 0 84 80"}},[e("g",{attrs:{id:"Group_3266","data-name":"Group 3266",transform:"translate(-245 -89)"}},[e("g",{attrs:{id:"Group_3263","data-name":"Group 3263",transform:"translate(-5141 14953)"}},[e("g",{attrs:{id:"Rectangle_1595","data-name":"Rectangle 1595",transform:"translate(5434 -14848)",fill:"#fbf5eb",stroke:"#2d323c","stroke-width":"1"}},[e("rect",{attrs:{width:"36",height:"64",rx:"4",stroke:"none"}}),e("rect",{attrs:{x:"0.5",y:"0.5",width:"35",height:"63",rx:"3.5",fill:"none"}})]),e("path",{attrs:{id:"Path_981","data-name":"Path 981",d:"M134.488,80.074l-6.643,12.774,4.6-1.533a55.878,55.878,0,0,1-7.154,10.219,8.671,8.671,0,0,1-12.263-12.263,56.2,56.2,0,0,1,10.219-7.154l-1.533,4.6,12.774-6.643M116.1,98.46a4.323,4.323,0,1,0,0-6.114,4.324,4.324,0,0,0,0,6.114",transform:"translate(5329.512 -14921.074)",fill:"#e0bd78",stroke:"#2d323c","stroke-linecap":"round","stroke-width":"1","fill-rule":"evenodd"}}),e("g",{attrs:{id:"Group_3256","data-name":"Group 3256",transform:"translate(5165 -15304)"}},[e("line",{attrs:{id:"Line_459","data-name":"Line 459",x2:"22",transform:"translate(276 510.5)",fill:"none",stroke:"#2d323c","stroke-width":"1"}}),e("line",{attrs:{id:"Line_460","data-name":"Line 460",x2:"22",transform:"translate(276 502.5)",fill:"none",stroke:"#2d323c","stroke-width":"1"}})])]),e("g",{attrs:{id:"Group_3264","data-name":"Group 3264",transform:"translate(-5189 14953)"}},[e("g",{attrs:{id:"Rectangle_1595-2","data-name":"Rectangle 1595",transform:"translate(5434 -14848)",fill:"#fcf3f8",stroke:"#2d323c","stroke-width":"1"}},[e("rect",{attrs:{width:"36",height:"64",rx:"4",stroke:"none"}}),e("rect",{attrs:{x:"0.5",y:"0.5",width:"35",height:"63",rx:"3.5",fill:"none"}})]),e("path",{attrs:{id:"Path_981-2","data-name":"Path 981",d:"M134.488,80.074l-6.643,12.774,4.6-1.533a55.878,55.878,0,0,1-7.154,10.219,8.671,8.671,0,0,1-12.263-12.263,56.2,56.2,0,0,1,10.219-7.154l-1.533,4.6,12.774-6.643M116.1,98.46a4.323,4.323,0,1,0,0-6.114,4.324,4.324,0,0,0,0,6.114",transform:"translate(5329.512 -14921.074)",fill:"#b40068",stroke:"#2d323c","stroke-linecap":"round","stroke-width":"1","fill-rule":"evenodd"}}),e("g",{attrs:{id:"Group_3256-2","data-name":"Group 3256",transform:"translate(5165 -15304)"}},[e("line",{attrs:{id:"Line_459-2","data-name":"Line 459",x2:"22",transform:"translate(276 510.5)",fill:"none",stroke:"#2d323c","stroke-width":"1"}}),e("line",{attrs:{id:"Line_460-2","data-name":"Line 460",x2:"22",transform:"translate(276 502.5)",fill:"none",stroke:"#2d323c","stroke-width":"1"}})])]),e("g",{attrs:{id:"Rectangle_1597","data-name":"Rectangle 1597",transform:"translate(269 91)",fill:"#fff",stroke:"#fff","stroke-width":"2"}},[e("rect",{attrs:{width:"36",height:"64",rx:"4",stroke:"none"}}
1),e("rect",{attrs:{x:"-1",y:"-1",width:"38",height:"66",rx:"5",fill:"none"}})]),e("g",{attrs:{id:"Group_3262","data-name":"Group 3262",transform:"translate(-5165 14939)"}},[e("g",{attrs:{id:"Path_2186","data-name":"Path 2186",transform:"translate(5434 -14848)",fill:"#e5f8f8"}},[e("path",{attrs:{d:"M 32 63.5 L 4 63.5 C 2.070090055465698 63.5 0.5 61.92990875244141 0.5 60 L 0.5 4 C 0.5 2.070090055465698 2.070090055465698 0.5 4 0.5 L 32 0.5 C 33.92990875244141 0.5 35.5 2.070090055465698 35.5 4 L 35.5 60 C 35.5 61.92990875244141 33.92990875244141 63.5 32 63.5 Z",stroke:"none"}}),e("path",{attrs:{d:"M 4 1 C 2.345790863037109 1 1 2.345790863037109 1 4 L 1 60 C 1 61.65420913696289 2.345790863037109 63 4 63 L 32 63 C 33.65420913696289 63 35 61.65420913696289 35 60 L 35 4 C 35 2.345790863037109 33.65420913696289 1 32 1 L 4 1 M 4 0 L 32 0 C 34.20914077758789 0 36 1.790859222412109 36 4 L 36 60 C 36 62.20914077758789 34.20914077758789 64 32 64 L 4 64 C 1.790859222412109 64 0 62.20914077758789 0 60 L 0 4 C 0 1.790859222412109 1.790859222412109 0 4 0 Z",stroke:"none",fill:"#2d323c"}})]),e("path",{attrs:{id:"Path_981-3","data-name":"Path 981",d:"M134.488,80.074l-6.643,12.774,4.6-1.533a55.878,55.878,0,0,1-7.154,10.219,8.671,8.671,0,0,1-12.263-12.263,56.2,56.2,0,0,1,10.219-7.154l-1.533,4.6,12.774-6.643M116.1,98.46a4.323,4.323,0,1,0,0-6.114,4.324,4.324,0,0,0,0,6.114",transform:"translate(5329.512 -14921.074)",fill:"#05b5bc",stroke:"#2d323c","stroke-linecap":"round","stroke-width":"1","fill-rule":"evenodd"}}),e("g",{attrs:{id:"Group_3256-3","data-name":"Group 3256",transform:"translate(5165 -15304)"}},[e("line",{attrs:{id:"Line_459-3","data-name":"Line 459",x2:"22",transform:"translate(276 510.5)",fill:"none",stroke:"#2d323c","stroke-width":"1"}}),e("line",{attrs:{id:"Line_460-3","data-name":"Line 460",x2:"22",transform:"translate(276 502.5)",fill:"none",stroke:"#2d323c","stroke-width":"1"}})])])])])},d=[],l={name:"FeatureSubscription"},c=l,u=s(81656),p=(0,u.A)(c,r,d,!1,null,"35cbc683",null),h=p.exports,f={name:"SubscriptionModal",components:{StandardSolidButton:a.A,Crossmark:o.A,FeatureSubscription:h},data(){return{tiers:{FREE:"Free",ESSENTIAL:"Essential",PRO:"Pro"}}},computed:{subscriptionTier(){return this.$store.getters.subscriptionTier},text(){const t=this.$store.state.subscriptionModalTexts.textToShow;return this.$store.state.subscriptionModalTexts[t]}},methods:{go(){this.$emit("close"),setTimeout((()=>{this.$router.push({name:"pricing"})}),1)}},mounted(){},beforeCreate(){},destroyed(){}},m=f,v=(0,u.A)(m,i,n,!1,null,"9555388a",null),b=v.exports},86199:function(t,e,s){s.d(e,{A:function(){return u}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tour-admin-notification-preferences-container"},[e("h4",[t._v("Notification preferences")]),e("ul",[e("li",[t._m(0),e("TjingToggle",{model:{value:t.registrationNotificationEnabled,callback:function(e){t.registrationNotificationEnabled=e},expression:"registrationNotificationEnabled"}})],1),e("li",[t._m(1),e("TjingToggle",{model:{value:t.cancellationNotificationEnabled,callback:function(e){t.cancellationNotificationEnabled=e},expression:"cancellationNotificationEnabled"}})],1),e("li",[t._m(2),e("TjingToggle",{model:{value:t.dnfNotificationEnabled,callback:function(e){t.dnfNotificationEnabled=e},expression:"dnfNotificationEnabled"}})],1),e("li",[t._m(3),e("TjingToggle",{model:{value:t.backupWarningsEnabled,callback:function(e){t.backupWarningsEnabled=e},expression:"backupWarningsEnabled"}})],1)]),e("div",{staticClass:"action-buttons"},[e("TjingButton",{attrs:{title:"Cancel"},on:{click:function(e){return t.cancel()}}}),e("TjingButton",{attrs:{title:"Save",variant:"solid",color:"midnight"},on:{click:function(e){return t.save()}}})],1)])},n=[function(){var t=this,e=t._self._c;return e("div",[e("p",[e("b",[t._v("Registrations")])]),e("p",{staticClass:"description"},[t._v(" When enabled, you will receive notifications for registrations. ")])])},function(){var t=this,e=t._self._c;return e("div",[e("p",[e("b",[t._v("Cancellations")])]),e("p",{staticClass:"description"},[t._v(" When enabled, you will receive notifications for cancellations. ")])])},function(){var t=this,e=t._self._c;return e("div",[e("p",[e("b",[t._v("DNFs")])]),e("p",{staticClass:"description"},[t._v(" When enabled, you will receive notifications when a player DNF. ")])])},function(){var t=this,e=t._self._c;return e("div",[e("p",[e("b",[t._v("Pace of Play")])]),e("p",{staticClass:"description"},[t._v(" When enabled, you will receive notifications when groups are waiting or holes are playing slower than usual. ")])])}
1],a=s(68244),o=s(53167),r={name:"TourAdminNotificationPreferences",components:{TjingToggle:a.A,TjingButton:o.A},props:{admin:{type:Object,required:!0}},data(){return{registrationNotificationEnabled:!1,cancellationNotificationEnabled:!1,dnfNotificationEnabled:!1,backupWarningsEnabled:!1}},computed:{},methods:{cancel(){this.$emit("close")},save(){this.updateAdministrator()},async updateAdministrator(){try{const t=await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:`\n mutation {\n UpdateAdministrator(userId:"${this.admin.userId}", tourId:"${this.admin.tourId}", input:{\n registrationNotificationEnabled: ${this.registrationNotificationEnabled},\n cancellationNotificationEnabled: ${this.cancellationNotificationEnabled},\n dnfNotificationEnabled: ${this.dnfNotificationEnabled},\n backupWarningsEnabled: ${this.backupWarningsEnabled},\n }){\n userId\n }\n }\n `}});if(t.data.errors)throw t.data.errors[0];this.$store.dispatch("showMessage",{show:!0,message:"Preferences saved",type:"success"})}catch(t){this.$store.dispatch("showMessage",{show:!0,message:t.message||"Error",type:"error"})}finally{this.$emit("update")}}},mounted(){this.registrationNotificationEnabled=this.admin.registrationNotificationEnabled,this.cancellationNotificationEnabled=this.admin.cancellationNotificationEnabled,this.dnfNotificationEnabled=this.admin.dnfNotificationEnabled,this.backupWarningsEnabled=this.admin.backupWarningsEnabled,this.notifyTdEnabled=this.admin.notifyTdEnabled},beforeCreate(){},destroyed(){}},d=r,l=s(81656),c=(0,l.A)(d,i,n,!1,null,"fe9eb0f6",null),u=c.exports},31694:function(t,e,s){s.d(e,{A:function(){return u}});var i=function(){var t=this,e=t._self._c;return e("button",{staticClass:"StandardBorderedButton",class:[t.color,{disabled:t.disabled},{fluid:t.fluid},{"desktop-fluidity":t.desktopFluidity},{forward:t.forwardIcon,down:t.downChevron}],on:{click:function(e){return t.emitClick()}}},[t.locked?e("div",{staticClass:"lds-ellipsis"},[e("div"),e("div"),e("div"),e("div")]):[e("p",[t._v(t._s(t.title))]),t.forwardIcon?e("Arrow"):t._e(),t.downChevron?e("Chevron2",{attrs:{color:"white"}}):t._e()]],2)},n=[],a=s(47572),o=s(39553),r={name:"StandardSolidButton",props:["title","disabled","fluid","desktopFluidity","forwardIcon","downChevron","backwardsIcon","color","locked"],components:{Arrow:a.A,Chevron2:o.A},data(){return{}},computed:{},methods:{emitClick(){this.locked||this.disabled||this.$emit("click")}},mounted(){},beforeCreate(){},destroyed(){}},d=r,l=s(81656),c=(0,l.A)(d,i,n,!1,null,"6ddeb3ab",null),u=c.exports},34320:function(t,e,s){s.d(e,{A:function(){return y}});var i,n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"default-radio-buttons"},[t._l(t.options,(function(s){return[e("label",{staticClass:"radio-container",class:{disabled:s.disabled},on:{click:function(e){return t.$emit("input",s.value)}}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],attrs:{type:"radio",name:t.getUUID(),disabled:s.disabled},domProps:{value:s.value,checked:t._q(t.value,s.value)},on:{change:function(e){t.value=s.value}}}),e("span",{staticClass:"radiomark"}),e("div",{staticClass:"text"},[e("p",{staticClass:"name"},[e("b",[t._v(t._s(s.title))])]),s.description?e("p",{staticClass:"description"},[t._v(" "+t._s(s.description)+" ")]):t._e()])])]}))],2)},a=[],o="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r={randomUUID:o},d=new Uint8Array(16);function l(){if(!i&&(i="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(d)}for(var c=[],u=0;u<256;++u)c.push((u+256).toString(16).slice(1));function p(t,e=0){return(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase()}function h(t,e,s){if(r.randomUUID&&!e&&!t)return r.randomUUID();t=t||{};var i=t.random||(t.rng||l)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){s=s||0;for(var n=0;n<16;++n)e[s+n]=i[n];return e}return p(i)}var f=h,m={name:"TjingRadioButtons",props:["value","groupname","options"],data(){return{}},computed:{},methods:{getUUID(){return f()}},mounted(){},beforeCreate(){},destroyed(){}},v=m,b=s(81656),g=(0,b.A)(v,n,a,!1,null,"03959bba",null),y=g.exports},68244:function(t,e,s){s.d(e,{A:function(){return l}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"default-toggle",class:[t.size]},[e("label",{staticClass:"toggle",class:{disabled:t.disabled}},[e("input",{attrs:{type:"checkbox",disabled:t.disabled},domProps:{checked:t.value},on:{change:function(e){return t.updateValue(e.target.checked)}}}),e("span",{staticClass:"slider"})])])},n=[],a={name:"TjingToggle",props:["value","disabled","size"],data(){return{}},computed:{},methods:{updateValue:function(t){this.$emit("input",t)}},mounted(){},beforeCreate(){},destroyed(){}},o=a,r=s(81656),d=(0,r.A)(o,i,n,!1,null,"56ad55be",null),l=d.exports},11987:function(t,e,s){s.d(e,{A:function(){return l}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tjing-sidebar-container"}
1,[e("Transition",{attrs:{name:"left"===t.side?"slide-in-sidebar-left":"slide-in-sidebar"}},[t.show?e("aside",{staticClass:"tjing-sidebar",class:{"tjing-sidebar--left":"left"===t.side}},[t._t("header"),t._t("body"),t._t("footer")],2):t._e()]),t.showOverlay?e("Transition",{attrs:{name:"fade-sidebar-overlay"}},[t.show?e("div",{staticClass:"tjing-sidebar-overlay",on:{touchmove:function(e){return e.preventDefault(),t.preventDefault.apply(null,arguments)},click:function(e){!t.preventClickOutside&&t.$emit("close")}}}):t._e()]):t._e()],1)},n=[],a={name:"TjingSidebar",props:{show:{type:Boolean,default:!1},width:{type:Object,default:()=>({})},showOverlay:{type:Boolean,default:!0},preventClickOutside:{type:Boolean,default:!1},side:{type:String,default:"right"}},data(){return{}},computed:{onTjingMobile(){return this.$store.getters.onTjingMobile}},methods:{preventDefault(t){t.preventDefault()}},watch:{show:function(t){t?this.showOverlay&&(document.body.style.marginRight=window.innerWidth-document.documentElement.clientWidth+"px",document.body.style.transition="none",document.body.style.overflow="hidden"):setTimeout((()=>{document.body.style.overflow="visible",document.body.style.marginRight="0px"}),100)}},mounted(){document.querySelectorAll(".tjing-sidebar-container");this.$parent.$el.style.setProperty("--mobile-width",this.width.mobile??"calc(100% - 35px)"),this.$parent.$el.style.setProperty("--tablet-width",this.width.tablet??"400px"),this.$parent.$el.style.setProperty("--laptop-width",this.width.laptop??"400px"),this.$parent.$el.style.setProperty("--desktop-width",this.width.desktop??"400px")},beforeMount(){},beforeCreate(){},beforeDestroy(){}},o=a,r=s(81656),d=(0,r.A)(o,i,n,!1,null,"07f8b983",null),l=d.exports},83148:function(t,e,s){s.d(e,{A:function(){return m}});var i=function(){var t=this,e=t._self._c;return e("TjingSidebar",{attrs:{show:t.show,preventClickOutside:!0,width:{mobile:"calc(100% - 35px)",tablet:"400px",laptop:"500px",desktop:"500px"}},on:{close:function(e){return t.closeSidebar()}},scopedSlots:t._u([{key:"header",fn:function(){return[e("div",{staticClass:"sidebar-header"},[e("p",{staticClass:"sidebar-title"},[e("b",[t._v("Custom points system")])])])]},proxy:!0},{key:"body",fn:function(){return[t.loaded?e("div",{staticClass:"sidebar-body"},[e("p",{staticClass:"sidebar-body-title"},[t.pointsId?e("b",[t._v("Edit custom points system")]):e("b",[t.overrideMode?[t._v(" Create division-level points systems ")]:[t._v(" Create custom points system ")]],2)]),e("p",{staticClass:"sidebar-body-subtext"},[t.pointsId?[t._v("Adjust this points system.")]:[t._v("Define points for each position.")]],2),e("div",{staticClass:"points-wrapper"},[e("p",{staticClass:"points-title"},[t._v("Pos")]),e("p",{staticClass:"points-points"},[t._v("Points")]),t._l(t.positions,(function(s){return e("div",{staticClass:"position"},[e("p",[e("b",[t._v(t._s(s.place))])]),e("TjingInput",{attrs:{type:"number",bold:!0,center:!0,showError:s.points<0},model:{value:s.points,callback:function(e){t.$set(s,"points",e)},expression:"position.points"}}),s.place===t.positions.length&&t.positions.length>1?e("span",{on:{click:function(e){return t.removePosition()}}},[e("Remove")],1):t._e()],1)}))],2),e("div",{staticClass:"add-position",on:{click:function(e){return t.addPosition()}}},[t._v("+")]),e("div",{staticClass:"subsequent-points"},[e("p",[e("b",[t._v("Subsequent positions")])]),e("TjingInput",{attrs:{type:"number",bold:!0,showError:t.defaultPoint<0||t.defaultPoint>999},model:{value:t.defaultPoint,callback:function(e){t.defaultPoint=e},expression:"defaultPoint"}}),e("p",[t._v(" Set default points for all subsequent positions not specified above. ")])],1),e("div",{staticClass:"tied-points"},[e("p",[e("b",[t._v("Tied points")])]),e("p",{staticClass:"subtext"},[t._v(" Determine how points are shared when positions are tied. ")]),e("TjingRadioButtons",{attrs:{options:[{title:"By highest points",value:"HIGHEST"},{title:"By lowest points",value:"LOWEST"},{title:"By average points",value:"AVERAGE"}]},model:{value:t.ties,callback:function(e){t.ties=e},expression:"ties"}})],1),t.overrideMode||t.pointsId?t._e():e("div",{staticClass:"info-block"},[e("p",[t._v(" Once this base system is created, you can add division-level points systems if needed. ")])]),t.overrideMode?e("div",{staticClass:"divisions-container"},[e("p",[e("b",[t._v("Divisions")])]),e("p",{staticClass:"subtext"},[t._v("Select which divisions these points apply to.")]),e("div",{staticClass:"divisions"},t._l(t.availableDivisions,(function(s){return e("div",{staticClass:"division",class:{disabled:s.disabled,selected:t.divisions.includes(s.id
1)},on:{click:function(e){return t.toggleDivision(s.id,s.disabled)}}},[t.divisions.includes(s.id)?e("Checkmark",{attrs:{color:"white"}}):t._e(),e("p",[e("b",[t._v(t._s(s.type))])])],1)})),0)]):t._e(),t.pointsId?e("div",{staticClass:"delete",class:{disabled:t.disableDelete},on:{click:function(e){!t.disableDelete&&t.deleteSystem(t.pointsId)}}},[e("p",[t._v("Delete custom system")])]):t._e()]):t._e()]},proxy:!0},{key:"footer",fn:function(){return[e("div",{staticClass:"sidebar-footer"},[e("TjingButton",{attrs:{title:"Cancel"},on:{click:function(e){return t.$emit("cancel")}}}),e("TjingButton",{attrs:{title:"Save",variant:"solid",disabled:!t.isSaveable},on:{click:function(e){return t.save()}}})],1)]},proxy:!0}])})},n=[],a=(s(28743),s(15616)),o=s(11987),r=s(53167),d=s(94055),l=s(34320),c=s(33527),u={name:"CustomPointsSidebar",props:{show:{type:Boolean,default:!1,required:!0},pointsId:{type:String},tourId:{type:String,required:!0},eventId:{type:String},overrideMode:{type:Boolean,default:!1},availableDivisions:{type:Array,required:!0},disableDelete:{type:Boolean,default:!1}},components:{TjingSidebar:o.A,Remove:a.A,TjingButton:r.A,TjingInput:d.A,TjingRadioButtons:l.A,Checkmark:c.A},data(){return{loaded:!1,currentPoints:null,defaultPoint:null,ties:"HIGHEST",positions:[],divisions:[]}},watch:{show:{immediate:!0,handler(t){t&&(this.positions=[],this.ties="HIGHEST",this.defaultPoint=null,this.divisions=[],this.loadData(this.pointsId))}},pointsId:{handler(t,e){this.show&&t!==e&&(this.positions=[],this.ties="HIGHEST",this.defaultPoint=null,this.divisions=[],this.loadData(t))}}},computed:{isSaveable(){let t=!1;return this.positions.forEach((e=>{e.points?e.points<0||e.points>1e3?(e.showError=!0,t=!0):e.showError=!1:(e.showError=!0,t=!0)})),this.defaultPoint||0===this.defaultPoint?(this.defaultPoint<0||this.defaultPoint>1e3)&&(t=!0):t=!0,this.overrideMode&&0===this.divisions.length&&(t=!0),!t}},methods:{toggleDivision(t,e){e||(this.divisions.includes(t)?this.divisions=this.divisions.filter((e=>e!==t)):this.divisions.push(t))},addPosition(){this.positions.push({place:this.positions.length+1,points:null})},removePosition(){this.positions.pop()},async save(){this.pointsId?this.updateSystem(this.pointsId):this.createSystem(this.tourId,this.eventId)},async createSystem(t,e){const s=this.positions.map((t=>({position:t.place,points:t.points})));try{const i=await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:"\n mutation CreateCustomLeaderboardSystem($tourId: ID!, $input: CreateEventPointsMapInput!){\n CreateCustomLeaderboardSystem(tourId: $tourId, input: $input){\n id\n }\n }\n ",variables:{tourId:t,input:{tiePoint:this.ties,positions:s,defaultPoint:this.defaultPoint,eventId:e,divisionIds:this.overrideMode?this.divisions:void 0}}}});if(i.data.errors)throw i.data.errors[0];e||await this.updateTourSettings(t),this.$store.dispatch("showMessage",{show:!0,message:"Custom points system created",type:"success"})}catch(i){this.$store.dispatch("showMessage",{show:!0,message:i.message||"Error",type:"error"})}finally{this.$emit("refresh")}},async updateSystem(t){const e=this.positions.map((t=>({position:t.place,points:t.points})));try{const s=await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:"\n mutation UpdateCustomLeaderboardSystem($systemId: ID!, $input: UpdateEventPointsMapInput!){\n UpdateCustomLeaderboardSystem(systemId: $systemId, input: $input){\n id\n }\n }\n ",variables:{systemId:t,input:{tiePoint:this.ties,positions:e,defaultPoint:this.defaultPoint,divisionIds:this.overrideMode?this.divisions:void 0}}}});if(s.data.errors)throw s.data.errors[0];this.$store.dispatch("showMessage",{show:!0,message:"Updated custom points system",type:"success"})}catch(s){this.$store.dispatch("showMessage",{show:!0,message:s.message||"Error",type:"error"})}finally{this.$emit("refresh")}},async deleteSystem(t){try{const e=await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:`\n mutation{\n DeleteLeaderboardPointsMap(systemId: "${t}")\n }\n `}});if(e.data.errors)throw e.data.errors[0];this.$store.dispatch("showMessage",{show:!0,message:"Point system removed",type:"success"})}catch(e){this.$store.dispatch("showMessage",{show:!0,message:e.message||"Error",type:"error"})}finally{this.$emit("refresh")}},async loadData(t){if(!t)return this.positions.push({place:1,points:null}),void(this.loaded=!0);const e=await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:`\n {\n customPointSystem(systemId:"${t}"){\n id\n tourId\n eventId\n positions{\n place\n points\n }\n defaultPoint\n tiePoints\n createdAt\n updatedAt\n divisions{\n id\n type\n name\n }\n }\n }\n `}});this.currentPoints=e.data.data.customPointSystem,this.ties=this.currentPoints.tiePoints,this.defaultPoint=this.currentPoints.defaultPoint,this.positions=this.currentPoints.positions,this.currentPoints.divisions&&this.currentPoints.divisions.length>0?this.divisions=this.currentPoints.divisions.map((t=>t.id)):this.divisions=[],this.loaded=!0},async updateTourSettings(t){try{await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:`\n mutation UpdateTour($UpdateTour: UpdateTourInput!){\n UpdateTour(tourId:"${this.$router.currentRoute.params.tourId}", input:$UpdateTour){\n id\n }\n }\n `,variables:{UpdateTour:{scoringType:"CUSTOM_POINTS"}}}})}catch(e){this.$store.dispatch("showMessage",{show:!0,message:"Error",type:"error"})}},closeSidebar(){this.$emit("close")}},mounted(){},beforeCreate(){},destroyed(){}},p=u,h=s(81656),f=(0,h.A)(p,i,n,!1,null,"38cbbf10",null),m=f.exports},54567:function(t,e){e.A={methods:{openSubscriptionModal(t){this.$store.dispatch("setSubscriptionModalTextToUse",t),this.$refs.subscriptionmodal.open()},async updateEvent(t,e,s){try{const i=await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:"\n mutation UpdateEvent($EventId: ID!, $UpdateEvent: UpdateEventInput!){\n UpdateEvent(eventId:$EventId, input:$UpdateEvent){\n id\n }\n }\n ",variables:{UpdateEvent:e,EventId:t}}});if(i.data.errors)throw i.data.errors[0];return s&&Object.keys(e).forEach((t=>{s[t]=e[t]})),this.$store.dispatch("showMessage",{show:!0,message:"Updated",type:"success"}),i.data.data.UpdateEvent}catch(i){this.$store.dispatch("showMessage",{show:!0,message:i.message||"Error",type:"error"})}finally{this.descriptionChanged=!1}},async updateTour(t,e,s){try{const i=await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:"\n mutation UpdateTour($TourId: ID!, $UpdateTour: UpdateTourInput!){\n UpdateTour(tourId:$TourId, input:$UpdateTour){\n id\n }\n }\n ",variables:{UpdateTour:e,TourId:t}}});if(i.data.errors)throw i.data.errors[0];return s?Object.keys(e).forEach((t=>{s[t]=e[t]})):this.loadData(t),this.$store.dispatch("showMessage",{show:!0,message:"Updated",type:"success"}),i.data.data.UpdateTour}catch(i){this.$store.dispatch("showMessage",{show:!0,message:i.message||"Error",type:"error"})}},async togglePublishedStatus(t,e){let s=`\n mutation {\n UnPublishTour(tourId:"${t}"){\n id\n }\n }\n `;!0===e&&(s=`\n mutation {\n PublishTour(tourId:"${t}"){\n id\n }\n }\n `);try{const t=await this.$axios({headers:{Authorization:this.$store.state.user.sessionInfo.token},data:{query:s}});if(t.data.errors)throw t.data.errors[0];this.$store.dispatch("showMessage",{show:!0,message:e?"Published successfully":"Unpublished successfully",type:"success"}),this.$store.dispatch("loadManagerMenuData",this.$route.params.eventId)}catch(i){this.$store.dispatch("showMessage",{show:!0,message:i.message||"Error",type:"error"})}}}}},83296:function(t,e,s){t.exports=s.p+"img/expand-right-dark.e1d1feee.svg"}}]); 2//# sourceMappingURL=536.6102d5b5.js.map
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.