1"use strict";(this.webpackJsonpCustomerAuth=this.webpackJsonpCustomerAuth||[]).push([[307],{2412:function(e,t,n){n.r(t),n.d(t,{GoogleButton:function(){return s}});var o=n(8346),i=n(4300),c=n(6774),r=n(8538),a=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.configPublishService=e,this.socialLoginService=t,this.loaded=!1}var t;return t=e,e.prototype.initialize=function(){var e=this,n=this.configPublishService.getValue("socialLogin");return this.clientId=n.google.clientId,new Promise(function(n,o){if(e.loaded)return n(),!0;try{e.socialLoginService.loadScript(t.PROVIDER_ID,t.CLIENT_URL,function(){n(),e.loaded=!0})}catch(e){o(e)}})},e.PROVIDER_ID="GOOGLE",e.CLIENT_URL="https://accounts.google.com/gsi/client",t=function(e,t,n,o){var i,c=arguments.length,r=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(r=(c<3?i(r):c>3?i(t,n,r):i(t,n))||r);return c>3&&r&&Object.defineProperty(t,n,r),r}([(0,o.singleton)(),a("design:paramtypes",[c.E,r.a])],e)}(),u=n(6176),f=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e,t){var n=this;this.domHelper=e,this.googleLoginService=t,this.init=function(){n.mainElementRef=n.domHelper.getDOM();var e=n.mainElementRef.querySelector("#google_social_btn");null==e||e.addEventListener("click",function(e){e.preventDefault(),n.googleLogin()})},this.googleLogin=function(){n.googleLoginService.initialize().then(function(){google.accounts.oauth2.initCodeClient({client_id:n.googleLoginService.clientId,scope:"profile email openid",ux_mode:"popup",callback:function(e){var t={};t.password=Math.random().toString(36).substr(2,20),t.social_login_source="GOOGLE",t.authorization_code=e.code,u.P.dispatchEvent(n.mainElementRef,"social.loginResponse",t),u.P.dispatchEvent(n.mainElementRef,"social.process",!1)}}).requestCode()}).catch(function(){u.P.dispatchEvent(n.mainElementRef,"social.process",!1),u.P.dispatchEvent(n.mainElementRef,"social.error","Sorry, we encountered an error. Please try again later.")})}}return function(e,t,n,o){var i,c=arguments.length,r=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(r=(c<3?i(r):c>3?i(t,n,r):i(t,n))||r);return c>3&&r&&Object.defineProperty(t,n,r),r}([(0,o.injectable)(),f("design:paramtypes",[i.g,l])],e)}()},8538:function(e,t,n){n.d(t,{a:function(){return u}});var o=n(6774),i=n(6001),c=n(8346),r=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(e,t,n,o){return new(n||(n=Promise))(function(i,c){function r(e){try{l(o.next(e))}catch(e){c(e)}}function a(e){try{l(o.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})},l=function(e,t){var n,o,i,c,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return c={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,a[0]&&(r=0)),r;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(6===a[0]&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},u=function(){function e(e,t){var n=this;
1this.configPublishService=e,this.httpService=t,this.getSocialLogin=function(){return a(n,void 0,void 0,function(){var e,t,n;return l(this,function(o){switch(o.label){case 0:return e=this.configPublishService.getValue("socialLogin"),t=e.getSocialLoginUrl,n=this.configPublishService.getValue("websiteCode"),[4,this.httpService.get("".concat(t,"?websiteCode=").concat(n))];case 1:return[2,o.sent()]}})})},this.login=function(e,t){return a(n,void 0,void 0,function(){var n;return l(this,function(o){switch(o.label){case 0:return n=this.configPublishService.getValue("websiteCode"),[4,this.httpService.post("".concat(e,"?websiteCode=").concat(n),t,{},!0)];case 1:return[2,o.sent()]}})})}}return e.prototype.loadScript=function(e,t,n,o){if(void 0===o&&(o=null),"undefined"!=typeof document&&!document.getElementById(e)){var i=document.createElement("script");i.async=!0,i.src=t,i.onload=n,o||(o=document.head),o.appendChild(i)}},function(e,t,n,o){var i,c=arguments.length,r=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(r=(c<3?i(r):c>3?i(t,n,r):i(t,n))||r);return c>3&&r&&Object.defineProperty(t,n,r),r}([(0,c.singleton)(),r("design:paramtypes",[o.E,i.O])],e)}()}}]);
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.