require(['jquery','mage/url','mage/translate',],function($,url){'use strict';$(document).ready(function(){$(document).on('click tap','.pslogin-showmore-button',function(){if(this.dataset.psType==='knockout'){return true;} var $buttons=$(this).parents('div.pslogin-buttons');if(this.classList.contains('ps-show-less')){$buttons.find('.pslogin-hidden').fadeOut(275);}else{$buttons.find('.pslogin-hidden').fadeIn(275);} toggleButton(this);return false;});$(document).on('click','.pslogin-button-click',function(){var $this=$(this);if($this.data('useCustomClickHandler')){return true;} psLogin($this.data('href'),$this.data('width'),$this.data('height'),$this.data('openOnPage'));return false;});$('.pslogin-fake-email-message .close-message').on('click tap',function(){$(this).parent().hide();});});window.psLogin=function(href,width,height,openOnPage){if(!href){alert('The Login Application was not configured correctly. If your are the admin of store: Please activate “Enable Logging” in Magento Login Extension and try again to see error details.');return false;} if(openOnPage){require(['Magento_Customer/js/customer-data'],function(customerData){customerData.invalidate(['*']);window.location.href=href;});return;} width=width?width:650;height=height?height:350;if(href.indexOf('js_login_method')===0){prCustomJsLoginMethod(href,width,height);return;} var win=psOpenOAuthWindow(href,width,height);$(win.document).ready(function(){var loaderText='Loading...';var html='