<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([["socialLogin"],{"13cd":function(e,i,o){"use strict";o.r(i);var t=function(){var e=this,i=e.$createElement,o=e._self._c||i;return o("div",{staticClass:"social-login"},[o("div",{staticClass:"social-icons-container"},[o("div",{staticClass:"social-icon",on:{click:e.toggleIcon}},[o("img",{attrs:{src:e.currentIcon,alt:e.altText}})]),e.isActiveFacebookLogin?o("div",{staticClass:"social-icon"},[o("img",{attrs:{src:e.fbIcon,alt:""},on:{click:e.facebookLogin}})]):e._e(),e._m(0)])])},n=[function(){var e=this,i=e.$createElement,o=e._self._c||i;return o("div",{staticClass:"social-icon"},[o("div",{attrs:{id:"vLiveGLogin","data-click_listener":""}})])}],s=o("5530"),c=(o("caad"),o("2532"),o("0c12")),a=o("1ee7"),l=o("e5cf"),r=o("2f62"),p=(o("5b16"),{data:function(){return{mIcon:o("4ce7"),eIcon:o("fc57"),fbIcon:o("8485"),appleIcon:o("86a8"),gIcon:o("d950"),type:null,loginTxt:"",isActiveFacebookLogin:!1,isActiveGoogleLogin:!1,inputEnable:!1}},mounted:function(){var e=this;this.loginTxt=this.$t(window.PROVIDER_SETUP_CONFIG.welcome_Txt),this.isActiveFacebookLogin=this.appConfig.featureEnabled.isFacebookLoginEnabled,this.isActiveGoogleLogin=this.appConfig.featureEnabled.isGoogleLoginEnabled;var i=this;window.google.accounts.id.initialize({client_id:a["d"],scope:"email profile https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile",callback:i.handleCredentialResponse.bind(i)}),window.google.accounts.id.renderButton(document.getElementById("vLiveGLogin"),{type:"icon",shape:"circle",theme:"outline",text:"signup_with",size:"large"}),c["a"].$on("formType",(function(i){e.type=i}))},computed:Object(s["a"])(Object(s["a"])({},Object(r["c"])(["country","profileid","appConfig","subscriptionList"])),{},{currentIcon:function(){return this.inputEnable?this.mIcon:this.eIcon},altText:function(){return this.inputEnable?"mIcon":"eIcon"}}),created:function(){var e=this;"/"!=this.$route.path&amp;&amp;window.storeAfterLoginPath&amp;&amp;!window.storeAfterLoginPath.includes("subscription-plans")&amp;&amp;(window.storeAfterLoginPath=this.$route.path),c["a"].$on("login-response-social-profile",(function(){if(e.appConfig.featureEnabled.isMultipleProfileEnabled){var i=e.getCurrentLanguageUrlBase();e.listProfiles().then((function(o){o.data&amp;&amp;o.data.totalcount&gt;1?e.$router.push({name:"switchProfile",params:{lang:i,renderCancel:!1},query:{islogin:!0}}):(!window.selectedPlanInfomationRouting||e.subscriptionList&amp;&amp;e.subscriptionList.length&gt;0?e.$router.push({path:window.storeAfterLoginPath?window.storeAfterLoginPath:i?"/"+i:"/"}):(e.$router.push({name:"Home",params:{lang:i}}),setTimeout((function(){c["a"].$emit("open-home-rzp-modal",window.selectedPlanInfomationRouting),window.selectedPlanInfomationRouting=""}),500)),window.storeAfterLoginPath="")}))}})),this.appConfig.featureEnabled.isMultipleProfileEnabled&amp;&amp;c["a"].$on("subscriberDetails-set-success",(function(e){console.log("THE SOCIAL LOGIN RESPONSE FROM COMPONENT ---- &gt;subscriberDetails-set-success ",e)})),c["a"].$on("social-login-failed",(function(e){e.errorcode})),console.log("inside popup",window.facebookLoaded),window.dispatchEvent(window.facebookLoaded)},methods:Object(s["a"])(Object(s["a"])(Object(s["a"])({},Object(r["b"])(["listProfiles"])),Object(r["d"])(["setProfileid"])),{},{toggleIcon:function(){this.inputEnable=!this.inputEnable,c["a"].$emit("socialLoginToggleIcon",this.inputEnable)},facebookLogin:function(){if(this.isActiveFacebookLogin){var e=this;FB.login((function(i){if(i.authResponse){var o={app:"FB",type:e.type?e.type:"lookup",params:{devicetype:"PC",fbtoken:i.authResponse.accessToken,deviceos:e.getDeviceOS(),country:e.country?e.country.CountryCode:""}};c["a"].$emit("subscriberLogin",o)}}),{scope:"public_profile,email"})}},googleSignIn:function(){if(this.isActiveGoogleLogin){var e=this;window.google.accounts.id.initialize({client_id:a["d"],scope:"email profile https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile",callback:e.handleCredentialResponse.bind(e)}),window.google.accounts.id.prompt((function(e){console.log("00000",e),(e.isNotDisplayed()||e.isSkippedMoment())&amp;&amp;(document.cookie="g_state=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",google.accounts.id.prompt())}))}},handleCredentialResponse:function(e){console.log("handleCredentialResponse",JSON.stringify(e));var i={app:"Google",type:this.type?this.type:"lookup",params:{devicetype:"PC",deviceos:this.getDeviceOS(),gtoken:e.credential,country:this.country?this.country.CountryCode:""}};c["a"].$emit("subscriberLogin",i)},appleSignin:function(){AppleID.auth.init({clientId:"com.mobiotics.web.vlive",scope:"name email",redirectURI:"https://vlivewebapp-5ee2b.firebaseapp.com/",state:"qvlmvpyqBmyNx0x7MvBJ3DG7obdbUZ",usePopup:!0});var e=document.getElementById("Apple-signIn");e.addEventListener("click",(function(){AppleID.auth.signIn().then((function(e){if(e.authorization){var i={app:"Apple",params:{devicetype:"PC",deviceos:self.getDeviceOS(),appletoken:e.authorization.id_token}};c["a"].$emit("subscriberLogin",i)}}),(function(e){console.log(e)}))}))}}),beforeDestroy:function(){c["a"].$off("subscriberDetails-set-success")},mixins:[l["a"]]}),u=p,g=(o("e1ce0"),o("0c7c")),d=Object(g["a"])(u,t,n,!1,null,null,null);i["default"]=d.exports},"4ce7":function(e,i,o){e.exports=o.p+"img/mobileicon.06f18186.svg"},8485:function(e,i,o){e.exports=o.p+"img/facebook.5464c798.svg"},"86a8":function(e,i,o){e.exports=o.p+"img/Apple.538d4814.svg"},ccef:function(e,i,o){},d950:function(e,i,o){e.exports=o.p+"img/google.abfffcd7.svg"},e1ce0:function(e,i,o){"use strict";o("ccef")},fc57:function(e,i,o){e.exports=o.p+"img/emailicon.0ce00c6a.svg"}}]);
//# sourceMappingURL=socialLogin.94a36225.js.map</pre></body></html>