1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9884],{9884:(l,c,i)=>{i.r(c),i.d(c,{FacebookLoginWeb:()=>a});var r=i(5861),u=i(7423);class a extends u.Uw{constructor(){super({name:"FacebookLogin",platforms:["web"]})}initialize(e){const n={version:"v10.0"};return new Promise((s,t)=>{try{return this.loadScript(e.locale).then(()=>{FB.init(Object.assign(Object.assign({},n),e)),s()})}catch(o){t(o)}})}loadScript(e){if("undefined"==typeof document)return Promise.resolve();if(null==document?void 0:document.getElementById("fb"))return Promise.resolve();const t=document.getElementsByTagName("head")[0],o=document.createElement("script");return new Promise(d=>{o.defer=!0,o.async=!0,o.id="fb",o.onload=()=>{d()},o.src=`https://connect.facebook.net/${null!=e?e:"en_US"}/sdk.js`,t.appendChild(o)})}login(e){return(0,r.Z)(function*(){return console.log("FacebookLoginWeb.login",e),new Promise((n,s)=>{FB.login(t=>{console.debug("FB.login",t),"connected"===t.status?n({accessToken:{token:t.authResponse.accessToken}}):s({accessToken:{token:null}})},{scope:e.permissions.join(",")})})})()}logout(){return(0,r.Z)(function*(){return new Promise(e=>{FB.logout(()=>e())})})()}reauthorize(){return(0,r.Z)(function*(){return new Promise(e=>{FB.reauthorize(n=>e(n))})})()}getCurrentAccessToken(){return(0,r.Z)(function*(){return new Promise((e,n)=>{FB.getLoginStatus(s=>{"connected"===s.status?e({accessToken:{applicationId:void 0,declinedPermissions:[],expires:void 0,isExpired:void 0,lastRefresh:void 0,permissions:[],token:s.authResponse.accessToken,userId:s.authResponse.userID}}):n({accessToken:{token:null}})})})})()}getProfile(e){return(0,r.Z)(function*(){const n=e.fields.join(",");return new Promise((s,t)=>{FB.api("/me",{fields:n},o=>{o.error?t(o.error.message):s(o)})})})()}}}}]);
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.