1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3061],{9931:(t,n,e)=>{e.d(n,{Z:()=>u});var r=e(244),o=e(6182),s=e(451),c={login:function(t,n){return(0,r.FP)().post(o.u.SERVER+o.u.LOGIN,{email:t,password:n}).then((function(t){return t.data})).catch((function(t){throw t}))},socialLogin:function(t){return r.Gp.popup(t,o.u.SERVER+o.u.SOCIAL_LOGIN+t,"callback").then((function(t){return t})).catch((function(t){throw t}))},register:function(t){return(0,r.FP)().post(o.u.SERVER+o.u.REGISTER,t).then((function(t){return t.data}))},register_newsletter:function(t){return(0,r.FP)().post(o.u.SERVER+o.u.REGISTER_NEWSLETTER,t).then((function(t){return t.data}))},refresh:function(){return(0,r.FP)().post(o.u.SERVER+o.u.REFRESH).then((function(t){return s.Z.login(t.data.at),t})).catch((function(t){throw s.Z.logout(),$("#loginModal").modal(),t}))},logout:function(){return(0,r.FP)().post(o.u.SERVER+o.u.LOGOUT,{}).then((function(t){return s.Z.logout(),window.location.href="/",t.data})).catch((function(t){if(t.response&&401==t.response.status)return c.refresh().then((function(t){return c.logout().then((function(t){return t.data})).catch((function(t){throw new r.sI("me",t.response)}))})).catch((function(t){throw new r.sI("refresh",t.response)}));throw new r.sI("parent-me",t.response)}))},forgot:function(t){return(0,r.FP)().post(o.u.SERVER+o.u.FORGOT,{email:t}).then((function(t){return t.data})).catch((function(t){throw t}))},reset:function(t,n){return(0,r.FP)().post(o.u.SERVER+o.u.RESET,{token:t,password:n}).then((function(t){return t.data})).catch((function(t){throw t}))},me:function(){return(0,r.FP)().get(o.u.SERVER+o.u.ME,{}).then((function(t){return s.Z.setUser(t.data.data),t.data}
1)).catch((function(t){if(t.response&&401==t.response.status)return c.refresh().then((function(t){return c.me().then((function(t){return t})).catch((function(t){throw new r.sI("me",t.response)}))})).catch((function(t){throw new r.sI("refresh",t.response)}));throw new r.sI("parent-me",t.response)}))},meWithoutRedirect:function(){return(0,r.FP)().get("".concat(o.u.SERVER+o.u.ME,"?cb=").concat(Date.now()),{}).then((function(t){return s.Z.setUser(t.data.data),t.data})).catch((function(t){throw new r.sI("parent-me",t.response)}))},updateUser:function(t){return(0,r.FP)().patch(o.u.SERVER+o.u.USER_UPDATE,t).then((function(t){return s.Z.setUser(t.data.data),t.data})).catch((function(n){if(n.response&&401==n.response.status)return c.refresh().then((function(n){return c.updateUser(t).then((function(t){return t})).catch((function(t){throw new r.sI("update",t.response)}))})).catch((function(t){throw new r.sI("refresh",t.response)}));throw new r.sI("parent-update",n.response)}))},deleteUser:function(){return(0,r.FP)().delete(o.u.SERVER+o.u.USER_DELETE).then((function(t){return s.Z.logout(),t})).catch((function(t){if(t.response&&401==t.response.status)return c.refresh().then((function(t){return c.updateUser().then((function(t){return t})).catch((function(t){throw new r.sI("update",t.response)}))})).catch((function(t){throw new r.sI("refresh",t.response)}));throw new r.sI("parent-update",t.response)}))}};const u=c},3061:(t,n,e)=>{e.r(n),e.d(n,{default:()=>c});var r=e(451),o=e(9931);const s={components:{listingchannels:function(){return e.e(6771).then(e.bind(e,6771))},listingproviders:function(){return e.e(4937).then(e.bind(e,4937))},listingcinemas:function(){return e.e(152).then(e.bind(e,152))},account:function(){return e.e(1333).then(e.bind(e,1333))},youraccount:function(){return e.e(3135).then(e.bind(e,3135))}},data:function(){return{user:null,isLoading:!0,updated:0}},props:{venues:{type:Array,required:!0},channels:{type:Array,required:!0},providers:{type:Array,required:!0},section:{type:String,default:"youraccount"}},methods:{route:function(t){"youraccount"==t&&(this.updated+=1),window.history.replaceState(null,null,"".concat(window.location.protocol,"//").concat(window.location.host,"/my-account/").concat(t))}},mounted:function(){var t=this,n=r.Z.user();window.history.replaceState(null,null,"".concat(window.location.protocol,"//").concat(window.location.host,"/my-account/").concat(this.section)),n?(t.user=n,t.isLoading=!1):o.Z.me().then((function(n){t.isLoading=!1,t.user=n.data})).catch((function(t){return console.log(t)}))},beforeCreate:function(){r.Z.check()||$("#loginModal").modal()}};const c=(0,e(1900).Z)(s,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isLoading,expression:"!isLoading"}],staticClass:"river-profile"},[e("tabs",{staticClass:"profile-tabs",on:{active:t.route}},[e("tab",{attrs:{id:"youraccount",name:"Your Account",selected:"youraccount"===t.section}},[e("youraccount",{key:t.updated,attrs:{venues:t.venues,channels:t.channels}})],1),t._v(" "),e("tab",{attrs:{id:"account",name:"Your Details",selected:"account"===t.section}},[e("account",{attrs:{venues:t.venues}})],1),t._v(" "),e("tab",{attrs:{id:"channels",name:"Your channels",selected:"channels"===t.section}},[e("listingchannels",{attrs:{channels:t.channels}})],1),t._v(" "),e("tab",{attrs:{id:"providers",name:"Your Streaming",selected:"providers"===t.section}},[e("listingproviders",{attrs:{providers:t.providers}})],1),t._v(" "),e("tab",{attrs:{id:"cinemas",name:"Your cinemas",selected:"cinemas"===t.section}},[e("listingcinemas",{attrs:{venues:t.venues}})],1)],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],staticClass:"loader"})],1)}),[],!1,null,null,null).exports},1900:(t,n,e)=>{function r(t,n,e,r,o,s,c,u){var a,i="function"==typeof t?t.options:t;if(n&&(i.render=n,i.staticRenderFns=e,i._compiled=!0),r&&(i.functional=!0),s&&(i._scopeId="data-v-"+s),c?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},i._ssrRegister=a):o&&(a=u?function(){o.call(this,(i.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(i.functional){i._injectStyles=a;var h=i.render;i.render=function(t,n){return a.call(n),h(t,n)}}else{var d=i.beforeCreate;i.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:i}}e.d(n,{Z:()=>r})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.