(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6338f386"],{"0798":function(t,e,i){"use strict";i("0c18");var s=i("10d2"),r=i("afdd"),a=i("9d26"),o=i("f2e7"),n=i("7560"),l=i("2b0e"),c=l["a"].extend({name:"transitionable",props:{mode:String,origin:String,transition:String}}),d=i("58df"),u=i("d9bd");e["a"]=Object(d["a"])(s["a"],o["a"],c).extend({name:"v-alert",props:{border:{type:String,validator(t){return["top","right","bottom","left"].includes(t)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator(t){return"string"===typeof t||!1===t}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator(t){return["info","error","success","warning"].includes(t)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder(){if(!this.border)return null;let t={staticClass:"v-alert__border",class:{["v-alert__border--"+this.border]:!0}};return this.coloredBorder&&(t=this.setBackgroundColor(this.computedColor,t),t.class["v-alert__border--has-color"]=!0),this.$createElement("div",t)},__cachedDismissible(){if(!this.dismissible)return null;const t=this.iconColor;return this.$createElement(r["a"],{staticClass:"v-alert__dismissible",props:{color:t,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:()=>this.isActive=!1}},[this.$createElement(a["a"],{props:{color:t}},this.closeIcon)])},__cachedIcon(){return this.computedIcon?this.$createElement(a["a"],{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes(){const t={...s["a"].options.computed.classes.call(this),"v-alert--border":Boolean(this.border),"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text};return this.border&&(t["v-alert--border-"+this.border]=!0),t},computedColor(){return this.color||this.type},computedIcon(){return!1!==this.icon&&("string"===typeof this.icon&&this.icon?this.icon:!!["error","info","success","warning"].includes(this.type)&&"$"+this.type)},hasColoredIcon(){return this.hasText||Boolean(this.border)&&this.coloredBorder},hasText(){return this.text||this.outlined},iconColor(){return this.hasColoredIcon?this.computedColor:void 0},isDark(){return!(!this.type||this.coloredBorder||this.outlined)||n["a"].options.computed.isDark.call(this)}},created(){this.$attrs.hasOwnProperty("outline")&&Object(u["a"])("outline","outlined",this)},methods:{genWrapper(){const t=[this.$slots.prepend||this.__cachedIcon,this.genContent(),this.__cachedBorder,this.$slots.append,this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],e={staticClass:"v-alert__wrapper"};return this.$createElement("div",e,t)},genContent(){return this.$createElement("div",{staticClass:"v-alert__content"},this.$slots.default)},genAlert(){let t={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};if(!this.coloredBorder){const e=this.hasText?this.setTextColor:this.setBackgroundColor;t=e(this.computedColor,t)}return this.$createElement("div",t,[this.genWrapper()])},toggle(){this.isActive=!this.isActive}},render(t){const e=this.genAlert();return this.transition?t("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[e]):e}})},"0c18":function(t,e,i){},"2bc5":function(t,e,i){"use strict";i("14d9"),i("abd3");var s=i("1c87"),r=i("58df"),a=Object(r["a"])(s["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:i}=this.generateRouteLink();return t("li",[t(e,{...i,attrs:{...i.attrs,"aria-current":this.isActive&&this.isLink?"page":void 0}},this.$slots.default)])}}),o=i("80d2"),n=Object(o["j"])("v-breadcrumbs__divider","li"),l=i("7560");e["a"]=Object(r["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(n,this.$slots.divider?this.$slots.divider:this.divider)},genItems(){const t=[],e=!!this.$scopedSlots.item,i=[];for(let s=0;s<this.items.length;s++){const r=this.items[s];i.push(r.text),e?t.push(this.$scopedSlots.item({item:r})):t.push(this.$createElement(a,{key:i.join("."),props:r},[r.text])),s<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)}})},4279:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("v-toolbar",{attrs:{dark:"",color:"profile"},scopedSlots:t._u([t.focused?null:{key:"extension",fn:function(){return[i("v-tabs",{staticClass:"mx-0",attrs:{"background-color":"profile darken-1","slider-color":"white","show-arrows":""}},t._l(t.tabs,(function(e,s){return i("v-tab",{key:s,attrs:{to:e.to}},[t._v(" "+t._s(e.text)+" ")])})),1)]},proxy:!0}],null,!0)},[i("v-toolbar-title",{staticClass:"ml-4"},[i("router-link",{staticClass:"white--text no-decoration",attrs:{to:{name:"profile"}}},[t._v(t._s(t.title||t.$t("profile.heading")))])],1),i("v-spacer"),i("div",[t._t("default"),t.showEdit?i("v-btn",{staticClass:"mr-0",attrs:{to:{name:"profileEdit"}}},[i("v-icon",{staticClass:"mr-2",attrs:{small:""}},[t._v("fadl fa fa-user-edit")]),t._v(" "+t._s(t.$t("shared.edit"))+" ")],1):t._e(),i("v-menu",{attrs:{"offset-y":""},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,r=e.attrs;return[i("v-btn",t._g(t._b({attrs:{icon:"",title:"More options"}},"v-btn",r,!1),s),[i("v-icon",[t._v("fa-ellipsis-v")])],1)]}}])},[i("v-list",[i("v-list-item",{attrs:{href:t.tenant.profileFaqUrl,target:"_blank"}},[i("v-list-item-icon",[i("v-icon",[t._v("fal fa-question-circle")])],1),i("v-list-item-title",[t._v("FAQ")])],1)],1)],1)],2)],1)],1)},r=[],a=i("4a1f"),o=i.n(a);const n=o.a.current();var l={name:"ProfileHeader",components:{},props:{title:String,focused:Boolean,showEdit:Boolean},data(){return{tenant:n}},async mounted(){},methods:{},computed:{tabs(){return[{text:this.$t("profile.title"),to:{name:"profile"}},{text:this.$t("profile.activities.title-short"),to:{name:"activities"}},{text:this.$t("profile.friends.title"),to:{name:"profileFriends"}},{text:this.$t("app.nav.feed"),to:{name:"profileFeed"}},"wmm"==n.id?null:{text:this.$t("profile.groups.title"),to:{name:"profileGroups"}}].filter(t=>null!=t)}}},c=l,d=i("2877"),u=i("6544"),h=i.n(u),p=i("8336"),m=i("132d"),v=i("8860"),f=i("da13"),b=i("34c3"),y=i("5d23"),g=i("e449"),_=i("2fa4"),x=i("71a3"),C=i("fe57"),k=i("71d9"),$=i("2a7f"),I=Object(d["a"])(c,s,r,!1,null,null,null);e["a"]=I.exports;h()(I,{VBtn:p["a"],VIcon:m["a"],VList:v["a"],VListItem:f["a"],VListItemIcon:b["a"],VListItemTitle:y["c"],VMenu:g["a"],VSpacer:_["a"],VTab:x["a"],VTabs:C["a"],VToolbar:k["a"],VToolbarTitle:$["b"]})},5311:function(t,e,i){"use strict";i("14d9");var s=i("5607"),r=i("2b0e");e["a"]=r["a"].extend({name:"rippleable",directives:{ripple:s["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(t={}){return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",t)):null}}})},"6ca7":function(t,e,i){},"99d9":function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"d",(function(){return l}));var s=i("b0af"),r=i("80d2");const a=Object(r["j"])("v-card__actions"),o=Object(r["j"])("v-card__subtitle"),n=Object(r["j"])("v-card__text"),l=Object(r["j"])("v-card__title");s["a"]},abd3:function(t,e,i){},ac7c:function(t,e,i){"use strict";i("6ca7"),i("ec29");var s=i("9d26"),r=i("c37a"),a=i("fe09");e["a"]=a["a"].extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...r["a"].options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate(t){this.$nextTick(()=>this.inputIndeterminate=t)},inputIndeterminate(t){this.$emit("update:indeterminate",t)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(s["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}})},b3f8:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isEmbeddedInApp?t._e():i("v-breadcrumbs",{attrs:{items:t.breadcrumbItems}}),i("v-card",{attrs:{elevation:t.isEmbedded?0:2}},[t.isEmbeddedInApp?t._e():i("v-card-title",{staticClass:"display-2"},[t._v("Request Profile Removal")]),t.showDeletedPrompt?i("div",[i("v-card-text",[i("v-alert",{attrs:{type:"success"}},[i("p",[t._v("Your profile will be removed soon. ")]),i("p",[t._v("You can now log out from our app and/or website to complete this action.")])]),i("p",[t._v(" You may contact us within 7 days in case you rather keep your data. Please make sure to include the profile ID displayed below in such a request. ")]),i("v-text-field",{attrs:{value:t.profile.id,label:"Profile ID",readonly:"",disabled:"",color:"grey","prepend-icon":"fa fa-id-badge"},scopedSlots:t._u([{key:"append",fn:function(){return[i("v-btn",{staticClass:"ma-0",attrs:{text:"",color:"primary"},on:{click:t.copyProfileId}},[t._v(" Copy ")])]},proxy:!0}],null,!1,2448670691)}),i("p",[i("v-btn",{attrs:{outlined:"",to:{name:"profileKeep"}}},[t._v(t._s(t.$t("profile.edit.keep-profile")))])],1)],1)],1):t.profile?i("div",[i("v-card-text",[i("p",[t._v(" On your request, we can delete your profile and all other personal information we store for you. This includes your activities and the devices you have connected. ")]),i("p",[t._v(" Optionally, we can also delete your results from the events you are participating in, or have previously participated in. ")]),i("v-alert",{attrs:{type:"error"}},[t._v("This action cannot be undone once it's completed.")]),i("h3",[t._v("Revoking request to remove")]),i("p",[t._v(" After you've requested your profile to be removed we may take between 30 days and 3 months to permanently remove your personal information, as described in our privacy policy. ")]),i("p",[t._v(" After submitting the request you may contact us within 7 days in case you rather keep your data. Please make sure to include the profile ID displayed below in such a request. ")]),i("v-text-field",{attrs:{value:t.profile.id,label:"Profile ID",readonly:"",disabled:"",color:"grey","prepend-icon":"fa fa-id-badge"},scopedSlots:t._u([{key:"append",fn:function(){return[i("v-btn",{staticClass:"ma-0",attrs:{text:"",color:"primary"},on:{click:t.copyProfileId}},[t._v(" Copy ")])]},proxy:!0}])}),i("v-text-field",{attrs:{value:t.profile.email,label:"Email",readonly:"",disabled:"",color:"grey","prepend-icon":"fa fa-envelope"}})],1),i("v-card-text",[i("v-checkbox",{attrs:{label:"I confirm I want to delete my profile and all my activities and personal information. This action cannot be undone once it's completed.",hint:"","persistent-hint":""},model:{value:t.confirmed,callback:function(e){t.confirmed=e},expression:"confirmed"}}),i("v-checkbox",{attrs:{label:"Also delete all my results in the events I have participated.",hint:"","persistent-hint":""},model:{value:t.deleteResults,callback:function(e){t.deleteResults=e},expression:"deleteResults"}}),i("v-btn",{staticClass:"mt-8",attrs:{block:"",disabled:!t.isValid,color:"primary",loading:t.$store.getters.isLoading},on:{click:t.submit}},[t._v("Request Removal")])],1)],1):t._e()],1)],1)},r=[],a=i("2f62"),o=i("ac67"),n=i("585f"),l=i("4279"),c={name:"Profile",components:{Header:l["a"]},props:{},data(){return{breadcrumbItems:[{text:"Profile",exact:!0,to:{name:"profile"}},{text:"Request Removal",disabled:!0}],profile:null,deleteResults:!1,confirmed:!1,showDeletedPrompt:!1}},async mounted(){await this.getProfile(),n["a"].$on("login-state-change",async t=>{await this.getProfile()})},methods:{copyProfileId(){this.$helpers.copyToClipboard(this.profile.id,this.$toast)},async submit(){await o["a"].delete(this.deleteResults),this.showDeletedPrompt=!0},async getProfile(){if(this.user){var t=await o["a"].get();this.profile=t.data,this.showDeletedPrompt=this.profile.delete_initiated}}},computed:{isValid(){return this.confirmed},isEmbedded(){return"embed"===this.$route.query.view||"embed"==this.$store.state.view||this.isEmbeddedInApp},isEmbeddedInApp(){return"app"===this.$route.query.view||"app"==this.$store.state.view},...Object(a["b"])({user:"user"})},watch:{}},d=c,u=i("2877"),h=i("6544"),p=i.n(h),m=i("0798"),v=i("2bc5"),f=i("8336"),b=i("b0af"),y=i("99d9"),g=i("ac7c"),_=i("8654"),x=Object(u["a"])(d,s,r,!1,null,null,null);e["default"]=x.exports;p()(x,{VAlert:m["a"],VBreadcrumbs:v["a"],VBtn:f["a"],VCard:b["a"],VCardText:y["c"],VCardTitle:y["d"],VCheckbox:g["a"],VTextField:_["a"]})},ec29:function(t,e,i){},fe09:function(t,e,i){"use strict";i.d(e,"b",(function(){return n}));i("14d9");var s=i("c37a"),r=i("5311"),a=i("8547"),o=i("58df");function n(t){t.preventDefault()}e["a"]=Object(o["a"])(s["a"],r["a"],a["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive(){const t=this.value,e=this.internalValue;return this.isMultiple?!!Array.isArray(e)&&e.some(e=>this.valueComparator(e,t)):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,e):Boolean(e):this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel(){const t=s["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:n},t):t},genInput(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:n},ref:"input"})},onClick(t){this.onChange(),this.$emit("click",t)},onChange(){if(!this.isInteractive)return;const t=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const i=e.length;e=e.filter(e=>!this.valueComparator(e,t)),e.length===i&&e.push(t)}else e=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(e,t)?null:t:!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onKeydown(t){}}})}}]);
//# sourceMappingURL=chunk-6338f386.e265acff.js.map