MediaManagerExportInsightsSecureDataContext",["LoadObject","MediaManagerExportInsightsSecureDataContextQuery.graphql","RelayFBEnvironment","RelayModern","SearchableEntry","StaticSearchSource","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=i||(i=c("react")),m=k.useCallback,n=k.useContext,o=k.useEffect,p=k.useMemo,q=k.useState,r=h!==void 0?h:h=b("MediaManagerExportInsightsSecureDataContextQuery.graphql"),s=l.createContext({pagesData:c("LoadObject").loading(),igAccountsData:c("LoadObject").loading()}),t=function(a){a=(a=(a=a.creator_insights_exports)==null?void 0:a.fb_pages_with_insights_permission)!=null?a:[];a=a.map(function(a){var b;return new(c("SearchableEntry"))({photo:(b=(b=a.profile_picture)==null?void 0:b.uri)!=null?b:null,title:(b=a.name)!=null?b:"",uniqueID:c("nullthrows")(a.id,"Page ID should be nonnull")})});return new(c("StaticSearchSource"))(a)},u=function(a){a=(a=(a=a.creator_insights_exports)==null?void 0:a.fb_pages_with_insights_permission)!=null?a:[];a=a.map(function(a){return a.bizlink_instagram_business_account}).filter(Boolean);a=a.map(function(a){var b;return new(c("SearchableEntry"))({photo:(b=a.profile_picture_url)!=null?b:null,title:(b=a.name)!=null?b:"",uniqueID:c("nullthrows")(a.ig_asset_id,"Account ID should be nonnull")})});return new(c("StaticSearchSource"))(a)};function a(a){a=a.children;var b=q(c("LoadObject").loading()),e=b[0],f=b[1];b=q(c("LoadObject").loading());var g=b[0],h=b[1],i=m(function(){f(c("LoadObject").loading()),h(c("LoadObject").loading()),d("RelayModern").fetchQuery(c("RelayFBEnvironment"),r,{}).then(function(a){try{var b=t(a);a=u(a);f(c("LoadObject").withValue(b));h(c("LoadObject").withValue(a))}catch(a){f(c("LoadObject").withError(a)),h(c("LoadObject").withError(a))}})["catch"](function(a){f(c("LoadObject").withError(a)),h(c("LoadObject").withError(a))})},[]);o(function(){i()},[i]);b=p(function(){return{pagesData:e,igAccountsData:g}},[e,g]);return l.jsx(s.Provider,{value:b,children:a})}a.displayName=a.name+" [from "+f.id+"]";function e(){return n(s)}g.MediaManagerExportInsightsSecureDataProvider=a;g.useMediaManagerExportInsightsSecureData=e}),98);
-----
MediaManagerExportInsightsSecureDataContextQuery.graphql",["MediaManagerExportInsightsSecureDataContextQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},d={alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"ig_asset_id",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"profile_picture_url",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MediaManagerExportInsightsSecureDataContextQuery",selections:[{alias:null,args:null,concreteType:"CreatorInsightsExportsModel",kind:"LinkedField",name:"creator_insights_exports",plural:!1,selections:[{alias:null,args:null,concreteType:"Page",kind:"LinkedField",name:"fb_pages_with_insights_permission",plural:!0,selections:[a,c,d,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"bizlink_instagram_business_account",plural:!1,selections:[e,c,f],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MediaManagerExportInsightsSecureDataContextQuery",selections:[{alias:null,args:null,concreteType:"CreatorInsightsExportsModel",kind:"LinkedField",name:"creator_insights_exports",plural:!1,selections:[{alias:null,args:null,concreteType:"Page",kind:"LinkedField",name:"fb_pages_with_insights_permission",plural:!0,selections:[a,c,d,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"bizlink_instagram_business_account",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},e,c,f,{kind:"InlineFragment",selections:[a],type:"Node",abstractKey:"__isNode"}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MediaManagerExportInsightsSecureDataContextQuery_facebookRelayOperation"),metadata:{},name:"MediaManagerExportInsightsSecureDataContextQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
MediaManagerExportInsightsSecureDataContextQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="30254097334234892"}),null);
-----