AdsPromotableEventDataManager",["AdsBaseDataManager","AdsDataManagerApiUtils","AdsGraphAPI","AdsPromotableEventBatchLoadErrorDataAction","AdsPromotableEventBatchLoadedDataAction","AdsPromotableEventListBatchLoadErrorDataAction","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=["picture","cover","description","has_ticket_onsale_for_viewer","id","is_viewer_admin","name","place","start_time","ticket_uri","owner","is_pay_to_access"];a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.loadAllFor=function(a,b){var e=this;c("promiseDone")(d("AdsGraphAPI").get(f.id).objects("promotable_events",b).get({fields:h}),function(g){e.__handleSuccess(["load"],a,null,g),c("AdsPromotableEventBatchLoadErrorDataAction").dispatch({accountID:a,errors:d("AdsDataManagerApiUtils").extractErrors(g,b)},{line:"46",module:"AdsPromotableEventDataManager.js",moduleID:f.id})},function(e){return c("AdsPromotableEventBatchLoadErrorDataAction").dispatch({accountID:a,errors:d("AdsDataManagerApiUtils").extractErrors({},b,e)},{line:"52",module:"AdsPromotableEventDataManager.js",moduleID:f.id})})};e.loadFor=function(a,b){this.loadAllFor(a,[b])};e.__onBatchLoaded=function(a){a.forEach(function(a,b){a=new Map(Object.entries(a));c("AdsPromotableEventBatchLoadedDataAction").dispatch({accountID:b,promotableEvents:a},{line:"67",module:"AdsPromotableEventDataManager.js",moduleID:f.id})})};e.__onBatchLoadError=function(a){c("AdsPromotableEventListBatchLoadErrorDataAction").dispatch({accountID:a},{line:"79",module:"AdsPromotableEventDataManager.js",moduleID:f.id})};return b}(c("AdsBaseDataManager"));b=new a();g["default"]=b}),98);
-----
AdsPromotablePageDataManager",["AdsBaseDataManager","AdsDataManagerApiUtils","AdsGraphAPI","AdsPageFields","AdsPromotablePageBatchLoadErrorDataAction","AdsPromotablePageBatchLoadedDataAction","AdsPromotablePageListLoadErrorDataAction","FBLogger","forEachObject","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b={},d={};c("forEachObject")(a,function(a,e){a!=null&&e!=null?a.is_published===!0?b[e]=a:d[e]=a:c("FBLogger")("ads").warn("Page being processed is null or undefined")});return[b,d]}a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.loadAllFor=function(a,b){var e=this;c("promiseDone")(d("AdsGraphAPI").get(f.id).objects("promotable_pages",b).get({fields:d("AdsPageFields").forCurrentUser()}),function(g){var i=h(g),j=i[0];i=i[1];e.__handleSuccess(["load"],a,null,j);var k=d("AdsDataManagerApiUtils").extractErrors(g,b);Object.entries(i).forEach(function(a){a=a[0];k.set(a,new Error("Page unpublished"))});c("AdsPromotablePageBatchLoadErrorDataAction").dispatch({accountID:a,errors:k},{line:"59",module:"AdsPromotablePageDataManager.js",moduleID:f.id})},function(e){return c("AdsPromotablePageBatchLoadErrorDataAction").dispatch({accountID:a,errors:d("AdsDataManagerApiUtils").extractErrors({},b,e)},{line:"65",module:"AdsPromotablePageDataManager.js",moduleID:f.id})})};e.loadFor=function(a,b){this.loadAllFor(a,[b])};e.__onBatchLoaded=function(a){a.forEach(function(a,b){a=new Map(Object.entries(a));c("AdsPromotablePageBatchLoadedDataAction").dispatch({accountID:b,promotablePages:a},{line:"80",module:"AdsPromotablePageDataManager.js",moduleID:f.id})})};e.__onBatchLoadError=function(a){c("AdsPromotablePageListLoadErrorDataAction").dispatch({errors:a},{line:"89",module:"AdsPromotablePageDataManager.js",moduleID:f.id})};return b}(c("AdsBaseDataManager"));b=new a();g["default"]=b}),98);
-----
AdsDataManagerApiUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){var d=new Map();b.filter(function(b){return a[b]==null}).forEach(function(a){d.set(a,c||new Error("Object missing"))});return d}function b(a,b){return[a,b.limit!=null?"limit("+b.limit+")":null,b.adgroupID!=null?"adgroup_id("+b.adgroupID+")":null,"fields("+b.pageFields+")"].filter(Boolean).join(".")}f.extractErrors=a;f.buildParamsForEdge=b}),66);
-----
AdsPageInstagramAccountDataManager",["fbt","AdsBaseDataManager","AdsDataManagerApiUtils","AdsGraphAPI","AdsInstagramAccountPageBatchLoadErrorDataAction","AdsInstagramAccountPageBatchLoadedDataAction","AdsInstagramAccountPageCreatePageBackedErrorDataAction","AdsInstagramAccountPageCreatePageBackedSuccessDataAction","AdsInterfacesLogEvents","AdsInterfacesLogger","AdsUEditorCrossChannelShopsAdsCommon","GraphAPIFieldUtils","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i=["has_profile_picture","id","id_v2","is_messaging_light_switch_enabled","is_authorized_for_political_ads","is_business","is_professional","is_private","is_published","profile_pic","user_id","username","shopping_review_status","is_shopping_onsite_checkout_enabled","date_joined","is_shopless_account_with_static_product_tags_enabled","is_shopless_account_with_dynamic_product_tags_enabled","eimu_id",d("GraphAPIFieldUtils").getFieldWithSubfields("mini_shop_storefront",d("AdsUEditorCrossChannelShopsAdsCommon").STOREFRONT_FIELDS)].join(),j=["id","profile_picture_url","username","is_business_account","is_professional","is_private","is_unpublished","shopping_review_status","is_shopping_onsite_checkout_enabled"].join();a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i-----
AdsPromotablePageDataManager",["AdsBaseDataManager","AdsDataManagerApiUtils","AdsGraphAPI","AdsPageFields","AdsPromotablePageBatchLoadErrorDataAction","AdsPromotablePageBatchLoadedDataAction","AdsPromotablePageListLoadErrorDataAction","FBLogger","forEachObject","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b={},d={};c("forEachObject")(a,function(a,e){a!=null&&e!=null?a.is_published===!0?b[e]=a:d[e]=a:c("FBLogger")("ads").warn("Page being processed is null or undefined")});return[b,d]}a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.loadAllFor=function(a,b){var e=this;c("promiseDone")(d("AdsGraphAPI").get(f.id).objects("promotable_pages",b).get({fields:d("AdsPageFields").forCurrentUser()}),function(f){var g=h(f),i=g[0];g=g[1];e.__handleSuccess(["load"],a,null,i);var j=d("AdsDataManagerApiUtils").extractErrors(f,b);Object.entries(g).forEach(function(a){a=a[0];j.set(a,new Error("Page unpublished"))});c("AdsPromotablePageBatchLoadErrorDataAction").dispatch({accountID:a,errors:j},{line:"59",module:"AdsPromotablePageDataManager.js"})},function(e){return c("AdsPromotablePageBatchLoadErrorDataAction").dispatch({accountID:a,errors:d("AdsDataManagerApiUtils").extractErrors({},b,e)},{line:"65",module:"AdsPromotablePageDataManager.js"})})};e.loadFor=function(a,b){this.loadAllFor(a,[b])};e.__onBatchLoaded=function(a){a.forEach(function(a,b){a=new Map(Object.entries(a));c("AdsPromotablePageBatchLoadedDataAction").dispatch({accountID:b,promotablePages:a},{line:"80",module:"AdsPromotablePageDataManager.js"})})};e.__onBatchLoadError=function(a){c("AdsPromotablePageListLoadErrorDataAction").dispatch({errors:a},{line:"89",module:"AdsPromotablePageDataManager.js"})};return b}(c("AdsBaseDataManager"));b=new a();g["default"]=b}),98);
-----
AdsDataManagerApiUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){var d=new Map();b.filter(function(b){return a[b]==null}).forEach(function(a){d.set(a,c||new Error("Object missing"))});return d}function b(a,b){return[a,b.limit!=null?"limit("+b.limit+")":null,b.adgroupID!=null?"adgroup_id("+b.adgroupID+")":null,"fields("+b.pageFields+")"].filter(Boolean).join(".")}f.extractErrors=a;f.buildParamsForEdge=b}),66);
-----
AdsPageInstagramAccountDataManager",["fbt","AdsBaseDataManager","AdsDataManagerApiUtils","AdsGraphAPI","AdsInstagramAccountPageBatchLoadErrorDataAction","AdsInstagramAccountPageBatchLoadedDataAction","AdsInstagramAccountPageCreatePageBackedErrorDataAction","AdsInstagramAccountPageCreatePageBackedSuccessDataAction","AdsInterfacesLogEvents","AdsInterfacesLogger","AdsUEditorCrossChannelShopsAdsCommon","GraphAPIFieldUtils","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i=["has_profile_picture","id","id_v2","is_messaging_light_switch_enabled","is_authorized_for_political_ads","is_business","is_professional","is_private","is_published","profile_pic","user_id","username","shopping_review_status","is_shopping_onsite_checkout_enabled","date_joined","is_shopless_account_with_static_product_tags_enabled","is_shopless_account_with_dynamic_product_tags_enabled","eimu_id",d("GraphAPIFieldUtils").getFieldWithSubfields("mini_shop_storefront",d("AdsUEditorCrossChannelShopsAdsCommon").STOREFRONT_FIELDS)].join(),j=["id","profile_picture_url","username","is_business_account","is_professional","is_private","is_unpublished","shopping_review_status","is_shopping_onsite_checkout_enabled"].join();a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i-----
AdsPromotableEventDataManager",["AdsBaseDataManager","AdsDataManagerApiUtils","AdsGraphAPI","AdsPromotableEventBatchLoadErrorDataAction","AdsPromotableEventBatchLoadedDataAction","AdsPromotableEventListBatchLoadErrorDataAction","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=["picture","cover","description","has_ticket_onsale_for_viewer","id","is_viewer_admin","name","place","start_time","ticket_uri","owner","is_pay_to_access"];a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.loadAllFor=function(a,b){var e=this;c("promiseDone")(d("AdsGraphAPI").get(f.id).objects("promotable_events",b).get({fields:h}),function(f){e.__handleSuccess(["load"],a,null,f),c("AdsPromotableEventBatchLoadErrorDataAction").dispatch({accountID:a,errors:d("AdsDataManagerApiUtils").extractErrors(f,b)},{line:"46",module:"AdsPromotableEventDataManager.js"})},function(e){return c("AdsPromotableEventBatchLoadErrorDataAction").dispatch({accountID:a,errors:d("AdsDataManagerApiUtils").extractErrors({},b,e)},{line:"52",module:"AdsPromotableEventDataManager.js"})})};e.loadFor=function(a,b){this.loadAllFor(a,[b])};e.__onBatchLoaded=function(a){a.forEach(function(a,b){a=new Map(Object.entries(a));c("AdsPromotableEventBatchLoadedDataAction").dispatch({accountID:b,promotableEvents:a},{line:"67",module:"AdsPromotableEventDataManager.js"})})};e.__onBatchLoadError=function(a){c("AdsPromotableEventListBatchLoadErrorDataAction").dispatch({accountID:a},{line:"79",module:"AdsPromotableEventDataManager.js"})};return b}(c("AdsBaseDataManager"));b=new a();g["default"]=b}),98);
-----