mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
1 line
3.1 KiB
JavaScript
1 line
3.1 KiB
JavaScript
|
webpackJsonp([0],{"/+lb":function(n,e,t){"use strict";var o=t("1RBt"),i=t.n(o),r={};r.ready=function(n,e){i.a.ready(n,e)},r.load=function(n,e,t){r.ready(n,function(){0===e.lastIndexOf("//",0)&&(e=window.location.protocol+e),i()(e,t)})},r.done=function(n){i.a.done(n)},e.a=r},"1RBt":function(n,e){function t(n,e){for(var t=0,o=n.length;t<o;++t)if(!e(n[t]))return p;return!0}function o(n,e){return t(n,function(n){return!e(n)}),p}function i(n,e,a){function c(n){return n.call?n():f[n]}function g(){if(!--h){f[y]=1,w&&w();for(var n in d)t(n.split("|"),c)&&!o(d[n],c)&&(d[n]=[])}}n=n[b]?n:[n];var p=e&&"function"==typeof e,w=p?e:a,y=p?n.join(""):e,h=n.length;return setTimeout(function(){o(n,function(n){return null===n?g():v[n]?(y&&(s[y]=1),2==v[n]&&g()):(v[n]=1,y&&(s[y]=1),void r(!u.test(n)&&l?l+n+".js":n,g))})},0),i}function r(n,e){var t=!1,o=function(n,e){t||("loaded"===n.readyState||"completed"===n.readyState?e():setTimeout(function(){o(n,e)},100))},i=a.createElement("script"),r=p,u=i.onload=i.onerror=i[m]=function(){t||(t=!0,i.readyState&&!/^c|loade/.test(i.readyState)||(i.onload=i[m]=null,r=1,v[n]=2,e()))};o(i,u),i.async=1,i.src=n,c.insertBefore(i,c.firstChild)}var a="undefined"==typeof window?null:window.document,c=a?a.getElementsByTagName("head")[0]:null,u=/^https?:\/\//,f={},s={},d={},l="",v={},g="string",p=!1,b="push",w="DOMContentLoaded",y="readyState",h="addEventListenerName",m="onreadystatechangeName";a&&!a[y]&&a[h]&&(a[h](w,function n(){a.removeEventListener(w,n,p),a[y]="complete"},p),a[y]="loading"),i.get=r,i.order=function(n,e,t){!function o(){var r=n.shift();n.length?i(r,o):i(r,e,t)}()},i.path=function(n){l=n},i.ready=function(n,e,r){var a=[];return!o(n=n[b]?n:[n],function(n){f[n]||a.push(n)})&&t(n,function(n){return f[n]})?e():function(n){d[n]||(d[n]=[]),d[n][b](e),r&&r(a)}(n.join("|")),i},i.done=function(n){i([null],n)},n.exports=i},uFsq:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t("YlIK"),i=t("mIxQ"),r=t.n(i),a=t("ZtCB"),c=t.n(a),u=t("/+lb"),f=t("EAiy"),s=!1,d={ensureInit:function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.a,o="fb";u.a.load([],"//connect.facebook.net/en_US/sdk.js","fb"),u.a.ready("fb",function(){var n=window.FB;n&&(s||(n.init({appId:r.a.FB_KEY,status:!0,version:"v2.2"}),FB.Event.subscribe("auth.statusChange",function(n){d.refreshAccessToken(t)}),s=!0),e(n))})},ensureLoggedIn:function n(e,t){d.ensureInit(function(n){d.logIn(n,e)},t)},logIn:function n(e,t){e&&(e.getUserID()?t(e):e.login(function(){t(e)}))},refreshAccessToken:function n(e){e.isAuthenticated()&&e.attributes.facebook_id&&!e.isLimitedLogin()&&d.ensureInit(function(n){if(n.getUserID()){var e=n.getAccessToken();e&&c.a.create("UserSocialNetworkResource",{facebook_token:e}).callUpdate({showError:!1})}},e)},injectTrackingPixel:function n(e){!function(){var n=window._fbq||(window._fbq=[]);if(!n.loaded){var e=document.createElement("script");e.async=!0,e.src="//connect.facebook.net/en_US/fbds.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),n.loaded=!0}}(),window._fbq=window._fbq||[],window._fbq.push(["track",e,{value:"0.00",currency:"USD"}])}};e.default=o.a.expose("Facebook",d)}});
|