<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00611850","chunk-2d20900b"],{"396e":function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-container",{class:{"pa-0":t.$vuetify.breakpoint.xsOnly},attrs:{fluid:""}},[e("v-alert",{attrs:{type:"warning",prominent:"",value:t.tournament.readyToComplete&amp;&amp;!t.tournament.locked,transition:"scale-transition"}},[e("v-row",{attrs:{align:"center"}},[e("v-col",{staticClass:"grow"},[e("strong",{staticClass:"black--text"},[t._v("All your divisions are complete. Lock the tournament?")])]),e("v-col",{staticClass:"shrink"},[e("v-btn",{attrs:{loading:t.patching},on:{click:function(n){return n.stopPropagation(),t.toggleLock(!0)}}},[t._v("lock")])],1)],1)],1),e("v-row",{attrs:{dense:""}},[e("v-col",{attrs:{cols:"12"}},[e("v-card",[e("v-toolbar",{attrs:{tabs:"",color:"color1 color1Text--text"}},[e("v-toolbar-title",[t._v(t._s(t.tournament.eventType)+" Manager")]),e("v-spacer"),t.tournament.locked?t._e():e("quick-add-dialog",{attrs:{tournament:t.tournament,fab:""}}),t.tournament.locked?e("lock-toggle",{attrs:{warn:!0,title:"Unlock The Tournament?"},on:{"unlock-click":function(n){return t.toggleLock(!1)}}},[e("div",{staticClass:"title mb-3"},[t._v("Results have are been submitted.")]),t._v(" If you change any finishes now you must re-finish the tournament to update and submit the results. ")]):t._e()],1),e("v-container",{staticClass:"pa-0",attrs:{fluid:""}},[e("v-tabs",{attrs:{"background-color":"color2","slider-color":"color3",touchless:"",dark:"","show-arrows":""},model:{value:t.currentTab,callback:function(n){t.currentTab=n},expression:"currentTab"}},[e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#settings",ripple:""}},[t._v("Settings")]),e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#custom-fields",ripple:""}},[t._v("Custom Fields")]),e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#registrations",ripple:""}},[t._v("Registrations")]),e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#leads",ripple:""}},[t._v("Leads")]),t.showImport?e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#upload",ripple:""}},[t._v("Import")]):t._e(),t.tournament.isTournament?e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#results",ripple:""}},[t._v("Results")]):t._e(),e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#emailer",ripple:""}},[t._v("Email")]),e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#agreements",ripple:""}},[t._v("Agreements")]),t.showChecklist?e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#checklists",ripple:""}},[t._v("Checklists")]):t._e(),t.user&amp;&amp;t.user.vbl?e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#jprops",ripple:""}},[t._v("Json Props")]):t._e(),t.fields?e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#fields",ripple:""}},[t._v("Field Manager")]):t._e(),t.tournament.hasJuniors?e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#ratings",ripple:""}},[t._v("Ratings Results")]):t._e(),t._l(t.bidPrograms,(function(n){return e("v-tab",{key:"bids-t-"+n.id,staticClass:"color2Text--text",attrs:{href:"#bids"+n.id,ripple:""}},[t._v("Bids"+t._s(n.name?" - "+n.name:""))])})),t.tournament.is("club-bids")?e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#club-bids",ripple:""}},[t._v("Bids")]):t._e(),t.tournament.props.includes("reports")?e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#reports",ripple:""}},[t._v("Reports")]):t._e(),t._e(),t.showMerge?e("v-tab",{staticClass:"color2Text--text",attrs:{href:"#team",ripple:""}},[t._v("Team Maker")]):t._e(),e("v-tab-item",{key:"settings",attrs:{value:"settings"}},[e("loading-bar",{attrs:{value:t.patching}}),e("v-container",{staticClass:"py-0",attrs:{fluid:""}},[e("v-row",{staticStyle:{"min-height":"36px"},attrs:{"no-gutters":"",justify:"end"}},[t.tournament.isNcaa&amp;&amp;t.tournament.duals&amp;&amp;t.tournament.duals.length?e("score-board"):t._e(),t.tournament.isLeague?e("game-reminders"):t._e(),(t.tournament.isLeague,t._e()),e("pdf-print",{attrs:{btnText:"Print QR Code Package",pages:t.tournament.qrCodePackage,name:t.tournament.name+" QR Codes",tournament:t.tournament}}),t.tournament.locked?t._e():e("password-protect")],1),e("v-row",{staticClass:"align-baseline",attrs:{dense:""}},[e("v-switch",{staticClass:"shrink  mr-4",attrs:{label:"Published",color:"success",disabled:t.tournament.locked,readonly:"",loading:t.loading.includes("publish"),"hide-details":""},on:{click:function(n){return n.stopPropagation(),t.onPublish(n)}},model:{value:t.tournament.isPublic,callback:function(n){t.$set(t.tournament,"isPublic",n)},expression:"tournament.isPublic"}}),t.tournament.isCompetitive?e("v-switch",{staticClass:"shrink mr-4",attrs:{readonly:"",label:"Public Scoring",color:"success",loading:t.loading.includes("publicScoring"),disabled:t.tournament.locked,"hide-details":""},on:{click:function(n){return n.stopPropagation(),t.patch("publicScoring",!t.tournament.publicScoring)}},model:{value:t.tournament.publicScoring,callback:function(n){t.$set(t.tournament,"publicScoring",n)},expression:"tournament.publicScoring"}}):t._e(),t.tournament&amp;&amp;!t.tournament.isLeague?e("online-checkin-setup",{attrs:{tournament:t.tournament}}):t._e(),!t.tournament.privateOnly||t.user&amp;&amp;t.user.vbl?e("v-switch",{staticClass:"shrink ml-4",attrs:{readonly:"",label:"Private",color:"success",loading:t.loading.includes("organizationListOnly"),disabled:t.tournament.locked,"hide-details":""},on:{click:function(n){return n.stopPropagation(),t.patch("organizationListOnly",!t.tournament.organizationListOnly)}},model:{value:t.tournament.organizationListOnly,callback:function(n){t.$set(t.tournament,"organizationListOnly",n)},expression:"tournament.organizationListOnly"}}):t._e(),t.tournament.isCompetitive?e("v-switch",{staticClass:"shrink ml-4",attrs:{readonly:"",label:"Streaming",color:"success","hide-details":"",loading:t.loading.includes("props")},on:{click:function(n){return n.stopPropagation(),t.patchProps("streaming",!t.tournament.isStreaming)}},model:{value:t.tournament.isStreaming,callback:function(n){t.$set(t.tournament,"isStreaming",n)},expression:"tournament.isStreaming"}}):t._e(),e("v-spacer"),t.user&amp;&amp;t.user.vbl?e("v-btn",{attrs:{color:"color3 color3Text--text",text:"","x-small":""},on:{click:function(n){n.stopPropagation(),t.showAdmin=!t.showAdmin}}},[t._v(" "+t._s(t.showAdmin?"Hide ":"Show ")+"Vbl Admin ")]):t._e()],1),e("v-expand-transition",[t.user&amp;&amp;t.user.vbl&amp;&amp;t.showAdmin?e("v-row",{attrs:{dense:""}},[e("v-switch",{staticClass:"shrink mr-4",attrs:{readonly:"",label:"National Event",color:"success","hide-details":"",loading:t.loading.includes("national")},on:{click:function(n){return n.stopPropagation(),t.patch("national",!t.tournament.national)}},model:{value:t.tournament.national,callback:function(n){t.$set(t.tournament,"national",n)},expression:"tournament.national"}}),e("v-switch",{staticClass:"shrink mr-4",attrs:{readonly:"",label:"Showcase",color:"success","hide-details":"",loading:t.loading.includes("props")},on:{click:function(n){return n.stopPropagation(),t.patchProps("isShowcase",!t.tournament.isShowcase)}},model:{value:t.tournament.isShowcase,callback:function(n){t.$set(t.tournament,"isShowcase",n)},expression:"tournament.isShowcase"}}),e("v-switch",{staticClass:"shrink mr-4",attrs:{readonly:"",label:"Public Can Nav",color:"success","hide-details":"",loading:t.loading.includes("publicCanNav")},on:{click:function(n){return n.stopPropagation(),t.patch("publicCanNav",!t.tournament.publicCanNav)}},model:{value:t.tournament.publicCanNav,callback:function(n){t.$set(t.tournament,"publicCanNav",n)},expression:"tournament.publicCanNav"}})],1):t._e()],1)],1),e("tournament-editor",{ref:"editor",attrs:{tournamentIn:t.tournament,btnOffset:60}}),e("v-container",[e("v-row",{attrs:{dense:""}},[e("v-col",{staticClass:"text-right",attrs:{cols:"12"}},[e("logo-wizard"),e("delete-cancel-dialog",{attrs:{tournament:t.tournament,mode:"Delete"}}),t._e()],1)],1)],1),t.userIsSB?e("double-points"):t._e()],1),e("v-tab-item",{key:"custom-fields",attrs:{value:"custom-fields"}},[e("custom-fields",{attrs:{tournament:t.tournament,active:"custom-fields"===t.currentTab}})],1),e("v-tab-item",{key:"registrations",attrs:{value:"registrations"}},[e("registration-viewer",{attrs:{tournament:t.tournament,active:"registrations"===t.currentTab},on:{"upload-click":function(n){t.currentTab="upload"},"email-click":t.onEmailClick,"email-sent":function(n){t.currentTab="emailer"}}})],1),e("v-tab-item",{key:"leads",attrs:{value:"leads"}},[e("lead-viewer",{attrs:{tournament:t.tournament,active:"leads"===t.currentTab}})],1),t.showImport?e("v-tab-item",{key:"upload",attrs:{value:"upload"}},[e("team-importer",{attrs:{tournament:t.tournament,active:"upload"===t.currentTab},on:{complete:function(n){t.currentTab="registrations"}}})],1):t._e(),t.tournament.isTournament?e("v-tab-item",{key:"results",attrs:{value:"results"}},[e("results-editor",{attrs:{tournament:t.tournament,color:"color3 color3Text--text"}})],1):t._e(),e("v-tab-item",{key:"emailer",attrs:{value:"emailer"}},[e("tournament-email-box",{attrs:{active:"emailer"===t.currentTab,teamIds:t.teamIds},on:{clear:function(n){t.teamIds=null}}})],1),t._l(t.bidPrograms,(function(n){return e("v-tab-item",{key:"bids-c-"+n.id,staticClass:"pa-4",attrs:{value:"bids"+n.id}},[e("bid-manager",{attrs:{active:t.currentTab==="bids"+n.id,program:n,tournamentId:t.tournament.id}})],1)})),e("v-tab-item",{key:"club-bids",staticClass:"pa-4",attrs:{value:"club-bids"}},[e("club-bids",{attrs:{active:"club-bids"===t.currentTab,tournamentId:t.tournament.id}})],1),t.tournament.props.includes("reports")?e("v-tab-item",{key:"reports",attrs:{value:"reports"}},[e("report-generator",{attrs:{active:"reports"===t.currentTab}})],1):t._e(),t._e(),e("v-tab-item",{key:"agreements",attrs:{value:"agreements"}},[e("tournament-agreement-manager",{attrs:{active:"agreements"===t.currentTab}})],1),t.showChecklist?e("v-tab-item",{key:"checklists",attrs:{value:"checklists"}},[e("checklist-manager",{attrs:{active:"checklists"===t.currentTab}})],1):t._e(),t.tournament.isTournament?e("v-tab-item",{key:"team",attrs:{value:"team"}},[e("team-maker",{attrs:{active:"team"===t.currentTab}})],1):t._e(),t.user&amp;&amp;t.user.vbl?e("v-tab-item",{key:"jprops",attrs:{value:"jprops"}},[e("json-props-editor",{attrs:{active:"jprops"===t.currentTab}})],1):t._e(),t.fields?e("v-tab-item",{key:"fields",attrs:{value:"fields"}},[e("field-manager",{attrs:{active:"fields"===t.currentTab}})],1):t._e(),t.tournament.hasJuniors?e("v-tab-item",{key:"ratings",attrs:{value:"ratings"}},[e("ratings-results",{attrs:{ratingSystemId:4,tourneyId:t.tournament.id}})],1):t._e()],2)],1)],1)],1)],1)],1)},a=[],r=(e("4de4"),e("7db0"),e("4160"),e("caad"),e("d3b7"),e("2532"),e("159b"),e("5530")),o=e("66b0"),s=e("a6cc"),c=function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.showMe?e("v-dialog",{attrs:{scrollable:"",persistent:!!t.noSetupIds.length,"max-width":"500px",transition:"dialog-transition"},scopedSlots:t._u([{key:"activator",fn:function(n){var i=n.on;return[e("v-switch",t._g({attrs:{label:"Online Check-in",readonly:"",color:"success","hide-details":""},on:{click:function(n){n.stopPropagation(),t.dialog=!0}},model:{value:t.isActive,callback:function(n){t.isActive=n},expression:"isActive"}},i))]}}],null,!1,1597496100),model:{value:t.dialog,callback:function(n){t.dialog=n},expression:"dialog"}},[e("v-card",[e("v-toolbar",{attrs:{color:"color2 color2Text--text"}},[e("v-toolbar-title",[e("v-icon",{staticClass:"mr-3",attrs:{color:"color2Text"}},[t._v("fas fa-clipboard-list-check")]),t._v(" Online Check-in Setup ")],1),e("v-spacer"),e("v-btn",{attrs:{color:"color2Text",text:"",icon:""},on:{click:function(n){n.stopPropagation(),t.dialog=!1}}},[e("v-icon",[t._v("fas fa-times")])],1)],1),e("loading-bar",{attrs:{value:t.loading}}),e("v-card-text",{staticClass:"pa-2"},[t._e(),t._v(" Please review the settings below and click save. "),e("v-btn",{attrs:{color:"color3","x-small":"",text:""},on:{click:function(n){n.stopPropagation(),t.more=!t.more}}},[t._v(" "+t._s(t.more?"less":"more")+" info ")]),e("v-expand-transition",[t.more?e("div",{staticClass:"mt-2"},[t._v(" We will send a check-in email to each player at the specified division check-in start time. The email will contain a link that will allow them to check in. You can choose to either have 1 person check in the team or have each player check in separately. ")]):t._e()]),t._l(t.checkinWindows,(function(n,i){return e("v-card",{key:"div-"+n.division.id+"-"+i,staticClass:"mt-2"},[e("v-card-text",{class:"pa-2 pb-0 "+(n.window.complete?"grey lighten-3":"color2 color2Text--text")+" d-flex justify-space-between"},[e("span",[t._v(t._s(n.division.name)+t._s(n.window.complete?" - emails have been sent":""))]),t.user&amp;&amp;1===t.user.id?e("v-btn",{attrs:{color:"white","x-small":"",text:"",icon:""},on:{click:function(e){return e.stopPropagation(),t.dupe(n,i)}}},[e("v-icon",[t._v("fas fa-copy")])],1):t._e()],1),e("v-skeleton-loader",{attrs:{loading:t.loading,type:"card-heading"}},[e("v-card-text",{staticClass:"pa-2"},[e("v-select",{attrs:{items:["Team Check-in","Player Check-in","No Online Check-in"],label:"Use Online Check-in",color:"color3","item-color":"color3",disabled:n.window.complete,"hide-details":""},model:{value:n.window.type,callback:function(e){t.$set(n.window,"type",e)},expression:"w.window.type"}}),e("v-expand-transition",[n.window.active?e("div",[e("date-time-picker",{attrs:{datetime:n.window.dtStart,label:"Start",disabled:n.window.complete},on:{"update:datetime":function(e){return t.$set(n.window,"dtStart",e)}}}),e("date-time-picker",{attrs:{datetime:n.window.dtEnd,label:"End",disabled:n.window.complete},on:{"update:datetime":function(e){return t.$set(n.window,"dtEnd",e)}}}),0===i?e("div",{staticClass:"text-end",on:{click:function(n){return n.stopPropagation(),t.copyDown(n)}}},[e("v-btn",{attrs:{color:"color3",text:"","x-small":""}},[t._v("copy down")])],1):t._e()],1):t._e()])],1)],1)],1)}))],2),e("v-divider"),e("v-card-actions",[e("v-spacer"),e("v-btn",{attrs:{color:"success",fab:"",small:"",disabled:t.loading||!t.dirty,loading:t.saving},on:{click:function(n){return n.stopPropagation(),t.save(n)}}},[e("v-icon",[t._v("fas fa-save")])],1)],1),e("v-snackbar",{attrs:{absolute:""},model:{value:t.snack,callback:function(n){t.snack=n},expression:"snack"}},[t._v(" Check-in setting saved! "),e("v-btn",{attrs:{text:"",color:"color3"},nativeOn:{click:function(n){t.snack=!1}}},[t._v("Close")])],1)],1)],1):t._e()},l=[],u=(e("d81d"),e("a434"),e("5304")),d=e("c32c"),h=e("ceca"),m=e("b8d7"),v=e("2f62"),p={props:["tournament"],data:function(){return{dialog:!1,loading:!1,checkinWindows:[],dbWindows:[],saving:!1,more:!1,snack:!1}},computed:Object(r["a"])(Object(r["a"])({},Object(v["c"])(["user"])),{},{divisionIds:function(){return this.tournament.publicDivisions.filter((function(t){return!t.isCoaches})).map((function(t){return t.id}))},setupIds:function(){return{active:this.tournament.onlineCheckin,inactive:this.tournament.noOnlineCheckin}},noSetupIds:function(){var t=this;return this.divisionIds.filter((function(n){return!t.setupIds.active.includes(n)&amp;&amp;!t.setupIds.inactive.includes(n)}))},dto:function(){return this.checkinWindows&amp;&amp;this.checkinWindows.map((function(t){return t.window.dto}))},dirty:function(){if(!this.checkinWindows||!this.dto.length)return!1;var t=this.dbWindows.map((function(t){return t.dto}));t.sort(Object(h["firstBy"])("divisionId"));var n=this.dto;return n.sort(Object(h["firstBy"])("divisionId")),JSON.stringify(t)!==JSON.stringify(n)},isActive:function(){return!!this.setupIds.active.length},showMe:function(){return this.tournament&amp;&amp;this.tournament.isEditable&amp;&amp;!this.tournament.isPast||this.user&amp;&amp;this.user.vbl},isEditable:function(){return this.tournament&amp;&amp;this.tournament.isEditable},isPast:function(){return this.tournament&amp;&amp;this.tournament.isPast},published:function(){return this.tournament&amp;&amp;this.tournament.isPublic}}),methods:{dupe:function(t,n){var e=t.division;this.checkinWindows.splice(n+1,0,{division:e,window:new u["a"]({divisionId:e.id,dtStart:e.days[0].dtCheckin,dtEnd:e.days[0].dtStart,active:!0})})},map:function(){var t=this;this.checkinWindows=Object(m["a"])(this.tournament.publicDivisions.filter((function(t){return!t.isCoaches})).map((function(n){var e=t.dbWindows.filter((function(t){return t.divisionId===n.id})).map((function(t){return{division:n,window:new u["a"](t.dto)}}));return e.length||e.push({division:n,window:new u["a"]({divisionId:n.id,dtStart:n.days[0].dtCheckin,dtEnd:n.days[0].dtStart,active:!0})}),e})))},copyDown:function(){var t=this.checkinWindows[0].window.dtStart,n=this.checkinWindows[0].window.dtEnd;this.checkinWindows.forEach((function(e,i){e.window.active&amp;&amp;(e.window.dtStart=t,e.window.dtEnd=n)}))},load:function(){var t=this;this.loading=!0,this.$VBL.tournament.checkin.getWindows(this.tournament.id).then((function(n){t.init(n.data)})).catch((function(t){return console.log(t)})).finally((function(){t.loading=!1}))},save:function(){var t=this;this.saving=!0;var n=!1;this.$VBL.tournament.checkin.postWindows(this.tournament.id,this.dto).then((function(e){t.init(e.data),t.snack=!0,n&amp;&amp;(t.dialog=!1)})).catch((function(t){return console.log(t)})).finally((function(){t.saving=!1}))},init:function(t){this.dbWindows=t.map((function(t){return new u["a"](t)})),this.map()}},watch:{dialog:function(t){t&amp;&amp;this.load()}},components:{DateTimePicker:d["default"]},mounted:function(){this.map()}},f=p,b=e("2877"),g=e("6544"),k=e.n(g),w=e("8212"),C=e("8336"),y=e("b0af"),x=e("99d9"),T=e("cc20"),_=e("169a"),S=e("ce7e"),P=e("0789"),V=e("132d"),I=e("b974"),O=e("3129"),E=e("2db4"),$=e("2fa4"),A=e("b73d"),L=e("71d9"),B=e("2a7f"),j=Object(b["a"])(f,c,l,!1,null,null,null),W=j.exports;k()(j,{VAvatar:w["a"],VBtn:C["a"],VCard:y["a"],VCardActions:x["a"],VCardText:x["b"],VChip:T["a"],VDialog:_["a"],VDivider:S["a"],VExpandTransition:P["a"],VIcon:V["a"],VSelect:I["a"],VSkeletonLoader:O["a"],VSnackbar:E["a"],VSpacer:$["a"],VSwitch:A["a"],VToolbar:L["a"],VToolbarTitle:B["a"]});var D=function(){return Promise.all([e.e("chunk-2d225d93"),e.e("chunk-01dcdaed")]).then(e.bind(null,"d2b5"))},q=function(){return e.e("chunk-2d21ab2a").then(e.bind(null,"bd2d"))},R=function(){return e.e("chunk-ffd72f7a").then(e.bind(null,"498c"))},N=function(){return e.e("chunk-327cd92e").then(e.bind(null,"6f5a"))},z=function(){return e.e("chunk-23ddca4d").then(e.bind(null,"4bbff"))},M=function(){return e.e("chunk-16901fb6").then(e.bind(null,"3195"))},Q=function(){return e.e("chunk-2d0a3c8b").then(e.bind(null,"043d"))},J=function(){return e.e("chunk-018952b8").then(e.bind(null,"e0e7"))},U=function(){return e.e("chunk-0372e073").then(e.bind(null,"c7db"))},F=function(){return e.e("chunk-d1ba31ee").then(e.bind(null,"ba69"))},G=function(){return e.e("chunk-2d0a4ef2").then(e.bind(null,"090c"))},Y=function(){return e.e("chunk-2d0d0290").then(e.bind(null,"6792"))},Z=function(){return e.e("chunk-46e0a269").then(e.bind(null,"9a04"))},H=function(){return e.e("chunk-2d0d834d").then(e.bind(null,"79a6"))},K=function(){return e.e("chunk-2d0e9736").then(e.bind(null,"8e1d"))},X=function(){return e.e("chunk-2d0e1400").then(e.bind(null,"7a44"))},tt=function(){return e.e("chunk-2d0d750f").then(e.bind(null,"75fa"))},nt=function(){return e.e("chunk-163a53bc").then(e.bind(null,"e845"))},et=function(){return e.e("chunk-2d0c1b37").then(e.bind(null,"46ba"))},it=function(){return e.e("chunk-2d2389e4").then(e.bind(null,"ffc1"))},at=function(){return e.e("chunk-62801d12").then(e.bind(null,"182c"))},rt=function(){return e.e("chunk-60338762").then(e.bind(null,"32f3"))},ot=function(){return Promise.all([e.e("chunk-1ba19ca1"),e.e("chunk-7e7fd4e9"),e.e("chunk-2e0fd21a"),e.e("chunk-6d88cf18"),e.e("chunk-3f0d8f8b")]).then(e.bind(null,"7d9b"))},st=function(){return e.e("chunk-2d0d7ab2").then(e.bind(null,"7894"))},ct=function(){return e.e("chunk-2d228c3a").then(e.bind(null,"db28"))},lt={data:function(){return{currentTab:null,edit:!1,deleteDialog:!1,deleting:!1,patching:!1,loading:[],confirmDialog:!1,qrLoad:!1,qrPack:null,showAdmin:!1,teamIds:null}},computed:Object(r["a"])(Object(r["a"])({},Object(v["c"])(["user","tournament","getPageInfo"])),{},{bidPrograms:function(){var t=[];return this.tournament.bidProgram&amp;&amp;t.push(this.tournament.bidProgram),this.tournament.bidDivisions.forEach((function(n){var e=t.find((function(t){return t.id===n.bidProgram.id}));!e&amp;&amp;t.push(n.bidProgram)})),t},showEditButtons:function(){return this.$refs&amp;&amp;this.$refs.editor},orgInfo:function(){return this.getPageInfo(this.tournament.organization.username)},showImport:function(){return this.user&amp;&amp;(this.orgInfo&amp;&amp;this.orgInfo.props.includes("import")||this.user.vbl)},showMerge:function(){return this.user&amp;&amp;this.orgInfo&amp;&amp;this.orgInfo.props.includes("teamMerge")},showChecklist:function(){return this.user&amp;&amp;this.orgInfo&amp;&amp;this.orgInfo.props.includes("checklist")},qtab:function(){return this.$route.query.tab},fields:function(){return this.tournament&amp;&amp;this.tournament.props.includes("fields")},sbAdmin:function(){return this.user&amp;&amp;this.user.sbAdmin},tsb:function(){return this.tournament.sanctioningBody&amp;&amp;this.tournament.sanctioningBody.toLowerCase()},userIsSB:function(){return this.tsb&amp;&amp;this.sbAdmin&amp;&amp;this.sbAdmin.includes(this.tsb)||this.user&amp;&amp;this.user.vbl}}),methods:{onEmailClick:function(t){this.teamIds=t,this.currentTab="emailer"},toggleLock:function(t){this.patch("locked",t)},onPublish:function(){var t=this;this.patching=!0,this.loading.push("publish"),this.$VBL.tournament.publish(this.tournament.id,!this.tournament.isPublic).then((function(n){t.tournament.isPublic=n.data})).catch((function(t){console.log(t)})).finally((function(){t.patching=!1,t.loading=t.loading.filter((function(t){return"publish"!==t}))}))},patchProps:function(t,n){this.tournament.setProp(t,n),this.patch("props",this.tournament.props)},patch:function(t,n){var e=this;this.patching=!0,this.loading.push(t);var i={id:this.tournament.id};i[t]=n,this.$VBL.patch.tournament(i).catch((function(t){return console.log(t.response)})).finally((function(){e.patching=!1,e.loading=e.loading.filter((function(n){return n!==t}))}))},deleteTournament:function(){var t=this;this.deleting=!0,this.$VBL.delete.tournament(this.tournament.id).then((function(n){t.$router.push({name:"organization-home",params:{username:t.tournament.organization.username}})})).catch((function(t){console.log(t)})).finally((function(){t.deleting=!1}))},saveState:function(t){var n={};Object.assign(n,this.$route.query),t!==n.tab&amp;&amp;(n.tab=t,this.$router.push({query:n}))},downloadQrPack:function(){var t=this;this.qrLoad=!0,this.$VBL.tournament.getQrPackage(this.tournament.qrCodePackage).then((function(n){t.qrPack=n.data})).catch((function(t){return console.log(t.response)})).finally((function(){t.qrLoad=!1}))}},watch:{currentTab:function(t,n){t&amp;&amp;n&amp;&amp;"settings"===n&amp;&amp;this.$refs&amp;&amp;this.$refs.editor&amp;&amp;this.$refs.editor.cancel(),this.saveState(t)},qtab:function(t){t&amp;&amp;this.currentTab!==t&amp;&amp;(this.currentTab=t)}},mounted:function(){this.$route.query.tab&amp;&amp;(this.currentTab=this.$route.query.tab)},components:{ResultsEditor:N,RegistrationViewer:D,LeadViewer:q,TournamentEditor:o["a"],QuickAddDialog:s["default"],TournamentEmailBox:z,BidManager:M,TeamImporter:R,PasswordProtect:Q,ReportGenerator:J,TournamentPics:U,TeamMaker:F,LockToggle:G,OnlineCheckinSetup:W,DeleteCancelDialog:Y,TournamentAgreementManager:Z,LogoWizard:H,DelayedPayment:K,JsonPropsEditor:X,FieldManager:tt,PdfPrint:nt,DoublePoints:et,ChecklistManager:it,RatingsResults:at,CustomFields:rt,ScoreBoard:ot,GameReminders:st,ClubBids:ct}},ut=lt,dt=e("0798"),ht=e("62ad"),mt=e("a523"),vt=e("0fd9"),pt=e("71a3"),ft=e("c671"),bt=e("fe57"),gt=Object(b["a"])(ut,i,a,!1,null,null,null);n["default"]=gt.exports;k()(gt,{VAlert:dt["a"],VBtn:C["a"],VCard:y["a"],VCol:ht["a"],VContainer:mt["a"],VExpandTransition:P["a"],VRow:vt["a"],VSpacer:$["a"],VSwitch:A["a"],VTab:pt["a"],VTabItem:ft["a"],VTabs:bt["a"],VToolbar:L["a"],VToolbarTitle:B["a"]})},5304:function(t,n,e){"use strict";e.d(n,"a",(function(){return l}));e("ac1f"),e("5319");var i=e("d4ec"),a=e("bee2"),r=e("6245");function o(t){for(var n in t)if(t.hasOwnProperty(n))return!0;return!1}var s=e("c1df"),c=e.n(s),l=function(){function t(n){Object(i["a"])(this,t),this.id=0,this.divisionId=null,this.dtStart=null,this.dtEnd=null,this.dtStartUTC=null,this.dtEndUTC=null,this.team=!0,this.active=!1,this.complete=!1,n&amp;&amp;this.update(n)}return Object(a["a"])(t,[{key:"update",value:function(t){t=t||{},"string"===typeof t&amp;&amp;(t=JSON.parse(t));var n=[];Object(r["a"])(t,this,n),this.dtStart=this.dtStart.replace("Z",""),this.dtEnd=this.dtEnd.replace("Z","")}},{key:"getDto",value:function(t){if(t=t||{},0===this.id)return this.dto;var n={};return this.dtStart!==t.dtStart&amp;&amp;(n.dtStart=this.dtStart),this.dtEnd!==t.dtEnd&amp;&amp;(n.dtEnd=this.dtEnd),this.team!==t.team&amp;&amp;(n.team=this.team),this.active!==t.active&amp;&amp;(n.active=this.active),o(n)?(n.id=this.id,n.divisionId=this.divisionId,n):null}},{key:"type",get:function(){return this.active?this.team?"Team Check-in":"Player Check-in":"No Online Check-in"},set:function(t){switch(t){case"Team Check-in":this.active=this.team=!0;break;case"Player Check-in":this.active=!0,this.team=!1;break;default:this.active=this.team=!1}}},{key:"dto",get:function(){return{id:this.id,divisionId:this.divisionId,dtStart:this.dtStart,dtEnd:this.dtEnd,team:this.team,active:this.active,complete:this.complete}}},{key:"start",get:function(){return this.dtStartUTC&amp;&amp;c()(this.dtStartUTC)}},{key:"end",get:function(){return this.dtEndUTC&amp;&amp;c()(this.dtEndUTC)}},{key:"isOpen",get:function(){return this.start&amp;&amp;this.end&amp;&amp;c()().isBetween(this.start,this.end,"minute","[]")}},{key:"isClosed",get:function(){return this.end&amp;&amp;c()().isAfter(this.end,"minute")}},{key:"isUpcoming",get:function(){return this.start&amp;&amp;c()().isBefore(this.start,"minute")}},{key:"statusNa",get:function(){return!(this.start&amp;&amp;this.end)}}]),t}()},a6cc:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-dialog",{staticClass:"mr-0",attrs:{scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(n){var i=n.on;return[e("v-tooltip",{attrs:{left:""},scopedSlots:t._u([{key:"activator",fn:function(n){var a=n.on;return[e("v-btn",t._g({attrs:{fab:"",small:"",color:"color3Text color3--text"}},Object.assign({},i,a)),[e("v-icon",{attrs:{small:""}},[t._v("fas fa-user-plus")])],1)]}}],null,!0)},[e("span",[t._v("Team Quick Add")])])]}}]),model:{value:t.dialog,callback:function(n){t.dialog=n},expression:"dialog"}},[e("v-card",[e("v-toolbar",{attrs:{color:"color1 color1Text--text"}},[e("v-toolbar-title",[t._v("Team Quick Add")]),e("v-spacer"),e("v-btn",{attrs:{text:"",icon:"",color:"color1Text"},on:{click:function(n){t.dialog=!1}}},[e("v-icon",[t._v("fas fa-times")])],1)],1),e("v-card-text",[e("v-expand-transition",{attrs:{"leave-absolute":"",mode:"out-in"}},[t.tournament&amp;&amp;t.registration&amp;&amp;(t.cartStatus||t.user.vbl)?e("tournament-registration",{key:t.dialog,ref:"stepper",attrs:{tournament:t.tournament,registration:t.registration,adminQuickAdd:!0},on:{"complete-quick-add":t.onCompleteQuickAdd}}):t.checking?e("div",{staticClass:"py-9 text-center"},[e("v-progress-circular",{attrs:{indeterminate:"",color:"color3",size:"64"}})],1):e("div",{staticClass:"pt-6"},[e("v-alert",{attrs:{type:"error",prominent:"",text:""}},[t._v(" Your account is not complete, please connect a stripe account. ")])],1)],1)],1)],1)],1)},a=[],r=(e("4de4"),e("d3b7"),e("5530")),o=e("e1c9"),s=e("2f62"),c={props:["tournament","division","fab","small"],data:function(){return{dialog:!1,registration:null,loading:!1,checking:!1,cartStatus:!1}},computed:Object(r["a"])({},Object(s["c"])(["user"])),methods:{getCartStatus:function(){var t=this;this.checking=!0,this.$VBL.cart.getStatus(this.tournament.organization.id).then((function(n){t.cartStatus=n.data.status})).catch((function(t){console.log(t.response)})).finally((function(){t.checking=!1}))},onCompleteQuickAdd:function(t){var n=this;if(this.loading=!0,Array.isArray(t))return this.onCompleteQuickAdd2(t);this.$VBL.team.quickAdd(t).then((function(t){n.loading=!1,n.dialog=!1,n.$refs.stepper.reset()})).catch((function(t){console.log(t.response),n.loading=!1}))},onCompleteQuickAdd2:function(t){var n=this;this.loading=!0,this.$VBL.team.quickAdd2(t).then((function(t){n.loading=!1,n.dialog=!1,n.$refs.stepper.reset()})).catch((function(t){console.log(t.response),n.loading=!1}))}},watch:{dialog:function(){if(this.getCartStatus(),this.registration=this.tournament.newRegistration(),this.registration.setDivision(this.division),this.division){var t=this.division.registrationWindows.filter((function(t){return t.isCurrent}));1===t.length?this.registration.window=t[0]:(this.registration.window=null,0===t.length&amp;&amp;(this.registration.window=this.division.lastRegistrationWindow))}}},components:{"tournament-registration":o["a"]}},l=c,u=e("2877"),d=e("6544"),h=e.n(d),m=e("0798"),v=e("8336"),p=e("b0af"),f=e("99d9"),b=e("169a"),g=e("0789"),k=e("132d"),w=e("490a"),C=e("2fa4"),y=e("71d9"),x=e("2a7f"),T=e("3a2f"),_=Object(u["a"])(l,i,a,!1,null,null,null);n["default"]=_.exports;h()(_,{VAlert:m["a"],VBtn:v["a"],VCard:p["a"],VCardText:f["b"],VDialog:b["a"],VExpandTransition:g["a"],VIcon:k["a"],VProgressCircular:w["a"],VSpacer:C["a"],VToolbar:y["a"],VToolbarTitle:x["a"],VTooltip:T["a"]})}}]);
//# sourceMappingURL=chunk-00611850.244452f0.js.map</pre></body></html>