1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8042],{85810:function(e,o,l){var a=l(85893);l(67294);var i=l(90714),t=l(15885),r=l(54332),n=l(25390),u=l(38677),c=l(28940),s=l(70872),d=l(32055),v=l(92263),b=l(47248);o.Z=e=>{var o,l,f,k;let p,h,g,{fields:{title:V,icon:w,redirectUrl:_,data:A},trackRedirection:C,analyticsRef:F,provider:I,dataTestValue:T}=e,Z=A.search.results[0],{sitecoreContext:{route:{templateId:x}}}=(0,v.zi)();if(!Z)return console.error("There are no settings for authentication through social networks."),null;let y=(0,s.FJ)(x),N=window.location.href;switch(I){case t.V.Apple:p=null===(l=Z.disableApple)||void 0===l?void 0:l.boolValue,h=u.Z,g=(0,n.uI)(Z.appleServiceId.value);break;case t.V.Facebook:p=null===(f=Z.disableFacebook)||void 0===f?void 0:f.boolValue,h=u.i,g=(0,n.l4)(Z.facebookApplicationId.value);break;case t.V.Google:p=null===(k=Z.disableGoogle)||void 0===k?void 0:k.boolValue,h=u.i,g=(0,n.A1)(Z.googleApplicationId.value)}if(p)return null;let R=y?c._d.getOrderSessionId():void 0,S=y?N:null==_?void 0:null===(o=_.value)||void 0===o?void 0:o.href,j=(0,i.kl)({url:S||"",key:b.PF,value:R}),z=(0,r.L)(I,{redirectUrl:j,returnUrl:h});return(0,a.jsx)(d.Z,{className:"social-login-button ".concat(I.toLowerCase(),"-button"),iconType:w,buttonText:V,iconSize:"24",link:(0,i.y_)(g,""),onClick:e=>{z(),null==C||C(e)},wrapperRef:F,dataTestValue:T})}},48042:function(e,o,l){l.r(o),l.d(o,{default:function(){return r}});var a=l(85893);l(67294);var i=l(15885),t=l(85810),r=(0,l(16464).Z)(e=>{let{fields:o,trackRedirection:l,analyticsRef:r,rendering:n}=e;return(0,a.jsx)(t.Z,{rendering:n,analyticsRef:r,trackRedirection:l,fields:o,provider:i.V.Facebook,dataTestValue:"social-login-button-facebook"})})}}]);
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.