(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0940f05e"],{"0393":function(t,e,a){"use strict";a("210b");var n=a("604c"),i=a("d9bd");e["a"]=n["a"].extend({name:"v-expansion-panels",provide(){return{expansionPanels:this}},props:{accordion:Boolean,disabled:Boolean,flat:Boolean,hover:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,readonly:Boolean,tile:Boolean},computed:{classes(){return{...n["a"].options.computed.classes.call(this),"v-expansion-panels":!0,"v-expansion-panels--accordion":this.accordion,"v-expansion-panels--flat":this.flat,"v-expansion-panels--hover":this.hover,"v-expansion-panels--focusable":this.focusable,"v-expansion-panels--inset":this.inset,"v-expansion-panels--popout":this.popout,"v-expansion-panels--tile":this.tile}}},created(){this.$attrs.hasOwnProperty("expand")&&Object(i["a"])("expand","multiple",this),Array.isArray(this.value)&&this.value.length>0&&"boolean"===typeof this.value[0]&&Object(i["a"])(':value="[true, false, true]"',':value="[0, 2]"',this)},methods:{updateItem(t,e){const a=this.getValue(t,e),n=this.getValue(t,e+1);t.isActive=this.toggleMethod(a),t.nextIsActive=this.toggleMethod(n)}}})},"0528":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-input",{staticClass:"mt-0 input-row",attrs:{"prepend-icon":t.icon,label:t.label,rules:t.rules,disabled:t.disabled,"hide-details":!t.hint,hint:t.hint,"persistent-hint":!!t.hint},model:{value:t.calculatedValue,callback:function(e){t.calculatedValue=e},expression:"calculatedValue"}},[[a("v-btn-toggle",{staticClass:"multiline-btns",attrs:{mandatory:t.mandatory,multiple:t.multiple,disabled:t.disabled,rounded:t.rounded},model:{value:t.calculatedValue,callback:function(e){t.calculatedValue=e},expression:"calculatedValue"}},t._l(t.items,(function(e,n){return a("v-btn",{key:n,class:{"me-1":t.multiple},attrs:{value:e.type||"_",small:t.small,disabled:t.disabled,title:e.title}},[t._v(" "+t._s(e.text)+" ")])})),1)]],2)},i=[],r={name:"ToggleButtonInput",components:{},props:{value:{type:null,default:null},label:{type:String,default:null},hint:{type:String,default:null},icon:{type:String,default:null},items:{type:Array,default:null},rules:{type:Array,default:()=>[]},small:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},mandatory:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},data:function(){return{rendered:null}},async mounted(){},methods:{},computed:{calculatedValue:{get(){return Array.isArray(this.value)||this.value?this.value:"_"},set(t){if(Array.isArray(t))return void this.$emit("input",t);let e="_"==t?null:t;this.$emit("input",e)}}},watch:{}},s=r,o=a("2877"),l=a("6544"),g=a.n(l),p=a("8336"),u=a("a609"),h=a("b675"),c=Object(o["a"])(s,n,i,!1,null,null,null);e["a"]=c.exports;g()(c,{VBtn:p["a"],VBtnToggle:u["a"],VInput:h["a"]})},"189c":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-text-field",{attrs:{min:"0",step:"0.01",required:"","persistent-hint":"",disabled:t.disabled,"hide-details":t.hideDetails,"prepend-icon":t.icon,hint:t.hintFormatted,label:t.label,rules:t.mergedRules},model:{value:t.displayValue,callback:function(e){t.displayValue=e},expression:"displayValue"}})},i=[],r=a("d7c2"),s={name:"DistanceTextArea",components:{},props:{value:Number,label:String,unit:String,icon:String,rules:Array,hint:String,hideDetails:Boolean,disabled:Boolean,mode:{type:Number,default:r["a"].UnitType.DISTANCE},multiplier:{type:Number,default:1}},data(){return{isInputActive:!1,defaultRules:[t=>!t||!t.trim()||(!t.match(/[a-zA-Z]+/)||"Please enter a valid number.")]}},async mounted(){},methods:{parseLocaleNumber(t){if(null==t)return null;var e=",",a=".";return e=1111..toLocaleString(navigator.language).replace(/1/g,""),a=1.1.toLocaleString(navigator.language).replace(/1/g,""),console.log("Trying to parse",t,"separator",a,"culture",navigator.language,"thousand separator",e),e?parseFloat(t.replace(new RegExp("\\"+e,"g"),"").replace(new RegExp("\\"+a),".")):parseFloat(t.replace(new RegExp("\\"+a),"."))}},computed:{mergedRules(){return this.rules?this.rules.concat(this.defaultRules):this.defaultRules},displayValue:{get:function(){if(this.mode==r["a"].UnitType.ELEVATION)return this.$options.filters.elevation(this.value,this.unit,!0);if(this.mode==r["a"].UnitType.NUMBER){const t=Number.isSafeInteger(this.multiplier)?this.multiplier:1;return 0===this.value?"0":this.value?(this.value/t).toLocaleString(navigator.language,{minimumFractionDigits:0,maximumFractionDigits:2}):""}return this.$options.filters.distance(this.value,this.unit,!0)},set:function(t){const e=Number.isSafeInteger(this.multiplier)?this.multiplier:1;let a=this.parseLocaleNumber(t);if(this.mode==r["a"].UnitType.NUMBER)return isNaN(a)&&(a=void 0),a*=e,void this.$emit("input",a);isNaN(a)&&(a=0);var n=0;n="IMPERIAL"==this.unit?this.mode==r["a"].UnitType.ELEVATION?a*(1/3.2808399):Math.round(1609.344*a):this.mode==r["a"].UnitType.ELEVATION?a:Math.round(1e3*a),this.$emit("input",n)}},formatted(){return this.mode==r["a"].UnitType.NUMBER?void 0===this.value||null==this.value?"":""+this.value:this.mode==r["a"].UnitType.ELEVATION?this.$options.filters.elevation(this.value,this.unit,!0):this.$options.filters.distance(this.value,this.unit,!0)},hintFormatted(){return this.hint?this.hint:this.mode==r["a"].UnitType.NUMBER?void 0===this.value||null==this.value?"":""+this.value:void 0===this.value||null==this.value?"":this.value+" m"}},watch:{mode(t){console.log("switching mode to",t)}}},o=s,l=a("2877"),g=a("6544"),p=a.n(g),u=a("8654"),h=Object(l["a"])(o,n,i,!1,null,null,null);e["a"]=h.exports;p()(h,{VTextField:u["a"]})},1930:function(t,e,a){"use strict";var n=a("585f"),i=a("7787"),r=a("4a1f"),s=a.n(r);const o=s.a.current();class l{constructor(t,e){this.context=t,this.service=i["a"],this.tenant=o,this.org=e}isDevelopment(){return!1}isFreePlan(){return!!this.org&&(!this.org.license||"FREE"===this.org.license)}isPaidPlan(){return!!this.org&&!this.isFreePlan()}isBasicPlan(){return!!this.org&&("FREE"===this.org.license||"BASIC"===this.org.license)}hasDeeplinking(){return!!this.org&&"cofi"==o.id}isProPlan(){return!!this.org&&("cofi"!==o.id||"PRO"===this.org.license||this.isEnterprisePlan())}isEnterprisePlan(){return!!this.org&&"ENTERPRISE"===this.org.license}hasMeta(t){return!!this.org&&(this.org.meta&&this.org.meta.some(e=>e.key===t))}getMeta(t){return this.org&&this.org.meta&&this.org.meta.find(e=>e.key===t)}getMetaStringValue(t){var e=this.getMeta(t);return e&&e.val_str}getMetaIntValue(t){var e=this.getMeta(t);return e&&e.val_int}async refresh(){if(!this.org)return!1;const t=this.org&&this.org.id;var e=await i["a"].get(t);return this.org=e.data,await n["a"].$emit("orgmanager-refresh",this),!0}async requestSave(){n["a"].$emit("orgmanager-request-save")}async save(){if(!this.org)return!1;try{var t=await i["a"].put(this.org);return console.log("save response",t),this.context.$helpers.toastResponse(this.context,{status:"OK"},"Organization saved successfully."),this.org=t.data,await n["a"].$emit("orgmanager-refresh",this),!0}catch(e){console.log("Error in saving",e),e.response&&(this.error=e.response.data.msg),this.refresh()}return!1}}e["a"]=l},"210b":function(t,e,a){},"2a7f":function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return r}));var n=a("71d9"),i=a("80d2");const r=Object(i["j"])("v-toolbar__title"),s=Object(i["j"])("v-toolbar__items");n["a"]},"2bc5":function(t,e,a){"use strict";a("14d9"),a("abd3");var n=a("1c87"),i=a("58df"),r=Object(i["a"])(n["a"]).extend({name:"v-breadcrumbs-item",props:{activeClass:{type:String,default:"v-breadcrumbs__item--disabled"},ripple:{type:[Boolean,Object],default:!1}},computed:{classes(){return{"v-breadcrumbs__item":!0,[this.activeClass]:this.disabled}}},render(t){const{tag:e,data:a}=this.generateRouteLink();return t("li",[t(e,{...a,attrs:{...a.attrs,"aria-current":this.isActive&&this.isLink?"page":void 0}},this.$slots.default)])}}),s=a("80d2"),o=Object(s["j"])("v-breadcrumbs__divider","li"),l=a("7560");e["a"]=Object(i["a"])(l["a"]).extend({name:"v-breadcrumbs",props:{divider:{type:String,default:"/"},items:{type:Array,default:()=>[]},large:Boolean},computed:{classes(){return{"v-breadcrumbs--large":this.large,...this.themeClasses}}},methods:{genDivider(){return this.$createElement(o,this.$slots.divider?this.$slots.divider:this.divider)},genItems(){const t=[],e=!!this.$scopedSlots.item,a=[];for(let n=0;n<this.items.length;n++){const i=this.items[n];a.push(i.text),e?t.push(this.$scopedSlots.item({item:i})):t.push(this.$createElement(r,{key:a.join("."),props:i},[i.text])),n<this.items.length-1&&t.push(this.genDivider())}return t}},render(t){const e=this.$slots.default||this.genItems();return t("ul",{staticClass:"v-breadcrumbs",class:this.classes},e)}})},"49e2":function(t,e,a){"use strict";var n=a("0789"),i=a("9d65"),r=a("a9ad"),s=a("3206"),o=a("80d2"),l=a("58df");const g=Object(l["a"])(i["a"],r["a"],Object(s["a"])("expansionPanel","v-expansion-panel-content","v-expansion-panel"));e["a"]=g.extend().extend({name:"v-expansion-panel-content",data:()=>({isActive:!1}),computed:{parentIsActive(){return this.expansionPanel.isActive}},watch:{parentIsActive:{immediate:!0,handler(t,e){t&&(this.isBooted=!0),null==e?this.isActive=t:this.$nextTick(()=>this.isActive=t)}}},created(){this.expansionPanel.registerContent(this)},beforeDestroy(){this.expansionPanel.unregisterContent()},render(t){return t(n["a"],this.showLazyContent(()=>[t("div",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-content",directives:[{name:"show",value:this.isActive}]}),[t("div",{class:"v-expansion-panel-content__wrap"},Object(o["s"])(this))])]))}})},"5b9b":function(t,e,a){"use strict";a("6dcb")},"6dcb":function(t,e,a){},"72a9":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.dark?"theme--dark v-toolbar v-sheet v-sheet--tile":""},[t.group&&t.group.img?a("v-img",{class:"white--text align-end "+(t.group.logo?"logo-container":"")+" "+(t.$vuetify.breakpoint.xs?"container-xs":"")+" "+(t.$vuetify.breakpoint.sm?"container-sm":""),attrs:{src:t.group.img,gradient:"to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5)",height:t.$vuetify.breakpoint.xs?"150px":"300px"}},[t.group.logo?a("span",{class:"event-logo pa-3 v-card elevation-7 v-sheet theme--light"},[a("img",{attrs:{alt:"Logo of "+t.group.name,src:t.group.logo}})]):t._e(),a("v-card-title",{staticClass:"display-2",domProps:{textContent:t._s(t.title||t.group.name)}})],1):a("v-card-title",{staticClass:"display-2",domProps:{textContent:t._s(t.title||t.group.name)}})],1)},i=[],r={name:"GroupHeader",components:{},props:{group:Object,title:String,dark:Boolean}},s=r,o=(a("5b9b"),a("2877")),l=a("6544"),g=a.n(l),p=a("99d9"),u=a("adda"),h=Object(o["a"])(s,n,i,!1,null,null,null);e["a"]=h.exports;g()(h,{VCardTitle:p["d"],VImg:u["a"]})},7787:function(t,e,a){"use strict";var n=a("dde5"),i=(a("4360"),a("b383")),r=a.n(i);e["a"]={getConfig(){return{headers:{}}},getRecent(){return n["a"].http.get("/v1.0/eventmanager/organizations/recent",this.getConfig())},getOwnedEvents(){return n["a"].http.get("/v1.0/eventmanager/organizations",this.getConfig())},create(t){return n["a"].http.post("/v1.0/eventmanager/organizations/",t,this.getConfig())},get(t){return n["a"].http.get("/v1.0/eventmanager/organizations/"+t,this.getConfig())},put(t){return n["a"].http.put("/v1.0/eventmanager/organizations/"+t.id,t,this.getConfig())},getEvents(t,e){return n["a"].http.get(`/v1.0/eventmanager/organizations/${t}/events?userCreated=${e||!1}`,this.getConfig())},getLicenseStatus(t){return n["a"].http.get(`/v1.0/eventmanager/organizations/${t}/license`,this.getConfig())},getStats(t){return n["a"].http.get(`/v1.0/eventmanager/organizations/${t}/stats`,this.getConfig())},getJoinInfo(t,e){return n["a"].http.get(`/v1.0/eventmanager/organizations/${t}/joininfo?code=${e||""}`,this.getConfig())},getPermissions(t){return n["a"].http.get(`/v1.0/eventmanager/organizations/${t}/permissions`,this.getConfig())},addPermissions(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/organizations/${t}/permissions/${e}`,r.a.stringify({roles:a}),this.getConfig())},deletePermissions(t,e){return n["a"].http.delete(`/v1.0/eventmanager/organizations/${t}/permissions/${e}`,this.getConfig())},getRegistrations(t){return n["a"].http.get(`/v1.0/eventmanager/organizations/${t}/registrations`,this.getConfig())},putRegistration(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/organizations/${t}/registrations/${e}`,a,this.getConfig())},deleteRegistration(t,e){return n["a"].http.delete(`/v1.0/eventmanager/organizations/${t}/registrations/${e}`,this.getConfig())},uploadRegistrations(t,e){return n["a"].http.post(`/v1.0/eventmanager/organizations/${t}/upload/registrations`,e,this.getConfig())},getUser(t,e){return n["a"].http.get(`/v1.0/eventmanager/organizations/${t}/registrations/${e}`,this.getConfig())},getMember(t,e){return n["a"].http.get(`/v1.0/eventmanager/organizations/${t}/users/${e}`,this.getConfig())},disconnectMember(t,e,a){return n["a"].http.delete(`/v1.0/eventmanager/organizations/${t}/users/${e}?deleteResults=${a}`,this.getConfig())},integrationsConfigureApp(t,e){return n["a"].http.post(`/v1.0/eventmanager/organizations/${t}/integrations/app`,e,this.getConfig())},integrationsConfigureSso(t,e){return n["a"].http.post(`/v1.0/eventmanager/organizations/${t}/integrations/sso`,e,this.getConfig())},getOAuthClient(t,e){return n["a"].http.get(`/v1.0/eventmanager/organizations/${t}/oauthclients/${e}`,this.getConfig())},putOAuthClient(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/organizations/${t}/oauthclients/${e}`,a,this.getConfig())},sendInviteEventEmailToCode(t,e){return n["a"].http.post(`/v1.0/eventmanager/organizations/${t}/email/invite/${e}`,{},this.getConfig())}}},"8adc":function(t,e,a){},"9a48":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.tenant.isDefault?a("div",[t.tenant.isDefault?a("script",{attrs:{type:"application/javascript"}},[t._v(" window.fwSettings={ 'widget_id':77000003036 }; !function(){if(\"function\"!=typeof window.FreshworksWidget){var n=function(){n.q.push(arguments)};n.q=[],window.FreshworksWidget=n}}() ")]):t._e(),t.tenant.isDefault?a("script",{attrs:{type:"application/javascript",src:t.tenant.isDefault?"https://euc-widget.freshworks.com/widgets/77000003036.js":"",async:"",defer:""}}):t._e()]):t._e()},i=[],r=a("4a1f"),s=a.n(r);const o=s.a.current();var l={name:"SupportButton",props:{},data:function(){return{tenant:o}},created(){},mounted(){},methods:{},computed:{}},g=l,p=a("2877"),u=Object(p["a"])(g,n,i,!1,null,"f34544ce",null);e["a"]=u.exports},abd3:function(t,e,a){},afdd:function(t,e,a){"use strict";var n=a("8336");e["a"]=n["a"]},c308:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),a("v-card",[a("v-card-title",{staticClass:"headline"},[t._v(" Edit Organization ")]),t.org?a("div",[t.error||!t.valid?a("v-alert",{attrs:{type:"error"}},[t._v(t._s(t.error||"There is one or more validation issues. Please check the form fields and correct any errors."))]):t._e(),a("v-form",{ref:"form",attrs:{"lazy-validation":""},model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[a("v-expansion-panels",{staticClass:"mb-4",attrs:{accordion:"",tile:""}},[a("v-expansion-panel",[a("v-expansion-panel-header",[a("v-icon",{staticClass:"shrink mr-4",attrs:{color:"gray"}},[t._v("fadl fal fa-info-circle")]),t._v(" General Options ")],1),a("v-expansion-panel-content",[t.tenant.isDefault?a("p",[t._v(" Please read our "),a("a",{attrs:{href:"https://corporatefitness.helpscoutdocs.com/category/123-organizations",target:"_blank"}},[t._v("Frequently asked questions")]),t._v(" on creating and managing events for tips and tricks. ")]):t._e(),a("v-text-field",{attrs:{rules:t.nameRules,label:"Organization name (required)",hint:"The name of your organization","prepend-icon":"fa-pencil-alt",required:""},model:{value:t.org.name,callback:function(e){t.$set(t.org,"name",e)},expression:"org.name"}}),a("v-input",{staticClass:"mt-0 input-row",attrs:{"prepend-icon":"fa-lock",label:"Require verification to join","hide-details":""}},[[a("v-btn-toggle",{staticClass:"multiline-btns",attrs:{mandatory:""},model:{value:t.calculatedVerificationMethod,callback:function(e){t.calculatedVerificationMethod=e},expression:"calculatedVerificationMethod"}},[a("v-btn",{attrs:{value:"_",small:""}},[t._v(" None ")]),a("v-btn",{attrs:{value:"REG_DATA",small:""}},[t._v(" Registration"),a("br"),t._v("Data ")])],1)]],2),t.org.verification?t._e():a("div",{staticClass:"ml-8 text-muted"},[t._v("This organization is open for anyone to join. Everyone who has the link can join.")]),"REG_DATA"===t.org.verification?a("div",{staticClass:"ml-8 text-muted"},[t._v("Manage registration data and/or upload Excel files to configure who may join this organization.")]):t._e(),a("ToggleButtonInput",{staticClass:"mt-4",attrs:{label:"Default datacenter",icon:"fa-globe",items:t.siteData.datacenters,disabled:!t.orgUtil.isProPlan(),hint:"For newly created events only"},model:{value:t.org.datacenter_id,callback:function(e){t.$set(t.org,"datacenter_id",e)},expression:"org.datacenter_id"}}),a("a",{staticClass:"font-s ml-8",attrs:{href:"https://corporatefitness.helpscoutdocs.com/article/95-choosing-your-datacenter-location",target:"_blank"}},[t._v("Read more on choosing a datacenter location")])],1)],1),a("v-expansion-panel",[a("v-expansion-panel-header",[a("v-icon",{staticClass:"shrink mr-4",attrs:{color:"gray"}},[t._v("fadl fal fa-fill-drip")]),t._v(" Design "),a("v-spacer"),t.org.logo&&t.org.img?a("span",{staticClass:"shrink mr-4 green--text"},[t._v("Configured")]):a("span",{staticClass:"shrink mr-4 red--text"},[t._v("Not Yet Uploaded")])],1),a("v-expansion-panel-content",[a("p",[t._v("Customize the design of your organization page. This will also be used as the default for newly created events within this organization.")]),a("h3",[t._v("Artwork")]),a("v-row",[a("v-col",{staticClass:"py-0",attrs:{cols:"12",md:"6"}},[a("p",[t._v("Logo (optional, square ~ 500 x 500 px)")]),a("EventImageUploadForm",{attrs:{"group-id":t.org.id,img:t.org.logo,type:"logo"}})],1),a("v-col",{staticClass:"py-0",attrs:{cols:"12",md:"6"}},[a("p",[t._v("Header image at the top of the organization page (optional, landscape format ~ 1150 x 300 px)")]),a("EventImageUploadForm",{attrs:{"group-id":t.org.id,img:t.org.img,type:"image"}})],1)],1),t.org.img?a("v-dialog",{attrs:{"max-width":"800px"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[a("v-btn",t._g({attrs:{outlined:"",color:"primary"}},n),[a("v-icon",{staticClass:"mr-2",attrs:{small:""}},[t._v("fa fa-eye")]),t._v(" View Preview")],1)]}}],null,!1,1857133254)},[a("v-card",[t.org.img?a("GroupHeader",{attrs:{group:t.org,title:t.org.name}}):t._e()],1)],1):a("p",{staticClass:"font-style--italic"},[t._v("Upload at least a header image to see a preview of the organization header.")]),a("h3",[t._v("Primary Color")]),a("p",[t._v("Configure your primary brand color. Will be used throughout your organization page. Make sure to pick a color with good contrast.")]),a("v-row",[a("v-col",{attrs:{cols:"6"}},[a("v-text-field",{attrs:{label:"Brand Color"},scopedSlots:t._u([{key:"append",fn:function(){return[a("v-menu",{attrs:{right:"","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[a("div",t._g({style:t.swatchStyle},n))]}}],null,!1,1889209126),model:{value:t.showColorPickerMenu,callback:function(e){t.showColorPickerMenu=e},expression:"showColorPickerMenu"}},[a("v-card",[a("v-card-text",{staticClass:"pa-0"},[a("v-color-picker",{attrs:{"show-swatches":"",mode:"hexa",flat:""},model:{value:t.colorForBinding,callback:function(e){t.colorForBinding=e},expression:"colorForBinding"}})],1)],1)],1)]},proxy:!0}],null,!1,3614948462),model:{value:t.org.color,callback:function(e){t.$set(t.org,"color",e)},expression:"org.color"}})],1)],1)],1)],1)],1),a("v-card-text",[a("v-btn",{staticClass:"mt-8 mb-8",attrs:{block:"",disabled:!t.valid,color:"primary",loading:t.$store.getters.isLoading},on:{click:t.submit}},[t._v("Save")]),a("v-snackbar",{attrs:{top:"",color:"success",timeout:6e3},model:{value:t.savedSnackbar,callback:function(e){t.savedSnackbar=e},expression:"savedSnackbar"}},[t._v(" Hooray, your organization is saved! ")]),t.error||!t.valid?a("v-alert",{staticClass:"mt-4",attrs:{type:"error"}},[t._v(t._s(t.error||"There is one or more validation issues. Please check the form fields and correct any errors."))]):t._e()],1)],1)],1):t._e()],1),a("SupportButton")],1)},i=[],r=(a("14d9"),a("2f62")),s=(a("ac67"),a("7787")),o=a("a8a9"),l=a("e355"),g=a("189c"),p=a("9a48"),u=a("52d5"),h=a("0528"),c=a("72a9"),v=a("1930"),d=a("585f"),m=a("3b3f"),f=a("4a1f"),$=a.n(f);const C=$.a.current();var b={name:"Profile",components:{DateWithTimeZonePicker:l["a"],DistanceTextArea:g["a"],SupportButton:p["a"],MarkdownEditor:u["a"],ToggleButtonInput:h["a"],EventImageUploadForm:o["a"],GroupHeader:c["a"]},props:{},data(){return{tenant:C,siteData:m,valid:!0,savedSnackbar:!1,showColorPickerMenu:!1,error:null,org:null,nameRules:[t=>!!t||"Please enter the organization name"]}},async mounted(){await this.loadData(),d["a"].$on("login-state-change",async t=>{await this.loadData()})},methods:{async submit(){if(this.$refs.form.validate()){this.error=null;try{await this.orgUtil.save(),this.$router.push({name:"orgmanagerView",params:{id:this.orgUtil.org.id}})}catch(t){console.error("Error saving",t),this.error="Unexpected error during saving, please verify all data and try again."}}},async getOrg(t){var e=await s["a"].get(t);this.org=e.data},async loadData(){this.user&&await this.getOrg(this.$route.params.id)}},computed:{orgUtil(){return new v["a"](this,this.org)},colorForBinding:{get(){return console.log("GET",this.org.color),this.org.color&&0!=this.org.color.length?this.org.color:"#FFFFFF"},set(t){console.log("SET",t),t&&t.length>7&&(t=t.substring(0,7).toUpperCase(),"#FFFFFF"===t&&(t=null)),this.org.color=t,this.$forceUpdate()}},swatchStyle(){const{org:t,showColorPickerMenu:e}=this;return{backgroundColor:t.color,cursor:"pointer",height:"30px",width:"30px",border:"solid 1px #ccc",borderRadius:e?"50%":"4px",transition:"border-radius 200ms ease-in-out"}},calculatedVerificationMethod:{get(){return this.org&&this.org.verification?this.org.verification:"_"},set(t){this.org.verification="_"===t?null:t}},breadcrumbItems(){return this.org?[{text:"Event Manager",exact:!0,to:{name:"eventmanager"}},{text:"Organizations",exact:!0,to:{name:"orgmanager"}},{text:this.org.name,exact:!0,to:{name:"orgmanagerView",params:{id:this.org.id}}},{text:"Edit",disabled:!0}]:[]},...Object(r["b"])({user:"user"})},watch:{}},y=b,x=a("2877"),k=a("6544"),w=a.n(k),P=a("0798"),_=a("2bc5"),T=a("8336"),E=a("a609"),A=a("b0af"),R=a("99d9"),I=a("62ad"),S=a("03a4"),B=a("169a"),O=a("cd55"),D=a("49e2"),V=a("c865"),F=a("0393"),z=a("4bd4"),j=a("132d"),M=a("b675"),L=a("e449"),U=a("0fd9"),N=a("2db4"),G=a("2fa4"),q=a("8654"),H=Object(x["a"])(y,n,i,!1,null,null,null);e["default"]=H.exports;w()(H,{VAlert:P["a"],VBreadcrumbs:_["a"],VBtn:T["a"],VBtnToggle:E["a"],VCard:A["a"],VCardText:R["c"],VCardTitle:R["d"],VCol:I["a"],VColorPicker:S["a"],VDialog:B["a"],VExpansionPanel:O["a"],VExpansionPanelContent:D["a"],VExpansionPanelHeader:V["a"],VExpansionPanels:F["a"],VForm:z["a"],VIcon:j["a"],VInput:M["a"],VMenu:L["a"],VRow:U["a"],VSnackbar:N["a"],VSpacer:G["a"],VTextField:q["a"]})},c865:function(t,e,a){"use strict";var n=a("0789"),i=a("9d26"),r=a("a9ad"),s=a("3206"),o=a("5607"),l=a("80d2"),g=a("58df");const p=Object(g["a"])(r["a"],Object(s["a"])("expansionPanel","v-expansion-panel-header","v-expansion-panel"));e["a"]=p.extend().extend({name:"v-expansion-panel-header",directives:{ripple:o["a"]},props:{disableIconRotate:Boolean,expandIcon:{type:String,default:"$expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:()=>({hasMousedown:!1}),computed:{classes(){return{"v-expansion-panel-header--active":this.isActive,"v-expansion-panel-header--mousedown":this.hasMousedown}},isActive(){return this.expansionPanel.isActive},isDisabled(){return this.expansionPanel.isDisabled},isReadonly(){return this.expansionPanel.isReadonly}},created(){this.expansionPanel.registerHeader(this)},beforeDestroy(){this.expansionPanel.unregisterHeader()},methods:{onClick(t){this.$emit("click",t)},genIcon(){const t=Object(l["s"])(this,"actions")||[this.$createElement(i["a"],this.expandIcon)];return this.$createElement(n["d"],[this.$createElement("div",{staticClass:"v-expansion-panel-header__icon",class:{"v-expansion-panel-header__icon--disable-rotate":this.disableIconRotate},directives:[{name:"show",value:!this.isDisabled}]},t)])}},render(t){return t("button",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-header",class:this.classes,attrs:{tabindex:this.isDisabled?-1:null,type:"button","aria-expanded":this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.$listeners,click:this.onClick,mousedown:()=>this.hasMousedown=!0,mouseup:()=>this.hasMousedown=!1}}),[Object(l["s"])(this,"default",{open:this.isActive},!0),this.hideActions||this.genIcon()])}})},cc20:function(t,e,a){"use strict";a("14d9"),a("8adc");var n=a("58df"),i=a("0789"),r=a("9d26"),s=a("a9ad"),o=a("4e82"),l=a("7560"),g=a("f2e7"),p=a("1c87"),u=a("af2b"),h=a("d9bd");e["a"]=Object(n["a"])(s["a"],u["a"],p["a"],l["a"],Object(o["a"])("chipGroup"),Object(g["b"])("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:()=>({proxyClass:"v-chip--active"}),computed:{classes(){return{"v-chip":!0,...p["a"].options.computed.classes.call(this),"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose,...this.themeClasses,...this.sizeableClasses,...this.groupClasses}},hasClose(){return Boolean(this.close)},isClickable(){return Boolean(p["a"].options.computed.isClickable.call(this)||this.chipGroup)}},created(){const t=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(h["a"])(t,e,this)})},methods:{click(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter(){const t=[];return this.isActive&&t.push(this.$createElement(r["a"],{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(i["b"],t)},genClose(){return this.$createElement(r["a"],{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:t=>{t.stopPropagation(),t.preventDefault(),this.$emit("click:close"),this.$emit("update:active",!1)}}},this.closeIcon)},genContent(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render(t){const e=[this.genContent()];let{tag:a,data:n}=this.generateRouteLink();n.attrs={...n.attrs,draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:n.attrs.tabindex},n.directives.push({name:"show",value:this.active}),n=this.setBackgroundColor(this.color,n);const i=this.textColor||this.outlined&&this.color;return t(a,this.setTextColor(i,n),e)}})},cd55:function(t,e,a){"use strict";var n=a("4e82"),i=a("3206"),r=a("80d2"),s=a("58df");e["a"]=Object(s["a"])(Object(n["a"])("expansionPanels","v-expansion-panel","v-expansion-panels"),Object(i["b"])("expansionPanel",!0)).extend({name:"v-expansion-panel",props:{disabled:Boolean,readonly:Boolean},data(){return{content:null,header:null,nextIsActive:!1}},computed:{classes(){return{"v-expansion-panel--active":this.isActive,"v-expansion-panel--next-active":this.nextIsActive,"v-expansion-panel--disabled":this.isDisabled,...this.groupClasses}},isDisabled(){return this.expansionPanels.disabled||this.disabled},isReadonly(){return this.expansionPanels.readonly||this.readonly}},methods:{registerContent(t){this.content=t},unregisterContent(){this.content=null},registerHeader(t){this.header=t,t.$on("click",this.onClick)},unregisterHeader(){this.header=null},onClick(t){t.detail&&this.header.$el.blur(),this.$emit("click",t),this.isReadonly||this.isDisabled||this.toggle()},toggle(){this.$nextTick(()=>this.$emit("change"))}},render(t){return t("div",{staticClass:"v-expansion-panel",class:this.classes,attrs:{"aria-expanded":String(this.isActive)}},Object(r["s"])(this))}})},e355:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-menu",{ref:"till",attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function(e){var n=e.on;return[a("v-text-field",t._g({staticClass:"pt-0",attrs:{label:t.label,hint:t.formattedHint,disabled:t.disabled,"persistent-hint":"","prepend-icon":"fa-calendar",readonly:"",rules:t.rules,clearable:t.clearable},model:{value:t.formatted,callback:function(e){t.formatted=e},expression:"formatted"}},n))]}}]),model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[a("v-date-picker",{attrs:{"no-title":"",value:t.valueAsIsoDate,"show-current":!1,min:t.minDate,max:t.maxDate,disabled:t.disabled},on:{input:t.handleChange}})],1)},i=[],r=a("1315"),s={name:"DateWithTimeZonePicker",components:{},props:{value:String,label:String,hint:String,timeZone:String,clearable:Boolean,minDate:String,maxDate:String,disabled:Boolean,rules:null},data(){return{showPicker:!1}},async mounted(){},methods:{handleChange(t){var e=r["DateTime"].fromISO(t,{zone:this.timeZone}).startOf("day").toISODate();console.log("Date picker emit value",t,"parsed to time zone:",e),this.$emit("input",e),this.showPicker=!1}},computed:{valueAsIsoDate:{get(){return null==this.value?null:r["DateTime"].fromISO(this.value,{zone:this.timeZone}).toISODate()},set(t){}},formatted:{get(){return null==this.value?null:r["DateTime"].fromISO(this.value,{zone:this.timeZone}).toLocaleString(r["DateTime"].DATE_SHORT)},set(t){var e=r["DateTime"].fromISO(t,{zone:this.timeZone}).startOf("day").toISODate();console.log("Date picker emit value",t,"parsed to time zone:",e),this.$emit("input",e)}},formattedHint(){return this.hint?this.hint:null==this.value||null==this.timeZone?null:r["DateTime"].fromISO(this.value,{zone:this.timeZone}).toLocaleString(r["DateTime"].DATE_FULL)}}},o=s,l=a("2877"),g=a("6544"),p=a.n(g),u=a("2e4b"),h=a("e449"),c=a("8654"),v=Object(l["a"])(o,n,i,!1,null,null,null);e["a"]=v.exports;p()(v,{VDatePicker:u["a"],VMenu:h["a"],VTextField:c["a"]})},f6b8:function(t,e,a){"use strict";var n=a("dde5"),i=(a("4360"),a("b383")),r=a.n(i);e["a"]={getConfig(){return{headers:{}}},slugify(t){return n["a"].http.post("/v1.0/eventmanager/slugify",r.a.stringify({value:t}),this.getConfig())},getOwnedEvents(t,e){return n["a"].http.get(`/v1.0/eventmanager?userCreated=${t||""}&orgId=${e||""}&archived=false`,this.getConfig())},getArchivedEvents(t,e){return n["a"].http.get(`/v1.0/eventmanager?userCreated=${t||""}&orgId=${e||""}&archived=true`,this.getConfig())},getRecentEvents(){return n["a"].http.get("/v1.0/eventmanager/recent",this.getConfig())},getUpcomingEvents(){return n["a"].http.get("/v1.0/eventmanager/upcoming",this.getConfig())},getEventsUpForRenewal(){return n["a"].http.get("/v1.0/eventmanager/renewals",this.getConfig())},markEventAsDismissedForRenewal(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/renewal/dismiss`,{},this.getConfig())},remindForRenewal(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/renewal/remind`,{},this.getConfig())},create(t,e){return n["a"].http.post("/v1.0/eventmanager/?userCreated="+(e||""),t,this.getConfig())},createTrial(t){return n["a"].http.post("/v1.0/eventmanager/trial",t,this.getConfig())},get(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}?includeSeries=${e||""}`,this.getConfig())},put(t){return n["a"].http.put("/v1.0/eventmanager/"+t.id,t,this.getConfig())},putRegConfig(t,e){return n["a"].http.put(`/v1.0/eventmanager/${t}/config/registration`,e,this.getConfig())},putOnboardingConfig(t,e){return n["a"].http.put(`/v1.0/eventmanager/${t}/config/onboarding`,e,this.getConfig())},getLocalized(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/translations`,this.getConfig())},saveLocalized(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/translations`,e,this.getConfig())},archiveEvent(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/archive`,{},this.getConfig())},unarchiveEvent(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/unarchive`,{},this.getConfig())},postRace(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/races`,e,this.getConfig())},getLicenseStatus(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/license`,this.getConfig())},applyLicense(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/license/apply?license=${e}`,{},this.getConfig())},enableExtendedDuration(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/license/extended-duration`,{},this.getConfig())},upgradeLicense(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/license/upgrade`,{},this.getConfig())},getStats(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/stats`,this.getConfig())},getLogs(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/logs`,this.getConfig())},getTasks(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/tasks`,this.getConfig())},getTask(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/tasks/${e}`,this.getConfig())},addTrainingPlan(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/training-plans`,e,this.getConfig())},addStreakChallenge(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/generate/streak`,e,this.getConfig())},addLastManStandingChallenge(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/generate/lastmanstanding`,e,this.getConfig())},addSubleaderboards(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/generate/subleaderboards`,e,this.getConfig())},addClaimChallenge(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/generate/claimchallenge`,e,this.getConfig())},applyTemplateToRace(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/template`,{id:a},this.getConfig())},disconnectRaceTemplate(t,e){return n["a"].http.delete(`/v1.0/eventmanager/${t}/${e}/template`,this.getConfig())},submitForApproval(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/submit`,e,this.getConfig())},linkWithSlack(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/link-slack?slackChannel=${e}`,{},this.getConfig())},linkWithTeams(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/link-teams?teamsInfoJson=${e}`,{},this.getConfig())},unlinkFromSlack(t){return n["a"].http.delete(`/v1.0/eventmanager/${t}/link-slack`,this.getConfig())},unlinkFromTeams(t){return n["a"].http.delete(`/v1.0/eventmanager/${t}/link-teams`,this.getConfig())},getEventsToLink(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/link-next`,this.getConfig())},linkNext(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/link-next`,e,this.getConfig())},linkOrg(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/link-org?orgId=${e}`,{},this.getConfig())},unlinkFromOrg(t){return n["a"].http.delete(`/v1.0/eventmanager/${t}/link-org`,this.getConfig())},lock(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/lock`,{},this.getConfig())},unlock(t){return n["a"].http.delete(`/v1.0/eventmanager/${t}/lock`,this.getConfig())},duplicate(t,e,a){return a||(a={name:e}),n["a"].http.post(`/v1.0/eventmanager/${t}/duplicate`,a,this.getConfig())},duplicateAsSimulation(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/create-simulator`,null,this.getConfig())},validateEventTemplate(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/template/validate`,e,this.getConfig())},applyEventTemplate(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/template/apply`,e,this.getConfig())},connectEventTemplate(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/template/connect?templateId=${e}`,{},this.getConfig())},disconnectEventTemplate(t){return n["a"].http.delete(`/v1.0/eventmanager/${t}/template`,this.getConfig())},upload(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/upload/${e}`,a,this.getConfig())},import(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/import/${e}`,a,this.getConfig())},exportRaceGpx(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/${e}/gpx`,this.getConfig())},uploadRaceGpx(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/upload/gpx`,a,this.getConfig())},uploadRaceCourse(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/upload/course`,r.a.stringify({encodedPolyline:a}),this.getConfig())},deleteRaceCourse(t,e){return n["a"].http.delete(`/v1.0/eventmanager/${t}/${e}/upload/course`,this.getConfig())},uploadRaceGeofence(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/upload/geofence`,r.a.stringify({poly:a}),this.getConfig())},uploadRaceResults(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/upload/results`,a,this.getConfig())},checkLiveResultsUrl(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/${e}/live-results`,this.getConfig())},uploadRegistrations(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/upload/registrations`,e,this.getConfig())},uploadPreloadedActivities(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/upload/preloadedactivities`,e,this.getConfig())},getPreloadedActivitiesInfo(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/preloadedactivities`,this.getConfig())},uploadTeamAssignment(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/upload/teamassignment`,e,this.getConfig())},getTeamAssignmentStatus(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/upload/teamassignment`,this.getConfig())},getRegistrations(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/registrations`,this.getConfig())},putRegistration(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/registrations/${e}`,a,this.getConfig())},deleteRegistration(t,e){return n["a"].http.delete(`/v1.0/eventmanager/${t}/registrations/${e}`,this.getConfig())},forceRegistrationSync(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/registrations/sync`,{},this.getConfig())},getParticipants(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/participants`,this.getConfig())},getParticipant(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/participants/${e}`,this.getConfig())},putParticipant(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/participants/${e}`,a,this.getConfig())},requestParticipantProviderSync(t,e,a,i){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/connections/${a}/sync?daysInPast=${i}`,null,this.getConfig())},getProfile(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/profiles/${e}`,this.getConfig())},disconnectParticipant(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/disconnect`,r.a.stringify({deleteResults:a}),this.getConfig())},reprocessParticipant(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/reprocess`,{},this.getConfig())},sendParticipantDeviceAction(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/device-send/${a}`,{},this.getConfig())},getParticipantMeta(t,e,a){return n["a"].http.get(`/v1.0/eventmanager/${t}/participants/${e}/meta/${a}`,this.getConfig())},deleteParticipantMeta(t,e,a){return n["a"].http.delete(`/v1.0/eventmanager/${t}/participants/${e}/meta/${a}`,this.getConfig())},getParticipantPhotos(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/participants/${e}/photos`,this.getConfig())},awardParticipant(t,e,a,i){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/award?awardCategory=${a||""}&awardPosition=${i||""}`,{},this.getConfig())},disconnectFromOnDemandRace(t,e,a){return n["a"].http.delete(`/v1.0/eventmanager/${t}/participants/${a}/races/${e}`,this.getConfig())},rewardBadge(t,e,a,i){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${a}/races/${e}/reward-badge`,i,this.getConfig())},syncTeamsForParticipant(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/syncteams`,{},this.getConfig())},joinTeamsForParticipant(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/jointeam`,r.a.stringify({groupId:a}),this.getConfig())},getProfileActivities(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/activities/paged`,r.a.stringify({continuationToken:a}),this.getConfig())},getParticipantActivityDetails(t,e,a){return n["a"].http.get(`/v1.0/eventmanager/${t}/participants/${e}/activities/${a}`,this.getConfig())},addParticipantActivity(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/activities`,a,this.getConfig())},editParticipantActivity(t,e,a,i){return n["a"].http.put(`/v1.0/eventmanager/${t}/participants/${e}/activities/${a}`,i,this.getConfig())},deleteParticipantActivity(t,e,a){return n["a"].http.delete(`/v1.0/eventmanager/${t}/participants/${e}/activities/${a}`,this.getConfig())},approveParticipantActivityDetails(t,e,a,i,r){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/activities/${a}/approve?raceId=${i||""}&badgeId=${r||""}`,this.getConfig())},rejectParticipantActivityDetails(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/participants/${e}/activities/${a}/reject`,this.getConfig())},deleteResult(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/${a}/disqualify`,{},this.getConfig())},recalculateResult(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/${a}/recalculate`,{},this.getConfig())},deleteProfileFromTeamResultByName(t,e,a,i,s){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/${a}/profiles`,r.a.stringify({name:i,score:s}),this.getConfig())},deleteProfileFromTeamResult(t,e,a,i){return n["a"].http.delete(`/v1.0/eventmanager/${t}/${e}/${a}/profiles/${i}`,this.getConfig())},getGroupParticipants(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/groupparticipants`,this.getConfig())},deleteGroupParticipant(t,e){return n["a"].http.delete(`/v1.0/eventmanager/${t}/groupparticipants/${e}`,this.getConfig())},updateGroupParticipant(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/groupparticipants/${e}`,r.a.stringify({name:a}),this.getConfig())},createTeam(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/groupparticipants`,r.a.stringify({name:e,category:a}),this.getConfig())},mergeTeams(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/groupparticipants/merge`,r.a.stringify({groupIds:e}),this.getConfig())},getTeamAssigment(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/teamassignment?${r.a.stringify({includedGroupIds:e})}`,this.getConfig())},saveTeamAssigment(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/teamassignment`,e,this.getConfig())},runRandomTeamAssignment(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/teamassignment/randomize`,{},this.getConfig())},getTeamPermissions(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/teams/${e}/permissions`,this.getConfig())},addTeamPermissions(t,e,a,i){return n["a"].http.put(`/v1.0/eventmanager/${t}/teams/${e}/permissions/${a}`,r.a.stringify({roles:i}),this.getConfig())},deleteTeamPermissions(t,e,a){return n["a"].http.delete(`/v1.0/eventmanager/${t}/teams/${e}/permissions/${a}`,this.getConfig())},getJoinInfo(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/joininfo?code=${e||""}`,this.getConfig())},getAllowlist(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/allowlist?raceId=${e||""}`,this.getConfig())},putAllowlist(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/allowlist?raceId=${e||""}`,r.a.stringify({allowlist:a}),this.getConfig())},getDenylist(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/denylist`,this.getConfig())},releaseCode(t,e){return n["a"].http.delete(`/v1.0/eventmanager/${t}/denylist/${e||""}`,this.getConfig())},getPermissions(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/permissions`,this.getConfig())},addPermissions(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/permissions/${e}`,r.a.stringify({roles:a}),this.getConfig())},deletePermissions(t,e){return n["a"].http.delete(`/v1.0/eventmanager/${t}/permissions/${e}`,this.getConfig())},inviteAdmin(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/permissions/invite`,r.a.stringify({email:e,roles:a}),this.getConfig())},acceptAdminInvite(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/permissions/accept-invite`,r.a.stringify({email:e,token:a}),this.getConfig())},exportReport(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/export/${e}`,{...this.getConfig(),responseType:"blob"})},exportRaceReport(t,e,a,i){return n["a"].http.get(`/v1.0/eventmanager/${t}/${e}/export/${a}?groupId=${i||""}`,{...this.getConfig(),responseType:"blob"})},sendRaceCompletedEmail(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/email/completed`,{},this.getConfig())},sendTestEmail(t){return n["a"].http.post("/v1.0/eventmanager/"+t,{},this.getConfig())},sendRaceCertificateEmail(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/email/certificate`,{},this.getConfig())},sendBibEmail(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/email/bib`,{},this.getConfig())},sendInviteEventEmail(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/email/invite`,{},this.getConfig())},sendFriendInviteEmail(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/email/friendinvite`,{},this.getConfig())},sendInviteEventEmailToCode(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/email/invite/${e||""}`,{},this.getConfig())},reinviteUnconnected(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/email/invite/unconnected`,{},this.getConfig())},getPromoEmailTemplate(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/promo/email/${e}`,this.getConfig())},sendPromoEmailTemplate(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/promo/email/${e}`,{},this.getConfig())},generatePromoPdfTemplate(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/promo/pdf/${e}?force=${a||""}`,{},this.getConfig())},generatePromoImageTemplate(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/promo/image/${e}?force=${a||""}`,{},this.getConfig())},moderatePhoto(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/photos/${e}/${a}`,this.getConfig())},putPhotoOverlays(t,e){return n["a"].http.put(`/v1.0/eventmanager/${t}/overlays`,e,this.getConfig())},uploadPhotoOverlay(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/overlays/image`,e,this.getConfig())},getVideos(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/videos`,this.getConfig())},deleteVideo(t,e){return n["a"].http.delete(`/v1.0/eventmanager/${t}/videos/${e}`,this.getConfig())},getFeed(t,e,a){return n["a"].http.get(`/v1.0/eventmanager/${t}/feed?type=${e||""}&continuationToken=${encodeURIComponent(a||"")}`,this.getConfig())},postToFeed(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/feed`,e,this.getConfig())},editFeedItem(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/feed/${e}`,a,this.getConfig())},deleteFeedItem(t,e){return n["a"].http.delete(`/v1.0/eventmanager/${t}/feed/${e}`,this.getConfig())},deleteFeedItemComment(t,e,a){return n["a"].http.delete(`/v1.0/eventmanager/${t}/feed/${e}/comments/${a}`,this.getConfig())},moderateFeedItem(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/feed/${e}/${a}`,model,this.getConfig())},getOAuthClient(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/oauthclients/${e}`,this.getConfig())},putOAuthClient(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/oauthclients/${e}`,a,this.getConfig())},getActivityConversions(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/conversions`,this.getConfig())},putActivityConversions(t,e){return n["a"].http.put(`/v1.0/eventmanager/${t}/conversions`,e,this.getConfig())},putActivityTypes(t,e){return n["a"].http.put(`/v1.0/eventmanager/${t}/activity-types`,e,this.getConfig())},putWebhooks(t,e){return n["a"].http.put(`/v1.0/eventmanager/${t}/webhooks`,e,this.getConfig())},getBibPreview(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/bib/preview?participantId=${e||""}`,{...this.getConfig(),responseType:"blob"})},getCertificatePreview(t,e,a){return n["a"].http.get(`/v1.0/eventmanager/${t}/${e}/certificate/preview?resultId=${a||""}`,{...this.getConfig(),responseType:"blob"})},getRelaySlots(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/${e}/relayslots`,this.getConfig())},putRelaySlots(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/${e}/relayslots`,a,this.getConfig())},getRaceResults(t,e,a){return n["a"].http.get(`/v1.0/eventmanager/${t}/${e}/results?page=${a||""}`,this.getConfig())},getResultColumns(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/${e}/columns`,this.getConfig())},putResultColumns(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/${e}/columns`,a,this.getConfig())},cloneResultColumns(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/columns/clone`,r.a.stringify({raceIds:a}),this.getConfig())},putRaceTiers(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/${e}/tiers`,a,this.getConfig())},putRaceTimeSlots(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/${e}/timeslots`,a,this.getConfig())},putRaceCompletionBadge(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/${e}/completion-badge`,a,this.getConfig())},postRaceClone(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/clone`,a,this.getConfig())},getBadges(t,e){return n["a"].http.get(`/v1.0/eventmanager/${t}/${e}/badges`,this.getConfig())},putBadge(t,e,a){return n["a"].http.put(`/v1.0/eventmanager/${t}/${e}/badges`,a,this.getConfig())},previewBadge(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/badges/preview`,a,this.getConfig())},deleteBadge(t,e,a){return n["a"].http.delete(`/v1.0/eventmanager/${t}/${e}/badges/${a}`,this.getConfig())},sendBadgeEmail(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/badges/${a}/email`,{},this.getConfig())},uploadBadgeImage(t,e,a,i){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/badges/${a}/image`,i,this.getConfig())},rewardCollectiveBadge(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/badges/${a}/reward-collective`,{},this.getConfig())},uploadBadgeDetailsImage(t,e,a,i){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/badges/${a}/detailsimage`,i,this.getConfig())},getBadgeClaimLink(t,e,a){return n["a"].http.get(`/v1.0/eventmanager/${t}/${e}/badges/${a}/claim-link`,this.getConfig())},copyBadges(t,e,a){return n["a"].http.post(`/v1.0/eventmanager/${t}/${e}/badges/copy?toRaceId=${a}`,{},this.getConfig())},integrationsConfigureApp(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/integrations/app`,e,this.getConfig())},integrationsConfigureSso(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/integrations/sso`,e,this.getConfig())},integrationsEventsComEvents(t){return n["a"].http.get(`/v1.0/eventmanager/${t}/integrations/eventscom/events`,this.getConfig())},integrationsEventsComConnect(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/integrations/eventscom/events/${e}`,{},this.getConfig())},integrationsEventsComSync(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/integrations/eventscom/sync`,{},this.getConfig())},integrationsClassySync(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/integrations/classy/sync`,{},this.getConfig())},integrationsMiroConnect(t,e){return n["a"].http.post(`/v1.0/eventmanager/${t}/integrations/miro/connect`,e,this.getConfig())},integrationsTeamsSync(t){return n["a"].http.post(`/v1.0/eventmanager/${t}/integrations/teams/sync`,{},this.getConfig())},integrationsTeamsVerify(t){return n["a"].http.post("/v1.0/eventmanager/integrations/teams/validate",t,this.getConfig())},getAds(){return n["a"].http.get("/v1.0/eventmanager/ads",this.getConfig())},postAd(t){return n["a"].http.post("/v1.0/eventmanager/ads",t,this.getConfig())},putAd(t,e){return n["a"].http.put("/v1.0/eventmanager/ads/"+t,e,this.getConfig())},deleteAd(t){return n["a"].http.delete("/v1.0/eventmanager/ads/"+t,this.getConfig())},uploadAdImage(t,e){return n["a"].http.post(`/v1.0/eventmanager/ads/${t}/image`,e,this.getConfig())}}}}]);
//# sourceMappingURL=chunk-0940f05e.e7c37c3d.js.map