{"version":3,"sources":["script/social.js","script/bundle.js"],"names":["socialAPIs","Facebook","name","farm","order","accessButtonDefaultImageUrl","deferredInit","$","Deferred","init","d","s","id","js","fjs","def","inited","logged","window","fbAsyncInit","FB","appId","fbAppId","cookie","xfbml","version","getLoginStatus","response","console","log","status","resolve","error","document","getElementsByTagName","getElementById","createElement","src","parentNode","insertBefore","promise","login","dataLayer","push","event","reject","scope","getSocialData","api","SocialData","email","first_name","last_name","LinkedIn","getScript","IN","Event","on","User","isAuthorized","api_key","li_api_key","authorize","credentials_cookie","lang","fail","API","Profile","fields","result","me","userData","values","emailAddress","nome","firstName","cognome","lastName","socialINITs","socialConfig","networkname","this","Id","Email","Nome","Cognome","Farm","NetworkName","initSocialAPIs","WKIlogged","configuration","checkIdentitysUrl","registrationUrl","buttons","socialSpinnerImageUrl","sessionCheckFunction","SessionRemoteCheck","accessWithLabelHtml","disableUnbind","map","when","apply","done","socialLoggeds","toString","anySocialLodded","inArray","manualLogout","grep","sort","a","b","socialdata","getJSON","socialBackEndUrl","socialDataJson","encodeURIComponent","JSON","stringify","isAutomatic","wkiSessionCookieValue","getCookie","data","Command","x","Cookies","c","setCookie","Name","Value","Expire","location","pathname","postToUrl","socialLogin","containerSelector","errorsContainerSelector","socialName","errorElementSelector","loginOkUrl","social","hide","show","always","generateSocialAccessButtons","socialAPIsInitedSorted","length","html","sb","buttonsWrapperClass","append","i","fromHtml","buttonsHtml","buttonHtml","button","clickable","attr","bind","socialname","currentTarget","imageUrl","img","generateSocialBinderButtons","isAlx","socialfarms","socialFarmsJson","ui","getSocialBindLinkHtmlAlx","getSocialBindLinkHtml","toLowerCase","socialBind","element","insertAfter","parent","socialFarm","socialId","next","detach","replaceWith","url","json","input","val","form","submit","cname","ca","split","charAt","substring","indexOf","cvalue","expirationdate","expires","Date","parseInt","substr","toUTCString","removeDiacritics","str","diacriticsMap","A","AA","AE","AO","AU","AV","AY","B","C","D","DZ","Dz","E","F","G","H","I","J","K","L","LJ","Lj","M","N","NJ","Nj","O","OI","OO","OU","P","Q","R","S","T","TZ","U","V","VY","W","X","Y","Z","aa","ae","ao","au","av","ay","dz","e","f","g","h","hv","j","k","l","lj","m","n","nj","o","oi","ou","oo","p","q","r","ss","t","tz","u","v","vy","w","y","z","replace","closeProductSelectableBox","elem","fadeOut","showBox","fadeIn","setIeStyle","css","toCart","preventDefault","href","ready","IeLegacy","user_agent","ActiveXObject","navigator","userAgent","product_selectable_box_list","after","click","each","undefined","find","finalString","text","hrefVars","uniqueId","valuesSplitted","prepend","urlToCall","self","checked","siblings","parents","ajax","success","checkboxId","product_title","product_price","width","height","position","top","product_selectable_box_list_pos_left","proceed","trim","text_to_parse","has","remove_li_span","remove","alert"],"mappings":"AAAA,IAAAA,WAAA,GAEAA,WAAAC,SAAA,CACAC,KAAA,WACAC,KAAA,WACAC,MAAA,EACAC,4BAAA,2DACAC,aAAAC,EAAAC,WACAC,KAAA,WACA,IA6BAC,EAAAC,EAAAC,EACAC,EAAAC,EA9BAC,EAAAf,WAAAC,SAAAK,aACAN,WAAAC,SAAAe,QAAA,EACAhB,WAAAC,SAAAgB,QAAA,EAEAC,OAAAC,YAAA,WACA,IAEAC,GAAAX,KAAA,CACAY,MAAAC,QACAC,QAAA,EACAC,OAAA,EACAC,QAAA,SAGAL,GAAAM,eAAA,SAAAC,GACA3B,WAAAC,SAAAe,QAAA,EACAY,QAAAC,IAAA,wBACA7B,WAAAC,SAAAgB,OAAA,cAAAU,EAAAG,OACAf,EAAAgB,QAAA/B,WAAAC,SAAAgB,UAGA,MAAAe,GACAhC,WAAAC,SAAAe,QAAA,EACAD,EAAAgB,SAAA,GACAH,QAAAI,MAAAA,KAIA,IACAtB,EAMAuB,SANAtB,EAMA,SANAC,EAMA,iBALAE,EAAAJ,EAAAwB,qBAAAvB,GAAA,GACAD,EAAAyB,eAAAvB,MACAC,EAAAH,EAAA0B,cAAAzB,IAAAC,GAAAA,EACAC,EAAAwB,IAAA,sCACAvB,EAAAwB,WAAAC,aAAA1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A,wBAAA3J,KAAA,WAAA","file":"bundleLowPriority.js","sourcesContent":["var socialAPIs = {};\r\n\r\nsocialAPIs.Facebook = {\r\n name: \"Facebook\",\r\n farm: \"FACEBOOK\",\r\n order: 1,\r\n accessButtonDefaultImageUrl: 'www.altalex.it/Content/Altalex/images/social/fblogin.png',\r\n deferredInit: $.Deferred(),\r\n init: function () {\r\n var def = socialAPIs.Facebook.deferredInit;\r\n socialAPIs.Facebook.inited = false;\r\n socialAPIs.Facebook.logged = false;\r\n\r\n window.fbAsyncInit = function () {\r\n try {\r\n // call facebook init\r\n FB.init({\r\n appId: fbAppId,\r\n cookie: true, // enable cookies to allow the server to access the session\r\n xfbml: true, // parse social plugins on this page\r\n version: 'v2.1' // use version 2.1\r\n });\r\n\r\n FB.getLoginStatus(function (response) {\r\n socialAPIs.Facebook.inited = true;\r\n console.log(\"FACEBOOK API INITED!\"); //Facebook � inizializzato\r\n socialAPIs.Facebook.logged = response.status === 'connected';\r\n def.resolve(socialAPIs.Facebook.logged);\r\n });\r\n }\r\n catch (error) {\r\n socialAPIs.Facebook.inited = false;\r\n def.resolve(false); //In caso di errore, comunque risolvo\r\n console.error(error);\r\n }\r\n };\r\n\r\n try {\r\n (function (d, s, id) {\r\n var js, fjs = d.getElementsByTagName(s)[0];\r\n if (d.getElementById(id)) return;\r\n js = d.createElement(s); js.id = id;\r\n js.src = \"//connect.facebook.net/it_IT/all.js\";\r\n fjs.parentNode.insertBefore(js, fjs);\r\n }(document, 'script', 'facebook-jssdk'));\r\n }\r\n catch (error) {\r\n socialAPIs.Facebook.inited = false;\r\n def.resolve(false); //In caso di errore, comunque risolvo\r\n console.error(error);\r\n }\r\n\r\n return def.promise();\r\n },\r\n login: function () {\r\n var def = $.Deferred();\r\n try {\r\n FB.getLoginStatus(function (response) {\r\n socialAPIs.Facebook.logged = response.status === 'connected';\r\n \r\n if (socialAPIs.Facebook.logged) {\r\n window.dataLayer.push({ 'event': 'login-facebook-ok' });\r\n def.resolve(); \r\n }\r\n else\r\n FB.login(function (response) {\r\n if (response.status === 'connected') {\r\n def.resolve(response);\r\n } else {\r\n def.reject(response);\r\n }\r\n }, { scope: 'public_profile,email' });\r\n });\r\n }\r\n catch (error) {\r\n def.reject(error);\r\n window.dataLayer.push({ 'event': 'login-facebook-error' });\r\n console.error(error);\r\n }\r\n return def.promise();\r\n },\r\n getSocialData: function () {\r\n var def = $.Deferred();\r\n try {\r\n FB.api('/me', function (response) {\r\n def.resolve(new SocialData(response.id, response.email, response.first_name, response.last_name, socialAPIs.Facebook.farm, socialAPIs.Facebook.name));\r\n });\r\n }\r\n catch (error) {\r\n def.reject(error);\r\n console.error(error);\r\n }\r\n return def.promise();\r\n }\r\n};\r\n\r\nsocialAPIs.LinkedIn = {\r\n name: \"LinkedIn\",\r\n farm: \"LINKEDIN\",\r\n order: 2,\r\n accessButtonDefaultImageUrl: 'www.altalex.it/Content/Altalex/images/social/lilogin.png',\r\n deferredInit: $.Deferred(),\r\n init: function () {\r\n var def = socialAPIs.LinkedIn.deferredInit;\r\n socialAPIs.LinkedIn.inited = false;\r\n socialAPIs.LinkedIn.logged = false;\r\n\r\n $.getScript(\"//platform.LinkedIn.com/in.js?async=true\", function success() {\r\n try {\r\n IN.Event.on(IN, 'systemReady', function () {\r\n socialAPIs.LinkedIn.inited = true;\r\n console.log(\"LINKEDIN API INITED!\");\r\n socialAPIs.LinkedIn.logged = IN.User.isAuthorized();\r\n def.resolve(socialAPIs.LinkedIn.logged);\r\n });\r\n\r\n IN.init({\r\n api_key: li_api_key,\r\n //onLoad: \"lnAPILoaded\",\r\n authorize: true,\r\n credentials_cookie: true,\r\n lang: 'it_IT'\r\n });\r\n }\r\n catch (error) {\r\n socialAPIs.LinkedIn.inited = false;\r\n def.resolve(false); //In caso di errore, comunque risolvo\r\n console.error(error);\r\n }\r\n }).fail(function (error) {\r\n socialAPIs.LinkedIn.inited = false;\r\n def.resolve(false); //In caso di errore, comunque risolvo\r\n console.error(error);\r\n });\r\n return def.promise();\r\n },\r\n login: function () {\r\n var def = $.Deferred();\r\n try {\r\n if (IN.User.isAuthorized()) {\r\n window.dataLayer.push({ 'event': 'login-linkedin-ok' });\r\n def.resolve();\r\n }\r\n else {\r\n //var x = IN.UI.Authorize().place();\r\n //debugger;\r\n IN.User.authorize(function (response) {\r\n def.resolve();\r\n });\r\n }\r\n }\r\n catch (error) {\r\n def.reject(error);\r\n window.dataLayer.push({ 'event': 'login-linkedin-error' });\r\n console.error(error);\r\n }\r\n return def.promise();\r\n },\r\n getSocialData: function () {\r\n var def = $.Deferred();\r\n IN.API.Profile(\"me\")\r\n .fields(\"id,emailAddress,first-name,last-name,siteStandardProfileRequest\")\r\n .result(function (me) {\r\n var userData = me.values[0];\r\n var id = userData.id;\r\n var email = userData.emailAddress;\r\n var nome = userData.firstName;\r\n var cognome = userData.lastName;\r\n def.resolve(new SocialData(id, email, nome, cognome, socialAPIs.LinkedIn.farm, socialAPIs.LinkedIn.name));\r\n })\r\n .error(function (error) {\r\n def.reject(error);\r\n console.error(error);\r\n });\r\n return def.promise();\r\n }\r\n};\r\n\r\nvar SocialData = function (id, email, nome, cognome, farm, networkname) {\r\n this.Id = id;\r\n this.Email = email;\r\n this.Nome = nome;\r\n this.Cognome = cognome;\r\n this.Farm = farm;\r\n this.NetworkName = networkname;\r\n};\r\n\r\n//ALL SOCIALS INITED\r\n\r\n/*\r\nconfiguration deve contenere:\r\n- le url dele immagini dei pulsanti di accesso social, per ciascun social es. { Facebook: 'url1.jpg', Linkedin: 'url2.jpg' }\r\n- la url della pagina di registrazione (Command = fill_registration_form)\r\n- la url della pagina di inserimento credenziali (Command = require_login)\r\n*/\r\n\r\nvar socialINITs;\r\n\r\nvar socialConfig;\r\n\r\nvar initSocialAPIs = function (WKIlogged, configuration) {\r\n socialConfig = configuration;\r\n\r\n if (!socialConfig)\r\n socialConfig = {};\r\n\r\n if (!socialConfig.checkIdentitysUrl)\r\n socialConfig.checkIdentitysUrl = 'www.altalex.it/confermaIdentita';\r\n\r\n if (!socialConfig.registrationUrl)\r\n socialConfig.registrationUrl = 'www.altalex.it/area-personale/registrazione';\r\n\r\n if (!socialConfig.buttons)\r\n socialConfig.buttons = {};\r\n\r\n if (!socialConfig.socialSpinnerImageUrl)\r\n socialConfig.socialSpinnerImageUrl = '/Content/images/spinner.gif';\r\n\r\n if (!socialConfig.sessionCheckFunction)\r\n socialConfig.sessionCheckFunction = SessionRemoteCheck;\r\n\r\n if (!socialConfig.accessWithLabelHtml)\r\n socialConfig.accessWithLabelHtml = \"Accedi con:\";\r\n\r\n if (!socialConfig.disableUnbind)\r\n socialConfig.disableUnbind = false;\r\n\r\n socialINITs = $.map(socialAPIs, function (api) {\r\n return api.init();\r\n });\r\n $.when.apply($, socialINITs).done(function () {\r\n var socialLoggeds = $.map(socialAPIs, function (api) {\r\n return \" \" + api.name + \": \" + api.logged;\r\n });\r\n console.log(\"SOCIAL APIS INITED! WKIlogged: \" + WKIlogged + \",\" + socialLoggeds.toString());\r\n\r\n //Nel caso in cui non si � loggati in WKI ma si � loggati in almeno un social, tento il login automatico solo se non � stato appena fatto un logout manuale\r\n var anySocialLodded = $.inArray(true, $.map(socialAPIs, function (api) { return api.logged; })) > -1;\r\n\r\n if (!WKIlogged && anySocialLodded && manualLogout == false) {\r\n //TENTO IL LOGIN AUTOMATICO con la prima social API logged (utilizzo order per ordinare)\r\n var socialAPIsLoggedSorted = $.grep($.map(socialAPIs, function (api) { return api; }), function (api) { return api.logged; }).sort(function (a, b) { return a.order - b.order; });\r\n\r\n var social = socialAPIsLoggedSorted[0];\r\n\r\n social.getSocialData().done(function (socialdata) {\r\n //CHIAMATA JSONP\r\n $.getJSON(socialBackEndUrl + \"SocialWS.asmx/SocialLogin?jsoncallback=?\", { socialDataJson: encodeURIComponent(JSON.stringify(socialdata)), isAutomatic: true, wkiSessionCookieValue: getCookie('WKISESSION') })\r\n .done(function (data) {\r\n if (data.Command == \"logged\") {\r\n for (var x in data.Cookies) {\r\n var c = data.Cookies[x];\r\n setCookie(c.Name, c.Value, c.Expire);\r\n }\r\n socialConfig.sessionCheckFunction(); //L'utente � stato loggato: ricarico la pagina\r\n }\r\n else if (data.Command == \"require_login\") {\r\n if (socialConfig.checkIdentitysUrl == window.location.pathname || socialConfig.registrationUrl == window.location.pathname)\r\n return;\r\n postToUrl(socialConfig.checkIdentitysUrl, socialdata);\r\n }\r\n });\r\n });\r\n }\r\n });\r\n};\r\n\r\n//function richiamata dai pulsanti di accesso col social network\r\nvar socialLogin = function(containerSelector, errorsContainerSelector, socialName, errorElementSelector, registrationUrl, checkIdentitysUrl, sessionCheckFunction, loginOkUrl) {\r\n var social = socialAPIs[socialName];\r\n\r\n //$(containerSelector).html(\"