AdsExcelLoggerStore",["AdsAccountBatchLoadedDataActionFlux","AdsAccountListBatchLoadedDataActionFlux","AdsAccountListPartialLoadDataActionFlux","AdsAccountSelectDataActionFlux","AdsDataAtom","AdsDraftDraftCurrentDraftLoadErrorDataActionFlux","AdsExcelAddinLogLevel","AdsExcelAddinLoggerContextColumn","AdsExcelAdsaccountCustomlistUpdateCancelAndAppShowMainActionFlux","AdsExcelAdsaccountCustomlistVerifiedAndAppShowMainActionFlux","AdsExcelAdsavedreportBatchCreatedActionFlux","AdsExcelAdsavedreportBatchDeletedActionFlux","AdsExcelAdsavedreportBatchLoadedActionFlux","AdsExcelAdsavedreportBatchUpdatedActionFlux","AdsExcelAdsavedreportCreateBatchActionFlux","AdsExcelAdsavedreportDeleteBatchActionFlux","AdsExcelAdsavedreportDuplicateBatchActionFlux","AdsExcelAdsavedreportListPartialLoadActionFlux","AdsExcelAdsavedreportSaveAsTemplateBatchActionFlux","AdsExcelAdsavedreportUpdateBatchActionFlux","AdsExcelAppInitializedActionFlux","AdsExcelAppNewReportAndIncreaseSubsessionIdActionFlux","AdsExcelAppPrefetchAdsaccountsActionFlux","AdsExcelAppShowMainActionFlux","AdsExcelAppStateStore","AdsExcelClientEnvironment","AdsExcelErrorDismissActionFlux","AdsExcelLoginStore","AdsExcelNewReportWizardAccountsSelectedActionFlux","AdsExcelNewReportWizardCancelActionFlux","AdsExcelNewReportWizardConfirmActionFlux","AdsExcelNewReportWizardNextStepActionFlux","AdsExcelNewReportWizardPrevStepActionFlux","AdsExcelNewReportWizardReportSpecSelectedActionFlux","AdsExcelNotificationFeedbackSuccessAndAppShowMainActionFlux","AdsExcelOfficeJSErrors","AdsExcelReportRefreshAndIncreaseSubsessionIdActionFlux","AdsExcelSaveInternalSettingActionFlux","AdsExcelUserProfileStore","AdsExcelWorksheetStore","AdsExcelWorksheetWriteActionFlux","AdsInsightsExportCDNErrorDataActionFlux","AdsInsightsExportCancelActionFlux","AdsInsightsExportCreateActionFlux","AdsInsightsExportCreateErrorDataActionFlux","AdsInsightsExportCreatedDataActionFlux","AdsInsightsExportDownloadErrorDataActionFlux","AdsInsightsExportDownloadedDataActionFlux","AdsInsightsExportErrorDataActionFlux","AdsInsightsExportFetchErrorDataActionFlux","AdsInsightsExportFetchedDataActionFlux","FBExcelLogger","FBExcelLoggerEventCategories","FBJSON","FluxStore","adsFormatErrorMessage","first","immutable","last"],(function(a,b,c,d,e,f,g){"use strict";var h,i=c("immutable").Set([d("AdsExcelNewReportWizardCancelActionFlux").actionType,d("AdsExcelNewReportWizardConfirmActionFlux").actionType,d("AdsExcelNewReportWizardNextStepActionFlux").actionType,d("AdsExcelNewReportWizardPrevStepActionFlux").actionType,d("AdsExcelErrorDismissActionFlux").actionType,d("AdsExcelAppPrefetchAdsaccountsActionFlux").actionType,d("AdsDraftDraftCurrentDraftLoadErrorDataActionFlux").actionType]);a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.call(this,h||(h=c("AdsDataAtom")))||this}var e=b.prototype;e.__onDispatch=function(a){var b;a=a.action;if(i.has(a.type))return;var e="error";if(Object.prototype.hasOwnProperty.call(a,e)){var f=a[e];e="name";if(Object.prototype.hasOwnProperty.call(f,e)){f=f[e];if(f===d("AdsExcelOfficeJSErrors").MSOFFICE_EXTENSION_ERROR_NAME)return}}e={};f=c("FBExcelLoggerEventCategories").FLUX_ACTION;switch(a.type){case d("AdsInsightsExportCreateActionFlux").actionType:e=(b={},b.ad_account_id_explicit=a.data.accountID,b[c("AdsExcelAddinLoggerContextColumn").INSIGHT_REPORT_SPEC]=a.data.asyncArgs,b);f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportCreatedDataActionFlux").actionType:e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data.reportRunID,b);f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportCancelActionFlux").actionType:if(a.data){e=(b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a.data,b)}f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportDownloadedDataActionFlux").actionType:if(a.data){e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data["export"].reportRunID,b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a.data,b)}f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportFetchedDataActionFlux").actionType:if(a.data){e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data["export"].reportRunID,b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a.data.data,b)}f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportErrorDataActionFlux").actionType:case d("AdsInsightsExportCreateErrorDataActionFlux").actionType:case d("AdsInsightsExportFetchErrorDataActionFlux").actionType:case d("AdsInsightsExportDownloadErrorDataActionFlux").actionType:case d("AdsInsightsExportCDNErrorDataActionFlux").actionType:e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data["export"].reportRunID,b.message=c("adsFormatErrorMessage")(a.data.error),b.page_uri=a.type===d("AdsInsightsExportErrorDataActionFlux").actionType?null:a.data.uri,b);f=c("FBExcelLoggerEventCategories").INSIGHTS_API_ERROR;break;case d("AdsExcelAppNewReportAndIncreaseSubsessionIdActionFlux").actionType:case d("AdsExcelReportRefreshAndIncreaseSubsessionIdActionFlux").actionType:c("FBExcelLogger").nextSubSession();break;default:e=this.$AdsExcelLoggerStore$p_1({action:a}),f=Object.prototype.hasOwnProperty.call(a,"error")?c("FBExcelLoggerEventCategories").FLUX_ACTION_ERROR:c("FBExcelLoggerEventCategories").FLUX_ACTION}c("FBExcelLogger").logEnum(f,a.type,e)};e.$AdsExcelLoggerStore$p_1=function(a){var b;a=a.action;if(Object.prototype.hasOwnProperty.call(a,"error"))return this.$AdsExcelLoggerStore$p_2({action:a});switch(a.type){case d("AdsExcelAppInitializedActionFlux").actionType:return{excel_api_supported:d("AdsExcelClientEnvironment").getExcelAPISupported(),dialog_api_supported:d("AdsExcelClientEnvironment").getDialogAPISupported(),commands_api_supported:d("AdsExcelClientEnvironment").getCommandsAPISupported()};case d("AdsExcelAdsaccountCustomlistUpdateCancelAndAppShowMainActionFlux").actionType:case d("AdsExcelAdsaccountCustomlistVerifiedAndAppShowMainActionFlux").actionType:case d("AdsExcelAppShowMainActionFlux").actionType:case d("AdsExcelNotificationFeedbackSuccessAndAppShowMainActionFlux").actionType:return b={},b[c("AdsExcelAddinLoggerContextColumn").FAME_APP_STATUS]={appState:c("AdsExcelAppStateStore").getAppState(),enableDevConsole:c("AdsExcelAppStateStore").isDevConsoleEnabled(),loginState:c("AdsExcelLoginStore").getLoginState(),userProfile:c("AdsExcelUserProfileStore").getUserProfile(),isManagedWorksheet:c("AdsExcelWorksheetStore").getIsFameManagedWorksheet()},b;case d("AdsAccountBatchLoadedDataActionFlux").actionType:case d("AdsAccountSelectDataActionFlux").actionType:return b={},b.ad_account_id_explicit=a.accountID,b.object_ids=[a.accountID],b;case d("AdsAccountListPartialLoadDataActionFlux").actionType:case d("AdsAccountListBatchLoadedDataActionFlux").actionType:return b={},b.object_ids=a.accounts.map(function(a){return a.account_id}),b;case d("AdsExcelAdsavedreportCreateBatchActionFlux").actionType:case d("AdsExcelAdsavedreportBatchCreatedActionFlux").actionType:case d("AdsExcelAdsavedreportUpdateBatchActionFlux").actionType:case d("AdsExcelAdsavedreportBatchUpdatedActionFlux").actionType:case d("AdsExcelAdsavedreportBatchLoadedActionFlux").actionType:case d("AdsExcelAdsavedreportDuplicateBatchActionFlux").actionType:case d("AdsExcelAdsavedreportSaveAsTemplateBatchActionFlux").actionType:return b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={reports:a.reports},b;case d("AdsExcelAdsavedreportDeleteBatchActionFlux").actionType:case d("AdsExcelAdsavedreportBatchDeletedActionFlux").actionType:return b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={ids:a.ids},b;case d("AdsExcelAdsavedreportListPartialLoadActionFlux").actionType:return b={},b.object_ids=a.reports.map(function(a){return a.id}),b;case d("AdsExcelNewReportWizardAccountsSelectedActionFlux").actionType:return b={},b.object_ids=a.accounts,b;case d("AdsExcelNewReportWizardReportSpecSelectedActionFlux").actionType:return b={},b.object_ids=[a.reportSpecID],b;case d("AdsExcelSaveInternalSettingActionFlux").actionType:return b={},b.object_ids=a.adAccountIDs,b;case d("AdsExcelWorksheetWriteActionFlux").actionType:b=a.data;var e=a.exportKey,f=a.startingRow,g=a.worksheet,h=a.columnNames;if(Array.isArray(b)&&c("first")(b)!=null&&Array.isArray(c("first")(b))){var i;return i={},i[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={dataLength:b.length,dataRowLengths:b.map(function(a){return Array.isArray(a)?a.length:-1}),firstRow:c("first")(b),lastRow:c("last")(b),exportKey:e,startingRow:f,worksheet:g,columnNames:h},i}return i={},i[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={data:b,exportKey:e,startingRow:f,worksheet:g,columnNames:h},i;default:return this.$AdsExcelLoggerStore$p_3({action:a})}};e.$AdsExcelLoggerStore$p_3=function(a){a=a.action;var b=c("AdsExcelAddinLogLevel").logFullFluxActionDetails;if(Object.prototype.hasOwnProperty.call(b,a.type)){return b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a,b}return{}};e.$AdsExcelLoggerStore$p_2=function(a){var b;a=a.action;var e=c("AdsExcelWorksheetStore").getAllWorksheets()||[];e=(b={},b[c("AdsExcelAddinLoggerContextColumn").WORKSHEET_INFO]=e.map(function(a){return d("FBJSON").stringify(c("AdsExcelWorksheetStore").getWorksheetSettings(a))}),b);b="";var f="",g="",h="error";if(Object.prototype.hasOwnProperty.call(a,h)){a=a[h];g=d("FBJSON").stringify(a);h="code";Object.prototype.hasOwnProperty.call(a,h)&&(b=a[h]);h="error_subcode";Object.prototype.hasOwnProperty.call(a,h)&&(f=a[h])}return babelHelpers["extends"]({},e,(a={},a.error_code=b,a.error_subcode=f,a.message=g,a))};return b}(c("FluxStore"));a.__moduleID=f.id;b=new a();g["default"]=b}),98);
-----
AdsAccountStoreNew",["invariant","AdsAMAccountAcceptedTosAddActionFlux","AdsAMAccountInitActionFlux","AdsAccountAddCapabilitiesDataActionFlux","AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountDataDispatcher","AdsAccountDataLoader","AdsAccountInitDataActionFlux","AdsAccountInvalidateDataActionFlux","AdsAccountListInvalidateDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountSettingsCreateFinishedDataActionFlux","AdsAccountStoreNewSource","AdsAccountUtils","AdsAccountViewerPermissionsLoadErrorDataActionFlux","AdsAccountViewerPermissionsLoadedDataActionFlux","AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux","AdsApplicationUtils","AdsCachedLoadState_LEGACY","AdsDSASetDefaultBeneficiaryPayorInfoActionFlux","AdsEngagementAudienceUILogger","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsLoadStateUtils_LEGACY","AdsLoadState_LEGACY","AdsPERefreshTableViewActionFlux","AdsPEUploadShowPreviewActionFlux","AdsPixelUIEnvironments","ApiClient","CurrentAdAccount","CurrentAdAccountInitialData","CurrentBusinessUser","DateTime","DateUtil","LoadObject","ReverseInteropStoreBase","URI","adsCreateSelector","adsCreateStoreSelector","gkx","goURI","ifRequired","immutable","isFalsey","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j="US",k=1;a=0;var l=c("DateTime").fromLegacyArgs(c("DateUtil").FACEBOOK_EPOCH*1e3,a).toISOString(),m="AdsAccountStoreNew.DATA_UPDATED.";b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e=new(c("AdsAccountStoreNewSource"))();b=a.call(this,e,m)||this;b.getSelectedAccountID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID}):b.$AdsAccountStoreClassNew$p_7()},{name:f.id});b.getSelectedAccountIDX=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){if(d("AdsApplicationUtils").isFAME()){var a=c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID});!a&&h(0,5919,a);return a}a=b.$AdsAccountStoreClassNew$p_7();!a&&h(0,5919,a);return a},{name:f.id});b.getSelectedBusinessID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.$AdsAccountStoreClassNew$p_10()},{name:f.id});b.getCreatedTime=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a;return(a=(a=b.__getSelectedAccount().getValue())==null?void 0:a.created_time)!=null?a:l},{name:f.id});b.getTimezoneID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a;return(a=(a=b.__getSelectedAccount().getValue())==null?void 0:a.timezone_id)!=null?a:k},{name:f.id});b.getTosAccepted=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a;return(a=b.__getSelectedAccount().getValue())==null?void 0:a.tos_accepted},{name:f.id});b.getSelectedAccount=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a||c("LoadObject").empty()})||c("LoadObject").empty():b.__getSelectedAccount()},{name:f.id});b.getSelectedAccountCapabilities=c("adsCreateSelector")([b.getSelectedAccount],function(a){return((a=a.getValue())==null?void 0:a.capabilities)||[]},{name:f.id});b.$AdsAccountStoreClassNew$p_6=e;b.$AdsAccountStoreClassNew$p_2={};b.$AdsAccountStoreClassNew$p_1=new Map();b.$AdsAccountStoreClassNew$p_3=!1;b.$AdsAccountStoreClassNew$p_4={hasMisMatches:!1,accountID:null};b.$AdsAccountStoreClassNew$p_5=new Map();return b}var e=b.prototype;e.getSource__TEST_ONLY=function(){return this.$AdsAccountStoreClassNew$p_6};e.canUpdateCurrency=function(){var a=this.$AdsAccountStoreClassNew$p_7();if(a==null)return!1;a=this.getCached(a).getValue();if(c("isFalsey")(a))return!1;var b=c("AdsAccountUtils").hasCapability(a,"CAN_UPDATE_CURRENCY");a=c("AdsAccountUtils").isPaymentInfoRequired(a);return b&&a};e.get=function(a){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty():this.getSingleValue(a,{})};e.getCached=function(a){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty():this.getCachedSingleValue(a,{})};e.$AdsAccountStoreClassNew$p_8=function(){var a=this.$AdsAccountStoreClassNew$p_7();if(!a)return;this.$AdsAccountStoreClassNew$p_6.load([a],[],!0);return};e.getAll=function(a){var b=this,d=new Map();a.forEach(function(a){d.set(a,b.get(a))});return c("immutable").Map(d)};e.getAllCached=function(a){var b=this,d=new Map();a.forEach(function(a){d.set(a,b.getCached(a))});return c("immutable").Map(d)};e.getByFields=function(a,b){if(c("gkx")("3848"))return this.get(a);var e=this.$AdsAccountStoreClassNew$p_1.get(a);if(!e){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassNew$p_1.set(a,c("AdsCachedLoadState_LEGACY").LOADING);return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING)}if(e.loadState===c("AdsLoadState_LEGACY").ERROR)return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").ERROR);if(e.loadState===c("AdsLoadState_LEGACY").LOADING)return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING);var f=b.some(function(a){return e[a]===null||e[a]===void 0});if(f){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassNew$p_1.set(a,babelHelpers["extends"]({},e,{loadState:c("AdsLoadState_LEGACY").LOADING}));return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING)}var g={};b.forEach(function(a){g[a]=e[a]});g.loadState=c("AdsLoadState_LEGACY").LOADED;return d("AdsLoadStateUtils_LEGACY").toLoadObject(g)};e.getAllByFields=function(a,b){var d=this;if(c("gkx")("3848"))return this.getAll(a);var e=new Map();a.forEach(function(a){e.set(a,d.getByFields(a,b))});return c("immutable").Map(e)};e.$AdsAccountStoreClassNew$p_7=function(){var a;if(!this.$AdsAccountStoreClassNew$p_9())return null;a=(a=c("CurrentAdAccount").getID())!=null?a:null;if(this.$AdsAccountStoreClassNew$p_4.hasMisMatches){var b;a=(b=this.$AdsAccountStoreClassNew$p_4.accountID)!=null?b:null}b=a===c("CurrentAdAccount").LOGGED_OUT?null:a;return b};e.$AdsAccountStoreClassNew$p_10=function(){var a;return(a=c("CurrentBusinessUser").business_id)!=null?a:null};e.getTimezoneName=function(){var a;return((a=this.__getSelectedAccount().getValue())==null?void 0:a.timezone_name)||""};e.getViewerPermissions=function(){var a=this.$AdsAccountStoreClassNew$p_7();if(a){this.$AdsAccountStoreClassNew$p_2[a]||(this.$AdsAccountStoreClassNew$p_2[a]=c("LoadObject").loading(),c("AdsAccountDataDispatcher").loadViewerPermissions(a));return this.$AdsAccountStoreClassNew$p_2[a]}return c("LoadObject").empty()};e.getViewerHasPermission=function(a){var b=this.getViewerPermissions();return b.hasValueWithoutError()&&Array.isArray(b.getValueEnforcing().data)&&b.getValueEnforcing().data.includes(a)};e.__getSelectedAccount=function(){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a})||c("LoadObject").empty();var a=this.$AdsAccountStoreClassNew$p_7();return!a?c("LoadObject").empty():this.get(a)};e.toURLParams=function(){var a=this.$AdsAccountStoreClassNew$p_7();return!a?null:{act:a}};e.reduce=function(a,b){b=b.action;var e=!1,f=this.$AdsAccountStoreClassNew$p_7();switch(b.actionType){case d("AdsAccountInitDataActionFlux").actionType:var g,h;g=(g=b.data.accountID)!=null?g:null;h=(h=(h=b.data.accountInfo.business)==null?void 0:h.id)!=null?h:null;var i=this.$AdsAccountStoreClassNew$p_10();if(h!==i){g=f!=null&&g!=null&&f===g;c("AdsAccountUtils").logBusinessAccountUpdatesMisMatched(i,h,"AdsAccountInit",g)}this.$AdsAccountStoreClassNew$p_11(b.data);e=!0;break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_12(b.accountID,b.account);e=!0;break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_13(b.accountID,b.error);e=!0;break;case d("AdsPEUploadShowPreviewActionFlux").actionType:b.didUpdateAccount&&this.$AdsAccountStoreClassNew$p_8();return a;case d("AdsAccountAddCapabilitiesDataActionFlux").actionType:if(f!=null){i=d("AdsLoadStateUtils_LEGACY").fromLoadObject(this.__getSelectedAccount());this.$AdsAccountStoreClassNew$p_1.set(f,babelHelpers["extends"]({},i,{capabilities:i.capabilities.concat(b.capabilities)}));e=!0}break;case d("AdsPERefreshTableViewActionFlux").actionType:this.__invalidateAllErrors()&&(e=!0);break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:this.__invalidateAllErrors()&&(e=!0);h=b.data.changedParamKeys;if(h.act||h.business_id){g=b.data.params;if(!g.act&&g.tool==="REPORTING")this.$AdsAccountStoreClassNew$p_14(g.business_id,g.act);else if(g.act)this.$AdsAccountStoreClassNew$p_15(g.act,g.business_id);else break;e=!0}break;case d("AdsAccountSelectDataActionFlux").actionType:if(d("AdsApplicationUtils").isPowerEditor())break;!b.accountID?this.$AdsAccountStoreClassNew$p_14(b.businessID,b.accountID):this.$AdsAccountStoreClassNew$p_15(b.accountID,b.businessID);e=!0;break;case d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_16(b.accountID,b.settingsID);e=!0;break;case d("AdsAccountInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_17(b.id);return a;case d("AdsAccountListInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_18(b.accounts);return a;case d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_2[b.accountID]=c("LoadObject").withValue({data:b.data});e=!0;break;case d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_2[b.accountID]=c("LoadObject").withError(new Error(b.data));e=!0;break;case d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType:c("AdsAccountDataDispatcher").handleAcceptMAIDeeplinkTOS(this.getSelectedAccountID());e=!0;break;case d("AdsAMAccountAcceptedTosAddActionFlux").actionType:if(f==null)break;i=this.$AdsAccountStoreClassNew$p_1.get(f);if(i==null)break;h=i.tos_accepted?i.tos_accepted:Object();h=babelHelpers["extends"]({},h,b.addedTOS);this.$AdsAccountStoreClassNew$p_1.set(f,babelHelpers["extends"]({},i,{tos_accepted:h}));e=!0;break;case d("AdsAMAccountInitActionFlux").actionType:g=b.account.account_id;this.$AdsAccountStoreClassNew$p_15(g,(i=b.account.business)==null?void 0:i.id);this.$AdsAccountStoreClassNew$p_12(g,b.account);e=!0;c("AdsAccountUtils").logAccID("flux");break;case d("AdsDSASetDefaultBeneficiaryPayorInfoActionFlux").actionType:h=b.accountID;i=this.$AdsAccountStoreClassNew$p_1.get(h);if(i==null)break;this.$AdsAccountStoreClassNew$p_1.set(h,babelHelpers["extends"]({},i,{default_dsa_beneficiary:b.defaultBeneficiary,default_dsa_payor:b.defaultPayor}));e=!0;break}if(e){c("ifRequired")("EventProfiler",function(a){f&&a.setCurrentAdAccountId(f)});return{}}return a};e.$AdsAccountStoreClassNew$p_19=function(a,b){var d=this.$AdsAccountStoreClassNew$p_1.get(a);!d||d.loadState===c("AdsLoadState_LEGACY").LOADING?this.$AdsAccountStoreClassNew$p_1.set(a,b):this.$AdsAccountStoreClassNew$p_1.set(a,babelHelpers["extends"]({},d,b))};e.$AdsAccountStoreClassNew$p_20=function(a){return this.$AdsAccountStoreClassNew$p_6.getValueFromAccountIDToGraphQLIDMap(a)};e.$AdsAccountStoreClassNew$p_12=function(a,b){var d=this.$AdsAccountStoreClassNew$p_1.get(a);d&&this.$AdsAccountStoreClassNew$p_1.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADED}));this.$AdsAccountStoreClassNew$p_19(a,babelHelpers["extends"]({},b,{loadState:c("AdsLoadState_LEGACY").LOADED}))};e.$AdsAccountStoreClassNew$p_13=function(a,b){this.$AdsAccountStoreClassNew$p_1.set(a,{loadState:c("AdsLoadState_LEGACY").ERROR,error:b})};e.$AdsAccountStoreClassNew$p_11=function(a){var b={},e=a.accountID;b=a.accountInfo;b.business_country_code=b.business_country_code||j;b.name=a.accountName;b.hasSuperRead=a.hasSuperRead;c("promiseDone")(d("AdsAccountDataLoader").postUserSettings(e));c("DateTime").setupTimezoneFallback(b.timezone_id,b.timezone_offset_hours_utc);d("AdsEngagementAudienceUILogger").setAppName(c("AdsPixelUIEnvironments").CM);b.loadState=c("AdsLoadState_LEGACY").LOADED;this.$AdsAccountStoreClassNew$p_19(e,b);c("AdsAccountUtils").logAccID("initAccountData")};e.$AdsAccountStoreClassNew$p_21=function(a){this.$AdsAccountStoreClassNew$p_6.removeValueFromGkData(a),this.__reverseInteropHandler.removeKeysFromLoadedKeysAndFields([a]),this.$AdsAccountStoreClassNew$p_6.deleteRecordsInRelayStore([a])};e.$AdsAccountStoreClassNew$p_17=function(a){var b=this.$AdsAccountStoreClassNew$p_20(a);if(b!=null){this.$AdsAccountStoreClassNew$p_21(a);return!0}return!1};e.__invalidateAllErrors=function(){var a=this,b=!1;this.$AdsAccountStoreClassNew$p_1.forEach(function(d,e){if(d.loadState===c("AdsLoadState_LEGACY").ERROR){d=a.$AdsAccountStoreClassNew$p_17(e);b=d||b}});return b};e.$AdsAccountStoreClassNew$p_18=function(a){var b=this,c=!1;a.forEach(function(a){c=c||b.$AdsAccountStoreClassNew$p_17(a);var d=b.$AdsAccountStoreClassNew$p_5.get(a);b.$AdsAccountStoreClassNew$p_5.set(a,d?d+1:1)});return c};e.$AdsAccountStoreClassNew$p_16=function(a,b){var d=this.$AdsAccountStoreClassNew$p_1.get(a);d!=null&&d.loadState===c("AdsLoadState_LEGACY").LOADED&&(d=babelHelpers["extends"]({},d,{user_settings:{id:b}}),this.$AdsAccountStoreClassNew$p_1.set(a,d))};e.$AdsAccountStoreClassNew$p_14=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassNew$p_22(a)){var e=this.$AdsAccountStoreClassNew$p_23(b,a);this.$AdsAccountStoreClassNew$p_4={hasMisMatches:e,accountID:b};e||this.$AdsAccountStoreClassNew$p_24(b,a);c("AdsAccountUtils").logAccID("selectBusiness")}};e.$AdsAccountStoreClassNew$p_15=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassNew$p_25(a)){var e=new(i||(i=c("URI")))(window.location.href);if(e.getPath().includes("billing_hub"))return;e=this.$AdsAccountStoreClassNew$p_23(a,b);this.$AdsAccountStoreClassNew$p_4={hasMisMatches:e,accountID:a};e||this.$AdsAccountStoreClassNew$p_24(a,b);c("AdsAccountUtils").logAccID("selectAccount")}};e.__setStoreStateTEST_ONLY_DO_NOT_USE_IN_PRODUCTION=function(a){var b=a.selectedAccountID,e=a.selectedBusinessID;a=a.accounts;c("CurrentAdAccountInitialData").AD_ACCOUNT_ID=b;var f=new Map();a.forEach(function(a,b){f.set(b,babelHelpers["extends"]({},a.getValueEnforcing(),{loadState:d("AdsLoadStateUtils_LEGACY").fromLoadObject(a).loadState}))});!d("AdsApplicationUtils").isFAME()&&(this.$AdsAccountStoreClassNew$p_25(b)||this.$AdsAccountStoreClassNew$p_22(e))&&(this.$AdsAccountStoreClassNew$p_4={hasMisMatches:!1,accountID:b});this.$AdsAccountStoreClassNew$p_1=f;c("AdsAccountUtils").logAccID("setStoreState")};e.$AdsAccountStoreClassNew$p_25=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassNew$p_7()};e.$AdsAccountStoreClassNew$p_9=function(){return c("ApiClient").getAccessToken()!=null||c("gkx")("21557")};e.$AdsAccountStoreClassNew$p_22=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassNew$p_10()};e.$AdsAccountStoreClassNew$p_23=function(a,b){var d=this.$AdsAccountStoreClassNew$p_7(),e=this.$AdsAccountStoreClassNew$p_10();a=(a=a)!=null?a:null;b=(b=b)!=null?b:null;var f=!0;try{var g=window.localStorage;if(g){var h=this.$AdsAccountStoreClassNew$p_26("curAccountID"),i=this.$AdsAccountStoreClassNew$p_26("requestedAccountID"),j=this.$AdsAccountStoreClassNew$p_26("curBusinessID"),k=this.$AdsAccountStoreClassNew$p_26("requestedBusinessID");f=h===d&&i===a&&j===e&&k===b;if(!f){g.setItem("curAccountID",(h=d)!=null?h:"none");g.setItem("requestedAccountID",(i=a)!=null?i:"none");g.setItem("curBusinessID",(j=e)!=null?j:"none");g.setItem("requestedBusinessID",(k=b)!=null?k:"none")}}}catch(a){f=!0}f&&(d!==a?c("AdsAccountUtils").logAdAccountUpdatesMisMatched(d,a,this.$AdsAccountStoreClassNew$p_9()):c("AdsAccountUtils").logBusinessAccountUpdatesMisMatched(e,b));return f};e.$AdsAccountStoreClassNew$p_26=function(a){var b=null;try{var c=window.localStorage;c&&(b=c.getItem(a),b=b==="none"?null:b)}catch(a){b=null}return b};e.$AdsAccountStoreClassNew$p_24=function(a,b){var d=new(i||(i=c("URI")))(window.location.href),e={};a!=null&&(e.act=a);b!=null&&(e.business_id=b);d.addQueryData(e);c("AdsAccountUtils").logMsgWhenAccountUpdates();c("goURI")(d)};return b}(c("ReverseInteropStoreBase"));e=new b();g["default"]=e}),98);
-----
AdsReportBuilderScenarioUtil",["AdsAccountBatchLoadedDataActionFlux","AdsBusinessBatchLoadedDataActionFlux","AdsDataAtom","AdsInterfacesRouteDataFetchedDataActionFlux","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsPENavigationProvider","AdsPEReportBuilderTableInitActionFlux","AdsPEReportBuilderTableLoadNextActionFlux","AdsRBDupReportIDGenerator","AdsRBNavStateHelper","AdsRBSwitchBusinessAccountActionFlux","AdsReportBuilderCreateReportActionFlux","AdsReportBuilderCreateReportSuccessActionFlux","AdsReportBuilderDeleteReportActionFlux","AdsReportBuilderDimensionUpdateActionFlux","AdsReportBuilderDuplicateActionFlux","AdsReportBuilderEntryPointEventSources","AdsReportBuilderFilterSetChangeActionFlux","AdsReportBuilderManageReportsFilterSetProvider","AdsReportBuilderManageReportsTableRenderActionFlux","AdsReportBuilderMetricUpdateActionFlux","AdsReportBuilderRefreshTableActionFlux","AdsReportBuilderReportSpecUtil","AdsReportBuilderSelectAttributionWindowActionFlux","AdsReportBuilderSelectReportActionFlux","AdsReportBuilderSortChangeActionFlux","AdsReportBuilderTimeRangeChangeActionFlux","AdsReportBuilderToggleLockedDimensionActionFlux","AdsReportingViewLoadedActionFlux","AdsReportingViewSectionType","AdsSelectorUtils","BizSiteIdentifier.brands","URI","adsFormatErrorMessage","createObjectFrom","emptyFunction","first","getViewportDimensions","ifRequired","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;b=(a={},a[c("AdsReportBuilderSortChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderTimeRangeChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderToggleLockedDimensionActionFlux").actionType]=!0,a[c("AdsReportBuilderFilterSetChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderDimensionUpdateActionFlux").actionType]=!0,a[c("AdsReportBuilderMetricUpdateActionFlux").actionType]=!0,a[c("AdsReportBuilderSelectReportActionFlux").actionType]=!0,a[c("AdsPEReportBuilderTableLoadNextActionFlux").actionType]=!0,a[c("AdsReportBuilderRefreshTableActionFlux").actionType]=!0,a[c("AdsReportBuilderSelectAttributionWindowActionFlux").actionType]=!0,a[c("AdsReportBuilderCreateReportActionFlux").actionType]=!1,a);var k=c("createObjectFrom")(["AdsRBFullAdAccountListDataProviderPluginSetStateAction",c("AdsAccountBatchLoadedDataActionFlux").actionType,c("AdsBusinessBatchLoadedDataActionFlux").actionType,"FluxLoadObjectStore.START_LOAD.BusinessStore.brands"]),l=!1,m={TABLE_OR_CHART_CHANGE_EVENT:b,ACCOUNT_LOADED_EVENT:k,hasRBViewLoaded:function(){return l},setRBViewLoaded:function(){l=!0},getSelectedReportID:function(){var a;c("ifRequired")("AdsReportBuilderSelectedReportIDStore",function(b){return a=b},c("emptyFunction"));var b;c("ifRequired")("AdsReportBuilderMCRSelectedReportProvider",function(a){return b=a});return a?(b==null?void 0:b())||a.get()||"":""},getCurrentReportIDForManageReport:function(a,b){if(a.type===c("AdsReportBuilderDeleteReportActionFlux").actionType)return JSON.stringify(a.reportIDs);return b.type===c("AdsReportBuilderCreateReportSuccessActionFlux").actionType?b.id!=null&&typeof b.id==="string"?b.id:"":""},getPreviousReportIDForManageReport:function(a){return a.type===c("AdsReportBuilderDuplicateActionFlux").actionType&&a.reportSpec?d("AdsRBDupReportIDGenerator").getSourceReportIDFromTempID(a.reportSpec.get("id")):""},getShareReportData:function(a,b){if(d("AdsRBNavStateHelper").isOnManageReportPage()){var c;return{current_report_id:(c=a.reportSpec)==null?void 0:c.id,business_id:d("BizSiteIdentifier.brands").getBusinessID()||"",event_source:a.eventSource}}return m.getViewReportPageData(a,b)},getTableStateRelatedStores:function(){var a,b,d;c("ifRequired")("AdsReportBuilderViewStore",function(b){return a=b},c("emptyFunction"));c("ifRequired")("AdsReportBuilderListStore",function(a){return b=a},c("emptyFunction"));c("ifRequired")("adsReportBuilderReportSettingsSelector",function(a){return d=a()});return{viewStore:a,listStore:b,reportSettings:d}},getManageReportsRelatedStores:function(){var a,b;c("ifRequired")("AdsReportBuilderManageReportsListStore",function(b){return a=b});c("ifRequired")("adsRBManageReportListQueryIDSelector",function(a){return b=a()});return{reportsListStore:a,manageReportListQueryID:b}},shouldCheckManageReportsTableLoadingState:function(a){return[c("AdsReportBuilderManageReportsTableRenderActionFlux").actionType,c("AdsPEReportBuilderTableInitActionFlux").actionType].includes(a.type)},detectTableOrChartLoaded:function(a){return a.type===c("AdsReportingViewLoadedActionFlux").actionType&&a.viewSection===c("AdsReportingViewSectionType").BODY},detectTableOrChartAbandoned:function(a){return k[a.type]?!1:m.isTableOrChartChangeOrAccountSwitchOnLoad(a)||m.isViewOrNavStoreChanged()},isTableOrChartChangeOrAccountSwitchOnLoad:function(a){if(m.TABLE_OR_CHART_CHANGE_EVENT[a.type])return!0;return a.type===c("AdsRBSwitchBusinessAccountActionFlux").actionType?!0:!1},getSummaryCachedData:function(){var a=m.getTableStateRelatedStores(),b=a.viewStore;a=a.listStore;if(!b||!a)return null;(i||(i=c("AdsDataAtom"))).waitFor([b.getDispatchToken(),a.getDispatchToken()]);b=b.get();return a.getSummaryCachedByView(b)},isViewOrNavStoreChanged:function(){var a=m.getTableStateRelatedStores();a=a.viewStore;if(!a)return!1;(i||(i=c("AdsDataAtom"))).waitFor([a.getDispatchToken(),c("AdsPENavigationProvider").toFluxStore().getDispatchToken()]);return a.hasChanged()||c("AdsPENavigationProvider").toFluxStore().hasChanged()},isNavStoreChanged:function(){(i||(i=c("AdsDataAtom"))).waitFor([c("AdsPENavigationProvider").toFluxStore().getDispatchToken()]);return c("AdsPENavigationProvider").toFluxStore().hasChanged()},getViewFromCreateReportAction:function(a){var b=null;a=a.reportSpecs;a&&(b=d("AdsReportBuilderReportSpecUtil").getViewSpecFromReportSpec(c("nullthrows")(c("first")(a))));return b},getViewReportPageLogData:function(a,b){return m.getViewReportPageData(a,b)},getViewReportPageData:function(a,b,c){c===void 0&&(c={});var d={},e={},f,g;if(c.view)f=c.view;else{c=m.getTableStateRelatedStores();var h=c.viewStore;c=c.reportSettings;h&&(f=h.get());c&&(g=c)}f&&(d=m.getViewLogData(f));g&&(e=m.getReportSettingsLogData(g));h=m.getTriggerActionLogData(a,b);c=m.getEventSourceLogData(a);b=m.getViewportDimensionLogData();return babelHelpers["extends"]({},h,d,e,c,b)},getViewportDimensionLogData:function(){var a=c("getViewportDimensions")(),b=a.width;a=a.height;return{window_width:b,window_height:a}},getEventSourceLogData:function(a){var b=a.eventSource!=null&&a.eventSource!==""?{event_source:a.eventSource}:m.getEventSourceFromCurrentURI();if(a.type===c("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType){var d=a.data;if(d){var e=d.context;d=d.changedParamKeys;var f;e.reportBuilderEventSource?f=e.reportBuilderEventSource:e.isInit===!0&&(f=d.show_setting_dialog?c("AdsReportBuilderEntryPointEventSources").CLICK_SCHEDULE_REPORT_FROM_AM_EXPORT:c("AdsReportBuilderEntryPointEventSources").FROM_URL);if(f){b=(e={},e.event_source=f,e)}}}else if(a.type===c("AdsInterfacesRouteDataFetchedDataActionFlux").actionType){d=new(j||(j=c("URI")))(window.location.href).getQueryData();e=d.event_source?d.event_source:c("AdsReportBuilderEntryPointEventSources").FROM_URL;b=(a={},a.event_source=e,a)}return b},getEventSourceFromCurrentURI:function(){var a=new(j||(j=c("URI")))(window.location.href).getQueryData();a=a.event_source?a.event_source:"";return{event_source:a}},getTriggerActionLogData:function(a,b){return a={scenario_start_trigger_action:a.type},a.scenario_end_trigger_action=b.type,a},getViewLogData:function(a){var b,c,e,f,g=a.get("timeRange");b=((g==null?void 0:(b=g.interval)==null?void 0:b.start)||"").toString();c=((g==null?void 0:(c=g.interval)==null?void 0:c.end)||"").toString();var h=a.get("comparisonTimeRange");e=((h==null?void 0:(e=h.interval)==null?void 0:e.start)||"").toString();f=((h==null?void 0:(f=h.interval)==null?void 0:f.end)||"").toString();var i=a.get("filter");i=i?i.getValues().map(function(a){return a.toString()}):[];return i={current_attribution_windows:a.get("attributionWindow"),current_insights_table_breakdowns:a.get("dimensions"),current_insights_table_sort:a.get("sort").map(function(a){return a.field}),current_insights_table_user_columns:a.get("fields"),current_user_filter:i,current_insights_table_level:JSON.stringify(a.get("lockedDimensions")),current_date_interval_end:c,current_date_interval_preset:g.preset,current_date_interval_start:b,current_comparison_date_interval_start:e,current_comparison_date_interval_end:f,current_insights_dataviz_section:h==null?void 0:h.preset,current_report_id:m.getSelectedReportID(),business_id_explicit:d("BizSiteIdentifier.brands").getBusinessID()||"",current_target_currency:a.get("currency"),current_view_type:a.get("viewType")},i.new_value=a.get("limit").toString(),i},getReportSettingsLogData:function(a){return a.ready===!1?{}:{current_action_ads_count:a.selectedAccounts.length,loaded_count:a.totalAccountsNum}},getTableLoadingDataWithSummary:function(a,b){a=m.getViewReportPageData(a,b);b=m.getSummaryCachedData();b=b&&b.getValue();b=b&&b.total!=null&&b.total!==0?{current_action_ads_count:b.total}:{};return babelHelpers["extends"]({},a,b)},getExportData:function(a,b){var d,e=m.getViewFromCreateReportAction(a);e&&(d=m.getViewLogData(e));e=m.getTriggerActionLogData(a,b);var f=m.getEventSourceLogData(a);return babelHelpers["extends"]({},e,d,f,(e={},e.previous_report_id=b.reportRunID,e.export_format=a.format,e.message=b.error!=null?c("adsFormatErrorMessage")(b.error):null,e))},getExportHistoryData:function(a,b){var e=m.getTriggerActionLogData(a,b);return babelHelpers["extends"]({},e,{previous_report_id:a.exportReportID,business_id_explicit:d("BizSiteIdentifier.brands").getBusinessID()||"",message:c("adsFormatErrorMessage")(b.error)})},getScope:function(){var a={scopeType:null,scopeID:null},b;c("ifRequired")("adsReportBuilderScopeInfoSelector",function(a){return b=a},c("emptyFunction"));if(!b)return a;if((i||(i=c("AdsDataAtom"))).isDispatching())try{(i||(i=c("AdsDataAtom"))).waitFor([].concat((h||(h=d("AdsSelectorUtils"))).getStoreDispatchTokens([b])))}catch(b){return a}var e=b();if(e.hasValue()&&!e.hasError()){e=e.getValueEnforcing();return{scopeType:e.scopeType,scopeID:e.id}}return a},getReportsListDataLoader:function(){var a=m.getScope();a=a.scopeID;var b=m.getManageReportsRelatedStores(),d=b.reportsListStore;b=b.manageReportListQueryID;if(a==null||d==null||b==null)return null;(i||(i=c("AdsDataAtom"))).waitFor([d].map(function(a){return a.getDispatchToken()}));return d.get(b)},detectManageReportsTableSucceeded:function(a){if(!m.shouldCheckManageReportsTableLoadingState(a))return!1;a=m.getReportsListDataLoader();var b=!1;if(!!a&&a.hasValue()){var c=a.getValueEnforcing();c.isLoadingMoreRows&&(b=!0)}return a!=null&&a.hasValue()&&!a.hasError()&&!b},getManageReportData:function(a,b){var c=typeof b.type==="string"?b.type:"",e=m.getViewportDimensionLogData();return babelHelpers["extends"]({},e,{scenario_start_trigger_action:a.type,scenario_end_trigger_action:c,new_value:m.getCurrentReportIDForManageReport(a,b),old_value:m.getPreviousReportIDForManageReport(a),business_id:d("BizSiteIdentifier.brands").getBusinessID()||"",event_source:(e=a.eventSource)!=null?e:""})},getLandingManageReportPageData:function(a,b){var e=m.getReportsListDataLoader(),f={};if(e!=null&&e.hasValue()&&!e.hasError()){e=e.getValueEnforcing();e=e.reportIDs;f={loaded_count:e.length}}e=c("AdsReportBuilderManageReportsFilterSetProvider")();e=e.filterSet;e=e?e.getValues().map(function(a){return a.toString()}):[];var g=m.getViewportDimensionLogData();return babelHelpers["extends"]((a={scenario_start_trigger_action:a.type,scenario_end_trigger_action:b.type,business_id:d("BizSiteIdentifier.brands").getBusinessID()||""},a.current_user_filter=e,a),f,m.getEventSourceFromCurrentURI(),g)},getReportSettingsData:function(a,b){return{scenario_start_trigger_action:a.type,scenario_end_trigger_action:b.type,item_count:m.getTotalAdAccountsNum(),current_action_ads_count:b.selectedAccountNum}},getTotalAdAccountsNum:function(){if(d("BizSiteIdentifier.brands").getBusinessID()==null)return 1;var a;c("ifRequired")("adsReportBuilderFullAccountListSelector",function(b){return a=b},c("emptyFunction"));if(a){var b=a().fullAccountList;return b?b.length:0}return 0},getSwitchViewTypeData:function(a,b){b=m.getViewReportPageData(a,b);return babelHelpers["extends"]({},b,{previous_view_type:a.previousViewType,loaded_count:a.previousBreakdownNum,item_count:a.previousMetricNum})},getTimeRangeChangeData:function(a,b){b=m.getViewReportPageData(a,b);return babelHelpers["extends"]({},b,{previous_date_interval_end:(b=a.previousTimeRange)==null?void 0:(b=b.interval)==null?void 0:(b=b.end)==null?void 0:b.toString(),previous_date_interval_preset:(b=a.previousTimeRange)==null?void 0:b.preset,previous_date_interval_start:(b=a.previousTimeRange)==null?void 0:(b=b.interval)==null?void 0:(b=b.start)==null?void 0:b.toString(),previous_comparison_date_interval_end:(b=a.previousTimeRange)==null?void 0:(b=b.compareInterval)==null?void 0:(b=b.end)==null?void 0:b.toString(),previous_comparison_date_interval_start:(b=a.previousTimeRange)==null?void 0:(b=b.compareInterval)==null?void 0:(b=b.start)==null?void 0:b.toString(),previous_insights_dataviz_section:(b=a.previousTimeRange)==null?void 0:b.comparePreset})}};e=m;g["default"]=e}),98);
-----
AdsPESettingsStore",["AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsDataAtom","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsPECreateSettingsDataManager","AdsPEFilterUIStateSelectors","AdsPEManageCampaignsConstants","AdsPESettingsDataManager","FluxReduceStore","adsPENavStateSelector","isFalsey"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("AdsPEFilterUIStateSelectors").getFilterSet.getStores();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,b)||this;b.$AdsPESettingsStore$p_1=new Set();return b}var e=b.prototype;e.getInitialState=function(){return{}};e.__getActionTypes=function(){return[d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType]};e.__getDependencyStores=function(){return[c("AdsAccountStore")].concat(i,c("adsPENavStateSelector").getStores())};e.reduce=function(a,b){b=b.action;this.getDispatcher().waitFor(this.getDependencyDispatchTokens());if(i.filter(function(a){return a.hasChanged()}).length){var e=c("adsPENavStateSelector")();d("AdsPEManageCampaignsConstants").MANAGE_CAMPAIGNS_TOOLS.includes(e.tool)&&this.$AdsPESettingsStore$p_2()}switch(b.type){case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:e=b.data.changedParamKeys;(e.act||e.business_id)&&this.$AdsPESettingsStore$p_3();return a;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsPESettingsStore$p_3();return a;default:return a}};e.$AdsPESettingsStore$p_3=function(){var a=c("AdsAccountStore").getSelectedAccount().getValue();if(c("isFalsey")(a))return;var b=a.account_id;a=a.user_settings;if(!b)return;if(!a){d("AdsPECreateSettingsDataManager").createUserSettings(b);return}if(!this.$AdsPESettingsStore$p_1.has(b)){a=a.id;c("AdsPESettingsDataManager").loadFilters(a);this.$AdsPESettingsStore$p_1.add(b)}};e.$AdsPESettingsStore$p_2=function(){var a=c("AdsAccountStore").getSelectedAccountID();if(a&&this.$AdsPESettingsStore$p_1.has(a)){var b=d("AdsPEFilterUIStateSelectors").getFilterSet(),e;b==null?e=[]:e=b.toAPI();c("AdsPESettingsDataManager").updateLastUsedFilterSet(a,e)}};return b}(c("FluxReduceStore"));a.__moduleID=f.id;b=new a(h||(h=c("AdsDataAtom")));g["default"]=b}),98);
-----
AdsCFLinkClicksCampaignPlugin",["AdsAPIObjectives","AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsBwIUtils","AdsBwPCampaignMutationUtils","AdsCFCampaignUtils","AdsCFDefaultCampaignPlugin","AdsContextualDiscoveryAdsUtils","AdsMutators","AdsPlacementEligibilityInfoUtils","AdsTargetingAccountControlInfoLoadedActionFlux","AdsTargetingAccountControlInfoUtils","Bootloader","adsAdvertiserProfileMessageMarketingActivationStatusSelector","adsUEditorIsAccountEligibleForAdsDefaultOnSelector","applyMessageMarketingDefaultsCampaignMutator","areAdObjectsRecordsMessageMarketingCompatible"],(function(a,b,c,d,e,f,g){"use strict";a=babelHelpers["extends"]({},c("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"link-clicks",pivots:{objective:c("AdsAPIObjectives").LINK_CLICKS},getAsyncDefaultSpecGenerationActions:function(){return new Set([d("AdsAccountBatchLoadedDataActionFlux").actionType,c("AdsTargetingAccountControlInfoLoadedActionFlux").actionType])},calculateDependencies:function(a,b){var e,f;e=Array.from(((e=b==null?void 0:b.special_ad_categories)!=null?e:[]).values());var g=c("AdsAccountStore").getSelectedAccount().getValue();a=d("AdsPlacementEligibilityInfoUtils").buildEligibilityInformationFromCampaignSpec(a,b.buying_type,g==null?void 0:g.capabilities,b.objective,void 0,void 0,(a=a.promoted_object)==null?void 0:a.object_store_url,void 0,void 0,g,b.buy_with_integration_partner,b.buy_with_prime_type,void 0,(a=b.special_ad_categories)==null?void 0:a.toArray(),b.is_opted_into_experiments,b.campaign_group_creation_source);var h=c("adsUEditorIsAccountEligibleForAdsDefaultOnSelector")()==null?void 0:c("adsUEditorIsAccountEligibleForAdsDefaultOnSelector")()();f=(f=c("adsAdvertiserProfileMessageMarketingActivationStatusSelector")().getValue())!=null?f:!1;var i=null,j=null,k=null;f&&c("Bootloader").loadModules(["adsCampaignMessageMarketingLiquidityDynamicDefaultsSelector"],function(a){a=a();i=a.messageMarketingDefaultWACSLO;j=a.messageMarketingWABAListLO;k=a.messageMarketingDefaultAudience},"AdsCFLinkClicksCampaignPlugin");return{account:g,campaignGroup:b,eligibilityInfo:a,regulatedCategories:e,isMultiAdsDefaultOptInEligibleLoadObject:h,isMessageMarketingActivated:f,messageMarketingDefaultWACSLO:i,messageMarketingWABAListLO:j,messageMarketingDefaultAudience:k}},mergeDependenciesToCampaign:function(a,b){var e=b.account,f=b.campaignGroup,g=b.eligibilityInfo,h=b.isMultiAdsDefaultOptInEligibleLoadObject,i=b.regulatedCategories,j=b.isMessageMarketingActivated,k=b.messageMarketingDefaultWACSLO,l=b.messageMarketingWABAListLO,m=b.messageMarketingDefaultAudience;return d("AdsMutators").chain(function(a){return d("AdsCFCampaignUtils").maybeApplyAdvantageAudienceCampaignMutations(a,i,f.buying_type)},function(a){return!!e&&d("AdsBwIUtils").isBwICampaignGroup(f)?d("AdsBwPCampaignMutationUtils").enableBwPForTraffic(a,f,e,g):a},function(a){return d("AdsTargetingAccountControlInfoUtils").maybeApplyDefaultBusinessConstraints(e,a,i)},function(a){return d("AdsContextualDiscoveryAdsUtils").maybeCampaignDefaultOptIn(a,h,e)},function(a){return j&&c("areAdObjectsRecordsMessageMarketingCompatible")(f,a)?c("applyMessageMarketingDefaultsCampaignMutator")(a,g,k,l,m):a})(a)}});b=a;g["default"]=b}),98);
-----
AdsPEFilterAndSortReducer",["ActionFilterUtils","AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsAdgroupSelectionClearDataActionFlux","AdsCampaignGroupSelectionClearDataActionFlux","AdsCampaignSelectionClearDataActionFlux","AdsDataAtom","AdsDraftDraftPublishCompletedDataActionFlux","AdsDraftSelectionStore","AdsGenericFilterSetUtil","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsMgmtCurrentLevelSortInfoSelector","AdsMgmtSelectedAncestorIDsSelectors","AdsNavigationChangeNavigationStateDataActionFlux","AdsPEFilterAppliedActionFlux","AdsPEFilterChangedActionFlux","AdsPEFilterLiveDataManager","AdsPEFilterLoadErrorActionFlux","AdsPEFilterUIStateSelectors","AdsPEFluxAdTableSetSortKeyActionFlux","AdsPEFluxCampaignGroupTableSetSortKeyActionFlux","AdsPEFluxCampaignTableSetSortKeyActionFlux","AdsPERefreshTableViewActionFlux","AdsPESortLiveUtils","AdsPerfInteractionUtil","AdsPerfInteractionsController","AdsRevertAdObjectsDataActionFlux","AdsRevertSelectedAdObjectsDataActionFlux","Bootloader","adsMgmtCurrentLevelSelector","adsMgmtDraftErrorsFilterSelector","adsMgmtLoadIDRequestViewSpecParamsSelector","adsMgmtNeedToLoadAllFilteredIDsSelector","adsMgmtPagingDataSelector","adsPEManageAdsSectionSelector","hasDateChangeRelatedFilter","hasLabelFilter","isFalsey"],(function(a,b,c,d,e,f,g){"use strict";var h,i=[].concat(d("AdsPEFilterUIStateSelectors").getFilterSet.getStores()),j=Array.from(new Set(c("adsMgmtPagingDataSelector").getStores())),k=[].concat(d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtRelevantSelectionsMapSelector.getStores(),d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtSelectedAncestorIDsSelector.getStores());a=[c("AdsAccountStore"),c("AdsDraftSelectionStore")].concat(d("AdsPEFilterUIStateSelectors").getFilterSet.getStores(),j,k,d("AdsMgmtCurrentLevelSortInfoSelector").adsMgmtCurrentLevelSortInfoSelector.getStores(),c("adsPEManageAdsSectionSelector").getStores(),c("adsMgmtLoadIDRequestViewSpecParamsSelector").getStores(),c("adsMgmtNeedToLoadAllFilteredIDsSelector").getStores(),c("adsMgmtCurrentLevelSelector").getStores(),c("adsMgmtDraftErrorsFilterSelector").getStores());var l=a.map(function(a){return a&&a.getDispatchToken()}),m=function(a){return!!a&&c("hasLabelFilter")(a)},n=function(){return k.some(function(a){return a.hasChanged()})},o=function(){var a=c("adsMgmtCurrentLevelSelector")();if(!a)return!1;var b=c("adsMgmtLoadIDRequestViewSpecParamsSelector")();b=b.sortInfoMap;return!(d("AdsPESortLiveUtils").isSortByError(b[a])||d("AdsPESortLiveUtils").isSortByChanged(b[a]))},p=function(a){if(!a.data.changedParamKeys.date)return!1;a=d("AdsMgmtCurrentLevelSortInfoSelector").adsMgmtCurrentLevelSortInfoSelector();return a&&d("AdsPESortLiveUtils").isDateChangeRelatedSort(a)?!0:c("hasDateChangeRelatedFilter")(d("AdsPEFilterUIStateSelectors").getFilterSet())},q=function(a){var b=function(a){return a==null?void 0:a.hasChanged()};if(i.some(b)&&!d("AdsGenericFilterSetUtil").completeMatchesExactly(a.filterSet,d("AdsPEFilterUIStateSelectors").getFilterSet()))return!0;if(c("adsPEManageAdsSectionSelector").getStores().some(b))return!0;if(n())return!0;if(d("AdsMgmtCurrentLevelSortInfoSelector").SORT_STORES.some(b))return!0;if(c("AdsDraftSelectionStore").hasChanged()&&r(a))return!0;if(c("AdsAccountStore").hasChanged()&&a.accountID!==c("AdsAccountStore").getSelectedAccountID())return!0;return j.some(b)&&s(a)?!0:!1},r=function(a){var b=c("AdsAccountStore").getSelectedAccountID();if(b==null)return!1;b=c("AdsDraftSelectionStore").getCached(b);if(!b.hasValue())return!1;a=a.draftID;return a==null?!0:b.getValue()!==a.getValue()},s=function(a){var b=c("adsMgmtCurrentLevelSelector")();if(!b)return!1;var d=c("adsMgmtPagingDataSelector")(b);return a.currentPageByLevel[b]!==d.currentPage},t=function(a,b,e,f){f===void 0&&(f=!1);a=a;var g=c("adsMgmtCurrentLevelSelector")(),h=c("AdsAccountStore").getSelectedAccountID();if(c("isFalsey")(h)||!g||g==="topline")return a;var i=c("adsMgmtLoadIDRequestViewSpecParamsSelector")(),j=i.sortInfoMap,k=i.dateTimeRange,l=i.datePreset,m=i.comparisonDateTimeRange,n=i.timezoneID;a=a.set("accountID",h);var o=d("AdsPEFilterUIStateSelectors").getFilterSet();a=a.set("filterSet",o);var p=d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtRelevantSelectionsMapSelector(g),q=c("AdsDraftSelectionStore").getCached(h);a=a.set("draftID",q);var r=c("adsMgmtPagingDataSelector")(g);a=a.set("currentPageByLevel",babelHelpers["extends"]({},a.currentPageByLevel,(i={},i[g]=r.currentPage,i)));a=a.set("areIDsLoading",!0);b!==d("AdsNavigationChangeNavigationStateDataActionFlux").actionType&&(a=a.set("areCountsLoading",!0));var s=o,t=c("AdsAccountStore").getSelectedAccount().getValue(),u=function(a){c("AdsPEFilterLiveDataManager").loadIDsForFilterSet(h,a,p,j,q,g,r,k,n,m,l,e,f)};if(s!=null&&d("ActionFilterUtils").isDraftErrorFilter(s)){i=c("adsMgmtDraftErrorsFilterSelector")({adAccount:t,filterSet:o});s=d("ActionFilterUtils").generateAdditionalActionFilter(s,i)}s!=null&&d("ActionFilterUtils").isRecommendationFilter(s)?c("Bootloader").loadModules(["adsMgmtRecommendationsFilterSelector"],function(a){a=a({adAccount:t,filterSet:o});a.match({error:function(){s=d("ActionFilterUtils").generateAdditionalActionFilter(s,[]),u(s)},loading:function(){s=d("ActionFilterUtils").generateAdditionalActionFilter(s,[]),u(s)},loaded:function(a){s=d("ActionFilterUtils").generateAdditionalActionFilter(s,a),u(s)}})},"AdsPEFilterAndSortReducer"):u(s);return a};b=function(a,b){var e;a=a;(h||(h=c("AdsDataAtom"))).waitFor(l);switch(b.type){case d("AdsPEFilterAppliedActionFlux").actionType:a=a.set("areCountsLoading",!1).set("areIDsLoading",!1).set("error",null);break;case d("AdsPEFilterLoadErrorActionFlux").actionType:a=a.set("areCountsLoading",!1).set("areIDsLoading",!1).set("error",b.error);break;case d("AdsDraftDraftPublishCompletedDataActionFlux").actionType:((e=(e=d("AdsPerfInteractionUtil").getTracePolicy())==null?void 0:e.indexOf("edit"))!=null?e:-1)!==-1&&c("AdsPerfInteractionsController").startInteraction("am.editor.reload_in_same_level",f.id);a=t(a,b.type,void 0,!0);break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:case d("AdsRevertAdObjectsDataActionFlux").actionType:case d("AdsRevertSelectedAdObjectsDataActionFlux").actionType:case d("AdsAdgroupSelectionClearDataActionFlux").actionType:case d("AdsCampaignSelectionClearDataActionFlux").actionType:case d("AdsCampaignGroupSelectionClearDataActionFlux").actionType:a=t(a,b.type);break;case d("AdsPEFilterChangedActionFlux").actionType:break;case d("AdsPEFluxAdTableSetSortKeyActionFlux").actionType:case d("AdsPEFluxCampaignTableSetSortKeyActionFlux").actionType:case d("AdsPEFluxCampaignGroupTableSetSortKeyActionFlux").actionType:o()&&q(a)&&(a=t(a,b.type));break;case d("AdsPERefreshTableViewActionFlux").actionType:(b.allLevels||b.adLevel===c("adsMgmtCurrentLevelSelector")())&&(a=t(a,b.type));break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:(p(b)||q(a)||c("adsMgmtNeedToLoadAllFilteredIDsSelector")())&&(a=t(a,b.type,b.data.changedParamKeys,m(b.data.params.filter_set)));break;default:q(a)&&(a=t(a,b.type))}return a};g.reduce=b}),98);
-----
AdsAccountStoreOld",["invariant","AdsAMAccountAcceptedTosAddActionFlux","AdsAMAccountInitActionFlux","AdsAccountAddCapabilitiesDataActionFlux","AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountDataDispatcher","AdsAccountDataLoader","AdsAccountInitDataActionFlux","AdsAccountInvalidateDataActionFlux","AdsAccountListInvalidateDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountSettingsCreateFinishedDataActionFlux","AdsAccountUtils","AdsAccountViewerPermissionsLoadErrorDataActionFlux","AdsAccountViewerPermissionsLoadedDataActionFlux","AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux","AdsApplicationUtils","AdsCachedLoadState_LEGACY","AdsDSASetDefaultBeneficiaryPayorInfoActionFlux","AdsDataAtom","AdsEngagementAudienceUILogger","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsLoadStateUtils_LEGACY","AdsLoadState_LEGACY","AdsPERefreshTableViewActionFlux","AdsPEUploadShowPreviewActionFlux","AdsPixelUIEnvironments","ApiClient","CurrentAdAccount","CurrentAdAccountInitialData","CurrentBusinessUser","DateTime","DateUtil","FluxStore","LoadObject","URI","adsCreateSelector","adsCreateStoreSelector","gkx","goURI","ifRequired","immutable","isFalsey","promiseDone","vulture"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k="US",l=1;a=0;var m=c("DateTime").fromLegacyArgs(c("DateUtil").FACEBOOK_EPOCH*1e3,a).toISOString();b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this,i||(i=c("AdsDataAtom")))||this;b.getSelectedAccountID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID}):b.$AdsAccountStoreClassOld$p_6()},{name:f.id});b.getSelectedAccountIDX=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){if(d("AdsApplicationUtils").isFAME()){var a=c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID});!a&&h(0,5919,a);return a}a=b.$AdsAccountStoreClassOld$p_6();!a&&h(0,5919,a);return a},{name:f.id});b.getSelectedBusinessID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.$AdsAccountStoreClassOld$p_11()},{name:f.id});b.getCreatedTime=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().created_time;return a?a:m},{name:f.id});b.getTimezoneID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().timezone_id;return a?a:l},{name:f.id});b.getTosAccepted=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.__getSelectedAccount().tos_accepted},{name:f.id});b.getSelectedAccount=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a||c("LoadObject").empty()})||c("LoadObject").empty():d("AdsLoadStateUtils_LEGACY").toLoadObject(b.__getSelectedAccount())},{name:f.id});b.getSelectedAccountCapabilities=c("adsCreateSelector")([b.getSelectedAccount],function(a){return((a=a.getValue())==null?void 0:a.capabilities)||[]},{name:f.id});b.$AdsAccountStoreClassOld$p_2={};b.$AdsAccountStoreClassOld$p_1=new Map();b.$AdsAccountStoreClassOld$p_3=!1;b.$AdsAccountStoreClassOld$p_4={hasMisMatches:!1,accountID:null};b.$AdsAccountStoreClassOld$p_5=new Map();return b}var e=b.prototype;e.__getActionTypes=function(){return[d("AdsAccountInitDataActionFlux").actionType,d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsAccountBatchLoadErrorDataActionFlux").actionType,d("AdsAccountAddCapabilitiesDataActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType,d("AdsAccountSelectDataActionFlux").actionType,d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType,d("AdsAccountInvalidateDataActionFlux").actionType,d("AdsAccountListInvalidateDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType,d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType,d("AdsAMAccountAcceptedTosAddActionFlux").actionType,d("AdsAMAccountInitActionFlux").actionType,d("AdsPERefreshTableViewActionFlux").actionType,d("AdsPEUploadShowPreviewActionFlux").actionType,d("AdsDSASetDefaultBeneficiaryPayorInfoActionFlux").actionType]};e.canUpdateCurrency=function(){var a=this.$AdsAccountStoreClassOld$p_6();if(a==null)return!1;a=this.getCached(a).getValue();if(c("isFalsey")(a))return!1;var b=c("AdsAccountUtils").hasCapability(a,"CAN_UPDATE_CURRENCY");a=c("AdsAccountUtils").isPaymentInfoRequired(a);return b&&a};e.get=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();return!this.$AdsAccountStoreClassOld$p_7(a)?this.getSelectedAccount():d("AdsLoadStateUtils_LEGACY").toLoadObject(this.$AdsAccountStoreClassOld$p_8(a))};e.$AdsAccountStoreClassOld$p_8=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return d("AdsLoadStateUtils_LEGACY").fromLoadObject(b.get(a))})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var b=this.$AdsAccountStoreClassOld$p_1.get(a);b||(b=c("AdsCachedLoadState_LEGACY").LOADING,this.$AdsAccountStoreClassOld$p_1.set(a,b),c("AdsAccountDataDispatcher").loadAccountData(a));return b};e.getCached=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();var b=this.$AdsAccountStoreClassOld$p_1.get(a);b||(b=c("AdsCachedLoadState_LEGACY").NOT_LOADED);return d("AdsLoadStateUtils_LEGACY").toLoadObject(b)};e.$AdsAccountStoreClassOld$p_9=function(){var a=this.$AdsAccountStoreClassOld$p_6();if(!a)return;c("AdsAccountDataDispatcher").loadAccountData(a);return};e.getAll=function(a){var b=this,d=new Map();a.forEach(function(a){d.set(a,b.get(a))});return c("immutable").Map(d)};e.getAllCached=function(a){var b=this,e=new Map();a.forEach(function(a){var f=b.$AdsAccountStoreClassOld$p_1.get(a);f||(f=c("AdsCachedLoadState_LEGACY").NOT_LOADED);e.set(a,d("AdsLoadStateUtils_LEGACY").toLoadObject(f))});return c("immutable").Map(e)};e.getByFields=function(a,b){if(c("gkx")("3848"))return this.get(a);var e=this.$AdsAccountStoreClassOld$p_1.get(a);if(!e){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassOld$p_1.set(a,c("AdsCachedLoadState_LEGACY").LOADING);return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING)}if(e.loadState===c("AdsLoadState_LEGACY").ERROR)return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").ERROR);if(e.loadState===c("AdsLoadState_LEGACY").LOADING)return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING);var f=b.some(function(a){return e[a]===null||e[a]===void 0});if(f){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassOld$p_1.set(a,babelHelpers["extends"]({},e,{loadState:c("AdsLoadState_LEGACY").LOADING}));return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING)}var g={};b.forEach(function(a){g[a]=e[a]});g.loadState=c("AdsLoadState_LEGACY").LOADED;return d("AdsLoadStateUtils_LEGACY").toLoadObject(g)};e.getAllByFields=function(a,b){var d=this;if(c("gkx")("3848"))return this.getAll(a);var e=new Map();a.forEach(function(a){e.set(a,d.getByFields(a,b))});return c("immutable").Map(e)};e.$AdsAccountStoreClassOld$p_6=function(){var a;if(!this.$AdsAccountStoreClassOld$p_10())return null;a=(a=c("CurrentAdAccount").getID())!=null?a:null;if(this.$AdsAccountStoreClassOld$p_4.hasMisMatches){var b;a=(b=this.$AdsAccountStoreClassOld$p_4.accountID)!=null?b:null}b=a===c("CurrentAdAccount").LOGGED_OUT?null:a;return b};e.$AdsAccountStoreClassOld$p_11=function(){var a;return(a=c("CurrentBusinessUser").business_id)!=null?a:null};e.getTimezoneName=function(){var a=this.__getSelectedAccount().timezone_name;return a?a:""};e.getViewerPermissions=function(){var a=this.$AdsAccountStoreClassOld$p_6();if(a){this.$AdsAccountStoreClassOld$p_2[a]||(this.$AdsAccountStoreClassOld$p_2[a]=c("LoadObject").loading(),c("AdsAccountDataDispatcher").loadViewerPermissions(a));return this.$AdsAccountStoreClassOld$p_2[a]}return c("LoadObject").empty()};e.getViewerHasPermission=function(a){var b=this.getViewerPermissions();return b.hasValueWithoutError()&&Array.isArray(b.getValueEnforcing().data)&&b.getValueEnforcing().data.includes(a)};e.__getSelectedAccount=function(){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a!=null?d("AdsLoadStateUtils_LEGACY").fromLoadObject(a):null})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var a=this.$AdsAccountStoreClassOld$p_6();if(!a)return c("AdsCachedLoadState_LEGACY").NOT_LOADED;d("AdsApplicationUtils").isAdsReportViewingPath()&&c("vulture")("5QzYmBAVIEB");return this.$AdsAccountStoreClassOld$p_8(a)};e.toURLParams=function(){var a=this.$AdsAccountStoreClassOld$p_6();return!a?null:{act:a}};e.__onDispatch=function(a){a=a.action;var b=!1,e=this.$AdsAccountStoreClassOld$p_6();switch(a.actionType){case d("AdsAccountInitDataActionFlux").actionType:var f,g;f=(f=a.data.accountID)!=null?f:null;g=(g=(g=a.data.accountInfo.business)==null?void 0:g.id)!=null?g:null;var h=this.$AdsAccountStoreClassOld$p_11();if(g!==h){f=e!=null&&f!=null&&e===f;c("AdsAccountUtils").logBusinessAccountUpdatesMisMatched(h,g,"AdsAccountInit",f)}this.$AdsAccountStoreClassOld$p_12(a.data);b=!0;break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_13(a.accountID,a.account);b=!0;break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_14(a.accountID,a.error);b=!0;break;case d("AdsPEUploadShowPreviewActionFlux").actionType:a.didUpdateAccount&&this.$AdsAccountStoreClassOld$p_9();break;case d("AdsAccountAddCapabilitiesDataActionFlux").actionType:if(e!=null){h=this.__getSelectedAccount();this.$AdsAccountStoreClassOld$p_1.set(e,babelHelpers["extends"]({},h,{capabilities:h.capabilities.concat(a.capabilities)}));b=!0}break;case d("AdsPERefreshTableViewActionFlux").actionType:this.__invalidateAllErrors()&&(b=!0);break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:this.__invalidateAllErrors()&&(b=!0);g=a.data.changedParamKeys;if(g.act||g.business_id){f=a.data.params;if(!f.act&&f.tool==="REPORTING")this.$AdsAccountStoreClassOld$p_15(f.business_id,f.act);else if(f.act)this.$AdsAccountStoreClassOld$p_16(f.act,f.business_id);else break;b=!0}break;case d("AdsAccountSelectDataActionFlux").actionType:if(d("AdsApplicationUtils").isPowerEditor())break;!a.accountID?this.$AdsAccountStoreClassOld$p_15(a.businessID,a.accountID):this.$AdsAccountStoreClassOld$p_16(a.accountID,a.businessID);b=!0;break;case d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_17(a.accountID,a.settingsID);b=!0;break;case d("AdsAccountInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_18(a.id)&&(b=!0);break;case d("AdsAccountListInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_19(a.accounts)&&(b=!0);break;case d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_2[a.accountID]=c("LoadObject").withValue({data:a.data});b=!0;break;case d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_2[a.accountID]=c("LoadObject").withError(new Error(a.data));b=!0;break;case d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType:c("AdsAccountDataDispatcher").handleAcceptMAIDeeplinkTOS(this.getSelectedAccountID());b=!0;break;case d("AdsAMAccountAcceptedTosAddActionFlux").actionType:if(e==null)break;h=this.$AdsAccountStoreClassOld$p_1.get(e);if(h==null)break;g=h.tos_accepted?h.tos_accepted:Object();g=babelHelpers["extends"]({},g,a.addedTOS);this.$AdsAccountStoreClassOld$p_1.set(e,babelHelpers["extends"]({},h,{tos_accepted:g}));b=!0;break;case d("AdsAMAccountInitActionFlux").actionType:f=a.account.account_id;this.$AdsAccountStoreClassOld$p_16(f,(h=a.account.business)==null?void 0:h.id);this.$AdsAccountStoreClassOld$p_13(f,a.account);b=!0;c("AdsAccountUtils").logAccID("flux");break;case d("AdsDSASetDefaultBeneficiaryPayorInfoActionFlux").actionType:g=a.accountID;h=this.$AdsAccountStoreClassOld$p_1.get(g);if(h==null)break;this.$AdsAccountStoreClassOld$p_1.set(g,babelHelpers["extends"]({},h,{default_dsa_beneficiary:a.defaultBeneficiary,default_dsa_payor:a.defaultPayor}));b=!0;break}b&&(c("ifRequired")("EventProfiler",function(a){e&&a.setCurrentAdAccountId(e)}),this.__emitChange())};e.$AdsAccountStoreClassOld$p_20=function(a,b){var d=this.$AdsAccountStoreClassOld$p_1.get(a);!d||d.loadState===c("AdsLoadState_LEGACY").LOADING?this.$AdsAccountStoreClassOld$p_1.set(a,b):this.$AdsAccountStoreClassOld$p_1.set(a,babelHelpers["extends"]({},d,b))};e.$AdsAccountStoreClassOld$p_13=function(a,b){var d=this.$AdsAccountStoreClassOld$p_1.get(a);d&&this.$AdsAccountStoreClassOld$p_1.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADED}));this.$AdsAccountStoreClassOld$p_20(a,babelHelpers["extends"]({},b,{loadState:c("AdsLoadState_LEGACY").LOADED}))};e.$AdsAccountStoreClassOld$p_14=function(a,b){this.$AdsAccountStoreClassOld$p_1.set(a,{loadState:c("AdsLoadState_LEGACY").ERROR,error:b})};e.$AdsAccountStoreClassOld$p_12=function(a){var b={},e=a.accountID;b=a.accountInfo;b.business_country_code=b.business_country_code||k;b.name=a.accountName;b.hasSuperRead=a.hasSuperRead;c("promiseDone")(d("AdsAccountDataLoader").postUserSettings(e));c("DateTime").setupTimezoneFallback(b.timezone_id,b.timezone_offset_hours_utc);d("AdsEngagementAudienceUILogger").setAppName(c("AdsPixelUIEnvironments").CM);b.loadState=c("AdsLoadState_LEGACY").LOADED;this.$AdsAccountStoreClassOld$p_20(e,b);c("AdsAccountUtils").logAccID("initAccountData")};e.$AdsAccountStoreClassOld$p_18=function(a){return this.$AdsAccountStoreClassOld$p_1.has(a)?this.$AdsAccountStoreClassOld$p_1["delete"](a):!1};e.__invalidateAllErrors=function(){var a=this,b=!1;this.$AdsAccountStoreClassOld$p_1.forEach(function(d,e){if(d.loadState===c("AdsLoadState_LEGACY").ERROR){d=a.$AdsAccountStoreClassOld$p_18(e);b=d||b}});return b};e.$AdsAccountStoreClassOld$p_19=function(a){var b=this,c=!1;a.forEach(function(a){c=c||b.$AdsAccountStoreClassOld$p_18(a);var d=b.$AdsAccountStoreClassOld$p_5.get(a);b.$AdsAccountStoreClassOld$p_5.set(a,d?d+1:1)});return c};e.$AdsAccountStoreClassOld$p_17=function(a,b){var d=this.$AdsAccountStoreClassOld$p_1.get(a);d!=null&&d.loadState===c("AdsLoadState_LEGACY").LOADED&&(d=babelHelpers["extends"]({},d,{user_settings:{id:b}}),this.$AdsAccountStoreClassOld$p_1.set(a,d))};e.$AdsAccountStoreClassOld$p_15=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld$p_21(a)){var e=this.$AdsAccountStoreClassOld$p_22(b,a);this.$AdsAccountStoreClassOld$p_4={hasMisMatches:e,accountID:b};e||this.$AdsAccountStoreClassOld$p_23(b,a);c("AdsAccountUtils").logAccID("selectBusiness")}};e.$AdsAccountStoreClassOld$p_16=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld$p_7(a)){var e=new(j||(j=c("URI")))(window.location.href);if(e.getPath().includes("billing_hub"))return;e=this.$AdsAccountStoreClassOld$p_22(a,b);this.$AdsAccountStoreClassOld$p_4={hasMisMatches:e,accountID:a};e||this.$AdsAccountStoreClassOld$p_23(a,b);c("AdsAccountUtils").logAccID("selectAccount")}};e.__setStoreStateTEST_ONLY_DO_NOT_USE_IN_PRODUCTION=function(a){var b=a.selectedAccountID,e=a.selectedBusinessID;a=a.accounts;c("CurrentAdAccountInitialData").AD_ACCOUNT_ID=b;var f=new Map();a.forEach(function(a,b){f.set(b,babelHelpers["extends"]({},a.getValueEnforcing(),{loadState:d("AdsLoadStateUtils_LEGACY").fromLoadObject(a).loadState}))});!d("AdsApplicationUtils").isFAME()&&(this.$AdsAccountStoreClassOld$p_7(b)||this.$AdsAccountStoreClassOld$p_21(e))&&(this.$AdsAccountStoreClassOld$p_4={hasMisMatches:!1,accountID:b});this.$AdsAccountStoreClassOld$p_1=f;c("AdsAccountUtils").logAccID("setStoreState")};e.$AdsAccountStoreClassOld$p_7=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassOld$p_6()};e.$AdsAccountStoreClassOld$p_10=function(){return c("ApiClient").getAccessToken()!=null||c("gkx")("21557")};e.$AdsAccountStoreClassOld$p_21=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassOld$p_11()};e.$AdsAccountStoreClassOld$p_22=function(a,b){var d=this.$AdsAccountStoreClassOld$p_6(),e=this.$AdsAccountStoreClassOld$p_11();a=(a=a)!=null?a:null;b=(b=b)!=null?b:null;var f=!0;try{var g=window.localStorage;if(g){var h=this.$AdsAccountStoreClassOld$p_24("curAccountID"),i=this.$AdsAccountStoreClassOld$p_24("requestedAccountID"),j=this.$AdsAccountStoreClassOld$p_24("curBusinessID"),k=this.$AdsAccountStoreClassOld$p_24("requestedBusinessID");f=h===d&&i===a&&j===e&&k===b;if(!f){g.setItem("curAccountID",(h=d)!=null?h:"none");g.setItem("requestedAccountID",(i=a)!=null?i:"none");g.setItem("curBusinessID",(j=e)!=null?j:"none");g.setItem("requestedBusinessID",(k=b)!=null?k:"none")}}}catch(a){f=!0}f&&(d!==a?c("AdsAccountUtils").logAdAccountUpdatesMisMatched(d,a,this.$AdsAccountStoreClassOld$p_10()):c("AdsAccountUtils").logBusinessAccountUpdatesMisMatched(e,b));return f};e.$AdsAccountStoreClassOld$p_24=function(a){var b=null;try{var c=window.localStorage;c&&(b=c.getItem(a),b=b==="none"?null:b)}catch(a){b=null}return b};e.$AdsAccountStoreClassOld$p_23=function(a,b){var d=new(j||(j=c("URI")))(window.location.href),e={};a!=null&&(e.act=a);b!=null&&(e.business_id=b);d.addQueryData(e);c("AdsAccountUtils").logMsgWhenAccountUpdates();c("goURI")(d)};return b}(c("FluxStore"));b.__moduleID=f.id;e=new b();g["default"]=e}),98);
-----
AdsAccountBatchLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ACCOUNT.BATCH_LOADED"}}),null);
-----
AdsExcelLoggerStore",["AdsAccountBatchLoadedDataActionFlux","AdsAccountListBatchLoadedDataActionFlux","AdsAccountListPartialLoadDataActionFlux","AdsAccountSelectDataActionFlux","AdsDataAtom","AdsDraftDraftCurrentDraftLoadErrorDataActionFlux","AdsExcelAddinLogLevel","AdsExcelAddinLoggerContextColumn","AdsExcelAdsaccountCustomlistUpdateCancelAndAppShowMainActionFlux","AdsExcelAdsaccountCustomlistVerifiedAndAppShowMainActionFlux","AdsExcelAdsavedreportBatchCreatedActionFlux","AdsExcelAdsavedreportBatchDeletedActionFlux","AdsExcelAdsavedreportBatchLoadedActionFlux","AdsExcelAdsavedreportBatchUpdatedActionFlux","AdsExcelAdsavedreportCreateBatchActionFlux","AdsExcelAdsavedreportDeleteBatchActionFlux","AdsExcelAdsavedreportDuplicateBatchActionFlux","AdsExcelAdsavedreportListPartialLoadActionFlux","AdsExcelAdsavedreportSaveAsTemplateBatchActionFlux","AdsExcelAdsavedreportUpdateBatchActionFlux","AdsExcelAppInitializedActionFlux","AdsExcelAppNewReportAndIncreaseSubsessionIdActionFlux","AdsExcelAppPrefetchAdsaccountsActionFlux","AdsExcelAppShowMainActionFlux","AdsExcelAppStateStore","AdsExcelClientEnvironment","AdsExcelErrorDismissActionFlux","AdsExcelLoginStore","AdsExcelNewReportWizardAccountsSelectedActionFlux","AdsExcelNewReportWizardCancelActionFlux","AdsExcelNewReportWizardConfirmActionFlux","AdsExcelNewReportWizardNextStepActionFlux","AdsExcelNewReportWizardPrevStepActionFlux","AdsExcelNewReportWizardReportSpecSelectedActionFlux","AdsExcelNotificationFeedbackSuccessAndAppShowMainActionFlux","AdsExcelOfficeJSErrors","AdsExcelReportRefreshAndIncreaseSubsessionIdActionFlux","AdsExcelSaveInternalSettingActionFlux","AdsExcelUserProfileStore","AdsExcelWorksheetStore","AdsExcelWorksheetWriteActionFlux","AdsInsightsExportCDNErrorDataActionFlux","AdsInsightsExportCancelActionFlux","AdsInsightsExportCreateActionFlux","AdsInsightsExportCreateErrorDataActionFlux","AdsInsightsExportCreatedDataActionFlux","AdsInsightsExportDownloadErrorDataActionFlux","AdsInsightsExportDownloadedDataActionFlux","AdsInsightsExportErrorDataActionFlux","AdsInsightsExportFetchErrorDataActionFlux","AdsInsightsExportFetchedDataActionFlux","FBExcelLogger","FBExcelLoggerEventCategories","FBJSON","FluxStore","adsFormatErrorMessage","first","immutable","last"],(function(a,b,c,d,e,f,g){"use strict";var h=c("immutable").Set([d("AdsExcelNewReportWizardCancelActionFlux").actionType,d("AdsExcelNewReportWizardConfirmActionFlux").actionType,d("AdsExcelNewReportWizardNextStepActionFlux").actionType,d("AdsExcelNewReportWizardPrevStepActionFlux").actionType,d("AdsExcelErrorDismissActionFlux").actionType,d("AdsExcelAppPrefetchAdsaccountsActionFlux").actionType,d("AdsDraftDraftCurrentDraftLoadErrorDataActionFlux").actionType]);a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.call(this,c("AdsDataAtom"))||this}var e=b.prototype;e.__onDispatch=function(a){var b;a=a.action;if(h.has(a.type))return;var e="error";if(Object.prototype.hasOwnProperty.call(a,e)){var f=a[e];e="name";if(Object.prototype.hasOwnProperty.call(f,e)){f=f[e];if(f===d("AdsExcelOfficeJSErrors").MSOFFICE_EXTENSION_ERROR_NAME)return}}e={};f=c("FBExcelLoggerEventCategories").FLUX_ACTION;switch(a.type){case d("AdsInsightsExportCreateActionFlux").actionType:e=(b={},b.ad_account_id_explicit=a.data.accountID,b[c("AdsExcelAddinLoggerContextColumn").INSIGHT_REPORT_SPEC]=a.data.asyncArgs,b);f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportCreatedDataActionFlux").actionType:e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data.reportRunID,b);f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportCancelActionFlux").actionType:if(a.data){e=(b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a.data,b)}f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportDownloadedDataActionFlux").actionType:if(a.data){e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data["export"].reportRunID,b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a.data,b)}f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportFetchedDataActionFlux").actionType:if(a.data){e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data["export"].reportRunID,b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a.data.data,b)}f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportErrorDataActionFlux").actionType:case d("AdsInsightsExportCreateErrorDataActionFlux").actionType:case d("AdsInsightsExportFetchErrorDataActionFlux").actionType:case d("AdsInsightsExportDownloadErrorDataActionFlux").actionType:case d("AdsInsightsExportCDNErrorDataActionFlux").actionType:e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data["export"].reportRunID,b.message=c("adsFormatErrorMessage")(a.data.error),b.page_uri=a.type===d("AdsInsightsExportErrorDataActionFlux").actionType?null:a.data.uri,b);f=c("FBExcelLoggerEventCategories").INSIGHTS_API_ERROR;break;case d("AdsExcelAppNewReportAndIncreaseSubsessionIdActionFlux").actionType:case d("AdsExcelReportRefreshAndIncreaseSubsessionIdActionFlux").actionType:c("FBExcelLogger").nextSubSession();break;default:e=this.$AdsExcelLoggerStore1({action:a}),f=Object.prototype.hasOwnProperty.call(a,"error")?c("FBExcelLoggerEventCategories").FLUX_ACTION_ERROR:c("FBExcelLoggerEventCategories").FLUX_ACTION}c("FBExcelLogger").logEnum(f,a.type,e)};e.$AdsExcelLoggerStore1=function(a){var b;a=a.action;if(Object.prototype.hasOwnProperty.call(a,"error"))return this.$AdsExcelLoggerStore2({action:a});switch(a.type){case d("AdsExcelAppInitializedActionFlux").actionType:return{excel_api_supported:d("AdsExcelClientEnvironment").getExcelAPISupported(),dialog_api_supported:d("AdsExcelClientEnvironment").getDialogAPISupported(),commands_api_supported:d("AdsExcelClientEnvironment").getCommandsAPISupported()};case d("AdsExcelAdsaccountCustomlistUpdateCancelAndAppShowMainActionFlux").actionType:case d("AdsExcelAdsaccountCustomlistVerifiedAndAppShowMainActionFlux").actionType:case d("AdsExcelAppShowMainActionFlux").actionType:case d("AdsExcelNotificationFeedbackSuccessAndAppShowMainActionFlux").actionType:return b={},b[c("AdsExcelAddinLoggerContextColumn").FAME_APP_STATUS]={appState:c("AdsExcelAppStateStore").getAppState(),enableDevConsole:c("AdsExcelAppStateStore").isDevConsoleEnabled(),loginState:c("AdsExcelLoginStore").getLoginState(),userProfile:c("AdsExcelUserProfileStore").getUserProfile(),isManagedWorksheet:c("AdsExcelWorksheetStore").getIsFameManagedWorksheet()},b;case d("AdsAccountBatchLoadedDataActionFlux").actionType:case d("AdsAccountSelectDataActionFlux").actionType:return b={},b.ad_account_id_explicit=a.accountID,b.object_ids=[a.accountID],b;case d("AdsAccountListPartialLoadDataActionFlux").actionType:case d("AdsAccountListBatchLoadedDataActionFlux").actionType:return b={},b.object_ids=a.accounts.map(function(a){return a.account_id}),b;case d("AdsExcelAdsavedreportCreateBatchActionFlux").actionType:case d("AdsExcelAdsavedreportBatchCreatedActionFlux").actionType:case d("AdsExcelAdsavedreportUpdateBatchActionFlux").actionType:case d("AdsExcelAdsavedreportBatchUpdatedActionFlux").actionType:case d("AdsExcelAdsavedreportBatchLoadedActionFlux").actionType:case d("AdsExcelAdsavedreportDuplicateBatchActionFlux").actionType:case d("AdsExcelAdsavedreportSaveAsTemplateBatchActionFlux").actionType:return b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={reports:a.reports},b;case d("AdsExcelAdsavedreportDeleteBatchActionFlux").actionType:case d("AdsExcelAdsavedreportBatchDeletedActionFlux").actionType:return b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={ids:a.ids},b;case d("AdsExcelAdsavedreportListPartialLoadActionFlux").actionType:return b={},b.object_ids=a.reports.map(function(a){return a.id}),b;case d("AdsExcelNewReportWizardAccountsSelectedActionFlux").actionType:return b={},b.object_ids=a.accounts,b;case d("AdsExcelNewReportWizardReportSpecSelectedActionFlux").actionType:return b={},b.object_ids=[a.reportSpecID],b;case d("AdsExcelSaveInternalSettingActionFlux").actionType:return b={},b.object_ids=a.adAccountIDs,b;case d("AdsExcelWorksheetWriteActionFlux").actionType:b=a.data;var e=a.exportKey,f=a.startingRow,g=a.worksheet,h=a.columnNames;if(Array.isArray(b)&&c("first")(b)!=null&&Array.isArray(c("first")(b))){var i;return i={},i[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={dataLength:b.length,dataRowLengths:b.map(function(a){return Array.isArray(a)?a.length:-1}),firstRow:c("first")(b),lastRow:c("last")(b),exportKey:e,startingRow:f,worksheet:g,columnNames:h},i}return i={},i[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={data:b,exportKey:e,startingRow:f,worksheet:g,columnNames:h},i;default:return this.$AdsExcelLoggerStore3({action:a})}};e.$AdsExcelLoggerStore3=function(a){a=a.action;var b=c("AdsExcelAddinLogLevel").logFullFluxActionDetails;if(Object.prototype.hasOwnProperty.call(b,a.type)){return b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a,b}return{}};e.$AdsExcelLoggerStore2=function(a){var b;a=a.action;var e=c("AdsExcelWorksheetStore").getAllWorksheets()||[];e=(b={},b[c("AdsExcelAddinLoggerContextColumn").WORKSHEET_INFO]=e.map(function(a){return d("FBJSON").stringify(c("AdsExcelWorksheetStore").getWorksheetSettings(a))}),b);b="";var f="",g="",h="error";if(Object.prototype.hasOwnProperty.call(a,h)){a=a[h];g=d("FBJSON").stringify(a);h="code";Object.prototype.hasOwnProperty.call(a,h)&&(b=a[h]);h="error_subcode";Object.prototype.hasOwnProperty.call(a,h)&&(f=a[h])}return babelHelpers["extends"]({},e,(a={},a.error_code=b,a.error_subcode=f,a.message=g,a))};return b}(c("FluxStore"));a.__moduleID=f.id;b=new a();g["default"]=b}),98);
-----
AdsAccountStoreNew",["invariant","AdsAMAccountAcceptedTosAddActionFlux","AdsAMAccountInitActionFlux","AdsAccountAddCapabilitiesDataActionFlux","AdsAccountAttributionSpecLoadSuccessDataActionFlux","AdsAccountAttributionSpecUpdateStartDataActionFlux","AdsAccountAttributionSpecUpdateSuccessDataActionFlux","AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountChangeAccountCountryDataActionFlux","AdsAccountChangeAccountCurrencyDataActionFlux","AdsAccountChangeAccountNameDataActionFlux","AdsAccountChangeAccountTimezoneIdDataActionFlux","AdsAccountDataDispatcher","AdsAccountDataLoader","AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux","AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux","AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux","AdsAccountGKsErrorActionFlux","AdsAccountGKsLoadedActionFlux","AdsAccountInitDataActionFlux","AdsAccountInvalidateDataActionFlux","AdsAccountListInvalidateDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountSettingsCreateFinishedDataActionFlux","AdsAccountSettingsUpdateStartDataActionFlux","AdsAccountUtils","AdsAccountViewerPermissionsLoadErrorDataActionFlux","AdsAccountViewerPermissionsLoadedDataActionFlux","AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux","AdsApplicationUtils","AdsCachedLoadState_LEGACY","AdsCountries","AdsDataAtom","AdsEngagementAudienceUILogger","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsLoadStateUtils_LEGACY","AdsLoadState_LEGACY","AdsPERefreshTableViewActionFlux","AdsPEUploadShowPreviewActionFlux","AdsPaymentsCountryToCurrencyLegalReq","AdsPixelUIEnvironments","AdsTimezone","BizSiteIdentifier.brands","CurrentAdAccount","DateTime","DateUtil","FluxStore","LoadObject","URI","XAdsAccountQualityController","adsCreateSelector","adsCreateStoreSelector","goURI","ifRequired","immutable","isFalsey","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i="US",j=1;a=0;var k=c("DateTime").fromLegacyArgs(c("DateUtil").FACEBOOK_EPOCH*1e3,a).toISOString();b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this,c("AdsDataAtom"))||this;b.getSelectedAccountID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID}):b.$AdsAccountStoreClassNew6()},{name:f.id});b.getSelectedAccountIDX=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){if(d("AdsApplicationUtils").isFAME()){var a=c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID});!a&&h(0,5919,a);return a}a=b.$AdsAccountStoreClassNew6();!a&&h(0,5919,a);return a},{name:f.id});b.getSelectedBusinessID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.$AdsAccountStoreClassNew10()},{name:f.id});b.getCreatedTime=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().created_time;return a?a:k},{name:f.id});b.getTimezoneID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().timezone_id;return a?a:j},{name:f.id});b.getTosAccepted=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.__getSelectedAccount().tos_accepted},{name:f.id});b.getSelectedAccount=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a||c("LoadObject").empty()})||c("LoadObject").empty():d("AdsLoadStateUtils_LEGACY").toLoadObject(b.__getSelectedAccount())},{name:f.id});b.getSelectedAccountCapabilities=c("adsCreateSelector")([b.getSelectedAccount],function(a){return((a=a.getValue())==null?void 0:a.capabilities)||[]},{name:f.id});b.$AdsAccountStoreClassNew2={};b.$AdsAccountStoreClassNew1=new Map();b.$AdsAccountStoreClassNew3=!1;b.$AdsAccountStoreClassNew4={hasMisMatches:!1,accountID:null};b.$AdsAccountStoreClassNew5=new Map();return b}var e=b.prototype;e.__getActionTypes=function(){return[d("AdsAccountInitDataActionFlux").actionType,d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsAccountBatchLoadErrorDataActionFlux").actionType,d("AdsAccountChangeAccountNameDataActionFlux").actionType,d("AdsAccountChangeAccountCountryDataActionFlux").actionType,d("AdsAccountChangeAccountCurrencyDataActionFlux").actionType,d("AdsAccountChangeAccountTimezoneIdDataActionFlux").actionType,d("AdsAccountAddCapabilitiesDataActionFlux").actionType,d("AdsAccountGKsErrorActionFlux").actionType,d("AdsAccountGKsLoadedActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType,d("AdsAccountSelectDataActionFlux").actionType,d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType,d("AdsAccountSettingsUpdateStartDataActionFlux").actionType,d("AdsAccountInvalidateDataActionFlux").actionType,d("AdsAccountListInvalidateDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType,d("AdsAccountAttributionSpecUpdateStartDataActionFlux").actionType,d("AdsAccountAttributionSpecUpdateSuccessDataActionFlux").actionType,d("AdsAccountAttributionSpecLoadSuccessDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux").actionType,d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType,d("AdsAMAccountAcceptedTosAddActionFlux").actionType,d("AdsAMAccountInitActionFlux").actionType,d("AdsPERefreshTableViewActionFlux").actionType,d("AdsPEUploadShowPreviewActionFlux").actionType]};e.canUpdateCurrency=function(){var a=this.$AdsAccountStoreClassNew6();if(a==null)return!1;a=this.getCached(a).getValue();if(c("isFalsey")(a))return!1;var b=c("AdsAccountUtils").hasCapability(a,"CAN_UPDATE_CURRENCY");a=c("AdsAccountUtils").isPaymentInfoRequired(a);return b&&a};e.get=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();return!this.$AdsAccountStoreClassNew7(a)?this.getSelectedAccount():d("AdsLoadStateUtils_LEGACY").toLoadObject(this.$AdsAccountStoreClassNew8(a))};e.$AdsAccountStoreClassNew8=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return d("AdsLoadStateUtils_LEGACY").fromLoadObject(b.get(a))})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var b=this.$AdsAccountStoreClassNew1.get(a);b||(b=c("AdsCachedLoadState_LEGACY").LOADING,this.$AdsAccountStoreClassNew1.set(a,b),c("AdsAccountDataDispatcher").loadAccountData(a));return b};e.getCached=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();var b=this.$AdsAccountStoreClassNew1.get(a);b||(b=c("AdsCachedLoadState_LEGACY").NOT_LOADED);return d("AdsLoadStateUtils_LEGACY").toLoadObject(b)};e.$AdsAccountStoreClassNew9=function(){var a=this.$AdsAccountStoreClassNew6();if(!a)return;c("AdsAccountDataDispatcher").loadAccountData(a);return};e.getAllLoadObjects=function(a){a=this.getAll(a.toArray());var b=new Map();for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=g[0];g=g[1];b.set(h,d("AdsLoadStateUtils_LEGACY").toLoadObject(g))}return c("immutable").Map(b)};e.getAll=function(a){var b=this,c=new Map();a.forEach(function(a){c.set(a,b.$AdsAccountStoreClassNew8(a))});return c};e.getAllCached=function(a){var b=this,d=new Map();a.forEach(function(a){var e=b.$AdsAccountStoreClassNew1.get(a);e||(e=c("AdsCachedLoadState_LEGACY").NOT_LOADED);d.set(a,e)});return d};e.getByFields=function(a,b){var d=this.$AdsAccountStoreClassNew1.get(a);if(!d){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassNew1.set(a,c("AdsCachedLoadState_LEGACY").LOADING);return c("AdsCachedLoadState_LEGACY").LOADING}if(d.loadState===c("AdsLoadState_LEGACY").ERROR)return c("AdsCachedLoadState_LEGACY").ERROR;if(d.loadState===c("AdsLoadState_LEGACY").LOADING)return c("AdsCachedLoadState_LEGACY").LOADING;var e=b.some(function(a){return d[a]===null||d[a]===void 0});if(e){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassNew1.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADING}));return c("AdsCachedLoadState_LEGACY").LOADING}var f={};b.forEach(function(a){f[a]=d[a]});f.loadState=c("AdsLoadState_LEGACY").LOADED;return f};e.getAllByFields=function(a,b){var c=this,d=new Map();a.forEach(function(a){d.set(a,c.getByFields(a,b))});return d};e.$AdsAccountStoreClassNew6=function(){var a;a=(a=c("CurrentAdAccount").getID())!=null?a:null;if(this.$AdsAccountStoreClassNew4.hasMisMatches){var b;a=(b=this.$AdsAccountStoreClassNew4.accountID)!=null?b:null}return a};e.$AdsAccountStoreClassNew10=function(){var a;return(a=d("BizSiteIdentifier.brands").getBusinessID())!=null?a:null};e.getTimezoneName=function(){var a=this.__getSelectedAccount().timezone_name;return a?a:""};e.getViewerPermissions=function(){var a=this.$AdsAccountStoreClassNew6();if(a){this.$AdsAccountStoreClassNew2[a]||(this.$AdsAccountStoreClassNew2[a]=c("LoadObject").loading(),c("AdsAccountDataDispatcher").loadViewerPermissions(a));return this.$AdsAccountStoreClassNew2[a]}return c("LoadObject").empty()};e.getViewerHasPermission=function(a){var b=this.getViewerPermissions();return b.hasValueWithoutError()&&Array.isArray(b.getValueEnforcing().data)&&b.getValueEnforcing().data.includes(a)};e.__getSelectedAccount=function(){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a!=null?d("AdsLoadStateUtils_LEGACY").fromLoadObject(a):null})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var a=this.$AdsAccountStoreClassNew6();return!a?c("AdsCachedLoadState_LEGACY").NOT_LOADED:this.$AdsAccountStoreClassNew8(a)};e.toURLParams=function(){var a=this.$AdsAccountStoreClassNew6();return!a?null:{act:a}};e.$AdsAccountStoreClassNew11=function(){var a=this.__getSelectedAccount();c("DateTime").setupTimezoneFallback(a.timezone_id,a.timezone_offset_hours_utc)};e.__onDispatch=function(a){var b=a.action;a=!1;var e=this.$AdsAccountStoreClassNew6();switch(b.actionType){case d("AdsAccountInitDataActionFlux").actionType:this.$AdsAccountStoreClassNew12(b.data);a=!0;break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassNew13(b.accountID,b.account);a=!0;break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassNew14(b.accountID,b.error);a=!0;break;case d("AdsAccountChangeAccountNameDataActionFlux").actionType:if(e!=null){var f=this.$AdsAccountStoreClassNew1.get(e);if(f==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},f,{name:b.name}));a=!0}break;case d("AdsAccountChangeAccountCountryDataActionFlux").actionType:if(e!=null){f=b.country;var g=d("AdsTimezone").countryCodeToTimezoneIDsMap[f][0],h=d("AdsTimezone").timezoneIDToOffsetMap[g],i=this.__getSelectedAccount().currency,j=this.$AdsAccountStoreClassNew1.get(e);if(j==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{business_country_code:f,timezone_id:g,timezone_offset_hours_utc:h}));j=Object.prototype.hasOwnProperty.call(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req,f)||Object.values(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req).some(function(a){return a===i});if(!this.$AdsAccountStoreClassNew3||j){g=d("AdsCountries").getCurrencyByCountry(f);h=this.$AdsAccountStoreClassNew1.get(e);if(h==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},h,{currency:g}))}this.$AdsAccountStoreClassNew11();a=!0}break;case d("AdsAccountChangeAccountCurrencyDataActionFlux").actionType:if(e!=null){j=this.$AdsAccountStoreClassNew1.get(e);if(j==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{currency:b.currency}));f=Object.keys(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req).find(function(a){return c("AdsPaymentsCountryToCurrencyLegalReq").legal_req[a]===b.currency});if(f!==void 0){h=this.$AdsAccountStoreClassNew1.get(e);if(h==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},h,{business_country_code:f}))}this.$AdsAccountStoreClassNew3=!0;a=!0}break;case d("AdsAccountChangeAccountTimezoneIdDataActionFlux").actionType:if(e!=null){g=this.$AdsAccountStoreClassNew1.get(e);if(g==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},g,{timezone_id:b.timezoneID,timezone_offset_hours_utc:d("AdsTimezone").timezoneIDToOffsetMap[b.timezoneID]}));this.$AdsAccountStoreClassNew11();a=!0}break;case d("AdsPEUploadShowPreviewActionFlux").actionType:b.didUpdateAccount&&this.$AdsAccountStoreClassNew9();break;case d("AdsAccountAddCapabilitiesDataActionFlux").actionType:if(e!=null){j=this.__getSelectedAccount();this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{capabilities:j.capabilities.concat(b.capabilities)}));a=!0}break;case d("AdsPERefreshTableViewActionFlux").actionType:this.__invalidateAllErrors()&&(a=!0);break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:this.__invalidateAllErrors()&&(a=!0);h=b.data.changedParamKeys;if(h.act||h.business_id){f=b.data.params;if(!f.act&&f.tool==="REPORTING")this.$AdsAccountStoreClassNew15(f.business_id,f.act);else if(f.act)this.$AdsAccountStoreClassNew16(f.act,f.business_id);else break;a=!0}break;case d("AdsAccountSelectDataActionFlux").actionType:if(d("AdsApplicationUtils").isPowerEditor())break;!b.accountID?this.$AdsAccountStoreClassNew15(b.businessID,b.accountID):this.$AdsAccountStoreClassNew16(b.accountID,b.businessID);a=!0;break;case d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType:this.$AdsAccountStoreClassNew17(b.accountID,b.settingsID);break;case d("AdsAccountSettingsUpdateStartDataActionFlux").actionType:g=this.$AdsAccountStoreClassNew6();g!=null&&c("AdsAccountDataDispatcher").updateAccount(g,b.data);break;case d("AdsAccountInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassNew18(b.id)&&(a=!0);break;case d("AdsAccountListInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassNew19(b.accounts)&&(a=!0);break;case d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassNew2[b.accountID]=c("LoadObject").withValue({data:b.data});a=!0;break;case d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassNew2[b.accountID]=c("LoadObject").withError(new Error(b.data));a=!0;break;case d("AdsAccountAttributionSpecUpdateStartDataActionFlux").actionType:e!=null&&c("AdsAccountDataDispatcher").updateAccountAttributionSpec(e,{attribution_spec:b.attributionSpec});break;case d("AdsAccountAttributionSpecUpdateSuccessDataActionFlux").actionType:if(e!=null){c("AdsAccountDataDispatcher").loadAccountAttributionSpec(e);j=this.$AdsAccountStoreClassNew1.get(e);if(j==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{loadState:c("AdsLoadState_LEGACY").LOADING}))}break;case d("AdsAccountAttributionSpecLoadSuccessDataActionFlux").actionType:if(e!=null){h=this.$AdsAccountStoreClassNew1.get(e);if(h==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},h,{attribution_spec:b.data.attribution_spec,is_attribution_spec_system_default:b.data.is_attribution_spec_system_default,loadState:c("AdsLoadState_LEGACY").LOADED}));a=!0}break;case d("AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux").actionType:e!=null&&c("AdsAccountDataDispatcher").updateAccountDefaultUnifiedAttrSpec(e,{default_unified_attribution_spec:b.defaultUnifiedAttrSpec});break;case d("AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux").actionType:if(e!=null){c("AdsAccountDataDispatcher").loadAccountDefaultUnifiedAttrSpec(e);f=this.$AdsAccountStoreClassNew1.get(e);if(f==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},f,{loadState:c("AdsLoadState_LEGACY").LOADING}))}break;case d("AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux").actionType:if(e!=null){g=this.$AdsAccountStoreClassNew1.get(e);if(g==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},g,{default_unified_attribution_spec:b.data.default_unified_attribution_spec,loadState:c("AdsLoadState_LEGACY").LOADED}));a=!0}break;case d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType:c("AdsAccountDataDispatcher").handleAcceptMAIDeeplinkTOS(this.getSelectedAccountID());a=!0;break;case d("AdsAMAccountAcceptedTosAddActionFlux").actionType:if(e==null)break;j=this.$AdsAccountStoreClassNew1.get(e);if(j==null)break;h=j.tos_accepted?j.tos_accepted:Object();h=babelHelpers["extends"]({},h,b.addedTOS);this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{tos_accepted:h}));a=!0;break;case d("AdsAMAccountInitActionFlux").actionType:f=b.account.account_id;this.$AdsAccountStoreClassNew16(f,(g=b.account.business)==null?void 0:g.id);this.$AdsAccountStoreClassNew13(f,b.account);a=!0;c("AdsAccountUtils").logAccID("flux");break;case d("AdsAccountGKsErrorActionFlux").actionType:case d("AdsAccountGKsLoadedActionFlux").actionType:a=!0;break}a&&this.__emitChange()};e.$AdsAccountStoreClassNew20=function(a,b){var d=this.$AdsAccountStoreClassNew1.get(a);!d||d.loadState===c("AdsLoadState_LEGACY").LOADING?this.$AdsAccountStoreClassNew1.set(a,b):this.$AdsAccountStoreClassNew1.set(a,babelHelpers["extends"]({},d,b))};e.$AdsAccountStoreClassNew13=function(a,b){var d=this.$AdsAccountStoreClassNew1.get(a);d&&this.$AdsAccountStoreClassNew1.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADED}));this.$AdsAccountStoreClassNew20(a,babelHelpers["extends"]({},b,{loadState:c("AdsLoadState_LEGACY").LOADED}))};e.$AdsAccountStoreClassNew14=function(a,b){this.$AdsAccountStoreClassNew1.set(a,{loadState:c("AdsLoadState_LEGACY").ERROR,error:b})};e.$AdsAccountStoreClassNew12=function(a){var b={},e=a.accountID;b=a.accountInfo;b.business_country_code=b.business_country_code||i;b.name=a.accountName;b.hasSuperRead=a.hasSuperRead;c("promiseDone")(d("AdsAccountDataLoader").postUserSettings(e));c("DateTime").setupTimezoneFallback(b.timezone_id,b.timezone_offset_hours_utc);d("AdsEngagementAudienceUILogger").setAppName(c("AdsPixelUIEnvironments").CM);b.loadState=c("AdsLoadState_LEGACY").LOADED;this.$AdsAccountStoreClassNew20(e,b);c("AdsAccountUtils").logAccID("initAccountData")};e.$AdsAccountStoreClassNew18=function(a){return this.$AdsAccountStoreClassNew1.has(a)?this.$AdsAccountStoreClassNew1["delete"](a):!1};e.__invalidateAllErrors=function(){var a=this,b=!1;this.$AdsAccountStoreClassNew1.forEach(function(d,e){if(d.loadState===c("AdsLoadState_LEGACY").ERROR){d=a.$AdsAccountStoreClassNew18(e);b=d||b}});return b};e.$AdsAccountStoreClassNew19=function(a){var b=this,c=!1;a.forEach(function(a){c=c||b.$AdsAccountStoreClassNew18(a);var d=b.$AdsAccountStoreClassNew5.get(a);b.$AdsAccountStoreClassNew5.set(a,d?d+1:1)});return c};e.$AdsAccountStoreClassNew17=function(a,b){var d=this.$AdsAccountStoreClassNew1.get(a);d!=null&&d.loadState===c("AdsLoadState_LEGACY").LOADED&&(d=babelHelpers["extends"]({},d,{user_settings:{id:b}}),this.$AdsAccountStoreClassNew1.set(a,d))};e.$AdsAccountStoreClassNew15=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassNew21(a)){var e=this.$AdsAccountStoreClassNew22(b,a);this.$AdsAccountStoreClassNew4={hasMisMatches:e,accountID:b};e||this.$AdsAccountStoreClassNew23(b,a);c("AdsAccountUtils").logAccID("selectBusiness")}};e.$AdsAccountStoreClassNew16=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassNew7(a)){var e=this.$AdsAccountStoreClassNew22(a,b);this.$AdsAccountStoreClassNew4={hasMisMatches:e,accountID:a};e||this.$AdsAccountStoreClassNew23(a,b);c("AdsAccountUtils").logAccID("selectAccount")}};e.__setStoreState=function(a){var b=a.selectedAccountID,e=a.selectedBusinessID;a=a.accounts;var f=new Map();a.forEach(function(a,b){f.set(b,babelHelpers["extends"]({},a.getValueEnforcing(),{loadState:d("AdsLoadStateUtils_LEGACY").fromLoadObject(a).loadState}))});if(!d("AdsApplicationUtils").isFAME()&&(this.$AdsAccountStoreClassNew7(b)||this.$AdsAccountStoreClassNew21(e))){a=this.$AdsAccountStoreClassNew22(b,e);this.$AdsAccountStoreClassNew4={hasMisMatches:a,accountID:b};a||this.$AdsAccountStoreClassNew23(b,e)}else this.$AdsAccountStoreClassNew1=f,c("AdsAccountUtils").logAccID("setStoreState")};e.$AdsAccountStoreClassNew7=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassNew6()};e.$AdsAccountStoreClassNew21=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassNew10()};e.$AdsAccountStoreClassNew22=function(a,b){var d=this.$AdsAccountStoreClassNew6(),e=this.$AdsAccountStoreClassNew10();a=(a=a)!=null?a:null;b=(b=b)!=null?b:null;var f=!0;try{var g=window.localStorage;if(g){var h=this.$AdsAccountStoreClassNew24("curAccountID"),i=this.$AdsAccountStoreClassNew24("accountID"),j=this.$AdsAccountStoreClassNew24("curBusinessID"),k=this.$AdsAccountStoreClassNew24("businessID");f=h===d&&j===e&&i===a&&k===b;if(!f){g.setItem("curAccountID",(h=d)!=null?h:"none");g.setItem("accountID",(j=a)!=null?j:"none");g.setItem("curBusinessID",(i=e)!=null?i:"none");g.setItem("businessID",(k=b)!=null?k:"none")}}}catch(a){f=!0}f&&c("AdsAccountUtils").logAccountUpdatesMisMatched(d,a,e,b);return f};e.$AdsAccountStoreClassNew24=function(a){var b=null;try{var c=window.localStorage;c&&(b=c.getItem(a),b=b==="none"?null:b)}catch(a){b=null}return b};e.$AdsAccountStoreClassNew23=function(a,b){var d=new(c("URI"))(window.location.href);if(d.getPath().includes("accountquality")){var e=c("XAdsAccountQualityController").getURIBuilder();a!=null&&e.setFBID("primary_id",a);b!=null&&e.setFBID("primary_id",b).setFBID("secondary_id",a);d=e.getURI()}else{e={};a!=null&&(e.act=a);b!=null&&(e.business_id=b);d.setQueryData(e)}c("AdsAccountUtils").logMsgWhenAccountUpdates();c("goURI")(d)};return b}(c("FluxStore"));b.__moduleID=f.id;g["default"]=b}),98);
-----
AdsPESettingsStore",["AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsDataAtom","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsPECreateSettingsDataManager","AdsPEFilterUIStateSelectors","AdsPESettingsDataManager","FluxReduceStore","adsPENavStateSelector","isFalsey"],(function(a,b,c,d,e,f,g){"use strict";var h=d("AdsPEFilterUIStateSelectors").getFilterSet.getStores();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,b)||this;b.$AdsPESettingsStore1=new Set();return b}var e=b.prototype;e.getInitialState=function(){return{}};e.__getActionTypes=function(){return[d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType]};e.__getDependencyStores=function(){return[c("AdsAccountStore")].concat(h,c("adsPENavStateSelector").getStores())};e.reduce=function(a,b){b=b.action;this.getDispatcher().waitFor(this.getDependencyDispatchTokens());if(h.filter(function(a){return a.hasChanged()}).length){var e=c("adsPENavStateSelector")();e.tool==="MANAGE_ADS"&&this.$AdsPESettingsStore2()}switch(b.type){case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:e=b.data.changedParamKeys;(e.act||e.business_id)&&this.$AdsPESettingsStore3();return a;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsPESettingsStore3();return a;default:return a}};e.$AdsPESettingsStore3=function(){var a=c("AdsAccountStore").getSelectedAccount().getValue();if(c("isFalsey")(a))return;var b=a.account_id;a=a.user_settings;if(!b)return;if(!a){d("AdsPECreateSettingsDataManager").createUserSettings(b);return}if(!this.$AdsPESettingsStore1.has(b)){a=a.id;c("AdsPESettingsDataManager").loadFilters(a);this.$AdsPESettingsStore1.add(b)}};e.$AdsPESettingsStore2=function(){var a=c("AdsAccountStore").getSelectedAccountID();if(a&&this.$AdsPESettingsStore1.has(a)){var b=d("AdsPEFilterUIStateSelectors").getFilterSet(),e;b==null?e=[]:e=b.toAPI();c("AdsPESettingsDataManager").updateLastUsedFilterSet(a,e)}};return b}(c("FluxReduceStore"));a.__moduleID=f.id;b=new a(c("AdsDataAtom"));g["default"]=b}),98);
-----
AdsReportBuilderScenarioUtil",["AdsAccountBatchLoadedDataActionFlux","AdsBusinessBatchLoadedDataActionFlux","AdsDataAtom","AdsInterfacesRouteDataFetchedDataActionFlux","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsPENavigationProvider","AdsPEReportBuilderTableInitActionFlux","AdsPEReportBuilderTableLoadNextActionFlux","AdsRBDupReportIDGenerator","AdsRBNavStateHelper","AdsRBSwitchBusinessAccountActionFlux","AdsReportBuilderCreateReportActionFlux","AdsReportBuilderCreateReportSuccessActionFlux","AdsReportBuilderCustomMetricsLoadedActionFlux","AdsReportBuilderDeleteReportActionFlux","AdsReportBuilderDimensionUpdateActionFlux","AdsReportBuilderDuplicateActionFlux","AdsReportBuilderEntryPointEventSources","AdsReportBuilderFilterSetChangeActionFlux","AdsReportBuilderManageReportsFilterSetProvider","AdsReportBuilderManageReportsTableRenderActionFlux","AdsReportBuilderMetricUpdateActionFlux","AdsReportBuilderRefreshTableActionFlux","AdsReportBuilderReportSpecUtil","AdsReportBuilderReportSpecsFetchSuccessActionFlux","AdsReportBuilderSelectAttributionWindowActionFlux","AdsReportBuilderSelectReportActionFlux","AdsReportBuilderSortChangeActionFlux","AdsReportBuilderTimeRangeChangeActionFlux","AdsReportBuilderToggleLockedDimensionActionFlux","AdsReportBuilderUpdateReportLastAccessTimeSuccessActionFlux","AdsReportingViewLoadedActionFlux","AdsReportingViewSectionType","AdsSelectorUtils","BizSiteIdentifier.brands","URI","adsFormatErrorMessage","createObjectFrom","emptyFunction","first","getViewportDimensions","ifRequired","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";b=(a={},a[c("AdsReportBuilderSortChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderTimeRangeChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderToggleLockedDimensionActionFlux").actionType]=!0,a[c("AdsReportBuilderFilterSetChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderDimensionUpdateActionFlux").actionType]=!0,a[c("AdsReportBuilderMetricUpdateActionFlux").actionType]=!0,a[c("AdsReportBuilderSelectReportActionFlux").actionType]=!0,a[c("AdsPEReportBuilderTableLoadNextActionFlux").actionType]=!0,a[c("AdsReportBuilderRefreshTableActionFlux").actionType]=!0,a[c("AdsReportBuilderSelectAttributionWindowActionFlux").actionType]=!0,a[c("AdsReportBuilderCreateReportActionFlux").actionType]=!1,a);var h=c("createObjectFrom")(["AdsRBFullAdAccountListDataProviderPluginSetStateAction",c("AdsAccountBatchLoadedDataActionFlux").actionType,c("AdsBusinessBatchLoadedDataActionFlux").actionType,"FluxLoadObjectStore.START_LOAD.BusinessStore.brands"]);e=new Set([c("AdsReportBuilderUpdateReportLastAccessTimeSuccessActionFlux").actionType,c("AdsReportBuilderReportSpecsFetchSuccessActionFlux").actionType]);f=new Set([c("AdsReportBuilderUpdateReportLastAccessTimeSuccessActionFlux").actionType,c("AdsReportBuilderReportSpecsFetchSuccessActionFlux").actionType,c("AdsReportBuilderCustomMetricsLoadedActionFlux").actionType]);var i=!1,j={TABLE_OR_CHART_CHANGE_EVENT:b,ACCOUNT_LOADED_EVENT:h,NON_ABANDON_SELECT_REPORT_ACTION_TYPES:f,NON_ABANDONED_ACTION_TYPES_ON_INITIAL_LOAD:e,hasRBViewLoaded:function(){return i},setRBViewLoaded:function(){i=!0},getSelectedReportID:function(){var a;c("ifRequired")("AdsReportBuilderSelectedReportIDStore",function(b){return a=b},c("emptyFunction"));var b;c("ifRequired")("AdsReportBuilderMCRSelectedReportProvider",function(a){return b=a});return a?(b==null?void 0:b())||a.get()||"":""},getCurrentReportIDForManageReport:function(a,b){if(a.type===c("AdsReportBuilderDeleteReportActionFlux").actionType)return JSON.stringify(a.reportIDs);return b.type===c("AdsReportBuilderCreateReportSuccessActionFlux").actionType?b.id!=null&&typeof b.id==="string"?b.id:"":""},getPreviousReportIDForManageReport:function(a){return a.type===c("AdsReportBuilderDuplicateActionFlux").actionType&&a.reportSpec?d("AdsRBDupReportIDGenerator").getSourceReportIDFromTempID(a.reportSpec.get("id")):""},getShareReportData:function(a,b){if(d("AdsRBNavStateHelper").isOnManageReportPage()){var c;return{current_report_id:(c=a.reportSpec)==null?void 0:c.id,business_id:d("BizSiteIdentifier.brands").getBusinessID()||"",event_source:a.eventSource}}return j.getViewReportPageData(a,b)},getTableStateRelatedStores:function(){var a,b,d;c("ifRequired")("AdsReportBuilderViewStore",function(b){return a=b},c("emptyFunction"));c("ifRequired")("AdsReportBuilderListStore",function(a){return b=a},c("emptyFunction"));c("ifRequired")("adsReportBuilderReportSettingsSelector",function(a){return d=a()});return{viewStore:a,listStore:b,reportSettings:d}},getManageReportsRelatedStores:function(){var a,b;c("ifRequired")("AdsReportBuilderManageReportsListStore",function(b){return a=b});c("ifRequired")("adsRBManageReportListQueryIDSelector",function(a){return b=a()});return{reportsListStore:a,manageReportListQueryID:b}},shouldCheckManageReportsTableLoadingState:function(a){return[c("AdsReportBuilderManageReportsTableRenderActionFlux").actionType,c("AdsPEReportBuilderTableInitActionFlux").actionType].includes(a.type)},detectTableOrChartLoaded:function(a){return a.type===c("AdsReportingViewLoadedActionFlux").actionType&&a.viewSection===c("AdsReportingViewSectionType").BODY},detectTableOrChartAbandoned:function(a){return h[a.type]?!1:j.isTableOrChartChangeOrAccountSwitchOnLoad(a)||j.isViewOrNavStoreChanged()},isTableOrChartChangeOrAccountSwitchOnLoad:function(a){if(j.TABLE_OR_CHART_CHANGE_EVENT[a.type])return!0;return a.type===c("AdsRBSwitchBusinessAccountActionFlux").actionType?!0:!1},getSummaryCachedData:function(){var a=j.getTableStateRelatedStores(),b=a.viewStore;a=a.listStore;if(!b||!a)return null;c("AdsDataAtom").waitFor([b.getDispatchToken(),a.getDispatchToken()]);b=b.get();return a.getSummaryCachedByView(b)},isViewOrNavStoreChanged:function(){var a=j.getTableStateRelatedStores();a=a.viewStore;if(!a)return!1;c("AdsDataAtom").waitFor([a.getDispatchToken(),c("AdsPENavigationProvider").toFluxStore().getDispatchToken()]);return a.hasChanged()||c("AdsPENavigationProvider").toFluxStore().hasChanged()},isNavStoreChanged:function(){c("AdsDataAtom").waitFor([c("AdsPENavigationProvider").toFluxStore().getDispatchToken()]);return c("AdsPENavigationProvider").toFluxStore().hasChanged()},getViewFromCreateReportAction:function(a){var b=null;a=a.reportSpecs;a&&(b=d("AdsReportBuilderReportSpecUtil").getViewSpecFromReportSpec(c("nullthrows")(c("first")(a))));return b},getViewReportPageLogData:function(a,b){return j.getViewReportPageData(a,b)},getViewReportPageData:function(a,b,c){c===void 0&&(c={});var d={},e={},f,g;if(c.view)f=c.view;else{c=j.getTableStateRelatedStores();var h=c.viewStore;c=c.reportSettings;h&&(f=h.get());c&&(g=c)}f&&(d=j.getViewLogData(f));g&&(e=j.getReportSettingsLogData(g));h=j.getTriggerActionLogData(a,b);c=j.getEventSourceLogData(a);b=j.getViewportDimensionLogData();return babelHelpers["extends"]({},h,d,e,c,b)},getViewportDimensionLogData:function(){var a=c("getViewportDimensions")(),b=a.width;a=a.height;return{window_width:b,window_height:a}},getEventSourceLogData:function(a){var b=a.eventSource!=null&&a.eventSource!==""?{event_source:a.eventSource}:j.getEventSourceFromCurrentURI();if(a.type===c("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType){var d=a.data;if(d){var e=d.context;d=d.changedParamKeys;var f;e.reportBuilderEventSource?f=e.reportBuilderEventSource:e.isInit===!0&&(f=d.show_setting_dialog?c("AdsReportBuilderEntryPointEventSources").CLICK_SCHEDULE_REPORT_FROM_AM_EXPORT:c("AdsReportBuilderEntryPointEventSources").FROM_URL);if(f){b=(e={},e.event_source=f,e)}}}else if(a.type===c("AdsInterfacesRouteDataFetchedDataActionFlux").actionType){d=new(c("URI"))(window.location.href).getQueryData();e=d.event_source?d.event_source:c("AdsReportBuilderEntryPointEventSources").FROM_URL;b=(a={},a.event_source=e,a)}return b},getEventSourceFromCurrentURI:function(){var a=new(c("URI"))(window.location.href).getQueryData();a=a.event_source?a.event_source:"";return{event_source:a}},getTriggerActionLogData:function(a,b){return a={scenario_start_trigger_action:a.type},a.scenario_end_trigger_action=b.type,a},getViewLogData:function(a){var b,c,e,f,g=a.get("timeRange");b=((g==null?void 0:(b=g.interval)==null?void 0:b.start)||"").toString();c=((g==null?void 0:(c=g.interval)==null?void 0:c.end)||"").toString();var h=a.get("comparisonTimeRange");e=((h==null?void 0:(e=h.interval)==null?void 0:e.start)||"").toString();f=((h==null?void 0:(f=h.interval)==null?void 0:f.end)||"").toString();var i=a.get("filter");i=i?i.getValues().map(function(a){return a.toString()}):[];return i={current_attribution_windows:a.get("attributionWindow"),current_insights_table_breakdowns:a.get("dimensions"),current_insights_table_sort:a.get("sort").map(function(a){return a.field}),current_insights_table_user_columns:a.get("fields"),current_user_filter:i,current_insights_table_level:JSON.stringify(a.get("lockedDimensions")),current_date_interval_end:c,current_date_interval_preset:g.preset,current_date_interval_start:b,current_comparison_date_interval_start:e,current_comparison_date_interval_end:f,current_insights_dataviz_section:h==null?void 0:h.preset,current_report_id:j.getSelectedReportID(),business_id_explicit:d("BizSiteIdentifier.brands").getBusinessID()||"",current_target_currency:a.get("currency"),current_view_type:a.get("viewType")},i.new_value=a.get("limit").toString(),i},getReportSettingsLogData:function(a){return a.ready===!1?{}:{current_action_ads_count:a.selectedAccounts.length,loaded_count:a.totalAccountsNum}},getTableLoadingDataWithSummary:function(a,b){a=j.getViewReportPageData(a,b);b=j.getSummaryCachedData();b=b&&b.getValue();b=b&&b.total!=null&&b.total!==0?{current_action_ads_count:b.total}:{};return babelHelpers["extends"]({},a,b)},getExportData:function(a,b){var d,e=j.getViewFromCreateReportAction(a);e&&(d=j.getViewLogData(e));e=j.getTriggerActionLogData(a,b);var f=j.getEventSourceLogData(a);return babelHelpers["extends"]({},e,d,f,(e={},e.previous_report_id=b.reportRunID,e.export_format=a.format,e.message=b.error!=null?c("adsFormatErrorMessage")(b.error):null,e))},getExportHistoryData:function(a,b){var e=j.getTriggerActionLogData(a,b);return babelHelpers["extends"]({},e,{previous_report_id:a.exportReportID,business_id_explicit:d("BizSiteIdentifier.brands").getBusinessID()||"",message:c("adsFormatErrorMessage")(b.error)})},getScope:function(){var a={scopeType:null,scopeID:null},b;c("ifRequired")("adsReportBuilderScopeInfoSelector",function(a){return b=a},c("emptyFunction"));if(!b)return a;if(c("AdsDataAtom").isDispatching())try{c("AdsDataAtom").waitFor([].concat(d("AdsSelectorUtils").getStoreDispatchTokens([b])))}catch(b){return a}var e=b();if(e.hasValue()&&!e.hasError()){e=e.getValueEnforcing();return{scopeType:e.scopeType,scopeID:e.id}}return a},getReportsListDataLoader:function(){var a=j.getScope();a=a.scopeID;var b=j.getManageReportsRelatedStores(),d=b.reportsListStore;b=b.manageReportListQueryID;if(a==null||d==null||b==null)return null;c("AdsDataAtom").waitFor([d].map(function(a){return a.getDispatchToken()}));return d.get(b)},detectManageReportsTableSucceeded:function(a){if(!j.shouldCheckManageReportsTableLoadingState(a))return!1;a=j.getReportsListDataLoader();var b=!1;if(!!a&&a.hasValue()){var c=a.getValueEnforcing();c.isLoadingMoreRows&&(b=!0)}return a!=null&&a.hasValue()&&!a.hasError()&&!b},getManageReportData:function(a,b){var c=typeof b.type==="string"?b.type:"",e=j.getViewportDimensionLogData();return babelHelpers["extends"]({},e,{scenario_start_trigger_action:a.type,scenario_end_trigger_action:c,new_value:j.getCurrentReportIDForManageReport(a,b),old_value:j.getPreviousReportIDForManageReport(a),business_id:d("BizSiteIdentifier.brands").getBusinessID()||"",event_source:(e=a.eventSource)!=null?e:""})},getLandingManageReportPageData:function(a,b){var e=j.getReportsListDataLoader(),f={};if(e!=null&&e.hasValue()&&!e.hasError()){e=e.getValueEnforcing();e=e.reportIDs;f={loaded_count:e.length}}e=c("AdsReportBuilderManageReportsFilterSetProvider")();e=e.filterSet;e=e?e.getValues().map(function(a){return a.toString()}):[];var g=j.getViewportDimensionLogData();return babelHelpers["extends"]((a={scenario_start_trigger_action:a.type,scenario_end_trigger_action:b.type,business_id:d("BizSiteIdentifier.brands").getBusinessID()||""},a.current_user_filter=e,a),f,j.getEventSourceFromCurrentURI(),g)},getReportSettingsData:function(a,b){return{scenario_start_trigger_action:a.type,scenario_end_trigger_action:b.type,item_count:j.getTotalAdAccountsNum(),current_action_ads_count:b.selectedAccountNum}},getTotalAdAccountsNum:function(){if(d("BizSiteIdentifier.brands").getBusinessID()==null)return 1;var a;c("ifRequired")("adsReportBuilderFullAccountListSelector",function(b){return a=b},c("emptyFunction"));if(a){var b=a().fullAccountList;return b?b.length:0}return 0},getSwitchViewTypeData:function(a,b){b=j.getViewReportPageData(a,b);return babelHelpers["extends"]({},b,{previous_view_type:a.previousViewType,loaded_count:a.previousBreakdownNum,item_count:a.previousMetricNum})},getTimeRangeChangeData:function(a,b){b=j.getViewReportPageData(a,b);return babelHelpers["extends"]({},b,{previous_date_interval_end:(b=a.previousTimeRange)==null?void 0:(b=b.interval)==null?void 0:(b=b.end)==null?void 0:b.toString(),previous_date_interval_preset:(b=a.previousTimeRange)==null?void 0:b.preset,previous_date_interval_start:(b=a.previousTimeRange)==null?void 0:(b=b.interval)==null?void 0:(b=b.start)==null?void 0:b.toString(),previous_comparison_date_interval_end:(b=a.previousTimeRange)==null?void 0:(b=b.compareInterval)==null?void 0:(b=b.end)==null?void 0:b.toString(),previous_comparison_date_interval_start:(b=a.previousTimeRange)==null?void 0:(b=b.compareInterval)==null?void 0:(b=b.start)==null?void 0:b.toString(),previous_insights_dataviz_section:(b=a.previousTimeRange)==null?void 0:b.comparePreset})}};a=j;g["default"]=a}),98);
-----
AdsTALLoggerStore",["AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountStore","AdsDataAtom","AdsExperimentsFunnelLoggerWithAccountStoreUtils","AdsHelpTrayToggleDataActionFlux","AdsSSCLSetTabDataActionFlux","AdsTALAddCellActionFlux","AdsTALAddTestSSCLEventsActionFlux","AdsTALBrandImpactAddQuestionActionFlux","AdsTALBrandImpactRemoveQuestionActionFlux","AdsTALBrandImpactSetQuestionSegmentActionFlux","AdsTALBrandImpactSetQuestionTypeActionFlux","AdsTALCreateTestErrorActionFlux","AdsTALCreateTestStartActionFlux","AdsTALCreateTestSuccessActionFlux","AdsTALLiftReportDataLoadErrorDataActionFlux","AdsTALLiftReportDataLoadedDataActionFlux","AdsTALLogComponentLoadedActionFlux","AdsTALLogLoadingStartedActionFlux","AdsTALRemoveCellActionFlux","AdsTALReportSelectNavigationItemActionFlux","AdsTALReportSelectTestActionFlux","AdsTALSelectTestTypeActionFlux","AdsTALSelectors","AdsTALSetABTestTabActionFlux","AdsTALSetAdObjectActionFlux","AdsTALSetBrandLiftLocaleActionFlux","AdsTALSetCellCampaignGroupsActionFlux","AdsTALSetCellNameActionFlux","AdsTALSetClientNameActionFlux","AdsTALSetPageActionFlux","AdsTALSetStudyLevelActionFlux","AdsTALSetTestEndTimeActionFlux","AdsTALSetTestNameActionFlux","AdsTALSetTestRegionActionFlux","AdsTALSetTestSSCLEventActionFlux","AdsTALSetTestStartTimeActionFlux","AdsTALSetTestVerticalActionFlux","AdsTALToggleSetupReviewReceiptActionFlux","FluxStore","URIInitDataUtil","concatArrays","filterNulls","requireWeak"],(function(a,b,c,d,e,f,g){"use strict";var h;c("requireWeak")("AdsTALSetupSectionSelectors",function(a){h=a});a=[].concat(c("AdsAccountStore").getSelectedAccountID.getStores(),d("AdsTALSelectors").adsTALTestTypeSelector.getStores(),d("AdsTALSelectors").adsTALTestSetupSessionIDSelector.getStores());var i=a.map(function(a){return a.getDispatchToken()});b=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.call(this,c("AdsDataAtom"))||this}var e=b.prototype;e.$AdsTALLoggerStore1=function(a){var b;b=a==null?void 0:(b=a.campaign_group)==null?void 0:b.adsets;return b==null?a:babelHelpers["extends"]({},a,{campaign_group:babelHelpers["extends"]({},a.campaign_group,{adsets:babelHelpers["extends"]({},b,{paging:null})})})};e.__onDispatch=function(a){var b,e=this,f=a.action,g=f.actionType;a=(a=h)==null?void 0:a.adsTALStudyLevelSelector;b=(b=h)==null?void 0:b.adsTALNonScenarioStudyTypeSelector;var k=c("concatArrays")(c("filterNulls")([a,b]).map(function(a){return a.getStores()})).map(function(a){return a.getDispatchToken()});c("AdsDataAtom").waitFor([].concat(i,k));var l=d("AdsTALSelectors").adsTALTestTypeSelector(),m=d("AdsTALSelectors").adsTALTestSetupSessionIDSelector(),n=b==null?null:b(),o=a==null?null:a();k=function(){var a;return d("AdsExperimentsFunnelLoggerWithAccountStoreUtils").createFunnelLoggerWithAccount_LEGACY().setAction(g).addActionPayload("action_data",e.$AdsTALLoggerStore1(f)).addActionPayload("test_type",l).addActionPayload("study_type",n).addActionPayload("study_level",o).setSecondaryOrder((a=m)!=null?a:"").setIsDeprecated(!0)};switch(g){case d("AdsSSCLSetTabDataActionFlux").actionType:case d("AdsAccountSelectDataActionFlux").actionType:case d("AdsTALSetPageActionFlux").actionType:k().log();break;case d("AdsTALToggleSetupReviewReceiptActionFlux").actionType:k().log();break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:k().log();break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:k().addActionPayload("error_code",f.error.error_subcode).log();break;case d("AdsTALSelectTestTypeActionFlux").actionType:k().addActionPayload("test_type",f.testConfig.getTestType()).log();break;case d("AdsTALLiftReportDataLoadedDataActionFlux").actionType:k().log();break;case d("AdsTALLiftReportDataLoadErrorDataActionFlux").actionType:k().addActionPayload("study_id",f.studyID).addActionPayload("error_code",f.error.message).log();break;case d("AdsTALSetAdObjectActionFlux").actionType:case d("AdsTALSetClientNameActionFlux").actionType:case d("AdsTALSetTestEndTimeActionFlux").actionType:case d("AdsTALSetTestNameActionFlux").actionType:case d("AdsTALSetTestRegionActionFlux").actionType:case d("AdsTALSetTestStartTimeActionFlux").actionType:case d("AdsTALSetTestVerticalActionFlux").actionType:case d("AdsTALBrandImpactRemoveQuestionActionFlux").actionType:case d("AdsTALBrandImpactAddQuestionActionFlux").actionType:case d("AdsTALBrandImpactSetQuestionSegmentActionFlux").actionType:case d("AdsTALBrandImpactSetQuestionTypeActionFlux").actionType:case d("AdsTALRemoveCellActionFlux").actionType:case d("AdsTALSetCellNameActionFlux").actionType:case d("AdsTALSetCellCampaignGroupsActionFlux").actionType:case d("AdsTALAddTestSSCLEventsActionFlux").actionType:case d("AdsTALSetTestSSCLEventActionFlux").actionType:case d("AdsTALSetABTestTabActionFlux").actionType:k().log();break;case d("AdsTALAddCellActionFlux").actionType:k().addActionPayload("quantity",(b=f.quantity)!=null?b:1).log();break;case d("AdsTALSetStudyLevelActionFlux").actionType:k().addActionPayload("level",f.level).log();break;case d("AdsTALSetBrandLiftLocaleActionFlux").actionType:k().addActionPayload("locale",f.locale).log();break;case d("AdsTALCreateTestStartActionFlux").actionType:k().log();break;case d("AdsTALCreateTestErrorActionFlux").actionType:j(k().addActionPayload("error_code",f.error.code)).log();break;case d("AdsTALCreateTestSuccessActionFlux").actionType:j(k().addActionPayload("study_id",f.studyID)).log();break;case d("AdsTALReportSelectNavigationItemActionFlux").actionType:k().addActionPayload("study_id",f.testID).log();break;case d("AdsTALReportSelectTestActionFlux").actionType:k().addActionPayload("study_id",f.testID).addActionPayload("question_type",f.questionType).log();break;case d("AdsHelpTrayToggleDataActionFlux").actionType:k().log();break;case d("AdsTALLogLoadingStartedActionFlux").actionType:case d("AdsTALLogComponentLoadedActionFlux").actionType:k().log();break;case"ADS_INTERFACES_ROUTE-UPDATE_PARAMS":k().log();break}};return b}(c("FluxStore"));b.__moduleID=f.id;function j(a){var b=d("URIInitDataUtil").getRefFromURI();b!=null&&a.addFunnelPayload("ref",b);return a}e=new b();g["default"]=e}),98);
-----
AdsAccountStoreOld",["invariant","AdsAMAccountAcceptedTosAddActionFlux","AdsAMAccountInitActionFlux","AdsAccountAddCapabilitiesDataActionFlux","AdsAccountAttributionSpecLoadSuccessDataActionFlux","AdsAccountAttributionSpecUpdateStartDataActionFlux","AdsAccountAttributionSpecUpdateSuccessDataActionFlux","AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountChangeAccountCountryDataActionFlux","AdsAccountChangeAccountCurrencyDataActionFlux","AdsAccountChangeAccountNameDataActionFlux","AdsAccountChangeAccountTimezoneIdDataActionFlux","AdsAccountDataDispatcher","AdsAccountDataLoader","AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux","AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux","AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux","AdsAccountGKsErrorActionFlux","AdsAccountGKsLoadedActionFlux","AdsAccountInitDataActionFlux","AdsAccountInvalidateDataActionFlux","AdsAccountListInvalidateDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountSettingsCreateFinishedDataActionFlux","AdsAccountSettingsUpdateStartDataActionFlux","AdsAccountUtils","AdsAccountViewerPermissionsLoadErrorDataActionFlux","AdsAccountViewerPermissionsLoadedDataActionFlux","AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux","AdsApplicationUtils","AdsCachedLoadState_LEGACY","AdsCountries","AdsDataAtom","AdsEngagementAudienceUILogger","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsLoadStateUtils_LEGACY","AdsLoadState_LEGACY","AdsPERefreshTableViewActionFlux","AdsPEUploadShowPreviewActionFlux","AdsPaymentsCountryToCurrencyLegalReq","AdsPixelUIEnvironments","AdsTimezone","DateTime","DateUtil","FluxStore","LoadObject","URI","XAdsAccountQualityController","adsCreateSelector","adsCreateStoreSelector","getByPath","goURI","ifRequired","immutable","isFalsey","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i="US",j=1;a=0;var k=c("DateTime").fromLegacyArgs(c("DateUtil").FACEBOOK_EPOCH*1e3,a).toISOString();b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this,c("AdsDataAtom"))||this;b.getSelectedAccountID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID}):b.$AdsAccountStoreClassOld1},{name:f.id});b.getSelectedAccountIDX=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){if(d("AdsApplicationUtils").isFAME()){var a=c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID});!a&&h(0,5919,a);return a}a=b.$AdsAccountStoreClassOld9();!a&&h(0,5919,a);return a},{name:f.id});b.getSelectedBusinessID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.$AdsAccountStoreClassOld2},{name:f.id});b.getCreatedTime=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().created_time;return a?a:k},{name:f.id});b.getTimezoneID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().timezone_id;return a?a:j},{name:f.id});b.getTosAccepted=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.__getSelectedAccount().tos_accepted},{name:f.id});b.getSelectedAccount=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a||c("LoadObject").empty()})||c("LoadObject").empty():d("AdsLoadStateUtils_LEGACY").toLoadObject(b.__getSelectedAccount())},{name:f.id});b.getSelectedAccountCapabilities=c("adsCreateSelector")([b.getSelectedAccount],function(a){return((a=a.getValue())==null?void 0:a.capabilities)||[]},{name:f.id});b.$AdsAccountStoreClassOld4={};b.$AdsAccountStoreClassOld3=new Map();b.$AdsAccountStoreClassOld5=!1;b.$AdsAccountStoreClassOld6=new Map();return b}var e=b.prototype;e.__getActionTypes=function(){return[d("AdsAccountInitDataActionFlux").actionType,d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsAccountBatchLoadErrorDataActionFlux").actionType,d("AdsAccountChangeAccountNameDataActionFlux").actionType,d("AdsAccountChangeAccountCountryDataActionFlux").actionType,d("AdsAccountChangeAccountCurrencyDataActionFlux").actionType,d("AdsAccountChangeAccountTimezoneIdDataActionFlux").actionType,d("AdsAccountAddCapabilitiesDataActionFlux").actionType,d("AdsAccountGKsErrorActionFlux").actionType,d("AdsAccountGKsLoadedActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType,d("AdsAccountSelectDataActionFlux").actionType,d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType,d("AdsAccountSettingsUpdateStartDataActionFlux").actionType,d("AdsAccountInvalidateDataActionFlux").actionType,d("AdsAccountListInvalidateDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType,d("AdsAccountAttributionSpecUpdateStartDataActionFlux").actionType,d("AdsAccountAttributionSpecUpdateSuccessDataActionFlux").actionType,d("AdsAccountAttributionSpecLoadSuccessDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux").actionType,d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType,d("AdsAMAccountAcceptedTosAddActionFlux").actionType,d("AdsAMAccountInitActionFlux").actionType,d("AdsPERefreshTableViewActionFlux").actionType,d("AdsPEUploadShowPreviewActionFlux").actionType]};e.canUpdateCurrency=function(){if(this.$AdsAccountStoreClassOld1==null)return!1;var a=this.getCached(this.$AdsAccountStoreClassOld1).getValue();if(c("isFalsey")(a))return!1;var b=c("AdsAccountUtils").hasCapability(a,"CAN_UPDATE_CURRENCY");a=c("AdsAccountUtils").isPaymentInfoRequired(a);return b&&a};e.get=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();return a===this.$AdsAccountStoreClassOld1?this.getSelectedAccount():d("AdsLoadStateUtils_LEGACY").toLoadObject(this.$AdsAccountStoreClassOld7(a))};e.$AdsAccountStoreClassOld7=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return d("AdsLoadStateUtils_LEGACY").fromLoadObject(b.get(a))})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var b=this.$AdsAccountStoreClassOld3.get(a);b||(b=c("AdsCachedLoadState_LEGACY").LOADING,this.$AdsAccountStoreClassOld3.set(a,b),c("AdsAccountDataDispatcher").loadAccountData(a));return b};e.getCached=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();var b=this.$AdsAccountStoreClassOld3.get(a);b||(b=c("AdsCachedLoadState_LEGACY").NOT_LOADED);return d("AdsLoadStateUtils_LEGACY").toLoadObject(b)};e.$AdsAccountStoreClassOld8=function(){var a=this.$AdsAccountStoreClassOld1;if(!a)return;c("AdsAccountDataDispatcher").loadAccountData(a);return};e.getAllLoadObjects=function(a){a=this.getAll(a.toArray());var b=new Map();for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=g[0];g=g[1];b.set(h,d("AdsLoadStateUtils_LEGACY").toLoadObject(g))}return c("immutable").Map(b)};e.getAll=function(a){var b=this,c=new Map();a.forEach(function(a){c.set(a,b.$AdsAccountStoreClassOld7(a))});return c};e.getAllCached=function(a){var b=this,d=new Map();a.forEach(function(a){var e=b.$AdsAccountStoreClassOld3.get(a);e||(e=c("AdsCachedLoadState_LEGACY").NOT_LOADED);d.set(a,e)});return d};e.getByFields=function(a,b){var d=this.$AdsAccountStoreClassOld3.get(a);if(!d){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassOld3.set(a,c("AdsCachedLoadState_LEGACY").LOADING);return c("AdsCachedLoadState_LEGACY").LOADING}if(d.loadState===c("AdsLoadState_LEGACY").ERROR)return c("AdsCachedLoadState_LEGACY").ERROR;if(d.loadState===c("AdsLoadState_LEGACY").LOADING)return c("AdsCachedLoadState_LEGACY").LOADING;var e=b.some(function(a){return d[a]==null});if(e){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassOld3.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADING}));return c("AdsCachedLoadState_LEGACY").LOADING}var f={};b.forEach(function(a){f[a]=d[a]});f.loadState=c("AdsLoadState_LEGACY").LOADED;return f};e.getAllByFields=function(a,b){var c=this,d=new Map();a.forEach(function(a){d.set(a,c.getByFields(a,b))});return d};e.$AdsAccountStoreClassOld9=function(){return this.$AdsAccountStoreClassOld1};e.getTimezoneName=function(){var a=this.__getSelectedAccount().timezone_name;return a?a:""};e.getViewerPermissions=function(){var a=this.$AdsAccountStoreClassOld9();if(a){this.$AdsAccountStoreClassOld4[a]||(this.$AdsAccountStoreClassOld4[a]=c("LoadObject").loading(),c("AdsAccountDataDispatcher").loadViewerPermissions(a));return this.$AdsAccountStoreClassOld4[a]}return c("LoadObject").empty()};e.getViewerHasPermission=function(a){var b=this.getViewerPermissions();return b.hasValueWithoutError()&&Array.isArray(b.getValueEnforcing().data)&&b.getValueEnforcing().data.includes(a)};e.__getSelectedAccount=function(){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a!=null?d("AdsLoadStateUtils_LEGACY").fromLoadObject(a):null})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var a=this.$AdsAccountStoreClassOld9();return!a?c("AdsCachedLoadState_LEGACY").NOT_LOADED:this.$AdsAccountStoreClassOld7(a)};e.toURLParams=function(){return!this.$AdsAccountStoreClassOld1?null:{act:this.$AdsAccountStoreClassOld1}};e.$AdsAccountStoreClassOld10=function(){var a=this.__getSelectedAccount();c("DateTime").setupTimezoneFallback(a.timezone_id,a.timezone_offset_hours_utc)};e.__onDispatch=function(a){var b=a.action;a=!1;var e=this.$AdsAccountStoreClassOld9();switch(b.actionType){case d("AdsAccountInitDataActionFlux").actionType:this.$AdsAccountStoreClassOld11(b.data);a=!0;break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassOld12(b.accountID,b.account);a=!0;break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassOld13(b.accountID,b.error);a=!0;break;case d("AdsAccountChangeAccountNameDataActionFlux").actionType:if(e!=null){var f=this.$AdsAccountStoreClassOld3.get(e);if(f==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},f,{name:b.name}));a=!0}break;case d("AdsAccountChangeAccountCountryDataActionFlux").actionType:if(e!=null){f=b.country;var g=d("AdsTimezone").countryCodeToTimezoneIDsMap[f][0],h=d("AdsTimezone").timezoneIDToOffsetMap[g],i=this.__getSelectedAccount().currency,j=this.$AdsAccountStoreClassOld3.get(e);if(j==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},j,{business_country_code:f,timezone_id:g,timezone_offset_hours_utc:h}));j=Object.prototype.hasOwnProperty.call(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req,f)||Object.values(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req).some(function(a){return a===i});if(!this.$AdsAccountStoreClassOld5||j){g=d("AdsCountries").getCurrencyByCountry(f);h=this.$AdsAccountStoreClassOld3.get(e);if(h==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},h,{currency:g}))}this.$AdsAccountStoreClassOld10();a=!0}break;case d("AdsAccountChangeAccountCurrencyDataActionFlux").actionType:if(e!=null){j=this.$AdsAccountStoreClassOld3.get(e);if(j==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},j,{currency:b.currency}));f=Object.keys(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req).find(function(a){return c("AdsPaymentsCountryToCurrencyLegalReq").legal_req[a]===b.currency});if(f!==void 0){h=this.$AdsAccountStoreClassOld3.get(e);if(h==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},h,{business_country_code:f}))}this.$AdsAccountStoreClassOld5=!0;a=!0}break;case d("AdsAccountChangeAccountTimezoneIdDataActionFlux").actionType:if(e!=null){g=this.$AdsAccountStoreClassOld3.get(e);if(g==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},g,{timezone_id:b.timezoneID,timezone_offset_hours_utc:d("AdsTimezone").timezoneIDToOffsetMap[b.timezoneID]}));this.$AdsAccountStoreClassOld10();a=!0}break;case d("AdsPEUploadShowPreviewActionFlux").actionType:b.didUpdateAccount&&this.$AdsAccountStoreClassOld8();break;case d("AdsAccountAddCapabilitiesDataActionFlux").actionType:if(e!=null){j=this.__getSelectedAccount();this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},j,{capabilities:j.capabilities.concat(b.capabilities)}));a=!0}break;case d("AdsPERefreshTableViewActionFlux").actionType:this.__invalidateAllErrors()&&(a=!0);break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:this.__invalidateAllErrors()&&(a=!0);h=b.data.changedParamKeys;if(h.act||h.business_id){f=b.data.params;if(!f.act&&f.tool==="REPORTING")this.$AdsAccountStoreClassOld14(f.business_id,f.act);else if(f.act)this.$AdsAccountStoreClassOld15(f.act,f.business_id);else break;a=!0}break;case d("AdsAccountSelectDataActionFlux").actionType:if(d("AdsApplicationUtils").isPowerEditor())break;this.$AdsAccountStoreClassOld15(b.accountID,b.businessID);a=!0;break;case d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType:this.$AdsAccountStoreClassOld16(b.accountID,b.settingsID);break;case d("AdsAccountSettingsUpdateStartDataActionFlux").actionType:this.$AdsAccountStoreClassOld1!=null&&c("AdsAccountDataDispatcher").updateAccount(this.$AdsAccountStoreClassOld1,b.data);break;case d("AdsAccountInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassOld17(b.id)&&(a=!0);break;case d("AdsAccountListInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassOld18(b.accounts)&&(a=!0);break;case d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassOld4[b.accountID]=c("LoadObject").withValue({data:b.data});a=!0;break;case d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassOld4[b.accountID]=c("LoadObject").withError(new Error(b.data));a=!0;break;case d("AdsAccountAttributionSpecUpdateStartDataActionFlux").actionType:e!=null&&c("AdsAccountDataDispatcher").updateAccountAttributionSpec(e,{attribution_spec:b.attributionSpec});break;case d("AdsAccountAttributionSpecUpdateSuccessDataActionFlux").actionType:if(e!=null){c("AdsAccountDataDispatcher").loadAccountAttributionSpec(e);g=this.$AdsAccountStoreClassOld3.get(e);if(g==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},g,{loadState:c("AdsLoadState_LEGACY").LOADING}))}break;case d("AdsAccountAttributionSpecLoadSuccessDataActionFlux").actionType:if(e!=null){j=this.$AdsAccountStoreClassOld3.get(e);if(j==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},j,{attribution_spec:b.data.attribution_spec,is_attribution_spec_system_default:b.data.is_attribution_spec_system_default,loadState:c("AdsLoadState_LEGACY").LOADED}));a=!0}break;case d("AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux").actionType:e!=null&&c("AdsAccountDataDispatcher").updateAccountDefaultUnifiedAttrSpec(e,{default_unified_attribution_spec:b.defaultUnifiedAttrSpec});break;case d("AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux").actionType:if(e!=null){c("AdsAccountDataDispatcher").loadAccountDefaultUnifiedAttrSpec(e);h=this.$AdsAccountStoreClassOld3.get(e);if(h==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},h,{loadState:c("AdsLoadState_LEGACY").LOADING}))}break;case d("AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux").actionType:if(e!=null){f=this.$AdsAccountStoreClassOld3.get(e);if(f==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},f,{default_unified_attribution_spec:b.data.default_unified_attribution_spec,loadState:c("AdsLoadState_LEGACY").LOADED}));a=!0}break;case d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType:c("AdsAccountDataDispatcher").handleAcceptMAIDeeplinkTOS(this.getSelectedAccountID());a=!0;break;case d("AdsAMAccountAcceptedTosAddActionFlux").actionType:if(e==null)break;g=this.$AdsAccountStoreClassOld3.get(e);if(g==null)break;j=g.tos_accepted?g.tos_accepted:Object();j=babelHelpers["extends"]({},j,b.addedTOS);this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},g,{tos_accepted:j}));a=!0;break;case d("AdsAMAccountInitActionFlux").actionType:h=b.account.account_id;if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld19(h)){this.$AdsAccountStoreClassOld20(h);break}c("AdsAccountUtils").logMsgWhenAccountUpdates();this.$AdsAccountStoreClassOld1=h;this.$AdsAccountStoreClassOld12(h,b.account);a=!0;c("AdsAccountUtils").logAccID("flux");break;case d("AdsAccountGKsErrorActionFlux").actionType:case d("AdsAccountGKsLoadedActionFlux").actionType:a=!0;break}a&&this.__emitChange()};e.$AdsAccountStoreClassOld21=function(a,b){var d=this.$AdsAccountStoreClassOld3.get(a);!d||d.loadState===c("AdsLoadState_LEGACY").LOADING?this.$AdsAccountStoreClassOld3.set(a,b):this.$AdsAccountStoreClassOld3.set(a,babelHelpers["extends"]({},d,b))};e.$AdsAccountStoreClassOld12=function(a,b){var d=this.$AdsAccountStoreClassOld3.get(a);d&&this.$AdsAccountStoreClassOld3.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADED}));this.$AdsAccountStoreClassOld21(a,babelHelpers["extends"]({},b,{loadState:c("AdsLoadState_LEGACY").LOADED}))};e.$AdsAccountStoreClassOld13=function(a,b){this.$AdsAccountStoreClassOld3.set(a,{loadState:c("AdsLoadState_LEGACY").ERROR,error:b})};e.$AdsAccountStoreClassOld11=function(a){var b={},e=a.accountID;!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld19(e)?this.$AdsAccountStoreClassOld20(e):(c("AdsAccountUtils").logMsgWhenAccountUpdates(),this.$AdsAccountStoreClassOld1=e,this.$AdsAccountStoreClassOld2=c("getByPath")(a.accountInfo,["business","id"]),b=a.accountInfo,b.business_country_code=b.business_country_code||i,b.name=a.accountName,b.hasSuperRead=a.hasSuperRead,c("promiseDone")(d("AdsAccountDataLoader").postUserSettings(e)),c("DateTime").setupTimezoneFallback(b.timezone_id,b.timezone_offset_hours_utc),d("AdsEngagementAudienceUILogger").setAppName(c("AdsPixelUIEnvironments").CM),b.loadState=c("AdsLoadState_LEGACY").LOADED,this.$AdsAccountStoreClassOld21(a.accountID,b),c("AdsAccountUtils").logAccID("initAccountData"),c("ifRequired")("EventProfiler",function(a){a.setCurrentAdAccountId(e)}))};e.$AdsAccountStoreClassOld17=function(a){return this.$AdsAccountStoreClassOld3.has(a)?this.$AdsAccountStoreClassOld3["delete"](a):!1};e.__invalidateAllErrors=function(){var a=this,b=!1;this.$AdsAccountStoreClassOld3.forEach(function(d,e){if(d.loadState===c("AdsLoadState_LEGACY").ERROR){d=a.$AdsAccountStoreClassOld17(e);b=d||b}});return b};e.$AdsAccountStoreClassOld18=function(a){var b=this,c=!1;a.forEach(function(a){c=c||b.$AdsAccountStoreClassOld17(a);var d=b.$AdsAccountStoreClassOld6.get(a);b.$AdsAccountStoreClassOld6.set(a,d?d+1:1)});return c};e.$AdsAccountStoreClassOld16=function(a,b){var d=this.$AdsAccountStoreClassOld3.get(a);d!=null&&d.loadState===c("AdsLoadState_LEGACY").LOADED&&(d=babelHelpers["extends"]({},d,{user_settings:{id:b}}),this.$AdsAccountStoreClassOld3.set(a,d))};e.$AdsAccountStoreClassOld14=function(a,b){(b!==this.$AdsAccountStoreClassOld1||a!==this.$AdsAccountStoreClassOld2)&&(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld19(b)?this.$AdsAccountStoreClassOld20(b):(c("AdsAccountUtils").logMsgWhenAccountUpdates(),this.$AdsAccountStoreClassOld1=b,this.$AdsAccountStoreClassOld2=a,c("AdsAccountUtils").logAccID("selectBusiness"),c("ifRequired")("EventProfiler",function(a){a.setCurrentAdAccountId(b)})))};e.$AdsAccountStoreClassOld15=function(a,b){var e=b!==this.$AdsAccountStoreClassOld2;(a!==this.$AdsAccountStoreClassOld1||e)&&(!d("AdsApplicationUtils").isFAME()&&!e&&this.$AdsAccountStoreClassOld19(a)?this.$AdsAccountStoreClassOld20(a):(c("AdsAccountUtils").logMsgWhenAccountUpdates(),this.$AdsAccountStoreClassOld1=a,this.$AdsAccountStoreClassOld2=b,c("AdsAccountUtils").logAccID("selectAccount"),c("ifRequired")("EventProfiler",function(b){b.setCurrentAdAccountId(a)})))};e.__setStoreState=function(a){var b=a.selectedAccountID,e=a.selectedBusinessID;a=a.accounts;var f=new Map();a.forEach(function(a,b){f.set(b,babelHelpers["extends"]({},a.getValueEnforcing(),{loadState:d("AdsLoadStateUtils_LEGACY").fromLoadObject(a).loadState}))});!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld19(b)?this.$AdsAccountStoreClassOld20(b):(c("AdsAccountUtils").logMsgWhenAccountUpdates(),this.$AdsAccountStoreClassOld1=b,this.$AdsAccountStoreClassOld2=e,this.$AdsAccountStoreClassOld3=f,c("AdsAccountUtils").logAccID("setStoreState"))};e.$AdsAccountStoreClassOld19=function(a){return this.$AdsAccountStoreClassOld1!=null&&this.$AdsAccountStoreClassOld1!==a};e.$AdsAccountStoreClassOld20=function(a,b){var d=new(c("URI"))(window.location.href);if(d.getPath().includes("accountquality")){var e=c("XAdsAccountQualityController").getURIBuilder();a!=null&&e.setFBID("primary_id",a);b!=null&&e.setFBID("primary_id",b).setFBID("secondary_id",a);d=e.getURI()}else d.setQueryData({act:a}),b!=null&&d.setQueryData({act:a,business_id:b});c("AdsAccountUtils").logMsgWhenAccountUpdates();c("goURI")(d)};return b}(c("FluxStore"));b.__moduleID=f.id;g["default"]=b}),98);
-----
AdsPEFilterAndSortReducer",["AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsAdgroupSelectionClearDataActionFlux","AdsCampaignGroupSelectionClearDataActionFlux","AdsCampaignSelectionClearDataActionFlux","AdsDataAtom","AdsDraftDraftPublishCompletedDataActionFlux","AdsDraftSelectionStore","AdsGenericFilterSetUtil","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsMgmtCurrentLevelSortInfoSelector","AdsMgmtSelectedAncestorIDsSelectors","AdsNavigationChangeNavigationStateDataActionFlux","AdsPEFilterAppliedActionFlux","AdsPEFilterChangedActionFlux","AdsPEFilterLiveDataManager","AdsPEFilterLoadErrorActionFlux","AdsPEFilterUIStateSelectors","AdsPEFluxAdTableSetSortKeyActionFlux","AdsPEFluxCampaignGroupTableSetSortKeyActionFlux","AdsPEFluxCampaignTableSetSortKeyActionFlux","AdsPERefreshTableViewActionFlux","AdsPEScenarioUtils","AdsPESortLiveUtils","AdsPerfInteractionUtil","AdsPerfInteractionsController","AdsRevertAdObjectsDataActionFlux","AdsRevertSelectedAdObjectsDataActionFlux","adsMgmtCurrentLevelSelector","adsMgmtLoadIDRequestViewSpecParamsSelector","adsMgmtNeedToLoadAllFilteredIDsSelector","adsMgmtPagingDataSelector","adsPEManageAdsSectionSelector","gkx","hasDateChangeRelatedFilter","hasLabelFilter","isFalsey"],(function(a,b,c,d,e,f,g){"use strict";var h=[].concat(d("AdsPEFilterUIStateSelectors").getFilterSet.getStores()),i=Array.from(new Set(c("adsMgmtPagingDataSelector").getStores())),j=[].concat(d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtRelevantSelectionsMapSelector.getStores(),d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtSelectedAncestorIDsSelector.getStores());a=[c("AdsAccountStore"),c("AdsDraftSelectionStore")].concat(d("AdsPEFilterUIStateSelectors").getFilterSet.getStores(),i,j,d("AdsMgmtCurrentLevelSortInfoSelector").adsMgmtCurrentLevelSortInfoSelector.getStores(),c("adsPEManageAdsSectionSelector").getStores(),c("adsMgmtLoadIDRequestViewSpecParamsSelector").getStores(),c("adsMgmtNeedToLoadAllFilteredIDsSelector").getStores(),c("adsMgmtCurrentLevelSelector").getStores());var k=a.map(function(a){return a&&a.getDispatchToken()}),l=function(a){return!!a&&c("hasLabelFilter")(a)},m=function(){return j.some(function(a){return a.hasChanged()})},n=function(){var a=c("adsMgmtCurrentLevelSelector")();if(!a)return!1;var b=c("adsMgmtLoadIDRequestViewSpecParamsSelector")();b=b.sortInfoMap;return!(d("AdsPESortLiveUtils").isSortByError(b[a])||d("AdsPESortLiveUtils").isSortByChanged(b[a]))},o=function(a){if(!a.data.changedParamKeys.date)return!1;a=d("AdsMgmtCurrentLevelSortInfoSelector").adsMgmtCurrentLevelSortInfoSelector();return a&&d("AdsPESortLiveUtils").isDateChangeRelatedSort(a)?!0:c("hasDateChangeRelatedFilter")(d("AdsPEFilterUIStateSelectors").getFilterSet())},p=function(a){var b=function(a){return a==null?void 0:a.hasChanged()};if(h.some(b)&&!d("AdsGenericFilterSetUtil").completeMatchesExactly(a.filterSet,d("AdsPEFilterUIStateSelectors").getFilterSet()))return!0;if(c("adsPEManageAdsSectionSelector").getStores().some(b))return!0;if(m())return!0;if(d("AdsMgmtCurrentLevelSortInfoSelector").SORT_STORES.some(b))return!0;if(c("AdsDraftSelectionStore").hasChanged()&&q(a))return!0;if(c("AdsAccountStore").hasChanged()&&a.accountID!==c("AdsAccountStore").getSelectedAccountID())return!0;return i.some(b)&&r(a)?!0:!1},q=function(a){var b=c("AdsAccountStore").getSelectedAccountID();if(b==null)return!1;b=c("AdsDraftSelectionStore").getCached(b);if(!b.hasValue())return!1;a=a.draftID;return a==null?!0:b.getValue()!==a.getValue()},r=function(a){var b=c("adsMgmtCurrentLevelSelector")();if(!b)return!1;var d=c("adsMgmtPagingDataSelector")(b);return a.currentPageByLevel[b]!==d.currentPage},s=function(a,b,e,f,g){var h;g===void 0&&(g=!1);a=a;var i=c("adsMgmtCurrentLevelSelector")(),j=c("AdsAccountStore").getSelectedAccountID();if(c("isFalsey")(j)||!i||i==="topline")return a;var k=c("adsMgmtLoadIDRequestViewSpecParamsSelector")(),l=k.sortInfoMap,m=k.dateTimeRange,n=k.datePreset,o=k.comparisonDateTimeRange;k=k.timezoneID;a=a.set("accountID",j);var p=d("AdsPEFilterUIStateSelectors").getFilterSet();a=a.set("filterSet",p);var q=d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtRelevantSelectionsMapSelector(i),r=c("AdsDraftSelectionStore").getCached(j);a=a.set("draftID",r);var s=c("adsMgmtPagingDataSelector")(i);a=a.set("currentPageByLevel",babelHelpers["extends"]({},a.currentPageByLevel,(h={},h[i]=s.currentPage,h)));a=a.set("areIDsLoading",!0);b!==d("AdsNavigationChangeNavigationStateDataActionFlux").actionType&&(a=a.set("areCountsLoading",!0));c("AdsPEFilterLiveDataManager").loadIDsForFilterSet(j,p,q,l,r,i,s,m,k,o,n,f,g,e);return a};b=function(a,b){var e;a=a;c("AdsDataAtom").waitFor(k);switch(b.type){case d("AdsPEFilterAppliedActionFlux").actionType:a=a.set("areCountsLoading",!1).set("areIDsLoading",!1).set("error",null);break;case d("AdsPEFilterLoadErrorActionFlux").actionType:a=a.set("areCountsLoading",!1).set("areIDsLoading",!1).set("error",b.error);break;case d("AdsDraftDraftPublishCompletedDataActionFlux").actionType:c("gkx")("7401")&&((e=(e=d("AdsPerfInteractionUtil").getTracePolicy())==null?void 0:e.indexOf("edit"))!=null?e:-1)!==-1&&c("AdsPerfInteractionsController").startInteraction("am.editor.reload_in_same_level",f.id);a=s(a,b.type,void 0,void 0,!0);break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:case d("AdsRevertAdObjectsDataActionFlux").actionType:case d("AdsRevertSelectedAdObjectsDataActionFlux").actionType:case d("AdsAdgroupSelectionClearDataActionFlux").actionType:case d("AdsCampaignSelectionClearDataActionFlux").actionType:case d("AdsCampaignGroupSelectionClearDataActionFlux").actionType:a=s(a,b.type);break;case d("AdsPEFilterChangedActionFlux").actionType:break;case d("AdsPEFluxAdTableSetSortKeyActionFlux").actionType:case d("AdsPEFluxCampaignTableSetSortKeyActionFlux").actionType:case d("AdsPEFluxCampaignGroupTableSetSortKeyActionFlux").actionType:n()&&p(a)&&(a=s(a,b.type));break;case d("AdsPERefreshTableViewActionFlux").actionType:(b.allLevels||b.adLevel===c("adsMgmtCurrentLevelSelector")())&&(a=s(a,b.type,d("AdsPEScenarioUtils").getScenarioInfo(b)));break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:(o(b)||p(a)||c("adsMgmtNeedToLoadAllFilteredIDsSelector")())&&(a=s(a,b.type,d("AdsPEScenarioUtils").getScenarioInfo(b),b.data.changedParamKeys,l(b.data.params.filter_set)));break;default:p(a)&&(a=s(a,b.type))}return a};g.reduce=b}),98);
-----
AdsAccountBatchLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ACCOUNT.BATCH_LOADED"}}),null);
-----
-----
AdsAccountStoreNew",["invariant","AdsAMAccountAcceptedTosAddActionFlux","AdsAMAccountInitActionFlux","AdsAccountAddCapabilitiesDataActionFlux","AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountDataDispatcher","AdsAccountDataLoader","AdsAccountInitDataActionFlux","AdsAccountInvalidateDataActionFlux","AdsAccountListInvalidateDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountSettingsCreateFinishedDataActionFlux","AdsAccountStoreNewSource","AdsAccountUtils","AdsAccountViewerPermissionsLoadErrorDataActionFlux","AdsAccountViewerPermissionsLoadedDataActionFlux","AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux","AdsApplicationUtils","AdsCachedLoadState_LEGACY","AdsDSASetDefaultBeneficiaryPayorInfoActionFlux","AdsEngagementAudienceUILogger","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsLoadStateUtils_LEGACY","AdsLoadState_LEGACY","AdsPERefreshTableViewActionFlux","AdsPEUploadShowPreviewActionFlux","AdsPixelUIEnvironments","ApiClient","CurrentAdAccount","CurrentAdAccountInitialData","CurrentBusinessUser","DateTime","DateUtil","LoadObject","ReverseInteropStoreBase","URI","adsCreateSelector","adsCreateStoreSelector","gkx","goURI","ifRequired","immutable","isFalsey","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j="US",k=1;a=0;var l=c("DateTime").fromLegacyArgs(c("DateUtil").FACEBOOK_EPOCH*1e3,a).toISOString(),m="AdsAccountStoreNew.DATA_UPDATED.";b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e=new(c("AdsAccountStoreNewSource"))();b=a.call(this,e,m)||this;b.getSelectedAccountID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID}):b.$AdsAccountStoreClassNew$p_7()},{name:f.id});b.getSelectedAccountIDX=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){if(d("AdsApplicationUtils").isFAME()){var a=c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID});!a&&h(0,5919,a);return a}a=b.$AdsAccountStoreClassNew$p_7();!a&&h(0,5919,a);return a},{name:f.id});b.getSelectedBusinessID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.$AdsAccountStoreClassNew$p_10()},{name:f.id});b.getCreatedTime=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a;return(a=(a=b.__getSelectedAccount().getValue())==null?void 0:a.created_time)!=null?a:l},{name:f.id});b.getTimezoneID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a;return(a=(a=b.__getSelectedAccount().getValue())==null?void 0:a.timezone_id)!=null?a:k},{name:f.id});b.getTosAccepted=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a;return(a=b.__getSelectedAccount().getValue())==null?void 0:a.tos_accepted},{name:f.id});b.getSelectedAccount=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a||c("LoadObject").empty()})||c("LoadObject").empty():b.__getSelectedAccount()},{name:f.id});b.getSelectedAccountCapabilities=c("adsCreateSelector")([b.getSelectedAccount],function(a){return((a=a.getValue())==null?void 0:a.capabilities)||[]},{name:f.id});b.$AdsAccountStoreClassNew$p_6=e;b.$AdsAccountStoreClassNew$p_2={};b.$AdsAccountStoreClassNew$p_1=new Map();b.$AdsAccountStoreClassNew$p_3=!1;b.$AdsAccountStoreClassNew$p_4={hasMisMatches:!1,accountID:null};b.$AdsAccountStoreClassNew$p_5=new Map();return b}var e=b.prototype;e.getSource__TEST_ONLY=function(){return this.$AdsAccountStoreClassNew$p_6};e.canUpdateCurrency=function(){var a=this.$AdsAccountStoreClassNew$p_7();if(a==null)return!1;a=this.getCached(a).getValue();if(c("isFalsey")(a))return!1;var b=c("AdsAccountUtils").hasCapability(a,"CAN_UPDATE_CURRENCY");a=c("AdsAccountUtils").isPaymentInfoRequired(a);return b&&a};e.get=function(a){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty():this.getSingleValue(a,{})};e.getCached=function(a){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty():this.getCachedSingleValue(a,{})};e.$AdsAccountStoreClassNew$p_8=function(){var a=this.$AdsAccountStoreClassNew$p_7();if(!a)return;this.$AdsAccountStoreClassNew$p_6.load([a],[],!0);return};e.getAll=function(a){var b=this,d=new Map();a.forEach(function(a){d.set(a,b.get(a))});return c("immutable").Map(d)};e.getAllCached=function(a){var b=this,d=new Map();a.forEach(function(a){d.set(a,b.getCached(a))});return c("immutable").Map(d)};e.getByFields=function(a,b){if(c("gkx")("3848"))return this.get(a);var e=this.$AdsAccountStoreClassNew$p_1.get(a);if(!e){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassNew$p_1.set(a,c("AdsCachedLoadState_LEGACY").LOADING);return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING)}if(e.loadState===c("AdsLoadState_LEGACY").ERROR)return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").ERROR);if(e.loadState===c("AdsLoadState_LEGACY").LOADING)return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING);var f=b.some(function(a){return e[a]===null||e[a]===void 0});if(f){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassNew$p_1.set(a,babelHelpers["extends"]({},e,{loadState:c("AdsLoadState_LEGACY").LOADING}));return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING)}var g={};b.forEach(function(a){g[a]=e[a]});g.loadState=c("AdsLoadState_LEGACY").LOADED;return d("AdsLoadStateUtils_LEGACY").toLoadObject(g)};e.getAllByFields=function(a,b){var d=this;if(c("gkx")("3848"))return this.getAll(a);var e=new Map();a.forEach(function(a){e.set(a,d.getByFields(a,b))});return c("immutable").Map(e)};e.$AdsAccountStoreClassNew$p_7=function(){var a;if(!this.$AdsAccountStoreClassNew$p_9())return null;a=(a=c("CurrentAdAccount").getID())!=null?a:null;if(this.$AdsAccountStoreClassNew$p_4.hasMisMatches){var b;a=(b=this.$AdsAccountStoreClassNew$p_4.accountID)!=null?b:null}b=a===c("CurrentAdAccount").LOGGED_OUT?null:a;return b};e.$AdsAccountStoreClassNew$p_10=function(){var a;return(a=c("CurrentBusinessUser").business_id)!=null?a:null};e.getTimezoneName=function(){var a;return((a=this.__getSelectedAccount().getValue())==null?void 0:a.timezone_name)||""};e.getViewerPermissions=function(){var a=this.$AdsAccountStoreClassNew$p_7();if(a){this.$AdsAccountStoreClassNew$p_2[a]||(this.$AdsAccountStoreClassNew$p_2[a]=c("LoadObject").loading(),c("AdsAccountDataDispatcher").loadViewerPermissions(a));return this.$AdsAccountStoreClassNew$p_2[a]}return c("LoadObject").empty()};e.getViewerHasPermission=function(a){var b=this.getViewerPermissions();return b.hasValueWithoutError()&&Array.isArray(b.getValueEnforcing().data)&&b.getValueEnforcing().data.includes(a)};e.__getSelectedAccount=function(){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a})||c("LoadObject").empty();var a=this.$AdsAccountStoreClassNew$p_7();return!a?c("LoadObject").empty():this.get(a)};e.toURLParams=function(){var a=this.$AdsAccountStoreClassNew$p_7();return!a?null:{act:a}};e.reduce=function(a,b){b=b.action;var e=!1,f=this.$AdsAccountStoreClassNew$p_7();switch(b.actionType){case d("AdsAccountInitDataActionFlux").actionType:var g,h;g=(g=b.data.accountID)!=null?g:null;h=(h=(h=b.data.accountInfo.business)==null?void 0:h.id)!=null?h:null;var i=this.$AdsAccountStoreClassNew$p_10();if(h!==i){g=f!=null&&g!=null&&f===g;c("AdsAccountUtils").logBusinessAccountUpdatesMisMatched(i,h,"AdsAccountInit",g)}this.$AdsAccountStoreClassNew$p_11(b.data);e=!0;break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_12(b.accountID,b.account);e=!0;break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_13(b.accountID,b.error);e=!0;break;case d("AdsPEUploadShowPreviewActionFlux").actionType:b.didUpdateAccount&&this.$AdsAccountStoreClassNew$p_8();return a;case d("AdsAccountAddCapabilitiesDataActionFlux").actionType:if(f!=null){i=d("AdsLoadStateUtils_LEGACY").fromLoadObject(this.__getSelectedAccount());this.$AdsAccountStoreClassNew$p_1.set(f,babelHelpers["extends"]({},i,{capabilities:i.capabilities.concat(b.capabilities)}));e=!0}break;case d("AdsPERefreshTableViewActionFlux").actionType:this.__invalidateAllErrors()&&(e=!0);break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:this.__invalidateAllErrors()&&(e=!0);h=b.data.changedParamKeys;if(h.act||h.business_id){g=b.data.params;if(!g.act&&g.tool==="REPORTING")this.$AdsAccountStoreClassNew$p_14(g.business_id,g.act);else if(g.act)this.$AdsAccountStoreClassNew$p_15(g.act,g.business_id);else break;e=!0}break;case d("AdsAccountSelectDataActionFlux").actionType:if(d("AdsApplicationUtils").isPowerEditor())break;!b.accountID?this.$AdsAccountStoreClassNew$p_14(b.businessID,b.accountID):this.$AdsAccountStoreClassNew$p_15(b.accountID,b.businessID);e=!0;break;case d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_16(b.accountID,b.settingsID);e=!0;break;case d("AdsAccountInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_17(b.id);return a;case d("AdsAccountListInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_18(b.accounts);return a;case d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_2[b.accountID]=c("LoadObject").withValue({data:b.data});e=!0;break;case d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassNew$p_2[b.accountID]=c("LoadObject").withError(new Error(b.data));e=!0;break;case d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType:c("AdsAccountDataDispatcher").handleAcceptMAIDeeplinkTOS(this.getSelectedAccountID());e=!0;break;case d("AdsAMAccountAcceptedTosAddActionFlux").actionType:if(f==null)break;i=this.$AdsAccountStoreClassNew$p_1.get(f);if(i==null)break;h=i.tos_accepted?i.tos_accepted:Object();h=babelHelpers["extends"]({},h,b.addedTOS);this.$AdsAccountStoreClassNew$p_1.set(f,babelHelpers["extends"]({},i,{tos_accepted:h}));e=!0;break;case d("AdsAMAccountInitActionFlux").actionType:g=b.account.account_id;this.$AdsAccountStoreClassNew$p_15(g,(i=b.account.business)==null?void 0:i.id);this.$AdsAccountStoreClassNew$p_12(g,b.account);e=!0;c("AdsAccountUtils").logAccID("flux");break;case d("AdsDSASetDefaultBeneficiaryPayorInfoActionFlux").actionType:h=b.accountID;i=this.$AdsAccountStoreClassNew$p_1.get(h);if(i==null)break;this.$AdsAccountStoreClassNew$p_1.set(h,babelHelpers["extends"]({},i,{default_dsa_beneficiary:b.defaultBeneficiary,default_dsa_payor:b.defaultPayor}));e=!0;break}if(e){c("ifRequired")("EventProfiler",function(a){f&&a.setCurrentAdAccountId(f)});return{}}return a};e.$AdsAccountStoreClassNew$p_19=function(a,b){var d=this.$AdsAccountStoreClassNew$p_1.get(a);!d||d.loadState===c("AdsLoadState_LEGACY").LOADING?this.$AdsAccountStoreClassNew$p_1.set(a,b):this.$AdsAccountStoreClassNew$p_1.set(a,babelHelpers["extends"]({},d,b))};e.$AdsAccountStoreClassNew$p_20=function(a){return this.$AdsAccountStoreClassNew$p_6.getValueFromAccountIDToGraphQLIDMap(a)};e.$AdsAccountStoreClassNew$p_12=function(a,b){var d=this.$AdsAccountStoreClassNew$p_1.get(a);d&&this.$AdsAccountStoreClassNew$p_1.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADED}));this.$AdsAccountStoreClassNew$p_19(a,babelHelpers["extends"]({},b,{loadState:c("AdsLoadState_LEGACY").LOADED}))};e.$AdsAccountStoreClassNew$p_13=function(a,b){this.$AdsAccountStoreClassNew$p_1.set(a,{loadState:c("AdsLoadState_LEGACY").ERROR,error:b})};e.$AdsAccountStoreClassNew$p_11=function(a){var b={},e=a.accountID;b=a.accountInfo;b.business_country_code=b.business_country_code||j;b.name=a.accountName;b.hasSuperRead=a.hasSuperRead;c("promiseDone")(d("AdsAccountDataLoader").postUserSettings(e));c("DateTime").setupTimezoneFallback(b.timezone_id,b.timezone_offset_hours_utc);d("AdsEngagementAudienceUILogger").setAppName(c("AdsPixelUIEnvironments").CM);b.loadState=c("AdsLoadState_LEGACY").LOADED;this.$AdsAccountStoreClassNew$p_19(e,b);c("AdsAccountUtils").logAccID("initAccountData")};e.$AdsAccountStoreClassNew$p_21=function(a){this.$AdsAccountStoreClassNew$p_6.removeValueFromGkData(a),this.__reverseInteropHandler.removeKeysFromLoadedKeysAndFields([a]),this.$AdsAccountStoreClassNew$p_6.deleteRecordsInRelayStore([a])};e.$AdsAccountStoreClassNew$p_17=function(a){var b=this.$AdsAccountStoreClassNew$p_20(a);if(b!=null){this.$AdsAccountStoreClassNew$p_21(a);return!0}return!1};e.__invalidateAllErrors=function(){var a=this,b=!1;this.$AdsAccountStoreClassNew$p_1.forEach(function(d,e){if(d.loadState===c("AdsLoadState_LEGACY").ERROR){d=a.$AdsAccountStoreClassNew$p_17(e);b=d||b}});return b};e.$AdsAccountStoreClassNew$p_18=function(a){var b=this,c=!1;a.forEach(function(a){c=c||b.$AdsAccountStoreClassNew$p_17(a);var d=b.$AdsAccountStoreClassNew$p_5.get(a);b.$AdsAccountStoreClassNew$p_5.set(a,d?d+1:1)});return c};e.$AdsAccountStoreClassNew$p_16=function(a,b){var d=this.$AdsAccountStoreClassNew$p_1.get(a);d!=null&&d.loadState===c("AdsLoadState_LEGACY").LOADED&&(d=babelHelpers["extends"]({},d,{user_settings:{id:b}}),this.$AdsAccountStoreClassNew$p_1.set(a,d))};e.$AdsAccountStoreClassNew$p_14=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassNew$p_22(a)){var e=this.$AdsAccountStoreClassNew$p_23(b,a);this.$AdsAccountStoreClassNew$p_4={hasMisMatches:e,accountID:b};e||this.$AdsAccountStoreClassNew$p_24(b,a);c("AdsAccountUtils").logAccID("selectBusiness")}};e.$AdsAccountStoreClassNew$p_15=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassNew$p_25(a)){var e=new(i||(i=c("URI")))(window.location.href);if(e.getPath().includes("billing_hub"))return;e=this.$AdsAccountStoreClassNew$p_23(a,b);this.$AdsAccountStoreClassNew$p_4={hasMisMatches:e,accountID:a};e||this.$AdsAccountStoreClassNew$p_24(a,b);c("AdsAccountUtils").logAccID("selectAccount")}};e.__setStoreStateTEST_ONLY_DO_NOT_USE_IN_PRODUCTION=function(a){var b=a.selectedAccountID,e=a.selectedBusinessID;a=a.accounts;c("CurrentAdAccountInitialData").AD_ACCOUNT_ID=b;var f=new Map();a.forEach(function(a,b){f.set(b,babelHelpers["extends"]({},a.getValueEnforcing(),{loadState:d("AdsLoadStateUtils_LEGACY").fromLoadObject(a).loadState}))});!d("AdsApplicationUtils").isFAME()&&(this.$AdsAccountStoreClassNew$p_25(b)||this.$AdsAccountStoreClassNew$p_22(e))&&(this.$AdsAccountStoreClassNew$p_4={hasMisMatches:!1,accountID:b});this.$AdsAccountStoreClassNew$p_1=f;c("AdsAccountUtils").logAccID("setStoreState")};e.$AdsAccountStoreClassNew$p_25=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassNew$p_7()};e.$AdsAccountStoreClassNew$p_9=function(){return c("ApiClient").getAccessToken()!=null||c("gkx")("21557")};e.$AdsAccountStoreClassNew$p_22=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassNew$p_10()};e.$AdsAccountStoreClassNew$p_23=function(a,b){var d=this.$AdsAccountStoreClassNew$p_7(),e=this.$AdsAccountStoreClassNew$p_10();a=(a=a)!=null?a:null;b=(b=b)!=null?b:null;var f=!0;try{var g=window.localStorage;if(g){var h=this.$AdsAccountStoreClassNew$p_26("curAccountID"),i=this.$AdsAccountStoreClassNew$p_26("requestedAccountID"),j=this.$AdsAccountStoreClassNew$p_26("curBusinessID"),k=this.$AdsAccountStoreClassNew$p_26("requestedBusinessID");f=h===d&&i===a&&j===e&&k===b;if(!f){g.setItem("curAccountID",(h=d)!=null?h:"none");g.setItem("requestedAccountID",(i=a)!=null?i:"none");g.setItem("curBusinessID",(j=e)!=null?j:"none");g.setItem("requestedBusinessID",(k=b)!=null?k:"none")}}}catch(a){f=!0}f&&(d!==a?c("AdsAccountUtils").logAdAccountUpdatesMisMatched(d,a,this.$AdsAccountStoreClassNew$p_9()):c("AdsAccountUtils").logBusinessAccountUpdatesMisMatched(e,b));return f};e.$AdsAccountStoreClassNew$p_26=function(a){var b=null;try{var c=window.localStorage;c&&(b=c.getItem(a),b=b==="none"?null:b)}catch(a){b=null}return b};e.$AdsAccountStoreClassNew$p_24=function(a,b){var d=new(i||(i=c("URI")))(window.location.href),e={};a!=null&&(e.act=a);b!=null&&(e.business_id=b);d.addQueryData(e);c("AdsAccountUtils").logMsgWhenAccountUpdates();c("goURI")(d)};return b}(c("ReverseInteropStoreBase"));e=new b();g["default"]=e}),98);
-----
AdsReportBuilderScenarioUtil",["AdsAccountBatchLoadedDataActionFlux","AdsBusinessBatchLoadedDataActionFlux","AdsDataAtom","AdsInterfacesRouteDataFetchedDataActionFlux","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsPENavigationProvider","AdsPEReportBuilderTableInitActionFlux","AdsPEReportBuilderTableLoadNextActionFlux","AdsRBDupReportIDGenerator","AdsRBNavStateHelper","AdsRBSwitchBusinessAccountActionFlux","AdsReportBuilderCreateReportActionFlux","AdsReportBuilderCreateReportSuccessActionFlux","AdsReportBuilderDeleteReportActionFlux","AdsReportBuilderDimensionUpdateActionFlux","AdsReportBuilderDuplicateActionFlux","AdsReportBuilderEntryPointEventSources","AdsReportBuilderFilterSetChangeActionFlux","AdsReportBuilderManageReportsFilterSetProvider","AdsReportBuilderManageReportsTableRenderActionFlux","AdsReportBuilderMetricUpdateActionFlux","AdsReportBuilderRefreshTableActionFlux","AdsReportBuilderReportSpecUtil","AdsReportBuilderSelectAttributionWindowActionFlux","AdsReportBuilderSelectReportActionFlux","AdsReportBuilderSortChangeActionFlux","AdsReportBuilderTimeRangeChangeActionFlux","AdsReportBuilderToggleLockedDimensionActionFlux","AdsReportingViewLoadedActionFlux","AdsReportingViewSectionType","AdsSelectorUtils","BizSiteIdentifier.brands","URI","adsFormatErrorMessage","createObjectFrom","emptyFunction","first","getViewportDimensions","ifRequired","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;b=(a={},a[c("AdsReportBuilderSortChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderTimeRangeChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderToggleLockedDimensionActionFlux").actionType]=!0,a[c("AdsReportBuilderFilterSetChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderDimensionUpdateActionFlux").actionType]=!0,a[c("AdsReportBuilderMetricUpdateActionFlux").actionType]=!0,a[c("AdsReportBuilderSelectReportActionFlux").actionType]=!0,a[c("AdsPEReportBuilderTableLoadNextActionFlux").actionType]=!0,a[c("AdsReportBuilderRefreshTableActionFlux").actionType]=!0,a[c("AdsReportBuilderSelectAttributionWindowActionFlux").actionType]=!0,a[c("AdsReportBuilderCreateReportActionFlux").actionType]=!1,a);var k=c("createObjectFrom")(["AdsRBFullAdAccountListDataProviderPluginSetStateAction",c("AdsAccountBatchLoadedDataActionFlux").actionType,c("AdsBusinessBatchLoadedDataActionFlux").actionType,"FluxLoadObjectStore.START_LOAD.BusinessStore.brands"]),l=!1,m={TABLE_OR_CHART_CHANGE_EVENT:b,ACCOUNT_LOADED_EVENT:k,hasRBViewLoaded:function(){return l},setRBViewLoaded:function(){l=!0},getSelectedReportID:function(){var a;c("ifRequired")("AdsReportBuilderSelectedReportIDStore",function(b){return a=b},c("emptyFunction"));var b;c("ifRequired")("AdsReportBuilderMCRSelectedReportProvider",function(a){return b=a});return a?(b==null?void 0:b())||a.get()||"":""},getCurrentReportIDForManageReport:function(a,b){if(a.type===c("AdsReportBuilderDeleteReportActionFlux").actionType)return JSON.stringify(a.reportIDs);return b.type===c("AdsReportBuilderCreateReportSuccessActionFlux").actionType?b.id!=null&&typeof b.id==="string"?b.id:"":""},getPreviousReportIDForManageReport:function(a){return a.type===c("AdsReportBuilderDuplicateActionFlux").actionType&&a.reportSpec?d("AdsRBDupReportIDGenerator").getSourceReportIDFromTempID(a.reportSpec.get("id")):""},getShareReportData:function(a,b){if(d("AdsRBNavStateHelper").isOnManageReportPage()){var c;return{current_report_id:(c=a.reportSpec)==null?void 0:c.id,business_id:d("BizSiteIdentifier.brands").getBusinessID()||"",event_source:a.eventSource}}return m.getViewReportPageData(a,b)},getTableStateRelatedStores:function(){var a,b,d;c("ifRequired")("AdsReportBuilderViewStore",function(b){return a=b},c("emptyFunction"));c("ifRequired")("AdsReportBuilderListStore",function(a){return b=a},c("emptyFunction"));c("ifRequired")("adsReportBuilderReportSettingsSelector",function(a){return d=a()});return{viewStore:a,listStore:b,reportSettings:d}},getManageReportsRelatedStores:function(){var a,b;c("ifRequired")("AdsReportBuilderManageReportsListStore",function(b){return a=b});c("ifRequired")("adsRBManageReportListQueryIDSelector",function(a){return b=a()});return{reportsListStore:a,manageReportListQueryID:b}},shouldCheckManageReportsTableLoadingState:function(a){return[c("AdsReportBuilderManageReportsTableRenderActionFlux").actionType,c("AdsPEReportBuilderTableInitActionFlux").actionType].includes(a.type)},detectTableOrChartLoaded:function(a){return a.type===c("AdsReportingViewLoadedActionFlux").actionType&&a.viewSection===c("AdsReportingViewSectionType").BODY},detectTableOrChartAbandoned:function(a){return k[a.type]?!1:m.isTableOrChartChangeOrAccountSwitchOnLoad(a)||m.isViewOrNavStoreChanged()},isTableOrChartChangeOrAccountSwitchOnLoad:function(a){if(m.TABLE_OR_CHART_CHANGE_EVENT[a.type])return!0;return a.type===c("AdsRBSwitchBusinessAccountActionFlux").actionType?!0:!1},getSummaryCachedData:function(){var a=m.getTableStateRelatedStores(),b=a.viewStore;a=a.listStore;if(!b||!a)return null;(i||(i=c("AdsDataAtom"))).waitFor([b.getDispatchToken(),a.getDispatchToken()]);b=b.get();return a.getSummaryCachedByView(b)},isViewOrNavStoreChanged:function(){var a=m.getTableStateRelatedStores();a=a.viewStore;if(!a)return!1;(i||(i=c("AdsDataAtom"))).waitFor([a.getDispatchToken(),c("AdsPENavigationProvider").toFluxStore().getDispatchToken()]);return a.hasChanged()||c("AdsPENavigationProvider").toFluxStore().hasChanged()},isNavStoreChanged:function(){(i||(i=c("AdsDataAtom"))).waitFor([c("AdsPENavigationProvider").toFluxStore().getDispatchToken()]);return c("AdsPENavigationProvider").toFluxStore().hasChanged()},getViewFromCreateReportAction:function(a){var b=null;a=a.reportSpecs;a&&(b=d("AdsReportBuilderReportSpecUtil").getViewSpecFromReportSpec(c("nullthrows")(c("first")(a))));return b},getViewReportPageLogData:function(a,b){return m.getViewReportPageData(a,b)},getViewReportPageData:function(a,b,c){c===void 0&&(c={});var d={},e={},f,g;if(c.view)f=c.view;else{c=m.getTableStateRelatedStores();var h=c.viewStore;c=c.reportSettings;h&&(f=h.get());c&&(g=c)}f&&(d=m.getViewLogData(f));g&&(e=m.getReportSettingsLogData(g));h=m.getTriggerActionLogData(a,b);c=m.getEventSourceLogData(a);b=m.getViewportDimensionLogData();return babelHelpers["extends"]({},h,d,e,c,b)},getViewportDimensionLogData:function(){var a=c("getViewportDimensions")(),b=a.width;a=a.height;return{window_width:b,window_height:a}},getEventSourceLogData:function(a){var b=a.eventSource!=null&&a.eventSource!==""?{event_source:a.eventSource}:m.getEventSourceFromCurrentURI();if(a.type===c("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType){var d=a.data;if(d){var e=d.context;d=d.changedParamKeys;var f;e.reportBuilderEventSource?f=e.reportBuilderEventSource:e.isInit===!0&&(f=d.show_setting_dialog?c("AdsReportBuilderEntryPointEventSources").CLICK_SCHEDULE_REPORT_FROM_AM_EXPORT:c("AdsReportBuilderEntryPointEventSources").FROM_URL);if(f){b=(e={},e.event_source=f,e)}}}else if(a.type===c("AdsInterfacesRouteDataFetchedDataActionFlux").actionType){d=new(j||(j=c("URI")))(window.location.href).getQueryData();e=d.event_source?d.event_source:c("AdsReportBuilderEntryPointEventSources").FROM_URL;b=(a={},a.event_source=e,a)}return b},getEventSourceFromCurrentURI:function(){var a=new(j||(j=c("URI")))(window.location.href).getQueryData();a=a.event_source?a.event_source:"";return{event_source:a}},getTriggerActionLogData:function(a,b){return a={scenario_start_trigger_action:a.type},a.scenario_end_trigger_action=b.type,a},getViewLogData:function(a){var b,c,e,f,g=a.get("timeRange");b=((g==null?void 0:(b=g.interval)==null?void 0:b.start)||"").toString();c=((g==null?void 0:(c=g.interval)==null?void 0:c.end)||"").toString();var h=a.get("comparisonTimeRange");e=((h==null?void 0:(e=h.interval)==null?void 0:e.start)||"").toString();f=((h==null?void 0:(f=h.interval)==null?void 0:f.end)||"").toString();var i=a.get("filter");i=i?i.getValues().map(function(a){return a.toString()}):[];return i={current_attribution_windows:a.get("attributionWindow"),current_insights_table_breakdowns:a.get("dimensions"),current_insights_table_sort:a.get("sort").map(function(a){return a.field}),current_insights_table_user_columns:a.get("fields"),current_user_filter:i,current_insights_table_level:JSON.stringify(a.get("lockedDimensions")),current_date_interval_end:c,current_date_interval_preset:g.preset,current_date_interval_start:b,current_comparison_date_interval_start:e,current_comparison_date_interval_end:f,current_insights_dataviz_section:h==null?void 0:h.preset,current_report_id:m.getSelectedReportID(),business_id_explicit:d("BizSiteIdentifier.brands").getBusinessID()||"",current_target_currency:a.get("currency"),current_view_type:a.get("viewType")},i.new_value=a.get("limit").toString(),i},getReportSettingsLogData:function(a){return a.ready===!1?{}:{current_action_ads_count:a.selectedAccounts.length,loaded_count:a.totalAccountsNum}},getTableLoadingDataWithSummary:function(a,b){a=m.getViewReportPageData(a,b);b=m.getSummaryCachedData();b=b&&b.getValue();b=b&&b.total!=null&&b.total!==0?{current_action_ads_count:b.total}:{};return babelHelpers["extends"]({},a,b)},getExportData:function(a,b){var d,e=m.getViewFromCreateReportAction(a);e&&(d=m.getViewLogData(e));e=m.getTriggerActionLogData(a,b);var f=m.getEventSourceLogData(a);return babelHelpers["extends"]({},e,d,f,(e={},e.previous_report_id=b.reportRunID,e.export_format=a.format,e.message=b.error!=null?c("adsFormatErrorMessage")(b.error):null,e))},getExportHistoryData:function(a,b){var e=m.getTriggerActionLogData(a,b);return babelHelpers["extends"]({},e,{previous_report_id:a.exportReportID,business_id_explicit:d("BizSiteIdentifier.brands").getBusinessID()||"",message:c("adsFormatErrorMessage")(b.error)})},getScope:function(){var a={scopeType:null,scopeID:null},b;c("ifRequired")("adsReportBuilderScopeInfoSelector",function(a){return b=a},c("emptyFunction"));if(!b)return a;if((i||(i=c("AdsDataAtom"))).isDispatching())try{(i||(i=c("AdsDataAtom"))).waitFor([].concat((h||(h=d("AdsSelectorUtils"))).getStoreDispatchTokens([b])))}catch(b){return a}var e=b();if(e.hasValue()&&!e.hasError()){e=e.getValueEnforcing();return{scopeType:e.scopeType,scopeID:e.id}}return a},getReportsListDataLoader:function(){var a=m.getScope();a=a.scopeID;var b=m.getManageReportsRelatedStores(),d=b.reportsListStore;b=b.manageReportListQueryID;if(a==null||d==null||b==null)return null;(i||(i=c("AdsDataAtom"))).waitFor([d].map(function(a){return a.getDispatchToken()}));return d.get(b)},detectManageReportsTableSucceeded:function(a){if(!m.shouldCheckManageReportsTableLoadingState(a))return!1;a=m.getReportsListDataLoader();var b=!1;if(!!a&&a.hasValue()){var c=a.getValueEnforcing();c.isLoadingMoreRows&&(b=!0)}return a!=null&&a.hasValue()&&!a.hasError()&&!b},getManageReportData:function(a,b){var c=typeof b.type==="string"?b.type:"",e=m.getViewportDimensionLogData();return babelHelpers["extends"]({},e,{scenario_start_trigger_action:a.type,scenario_end_trigger_action:c,new_value:m.getCurrentReportIDForManageReport(a,b),old_value:m.getPreviousReportIDForManageReport(a),business_id:d("BizSiteIdentifier.brands").getBusinessID()||"",event_source:(e=a.eventSource)!=null?e:""})},getLandingManageReportPageData:function(a,b){var e=m.getReportsListDataLoader(),f={};if(e!=null&&e.hasValue()&&!e.hasError()){e=e.getValueEnforcing();e=e.reportIDs;f={loaded_count:e.length}}e=c("AdsReportBuilderManageReportsFilterSetProvider")();e=e.filterSet;e=e?e.getValues().map(function(a){return a.toString()}):[];var g=m.getViewportDimensionLogData();return babelHelpers["extends"]((a={scenario_start_trigger_action:a.type,scenario_end_trigger_action:b.type,business_id:d("BizSiteIdentifier.brands").getBusinessID()||""},a.current_user_filter=e,a),f,m.getEventSourceFromCurrentURI(),g)},getReportSettingsData:function(a,b){return{scenario_start_trigger_action:a.type,scenario_end_trigger_action:b.type,item_count:m.getTotalAdAccountsNum(),current_action_ads_count:b.selectedAccountNum}},getTotalAdAccountsNum:function(){if(d("BizSiteIdentifier.brands").getBusinessID()==null)return 1;var a;c("ifRequired")("adsReportBuilderFullAccountListSelector",function(b){return a=b},c("emptyFunction"));if(a){var b=a().fullAccountList;return b?b.length:0}return 0},getSwitchViewTypeData:function(a,b){b=m.getViewReportPageData(a,b);return babelHelpers["extends"]({},b,{previous_view_type:a.previousViewType,loaded_count:a.previousBreakdownNum,item_count:a.previousMetricNum})},getTimeRangeChangeData:function(a,b){b=m.getViewReportPageData(a,b);return babelHelpers["extends"]({},b,{previous_date_interval_end:(b=a.previousTimeRange)==null?void 0:(b=b.interval)==null?void 0:(b=b.end)==null?void 0:b.toString(),previous_date_interval_preset:(b=a.previousTimeRange)==null?void 0:b.preset,previous_date_interval_start:(b=a.previousTimeRange)==null?void 0:(b=b.interval)==null?void 0:(b=b.start)==null?void 0:b.toString(),previous_comparison_date_interval_end:(b=a.previousTimeRange)==null?void 0:(b=b.compareInterval)==null?void 0:(b=b.end)==null?void 0:b.toString(),previous_comparison_date_interval_start:(b=a.previousTimeRange)==null?void 0:(b=b.compareInterval)==null?void 0:(b=b.start)==null?void 0:b.toString(),previous_insights_dataviz_section:(b=a.previousTimeRange)==null?void 0:b.comparePreset})}};e=m;g["default"]=e}),98);
-----
AdsPESettingsStore",["AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsDataAtom","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsPECreateSettingsDataManager","AdsPEFilterUIStateSelectors","AdsPEManageCampaignsConstants","AdsPESettingsDataManager","FluxReduceStore","adsPENavStateSelector","isFalsey"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("AdsPEFilterUIStateSelectors").getFilterSet.getStores();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,b)||this;b.$AdsPESettingsStore$p_1=new Set();return b}var e=b.prototype;e.getInitialState=function(){return{}};e.__getActionTypes=function(){return[d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType]};e.__getDependencyStores=function(){return[c("AdsAccountStore")].concat(i,c("adsPENavStateSelector").getStores())};e.reduce=function(a,b){b=b.action;this.getDispatcher().waitFor(this.getDependencyDispatchTokens());if(i.filter(function(a){return a.hasChanged()}).length){var e=c("adsPENavStateSelector")();d("AdsPEManageCampaignsConstants").MANAGE_CAMPAIGNS_TOOLS.includes(e.tool)&&this.$AdsPESettingsStore$p_2()}switch(b.type){case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:e=b.data.changedParamKeys;(e.act||e.business_id)&&this.$AdsPESettingsStore$p_3();return a;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsPESettingsStore$p_3();return a;default:return a}};e.$AdsPESettingsStore$p_3=function(){var a=c("AdsAccountStore").getSelectedAccount().getValue();if(c("isFalsey")(a))return;var b=a.account_id;a=a.user_settings;if(!b)return;if(!a){d("AdsPECreateSettingsDataManager").createUserSettings(b);return}if(!this.$AdsPESettingsStore$p_1.has(b)){a=a.id;c("AdsPESettingsDataManager").loadFilters(a);this.$AdsPESettingsStore$p_1.add(b)}};e.$AdsPESettingsStore$p_2=function(){var a=c("AdsAccountStore").getSelectedAccountID();if(a&&this.$AdsPESettingsStore$p_1.has(a)){var b=d("AdsPEFilterUIStateSelectors").getFilterSet(),e;b==null?e=[]:e=b.toAPI();c("AdsPESettingsDataManager").updateLastUsedFilterSet(a,e)}};return b}(c("FluxReduceStore"));a.__moduleID=f.id;b=new a(h||(h=c("AdsDataAtom")));g["default"]=b}),98);
-----
AdsCFLinkClicksCampaignPlugin",["AdsAPIObjectives","AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsBwIUtils","AdsBwPCampaignMutationUtils","AdsCFCampaignUtils","AdsCFDefaultCampaignPlugin","AdsContextualDiscoveryAdsUtils","AdsMutators","AdsPlacementEligibilityInfoUtils","AdsTargetingAccountControlInfoLoadedActionFlux","AdsTargetingAccountControlInfoUtils","Bootloader","adsAdvertiserProfileMessageMarketingActivationStatusSelector","adsUEditorIsAccountEligibleForAdsDefaultOnSelector","applyMessageMarketingDefaultsCampaignMutator","areAdObjectsRecordsMessageMarketingCompatible"],(function(a,b,c,d,e,f,g){"use strict";a=babelHelpers["extends"]({},c("AdsCFDefaultCampaignPlugin"),{type:"campaign",key:"link-clicks",pivots:{objective:c("AdsAPIObjectives").LINK_CLICKS},getAsyncDefaultSpecGenerationActions:function(){return new Set([d("AdsAccountBatchLoadedDataActionFlux").actionType,c("AdsTargetingAccountControlInfoLoadedActionFlux").actionType])},calculateDependencies:function(a,b){var e,f;e=Array.from(((e=b==null?void 0:b.special_ad_categories)!=null?e:[]).values());var g=c("AdsAccountStore").getSelectedAccount().getValue();a=d("AdsPlacementEligibilityInfoUtils").buildEligibilityInformationFromCampaignSpec(a,b.buying_type,g==null?void 0:g.capabilities,b.objective,void 0,void 0,(a=a.promoted_object)==null?void 0:a.object_store_url,void 0,void 0,g,b.buy_with_integration_partner,b.buy_with_prime_type,void 0,(a=b.special_ad_categories)==null?void 0:a.toArray(),b.is_opted_into_experiments,b.campaign_group_creation_source);var h=c("adsUEditorIsAccountEligibleForAdsDefaultOnSelector")()==null?void 0:c("adsUEditorIsAccountEligibleForAdsDefaultOnSelector")()();f=(f=c("adsAdvertiserProfileMessageMarketingActivationStatusSelector")().getValue())!=null?f:!1;var i=null,j=null,k=null;f&&c("Bootloader").loadModules(["adsCampaignMessageMarketingLiquidityDynamicDefaultsSelector"],function(a){a=a();i=a.messageMarketingDefaultWACSLO;j=a.messageMarketingWABAListLO;k=a.messageMarketingDefaultAudience},"AdsCFLinkClicksCampaignPlugin");return{account:g,campaignGroup:b,eligibilityInfo:a,regulatedCategories:e,isMultiAdsDefaultOptInEligibleLoadObject:h,isMessageMarketingActivated:f,messageMarketingDefaultWACSLO:i,messageMarketingWABAListLO:j,messageMarketingDefaultAudience:k}},mergeDependenciesToCampaign:function(a,b){var e=b.account,f=b.campaignGroup,g=b.eligibilityInfo,h=b.isMultiAdsDefaultOptInEligibleLoadObject,i=b.regulatedCategories,j=b.isMessageMarketingActivated,k=b.messageMarketingDefaultWACSLO,l=b.messageMarketingWABAListLO,m=b.messageMarketingDefaultAudience;return d("AdsMutators").chain(function(a){return d("AdsCFCampaignUtils").maybeApplyAdvantageAudienceCampaignMutations(a,i,f.buying_type)},function(a){return!!e&&d("AdsBwIUtils").isBwICampaignGroup(f)?d("AdsBwPCampaignMutationUtils").enableBwPForTraffic(a,f,e,g):a},function(a){return d("AdsTargetingAccountControlInfoUtils").maybeApplyDefaultBusinessConstraints(e,a,i)},function(a){return d("AdsContextualDiscoveryAdsUtils").maybeCampaignDefaultOptIn(a,h,e)},function(a){return j&&c("areAdObjectsRecordsMessageMarketingCompatible")(f,a)?c("applyMessageMarketingDefaultsCampaignMutator")(a,g,k,l,m):a})(a)}});b=a;g["default"]=b}),98);
-----
AdsPEFilterAndSortReducer",["ActionFilterUtils","AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsAdgroupSelectionClearDataActionFlux","AdsCampaignGroupSelectionClearDataActionFlux","AdsCampaignSelectionClearDataActionFlux","AdsDataAtom","AdsDraftDraftPublishCompletedDataActionFlux","AdsDraftSelectionStore","AdsGenericFilterSetUtil","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsMgmtCurrentLevelSortInfoSelector","AdsMgmtSelectedAncestorIDsSelectors","AdsNavigationChangeNavigationStateDataActionFlux","AdsPEFilterAppliedActionFlux","AdsPEFilterChangedActionFlux","AdsPEFilterLiveDataManager","AdsPEFilterLoadErrorActionFlux","AdsPEFilterUIStateSelectors","AdsPEFluxAdTableSetSortKeyActionFlux","AdsPEFluxCampaignGroupTableSetSortKeyActionFlux","AdsPEFluxCampaignTableSetSortKeyActionFlux","AdsPERefreshTableViewActionFlux","AdsPESortLiveUtils","AdsPerfInteractionUtil","AdsPerfInteractionsController","AdsRevertAdObjectsDataActionFlux","AdsRevertSelectedAdObjectsDataActionFlux","Bootloader","adsMgmtCurrentLevelSelector","adsMgmtDraftErrorsFilterSelector","adsMgmtLoadIDRequestViewSpecParamsSelector","adsMgmtNeedToLoadAllFilteredIDsSelector","adsMgmtPagingDataSelector","adsPEManageAdsSectionSelector","hasDateChangeRelatedFilter","hasLabelFilter","isFalsey"],(function(a,b,c,d,e,f,g){"use strict";var h,i=[].concat(d("AdsPEFilterUIStateSelectors").getFilterSet.getStores()),j=Array.from(new Set(c("adsMgmtPagingDataSelector").getStores())),k=[].concat(d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtRelevantSelectionsMapSelector.getStores(),d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtSelectedAncestorIDsSelector.getStores());a=[c("AdsAccountStore"),c("AdsDraftSelectionStore")].concat(d("AdsPEFilterUIStateSelectors").getFilterSet.getStores(),j,k,d("AdsMgmtCurrentLevelSortInfoSelector").adsMgmtCurrentLevelSortInfoSelector.getStores(),c("adsPEManageAdsSectionSelector").getStores(),c("adsMgmtLoadIDRequestViewSpecParamsSelector").getStores(),c("adsMgmtNeedToLoadAllFilteredIDsSelector").getStores(),c("adsMgmtCurrentLevelSelector").getStores(),c("adsMgmtDraftErrorsFilterSelector").getStores());var l=a.map(function(a){return a&&a.getDispatchToken()}),m=function(a){return!!a&&c("hasLabelFilter")(a)},n=function(){return k.some(function(a){return a.hasChanged()})},o=function(){var a=c("adsMgmtCurrentLevelSelector")();if(!a)return!1;var b=c("adsMgmtLoadIDRequestViewSpecParamsSelector")();b=b.sortInfoMap;return!(d("AdsPESortLiveUtils").isSortByError(b[a])||d("AdsPESortLiveUtils").isSortByChanged(b[a]))},p=function(a){if(!a.data.changedParamKeys.date)return!1;a=d("AdsMgmtCurrentLevelSortInfoSelector").adsMgmtCurrentLevelSortInfoSelector();return a&&d("AdsPESortLiveUtils").isDateChangeRelatedSort(a)?!0:c("hasDateChangeRelatedFilter")(d("AdsPEFilterUIStateSelectors").getFilterSet())},q=function(a){var b=function(a){return a==null?void 0:a.hasChanged()};if(i.some(b)&&!d("AdsGenericFilterSetUtil").completeMatchesExactly(a.filterSet,d("AdsPEFilterUIStateSelectors").getFilterSet()))return!0;if(c("adsPEManageAdsSectionSelector").getStores().some(b))return!0;if(n())return!0;if(d("AdsMgmtCurrentLevelSortInfoSelector").SORT_STORES.some(b))return!0;if(c("AdsDraftSelectionStore").hasChanged()&&r(a))return!0;if(c("AdsAccountStore").hasChanged()&&a.accountID!==c("AdsAccountStore").getSelectedAccountID())return!0;return j.some(b)&&s(a)?!0:!1},r=function(a){var b=c("AdsAccountStore").getSelectedAccountID();if(b==null)return!1;b=c("AdsDraftSelectionStore").getCached(b);if(!b.hasValue())return!1;a=a.draftID;return a==null?!0:b.getValue()!==a.getValue()},s=function(a){var b=c("adsMgmtCurrentLevelSelector")();if(!b)return!1;var d=c("adsMgmtPagingDataSelector")(b);return a.currentPageByLevel[b]!==d.currentPage},t=function(a,b,e,f){f===void 0&&(f=!1);a=a;var g=c("adsMgmtCurrentLevelSelector")(),h=c("AdsAccountStore").getSelectedAccountID();if(c("isFalsey")(h)||!g||g==="topline")return a;var i=c("adsMgmtLoadIDRequestViewSpecParamsSelector")(),j=i.sortInfoMap,k=i.dateTimeRange,l=i.datePreset,m=i.comparisonDateTimeRange,n=i.timezoneID;a=a.set("accountID",h);var o=d("AdsPEFilterUIStateSelectors").getFilterSet();a=a.set("filterSet",o);var p=d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtRelevantSelectionsMapSelector(g),q=c("AdsDraftSelectionStore").getCached(h);a=a.set("draftID",q);var r=c("adsMgmtPagingDataSelector")(g);a=a.set("currentPageByLevel",babelHelpers["extends"]({},a.currentPageByLevel,(i={},i[g]=r.currentPage,i)));a=a.set("areIDsLoading",!0);b!==d("AdsNavigationChangeNavigationStateDataActionFlux").actionType&&(a=a.set("areCountsLoading",!0));var s=o,t=c("AdsAccountStore").getSelectedAccount().getValue(),u=function(a){c("AdsPEFilterLiveDataManager").loadIDsForFilterSet(h,a,p,j,q,g,r,k,n,m,l,e,f)};if(s!=null&&d("ActionFilterUtils").isDraftErrorFilter(s)){i=c("adsMgmtDraftErrorsFilterSelector")({adAccount:t,filterSet:o});s=d("ActionFilterUtils").generateAdditionalActionFilter(s,i)}s!=null&&d("ActionFilterUtils").isRecommendationFilter(s)?c("Bootloader").loadModules(["adsMgmtRecommendationsFilterSelector"],function(a){a=a({adAccount:t,filterSet:o});a.match({error:function(){s=d("ActionFilterUtils").generateAdditionalActionFilter(s,[]),u(s)},loading:function(){s=d("ActionFilterUtils").generateAdditionalActionFilter(s,[]),u(s)},loaded:function(a){s=d("ActionFilterUtils").generateAdditionalActionFilter(s,a),u(s)}})},"AdsPEFilterAndSortReducer"):u(s);return a};b=function(a,b){var e;a=a;(h||(h=c("AdsDataAtom"))).waitFor(l);switch(b.type){case d("AdsPEFilterAppliedActionFlux").actionType:a=a.set("areCountsLoading",!1).set("areIDsLoading",!1).set("error",null);break;case d("AdsPEFilterLoadErrorActionFlux").actionType:a=a.set("areCountsLoading",!1).set("areIDsLoading",!1).set("error",b.error);break;case d("AdsDraftDraftPublishCompletedDataActionFlux").actionType:((e=(e=d("AdsPerfInteractionUtil").getTracePolicy())==null?void 0:e.indexOf("edit"))!=null?e:-1)!==-1&&c("AdsPerfInteractionsController").startInteraction("am.editor.reload_in_same_level",f.id);a=t(a,b.type,void 0,!0);break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:case d("AdsRevertAdObjectsDataActionFlux").actionType:case d("AdsRevertSelectedAdObjectsDataActionFlux").actionType:case d("AdsAdgroupSelectionClearDataActionFlux").actionType:case d("AdsCampaignSelectionClearDataActionFlux").actionType:case d("AdsCampaignGroupSelectionClearDataActionFlux").actionType:a=t(a,b.type);break;case d("AdsPEFilterChangedActionFlux").actionType:break;case d("AdsPEFluxAdTableSetSortKeyActionFlux").actionType:case d("AdsPEFluxCampaignTableSetSortKeyActionFlux").actionType:case d("AdsPEFluxCampaignGroupTableSetSortKeyActionFlux").actionType:o()&&q(a)&&(a=t(a,b.type));break;case d("AdsPERefreshTableViewActionFlux").actionType:(b.allLevels||b.adLevel===c("adsMgmtCurrentLevelSelector")())&&(a=t(a,b.type));break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:(p(b)||q(a)||c("adsMgmtNeedToLoadAllFilteredIDsSelector")())&&(a=t(a,b.type,b.data.changedParamKeys,m(b.data.params.filter_set)));break;default:q(a)&&(a=t(a,b.type))}return a};g.reduce=b}),98);
-----
AdsAccountStoreOld",["invariant","AdsAMAccountAcceptedTosAddActionFlux","AdsAMAccountInitActionFlux","AdsAccountAddCapabilitiesDataActionFlux","AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountDataDispatcher","AdsAccountDataLoader","AdsAccountInitDataActionFlux","AdsAccountInvalidateDataActionFlux","AdsAccountListInvalidateDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountSettingsCreateFinishedDataActionFlux","AdsAccountUtils","AdsAccountViewerPermissionsLoadErrorDataActionFlux","AdsAccountViewerPermissionsLoadedDataActionFlux","AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux","AdsApplicationUtils","AdsCachedLoadState_LEGACY","AdsDSASetDefaultBeneficiaryPayorInfoActionFlux","AdsDataAtom","AdsEngagementAudienceUILogger","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsLoadStateUtils_LEGACY","AdsLoadState_LEGACY","AdsPERefreshTableViewActionFlux","AdsPEUploadShowPreviewActionFlux","AdsPixelUIEnvironments","ApiClient","CurrentAdAccount","CurrentAdAccountInitialData","CurrentBusinessUser","DateTime","DateUtil","FluxStore","LoadObject","URI","adsCreateSelector","adsCreateStoreSelector","gkx","goURI","ifRequired","immutable","isFalsey","promiseDone","vulture"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k="US",l=1;a=0;var m=c("DateTime").fromLegacyArgs(c("DateUtil").FACEBOOK_EPOCH*1e3,a).toISOString();b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this,i||(i=c("AdsDataAtom")))||this;b.getSelectedAccountID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID}):b.$AdsAccountStoreClassOld$p_6()},{name:f.id});b.getSelectedAccountIDX=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){if(d("AdsApplicationUtils").isFAME()){var a=c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID});!a&&h(0,5919,a);return a}a=b.$AdsAccountStoreClassOld$p_6();!a&&h(0,5919,a);return a},{name:f.id});b.getSelectedBusinessID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.$AdsAccountStoreClassOld$p_11()},{name:f.id});b.getCreatedTime=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().created_time;return a?a:m},{name:f.id});b.getTimezoneID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().timezone_id;return a?a:l},{name:f.id});b.getTosAccepted=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.__getSelectedAccount().tos_accepted},{name:f.id});b.getSelectedAccount=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a||c("LoadObject").empty()})||c("LoadObject").empty():d("AdsLoadStateUtils_LEGACY").toLoadObject(b.__getSelectedAccount())},{name:f.id});b.getSelectedAccountCapabilities=c("adsCreateSelector")([b.getSelectedAccount],function(a){return((a=a.getValue())==null?void 0:a.capabilities)||[]},{name:f.id});b.$AdsAccountStoreClassOld$p_2={};b.$AdsAccountStoreClassOld$p_1=new Map();b.$AdsAccountStoreClassOld$p_3=!1;b.$AdsAccountStoreClassOld$p_4={hasMisMatches:!1,accountID:null};b.$AdsAccountStoreClassOld$p_5=new Map();return b}var e=b.prototype;e.__getActionTypes=function(){return[d("AdsAccountInitDataActionFlux").actionType,d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsAccountBatchLoadErrorDataActionFlux").actionType,d("AdsAccountAddCapabilitiesDataActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType,d("AdsAccountSelectDataActionFlux").actionType,d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType,d("AdsAccountInvalidateDataActionFlux").actionType,d("AdsAccountListInvalidateDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType,d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType,d("AdsAMAccountAcceptedTosAddActionFlux").actionType,d("AdsAMAccountInitActionFlux").actionType,d("AdsPERefreshTableViewActionFlux").actionType,d("AdsPEUploadShowPreviewActionFlux").actionType,d("AdsDSASetDefaultBeneficiaryPayorInfoActionFlux").actionType]};e.canUpdateCurrency=function(){var a=this.$AdsAccountStoreClassOld$p_6();if(a==null)return!1;a=this.getCached(a).getValue();if(c("isFalsey")(a))return!1;var b=c("AdsAccountUtils").hasCapability(a,"CAN_UPDATE_CURRENCY");a=c("AdsAccountUtils").isPaymentInfoRequired(a);return b&&a};e.get=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();return!this.$AdsAccountStoreClassOld$p_7(a)?this.getSelectedAccount():d("AdsLoadStateUtils_LEGACY").toLoadObject(this.$AdsAccountStoreClassOld$p_8(a))};e.$AdsAccountStoreClassOld$p_8=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return d("AdsLoadStateUtils_LEGACY").fromLoadObject(b.get(a))})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var b=this.$AdsAccountStoreClassOld$p_1.get(a);b||(b=c("AdsCachedLoadState_LEGACY").LOADING,this.$AdsAccountStoreClassOld$p_1.set(a,b),c("AdsAccountDataDispatcher").loadAccountData(a));return b};e.getCached=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();var b=this.$AdsAccountStoreClassOld$p_1.get(a);b||(b=c("AdsCachedLoadState_LEGACY").NOT_LOADED);return d("AdsLoadStateUtils_LEGACY").toLoadObject(b)};e.$AdsAccountStoreClassOld$p_9=function(){var a=this.$AdsAccountStoreClassOld$p_6();if(!a)return;c("AdsAccountDataDispatcher").loadAccountData(a);return};e.getAll=function(a){var b=this,d=new Map();a.forEach(function(a){d.set(a,b.get(a))});return c("immutable").Map(d)};e.getAllCached=function(a){var b=this,e=new Map();a.forEach(function(a){var f=b.$AdsAccountStoreClassOld$p_1.get(a);f||(f=c("AdsCachedLoadState_LEGACY").NOT_LOADED);e.set(a,d("AdsLoadStateUtils_LEGACY").toLoadObject(f))});return c("immutable").Map(e)};e.getByFields=function(a,b){if(c("gkx")("3848"))return this.get(a);var e=this.$AdsAccountStoreClassOld$p_1.get(a);if(!e){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassOld$p_1.set(a,c("AdsCachedLoadState_LEGACY").LOADING);return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING)}if(e.loadState===c("AdsLoadState_LEGACY").ERROR)return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").ERROR);if(e.loadState===c("AdsLoadState_LEGACY").LOADING)return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING);var f=b.some(function(a){return e[a]===null||e[a]===void 0});if(f){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassOld$p_1.set(a,babelHelpers["extends"]({},e,{loadState:c("AdsLoadState_LEGACY").LOADING}));return d("AdsLoadStateUtils_LEGACY").toLoadObject(c("AdsCachedLoadState_LEGACY").LOADING)}var g={};b.forEach(function(a){g[a]=e[a]});g.loadState=c("AdsLoadState_LEGACY").LOADED;return d("AdsLoadStateUtils_LEGACY").toLoadObject(g)};e.getAllByFields=function(a,b){var d=this;if(c("gkx")("3848"))return this.getAll(a);var e=new Map();a.forEach(function(a){e.set(a,d.getByFields(a,b))});return c("immutable").Map(e)};e.$AdsAccountStoreClassOld$p_6=function(){var a;if(!this.$AdsAccountStoreClassOld$p_10())return null;a=(a=c("CurrentAdAccount").getID())!=null?a:null;if(this.$AdsAccountStoreClassOld$p_4.hasMisMatches){var b;a=(b=this.$AdsAccountStoreClassOld$p_4.accountID)!=null?b:null}b=a===c("CurrentAdAccount").LOGGED_OUT?null:a;return b};e.$AdsAccountStoreClassOld$p_11=function(){var a;return(a=c("CurrentBusinessUser").business_id)!=null?a:null};e.getTimezoneName=function(){var a=this.__getSelectedAccount().timezone_name;return a?a:""};e.getViewerPermissions=function(){var a=this.$AdsAccountStoreClassOld$p_6();if(a){this.$AdsAccountStoreClassOld$p_2[a]||(this.$AdsAccountStoreClassOld$p_2[a]=c("LoadObject").loading(),c("AdsAccountDataDispatcher").loadViewerPermissions(a));return this.$AdsAccountStoreClassOld$p_2[a]}return c("LoadObject").empty()};e.getViewerHasPermission=function(a){var b=this.getViewerPermissions();return b.hasValueWithoutError()&&Array.isArray(b.getValueEnforcing().data)&&b.getValueEnforcing().data.includes(a)};e.__getSelectedAccount=function(){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a!=null?d("AdsLoadStateUtils_LEGACY").fromLoadObject(a):null})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var a=this.$AdsAccountStoreClassOld$p_6();if(!a)return c("AdsCachedLoadState_LEGACY").NOT_LOADED;d("AdsApplicationUtils").isAdsReportViewingPath()&&c("vulture")("5QzYmBAVIEB");return this.$AdsAccountStoreClassOld$p_8(a)};e.toURLParams=function(){var a=this.$AdsAccountStoreClassOld$p_6();return!a?null:{act:a}};e.__onDispatch=function(a){a=a.action;var b=!1,e=this.$AdsAccountStoreClassOld$p_6();switch(a.actionType){case d("AdsAccountInitDataActionFlux").actionType:var f,g;f=(f=a.data.accountID)!=null?f:null;g=(g=(g=a.data.accountInfo.business)==null?void 0:g.id)!=null?g:null;var h=this.$AdsAccountStoreClassOld$p_11();if(g!==h){f=e!=null&&f!=null&&e===f;c("AdsAccountUtils").logBusinessAccountUpdatesMisMatched(h,g,"AdsAccountInit",f)}this.$AdsAccountStoreClassOld$p_12(a.data);b=!0;break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_13(a.accountID,a.account);b=!0;break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_14(a.accountID,a.error);b=!0;break;case d("AdsPEUploadShowPreviewActionFlux").actionType:a.didUpdateAccount&&this.$AdsAccountStoreClassOld$p_9();break;case d("AdsAccountAddCapabilitiesDataActionFlux").actionType:if(e!=null){h=this.__getSelectedAccount();this.$AdsAccountStoreClassOld$p_1.set(e,babelHelpers["extends"]({},h,{capabilities:h.capabilities.concat(a.capabilities)}));b=!0}break;case d("AdsPERefreshTableViewActionFlux").actionType:this.__invalidateAllErrors()&&(b=!0);break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:this.__invalidateAllErrors()&&(b=!0);g=a.data.changedParamKeys;if(g.act||g.business_id){f=a.data.params;if(!f.act&&f.tool==="REPORTING")this.$AdsAccountStoreClassOld$p_15(f.business_id,f.act);else if(f.act)this.$AdsAccountStoreClassOld$p_16(f.act,f.business_id);else break;b=!0}break;case d("AdsAccountSelectDataActionFlux").actionType:if(d("AdsApplicationUtils").isPowerEditor())break;!a.accountID?this.$AdsAccountStoreClassOld$p_15(a.businessID,a.accountID):this.$AdsAccountStoreClassOld$p_16(a.accountID,a.businessID);b=!0;break;case d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_17(a.accountID,a.settingsID);b=!0;break;case d("AdsAccountInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_18(a.id)&&(b=!0);break;case d("AdsAccountListInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_19(a.accounts)&&(b=!0);break;case d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_2[a.accountID]=c("LoadObject").withValue({data:a.data});b=!0;break;case d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassOld$p_2[a.accountID]=c("LoadObject").withError(new Error(a.data));b=!0;break;case d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType:c("AdsAccountDataDispatcher").handleAcceptMAIDeeplinkTOS(this.getSelectedAccountID());b=!0;break;case d("AdsAMAccountAcceptedTosAddActionFlux").actionType:if(e==null)break;h=this.$AdsAccountStoreClassOld$p_1.get(e);if(h==null)break;g=h.tos_accepted?h.tos_accepted:Object();g=babelHelpers["extends"]({},g,a.addedTOS);this.$AdsAccountStoreClassOld$p_1.set(e,babelHelpers["extends"]({},h,{tos_accepted:g}));b=!0;break;case d("AdsAMAccountInitActionFlux").actionType:f=a.account.account_id;this.$AdsAccountStoreClassOld$p_16(f,(h=a.account.business)==null?void 0:h.id);this.$AdsAccountStoreClassOld$p_13(f,a.account);b=!0;c("AdsAccountUtils").logAccID("flux");break;case d("AdsDSASetDefaultBeneficiaryPayorInfoActionFlux").actionType:g=a.accountID;h=this.$AdsAccountStoreClassOld$p_1.get(g);if(h==null)break;this.$AdsAccountStoreClassOld$p_1.set(g,babelHelpers["extends"]({},h,{default_dsa_beneficiary:a.defaultBeneficiary,default_dsa_payor:a.defaultPayor}));b=!0;break}b&&(c("ifRequired")("EventProfiler",function(a){e&&a.setCurrentAdAccountId(e)}),this.__emitChange())};e.$AdsAccountStoreClassOld$p_20=function(a,b){var d=this.$AdsAccountStoreClassOld$p_1.get(a);!d||d.loadState===c("AdsLoadState_LEGACY").LOADING?this.$AdsAccountStoreClassOld$p_1.set(a,b):this.$AdsAccountStoreClassOld$p_1.set(a,babelHelpers["extends"]({},d,b))};e.$AdsAccountStoreClassOld$p_13=function(a,b){var d=this.$AdsAccountStoreClassOld$p_1.get(a);d&&this.$AdsAccountStoreClassOld$p_1.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADED}));this.$AdsAccountStoreClassOld$p_20(a,babelHelpers["extends"]({},b,{loadState:c("AdsLoadState_LEGACY").LOADED}))};e.$AdsAccountStoreClassOld$p_14=function(a,b){this.$AdsAccountStoreClassOld$p_1.set(a,{loadState:c("AdsLoadState_LEGACY").ERROR,error:b})};e.$AdsAccountStoreClassOld$p_12=function(a){var b={},e=a.accountID;b=a.accountInfo;b.business_country_code=b.business_country_code||k;b.name=a.accountName;b.hasSuperRead=a.hasSuperRead;c("promiseDone")(d("AdsAccountDataLoader").postUserSettings(e));c("DateTime").setupTimezoneFallback(b.timezone_id,b.timezone_offset_hours_utc);d("AdsEngagementAudienceUILogger").setAppName(c("AdsPixelUIEnvironments").CM);b.loadState=c("AdsLoadState_LEGACY").LOADED;this.$AdsAccountStoreClassOld$p_20(e,b);c("AdsAccountUtils").logAccID("initAccountData")};e.$AdsAccountStoreClassOld$p_18=function(a){return this.$AdsAccountStoreClassOld$p_1.has(a)?this.$AdsAccountStoreClassOld$p_1["delete"](a):!1};e.__invalidateAllErrors=function(){var a=this,b=!1;this.$AdsAccountStoreClassOld$p_1.forEach(function(d,e){if(d.loadState===c("AdsLoadState_LEGACY").ERROR){d=a.$AdsAccountStoreClassOld$p_18(e);b=d||b}});return b};e.$AdsAccountStoreClassOld$p_19=function(a){var b=this,c=!1;a.forEach(function(a){c=c||b.$AdsAccountStoreClassOld$p_18(a);var d=b.$AdsAccountStoreClassOld$p_5.get(a);b.$AdsAccountStoreClassOld$p_5.set(a,d?d+1:1)});return c};e.$AdsAccountStoreClassOld$p_17=function(a,b){var d=this.$AdsAccountStoreClassOld$p_1.get(a);d!=null&&d.loadState===c("AdsLoadState_LEGACY").LOADED&&(d=babelHelpers["extends"]({},d,{user_settings:{id:b}}),this.$AdsAccountStoreClassOld$p_1.set(a,d))};e.$AdsAccountStoreClassOld$p_15=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld$p_21(a)){var e=this.$AdsAccountStoreClassOld$p_22(b,a);this.$AdsAccountStoreClassOld$p_4={hasMisMatches:e,accountID:b};e||this.$AdsAccountStoreClassOld$p_23(b,a);c("AdsAccountUtils").logAccID("selectBusiness")}};e.$AdsAccountStoreClassOld$p_16=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld$p_7(a)){var e=new(j||(j=c("URI")))(window.location.href);if(e.getPath().includes("billing_hub"))return;e=this.$AdsAccountStoreClassOld$p_22(a,b);this.$AdsAccountStoreClassOld$p_4={hasMisMatches:e,accountID:a};e||this.$AdsAccountStoreClassOld$p_23(a,b);c("AdsAccountUtils").logAccID("selectAccount")}};e.__setStoreStateTEST_ONLY_DO_NOT_USE_IN_PRODUCTION=function(a){var b=a.selectedAccountID,e=a.selectedBusinessID;a=a.accounts;c("CurrentAdAccountInitialData").AD_ACCOUNT_ID=b;var f=new Map();a.forEach(function(a,b){f.set(b,babelHelpers["extends"]({},a.getValueEnforcing(),{loadState:d("AdsLoadStateUtils_LEGACY").fromLoadObject(a).loadState}))});!d("AdsApplicationUtils").isFAME()&&(this.$AdsAccountStoreClassOld$p_7(b)||this.$AdsAccountStoreClassOld$p_21(e))&&(this.$AdsAccountStoreClassOld$p_4={hasMisMatches:!1,accountID:b});this.$AdsAccountStoreClassOld$p_1=f;c("AdsAccountUtils").logAccID("setStoreState")};e.$AdsAccountStoreClassOld$p_7=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassOld$p_6()};e.$AdsAccountStoreClassOld$p_10=function(){return c("ApiClient").getAccessToken()!=null||c("gkx")("21557")};e.$AdsAccountStoreClassOld$p_21=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassOld$p_11()};e.$AdsAccountStoreClassOld$p_22=function(a,b){var d=this.$AdsAccountStoreClassOld$p_6(),e=this.$AdsAccountStoreClassOld$p_11();a=(a=a)!=null?a:null;b=(b=b)!=null?b:null;var f=!0;try{var g=window.localStorage;if(g){var h=this.$AdsAccountStoreClassOld$p_24("curAccountID"),i=this.$AdsAccountStoreClassOld$p_24("requestedAccountID"),j=this.$AdsAccountStoreClassOld$p_24("curBusinessID"),k=this.$AdsAccountStoreClassOld$p_24("requestedBusinessID");f=h===d&&i===a&&j===e&&k===b;if(!f){g.setItem("curAccountID",(h=d)!=null?h:"none");g.setItem("requestedAccountID",(i=a)!=null?i:"none");g.setItem("curBusinessID",(j=e)!=null?j:"none");g.setItem("requestedBusinessID",(k=b)!=null?k:"none")}}}catch(a){f=!0}f&&(d!==a?c("AdsAccountUtils").logAdAccountUpdatesMisMatched(d,a,this.$AdsAccountStoreClassOld$p_10()):c("AdsAccountUtils").logBusinessAccountUpdatesMisMatched(e,b));return f};e.$AdsAccountStoreClassOld$p_24=function(a){var b=null;try{var c=window.localStorage;c&&(b=c.getItem(a),b=b==="none"?null:b)}catch(a){b=null}return b};e.$AdsAccountStoreClassOld$p_23=function(a,b){var d=new(j||(j=c("URI")))(window.location.href),e={};a!=null&&(e.act=a);b!=null&&(e.business_id=b);d.addQueryData(e);c("AdsAccountUtils").logMsgWhenAccountUpdates();c("goURI")(d)};return b}(c("FluxStore"));b.__moduleID=f.id;e=new b();g["default"]=e}),98);
-----
AdsAccountBatchLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ACCOUNT.BATCH_LOADED"}}),null);
-----
AdsExcelLoggerStore",["AdsAccountBatchLoadedDataActionFlux","AdsAccountListBatchLoadedDataActionFlux","AdsAccountListPartialLoadDataActionFlux","AdsAccountSelectDataActionFlux","AdsDataAtom","AdsDraftDraftCurrentDraftLoadErrorDataActionFlux","AdsExcelAddinLogLevel","AdsExcelAddinLoggerContextColumn","AdsExcelAdsaccountCustomlistUpdateCancelAndAppShowMainActionFlux","AdsExcelAdsaccountCustomlistVerifiedAndAppShowMainActionFlux","AdsExcelAdsavedreportBatchCreatedActionFlux","AdsExcelAdsavedreportBatchDeletedActionFlux","AdsExcelAdsavedreportBatchLoadedActionFlux","AdsExcelAdsavedreportBatchUpdatedActionFlux","AdsExcelAdsavedreportCreateBatchActionFlux","AdsExcelAdsavedreportDeleteBatchActionFlux","AdsExcelAdsavedreportDuplicateBatchActionFlux","AdsExcelAdsavedreportListPartialLoadActionFlux","AdsExcelAdsavedreportSaveAsTemplateBatchActionFlux","AdsExcelAdsavedreportUpdateBatchActionFlux","AdsExcelAppInitializedActionFlux","AdsExcelAppNewReportAndIncreaseSubsessionIdActionFlux","AdsExcelAppPrefetchAdsaccountsActionFlux","AdsExcelAppShowMainActionFlux","AdsExcelAppStateStore","AdsExcelClientEnvironment","AdsExcelErrorDismissActionFlux","AdsExcelLoginStore","AdsExcelNewReportWizardAccountsSelectedActionFlux","AdsExcelNewReportWizardCancelActionFlux","AdsExcelNewReportWizardConfirmActionFlux","AdsExcelNewReportWizardNextStepActionFlux","AdsExcelNewReportWizardPrevStepActionFlux","AdsExcelNewReportWizardReportSpecSelectedActionFlux","AdsExcelNotificationFeedbackSuccessAndAppShowMainActionFlux","AdsExcelOfficeJSErrors","AdsExcelReportRefreshAndIncreaseSubsessionIdActionFlux","AdsExcelSaveInternalSettingActionFlux","AdsExcelUserProfileStore","AdsExcelWorksheetStore","AdsExcelWorksheetWriteActionFlux","AdsInsightsExportCDNErrorDataActionFlux","AdsInsightsExportCancelActionFlux","AdsInsightsExportCreateActionFlux","AdsInsightsExportCreateErrorDataActionFlux","AdsInsightsExportCreatedDataActionFlux","AdsInsightsExportDownloadErrorDataActionFlux","AdsInsightsExportDownloadedDataActionFlux","AdsInsightsExportErrorDataActionFlux","AdsInsightsExportFetchErrorDataActionFlux","AdsInsightsExportFetchedDataActionFlux","FBExcelLogger","FBExcelLoggerEventCategories","FBJSON","FluxStore","adsFormatErrorMessage","first","immutable","last"],(function(a,b,c,d,e,f,g){"use strict";var h=c("immutable").Set([d("AdsExcelNewReportWizardCancelActionFlux").actionType,d("AdsExcelNewReportWizardConfirmActionFlux").actionType,d("AdsExcelNewReportWizardNextStepActionFlux").actionType,d("AdsExcelNewReportWizardPrevStepActionFlux").actionType,d("AdsExcelErrorDismissActionFlux").actionType,d("AdsExcelAppPrefetchAdsaccountsActionFlux").actionType,d("AdsDraftDraftCurrentDraftLoadErrorDataActionFlux").actionType]);a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.call(this,c("AdsDataAtom"))||this}var e=b.prototype;e.__onDispatch=function(a){var b;a=a.action;if(h.has(a.type))return;var e="error";if(Object.prototype.hasOwnProperty.call(a,e)){var f=a[e];e="name";if(Object.prototype.hasOwnProperty.call(f,e)){f=f[e];if(f===d("AdsExcelOfficeJSErrors").MSOFFICE_EXTENSION_ERROR_NAME)return}}e={};f=c("FBExcelLoggerEventCategories").FLUX_ACTION;switch(a.type){case d("AdsInsightsExportCreateActionFlux").actionType:e=(b={},b.ad_account_id_explicit=a.data.accountID,b[c("AdsExcelAddinLoggerContextColumn").INSIGHT_REPORT_SPEC]=a.data.asyncArgs,b);f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportCreatedDataActionFlux").actionType:e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data.reportRunID,b);f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportCancelActionFlux").actionType:if(a.data){e=(b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a.data,b)}f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportDownloadedDataActionFlux").actionType:if(a.data){e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data["export"].reportRunID,b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a.data,b)}f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportFetchedDataActionFlux").actionType:if(a.data){e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data["export"].reportRunID,b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a.data.data,b)}f=c("FBExcelLoggerEventCategories").INSIGHTS_API;break;case d("AdsInsightsExportErrorDataActionFlux").actionType:case d("AdsInsightsExportCreateErrorDataActionFlux").actionType:case d("AdsInsightsExportFetchErrorDataActionFlux").actionType:case d("AdsInsightsExportDownloadErrorDataActionFlux").actionType:case d("AdsInsightsExportCDNErrorDataActionFlux").actionType:e=(b={},b.ad_account_id_explicit=a.data["export"].accountID,b.report_run_id=a.data["export"].reportRunID,b.message=c("adsFormatErrorMessage")(a.data.error),b.page_uri=a.type===d("AdsInsightsExportErrorDataActionFlux").actionType?null:a.data.uri,b);f=c("FBExcelLoggerEventCategories").INSIGHTS_API_ERROR;break;case d("AdsExcelAppNewReportAndIncreaseSubsessionIdActionFlux").actionType:case d("AdsExcelReportRefreshAndIncreaseSubsessionIdActionFlux").actionType:c("FBExcelLogger").nextSubSession();break;default:e=this.$AdsExcelLoggerStore1({action:a}),f=Object.prototype.hasOwnProperty.call(a,"error")?c("FBExcelLoggerEventCategories").FLUX_ACTION_ERROR:c("FBExcelLoggerEventCategories").FLUX_ACTION}c("FBExcelLogger").logEnum(f,a.type,e)};e.$AdsExcelLoggerStore1=function(a){var b;a=a.action;if(Object.prototype.hasOwnProperty.call(a,"error"))return this.$AdsExcelLoggerStore2({action:a});switch(a.type){case d("AdsExcelAppInitializedActionFlux").actionType:return{excel_api_supported:d("AdsExcelClientEnvironment").getExcelAPISupported(),dialog_api_supported:d("AdsExcelClientEnvironment").getDialogAPISupported(),commands_api_supported:d("AdsExcelClientEnvironment").getCommandsAPISupported()};case d("AdsExcelAdsaccountCustomlistUpdateCancelAndAppShowMainActionFlux").actionType:case d("AdsExcelAdsaccountCustomlistVerifiedAndAppShowMainActionFlux").actionType:case d("AdsExcelAppShowMainActionFlux").actionType:case d("AdsExcelNotificationFeedbackSuccessAndAppShowMainActionFlux").actionType:return b={},b[c("AdsExcelAddinLoggerContextColumn").FAME_APP_STATUS]={appState:c("AdsExcelAppStateStore").getAppState(),enableDevConsole:c("AdsExcelAppStateStore").isDevConsoleEnabled(),loginState:c("AdsExcelLoginStore").getLoginState(),userProfile:c("AdsExcelUserProfileStore").getUserProfile(),isManagedWorksheet:c("AdsExcelWorksheetStore").getIsFameManagedWorksheet()},b;case d("AdsAccountBatchLoadedDataActionFlux").actionType:case d("AdsAccountSelectDataActionFlux").actionType:return b={},b.ad_account_id_explicit=a.accountID,b.object_ids=[a.accountID],b;case d("AdsAccountListPartialLoadDataActionFlux").actionType:case d("AdsAccountListBatchLoadedDataActionFlux").actionType:return b={},b.object_ids=a.accounts.map(function(a){return a.account_id}),b;case d("AdsExcelAdsavedreportCreateBatchActionFlux").actionType:case d("AdsExcelAdsavedreportBatchCreatedActionFlux").actionType:case d("AdsExcelAdsavedreportUpdateBatchActionFlux").actionType:case d("AdsExcelAdsavedreportBatchUpdatedActionFlux").actionType:case d("AdsExcelAdsavedreportBatchLoadedActionFlux").actionType:case d("AdsExcelAdsavedreportDuplicateBatchActionFlux").actionType:case d("AdsExcelAdsavedreportSaveAsTemplateBatchActionFlux").actionType:return b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={reports:a.reports},b;case d("AdsExcelAdsavedreportDeleteBatchActionFlux").actionType:case d("AdsExcelAdsavedreportBatchDeletedActionFlux").actionType:return b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={ids:a.ids},b;case d("AdsExcelAdsavedreportListPartialLoadActionFlux").actionType:return b={},b.object_ids=a.reports.map(function(a){return a.id}),b;case d("AdsExcelNewReportWizardAccountsSelectedActionFlux").actionType:return b={},b.object_ids=a.accounts,b;case d("AdsExcelNewReportWizardReportSpecSelectedActionFlux").actionType:return b={},b.object_ids=[a.reportSpecID],b;case d("AdsExcelSaveInternalSettingActionFlux").actionType:return b={},b.object_ids=a.adAccountIDs,b;case d("AdsExcelWorksheetWriteActionFlux").actionType:b=a.data;var e=a.exportKey,f=a.startingRow,g=a.worksheet,h=a.columnNames;if(Array.isArray(b)&&c("first")(b)!=null&&Array.isArray(c("first")(b))){var i;return i={},i[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={dataLength:b.length,dataRowLengths:b.map(function(a){return Array.isArray(a)?a.length:-1}),firstRow:c("first")(b),lastRow:c("last")(b),exportKey:e,startingRow:f,worksheet:g,columnNames:h},i}return i={},i[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]={data:b,exportKey:e,startingRow:f,worksheet:g,columnNames:h},i;default:return this.$AdsExcelLoggerStore3({action:a})}};e.$AdsExcelLoggerStore3=function(a){a=a.action;var b=c("AdsExcelAddinLogLevel").logFullFluxActionDetails;if(Object.prototype.hasOwnProperty.call(b,a.type)){return b={},b[c("AdsExcelAddinLoggerContextColumn").FLUX_ACTION_DETAILS]=a,b}return{}};e.$AdsExcelLoggerStore2=function(a){var b;a=a.action;var e=c("AdsExcelWorksheetStore").getAllWorksheets()||[];e=(b={},b[c("AdsExcelAddinLoggerContextColumn").WORKSHEET_INFO]=e.map(function(a){return d("FBJSON").stringify(c("AdsExcelWorksheetStore").getWorksheetSettings(a))}),b);b="";var f="",g="",h="error";if(Object.prototype.hasOwnProperty.call(a,h)){a=a[h];g=d("FBJSON").stringify(a);h="code";Object.prototype.hasOwnProperty.call(a,h)&&(b=a[h]);h="error_subcode";Object.prototype.hasOwnProperty.call(a,h)&&(f=a[h])}return babelHelpers["extends"]({},e,(a={},a.error_code=b,a.error_subcode=f,a.message=g,a))};return b}(c("FluxStore"));a.__moduleID=f.id;b=new a();g["default"]=b}),98);
-----
AdsAccountStoreNew",["invariant","AdsAMAccountAcceptedTosAddActionFlux","AdsAMAccountInitActionFlux","AdsAccountAddCapabilitiesDataActionFlux","AdsAccountAttributionSpecLoadSuccessDataActionFlux","AdsAccountAttributionSpecUpdateStartDataActionFlux","AdsAccountAttributionSpecUpdateSuccessDataActionFlux","AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountChangeAccountCountryDataActionFlux","AdsAccountChangeAccountCurrencyDataActionFlux","AdsAccountChangeAccountNameDataActionFlux","AdsAccountChangeAccountTimezoneIdDataActionFlux","AdsAccountDataDispatcher","AdsAccountDataLoader","AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux","AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux","AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux","AdsAccountGKsErrorActionFlux","AdsAccountGKsLoadedActionFlux","AdsAccountInitDataActionFlux","AdsAccountInvalidateDataActionFlux","AdsAccountListInvalidateDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountSettingsCreateFinishedDataActionFlux","AdsAccountSettingsUpdateStartDataActionFlux","AdsAccountUtils","AdsAccountViewerPermissionsLoadErrorDataActionFlux","AdsAccountViewerPermissionsLoadedDataActionFlux","AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux","AdsApplicationUtils","AdsCachedLoadState_LEGACY","AdsCountries","AdsDataAtom","AdsEngagementAudienceUILogger","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsLoadStateUtils_LEGACY","AdsLoadState_LEGACY","AdsPERefreshTableViewActionFlux","AdsPEUploadShowPreviewActionFlux","AdsPaymentsCountryToCurrencyLegalReq","AdsPixelUIEnvironments","AdsTimezone","BizSiteIdentifier.brands","CurrentAdAccount","DateTime","DateUtil","FluxStore","LoadObject","URI","XAdsAccountQualityController","adsCreateSelector","adsCreateStoreSelector","goURI","ifRequired","immutable","isFalsey","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i="US",j=1;a=0;var k=c("DateTime").fromLegacyArgs(c("DateUtil").FACEBOOK_EPOCH*1e3,a).toISOString();b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this,c("AdsDataAtom"))||this;b.getSelectedAccountID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID}):b.$AdsAccountStoreClassNew6()},{name:f.id});b.getSelectedAccountIDX=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){if(d("AdsApplicationUtils").isFAME()){var a=c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID});!a&&h(0,5919,a);return a}a=b.$AdsAccountStoreClassNew6();!a&&h(0,5919,a);return a},{name:f.id});b.getSelectedBusinessID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.$AdsAccountStoreClassNew10()},{name:f.id});b.getCreatedTime=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().created_time;return a?a:k},{name:f.id});b.getTimezoneID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().timezone_id;return a?a:j},{name:f.id});b.getTosAccepted=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.__getSelectedAccount().tos_accepted},{name:f.id});b.getSelectedAccount=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a||c("LoadObject").empty()})||c("LoadObject").empty():d("AdsLoadStateUtils_LEGACY").toLoadObject(b.__getSelectedAccount())},{name:f.id});b.getSelectedAccountCapabilities=c("adsCreateSelector")([b.getSelectedAccount],function(a){return((a=a.getValue())==null?void 0:a.capabilities)||[]},{name:f.id});b.$AdsAccountStoreClassNew2={};b.$AdsAccountStoreClassNew1=new Map();b.$AdsAccountStoreClassNew3=!1;b.$AdsAccountStoreClassNew4={hasMisMatches:!1,accountID:null};b.$AdsAccountStoreClassNew5=new Map();return b}var e=b.prototype;e.__getActionTypes=function(){return[d("AdsAccountInitDataActionFlux").actionType,d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsAccountBatchLoadErrorDataActionFlux").actionType,d("AdsAccountChangeAccountNameDataActionFlux").actionType,d("AdsAccountChangeAccountCountryDataActionFlux").actionType,d("AdsAccountChangeAccountCurrencyDataActionFlux").actionType,d("AdsAccountChangeAccountTimezoneIdDataActionFlux").actionType,d("AdsAccountAddCapabilitiesDataActionFlux").actionType,d("AdsAccountGKsErrorActionFlux").actionType,d("AdsAccountGKsLoadedActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType,d("AdsAccountSelectDataActionFlux").actionType,d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType,d("AdsAccountSettingsUpdateStartDataActionFlux").actionType,d("AdsAccountInvalidateDataActionFlux").actionType,d("AdsAccountListInvalidateDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType,d("AdsAccountAttributionSpecUpdateStartDataActionFlux").actionType,d("AdsAccountAttributionSpecUpdateSuccessDataActionFlux").actionType,d("AdsAccountAttributionSpecLoadSuccessDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux").actionType,d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType,d("AdsAMAccountAcceptedTosAddActionFlux").actionType,d("AdsAMAccountInitActionFlux").actionType,d("AdsPERefreshTableViewActionFlux").actionType,d("AdsPEUploadShowPreviewActionFlux").actionType]};e.canUpdateCurrency=function(){var a=this.$AdsAccountStoreClassNew6();if(a==null)return!1;a=this.getCached(a).getValue();if(c("isFalsey")(a))return!1;var b=c("AdsAccountUtils").hasCapability(a,"CAN_UPDATE_CURRENCY");a=c("AdsAccountUtils").isPaymentInfoRequired(a);return b&&a};e.get=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();return!this.$AdsAccountStoreClassNew7(a)?this.getSelectedAccount():d("AdsLoadStateUtils_LEGACY").toLoadObject(this.$AdsAccountStoreClassNew8(a))};e.$AdsAccountStoreClassNew8=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return d("AdsLoadStateUtils_LEGACY").fromLoadObject(b.get(a))})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var b=this.$AdsAccountStoreClassNew1.get(a);b||(b=c("AdsCachedLoadState_LEGACY").LOADING,this.$AdsAccountStoreClassNew1.set(a,b),c("AdsAccountDataDispatcher").loadAccountData(a));return b};e.getCached=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();var b=this.$AdsAccountStoreClassNew1.get(a);b||(b=c("AdsCachedLoadState_LEGACY").NOT_LOADED);return d("AdsLoadStateUtils_LEGACY").toLoadObject(b)};e.$AdsAccountStoreClassNew9=function(){var a=this.$AdsAccountStoreClassNew6();if(!a)return;c("AdsAccountDataDispatcher").loadAccountData(a);return};e.getAllLoadObjects=function(a){a=this.getAll(a.toArray());var b=new Map();for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=g[0];g=g[1];b.set(h,d("AdsLoadStateUtils_LEGACY").toLoadObject(g))}return c("immutable").Map(b)};e.getAll=function(a){var b=this,c=new Map();a.forEach(function(a){c.set(a,b.$AdsAccountStoreClassNew8(a))});return c};e.getAllCached=function(a){var b=this,d=new Map();a.forEach(function(a){var e=b.$AdsAccountStoreClassNew1.get(a);e||(e=c("AdsCachedLoadState_LEGACY").NOT_LOADED);d.set(a,e)});return d};e.getByFields=function(a,b){var d=this.$AdsAccountStoreClassNew1.get(a);if(!d){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassNew1.set(a,c("AdsCachedLoadState_LEGACY").LOADING);return c("AdsCachedLoadState_LEGACY").LOADING}if(d.loadState===c("AdsLoadState_LEGACY").ERROR)return c("AdsCachedLoadState_LEGACY").ERROR;if(d.loadState===c("AdsLoadState_LEGACY").LOADING)return c("AdsCachedLoadState_LEGACY").LOADING;var e=b.some(function(a){return d[a]===null||d[a]===void 0});if(e){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassNew1.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADING}));return c("AdsCachedLoadState_LEGACY").LOADING}var f={};b.forEach(function(a){f[a]=d[a]});f.loadState=c("AdsLoadState_LEGACY").LOADED;return f};e.getAllByFields=function(a,b){var c=this,d=new Map();a.forEach(function(a){d.set(a,c.getByFields(a,b))});return d};e.$AdsAccountStoreClassNew6=function(){var a;a=(a=c("CurrentAdAccount").getID())!=null?a:null;if(this.$AdsAccountStoreClassNew4.hasMisMatches){var b;a=(b=this.$AdsAccountStoreClassNew4.accountID)!=null?b:null}return a};e.$AdsAccountStoreClassNew10=function(){var a;return(a=d("BizSiteIdentifier.brands").getBusinessID())!=null?a:null};e.getTimezoneName=function(){var a=this.__getSelectedAccount().timezone_name;return a?a:""};e.getViewerPermissions=function(){var a=this.$AdsAccountStoreClassNew6();if(a){this.$AdsAccountStoreClassNew2[a]||(this.$AdsAccountStoreClassNew2[a]=c("LoadObject").loading(),c("AdsAccountDataDispatcher").loadViewerPermissions(a));return this.$AdsAccountStoreClassNew2[a]}return c("LoadObject").empty()};e.getViewerHasPermission=function(a){var b=this.getViewerPermissions();return b.hasValueWithoutError()&&Array.isArray(b.getValueEnforcing().data)&&b.getValueEnforcing().data.includes(a)};e.__getSelectedAccount=function(){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a!=null?d("AdsLoadStateUtils_LEGACY").fromLoadObject(a):null})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var a=this.$AdsAccountStoreClassNew6();return!a?c("AdsCachedLoadState_LEGACY").NOT_LOADED:this.$AdsAccountStoreClassNew8(a)};e.toURLParams=function(){var a=this.$AdsAccountStoreClassNew6();return!a?null:{act:a}};e.$AdsAccountStoreClassNew11=function(){var a=this.__getSelectedAccount();c("DateTime").setupTimezoneFallback(a.timezone_id,a.timezone_offset_hours_utc)};e.__onDispatch=function(a){var b=a.action;a=!1;var e=this.$AdsAccountStoreClassNew6();switch(b.actionType){case d("AdsAccountInitDataActionFlux").actionType:this.$AdsAccountStoreClassNew12(b.data);a=!0;break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassNew13(b.accountID,b.account);a=!0;break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassNew14(b.accountID,b.error);a=!0;break;case d("AdsAccountChangeAccountNameDataActionFlux").actionType:if(e!=null){var f=this.$AdsAccountStoreClassNew1.get(e);if(f==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},f,{name:b.name}));a=!0}break;case d("AdsAccountChangeAccountCountryDataActionFlux").actionType:if(e!=null){f=b.country;var g=d("AdsTimezone").countryCodeToTimezoneIDsMap[f][0],h=d("AdsTimezone").timezoneIDToOffsetMap[g],i=this.__getSelectedAccount().currency,j=this.$AdsAccountStoreClassNew1.get(e);if(j==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{business_country_code:f,timezone_id:g,timezone_offset_hours_utc:h}));j=Object.prototype.hasOwnProperty.call(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req,f)||Object.values(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req).some(function(a){return a===i});if(!this.$AdsAccountStoreClassNew3||j){g=d("AdsCountries").getCurrencyByCountry(f);h=this.$AdsAccountStoreClassNew1.get(e);if(h==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},h,{currency:g}))}this.$AdsAccountStoreClassNew11();a=!0}break;case d("AdsAccountChangeAccountCurrencyDataActionFlux").actionType:if(e!=null){j=this.$AdsAccountStoreClassNew1.get(e);if(j==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{currency:b.currency}));f=Object.keys(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req).find(function(a){return c("AdsPaymentsCountryToCurrencyLegalReq").legal_req[a]===b.currency});if(f!==void 0){h=this.$AdsAccountStoreClassNew1.get(e);if(h==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},h,{business_country_code:f}))}this.$AdsAccountStoreClassNew3=!0;a=!0}break;case d("AdsAccountChangeAccountTimezoneIdDataActionFlux").actionType:if(e!=null){g=this.$AdsAccountStoreClassNew1.get(e);if(g==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},g,{timezone_id:b.timezoneID,timezone_offset_hours_utc:d("AdsTimezone").timezoneIDToOffsetMap[b.timezoneID]}));this.$AdsAccountStoreClassNew11();a=!0}break;case d("AdsPEUploadShowPreviewActionFlux").actionType:b.didUpdateAccount&&this.$AdsAccountStoreClassNew9();break;case d("AdsAccountAddCapabilitiesDataActionFlux").actionType:if(e!=null){j=this.__getSelectedAccount();this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{capabilities:j.capabilities.concat(b.capabilities)}));a=!0}break;case d("AdsPERefreshTableViewActionFlux").actionType:this.__invalidateAllErrors()&&(a=!0);break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:this.__invalidateAllErrors()&&(a=!0);h=b.data.changedParamKeys;if(h.act||h.business_id){f=b.data.params;if(!f.act&&f.tool==="REPORTING")this.$AdsAccountStoreClassNew15(f.business_id,f.act);else if(f.act)this.$AdsAccountStoreClassNew16(f.act,f.business_id);else break;a=!0}break;case d("AdsAccountSelectDataActionFlux").actionType:if(d("AdsApplicationUtils").isPowerEditor())break;!b.accountID?this.$AdsAccountStoreClassNew15(b.businessID,b.accountID):this.$AdsAccountStoreClassNew16(b.accountID,b.businessID);a=!0;break;case d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType:this.$AdsAccountStoreClassNew17(b.accountID,b.settingsID);break;case d("AdsAccountSettingsUpdateStartDataActionFlux").actionType:g=this.$AdsAccountStoreClassNew6();g!=null&&c("AdsAccountDataDispatcher").updateAccount(g,b.data);break;case d("AdsAccountInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassNew18(b.id)&&(a=!0);break;case d("AdsAccountListInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassNew19(b.accounts)&&(a=!0);break;case d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassNew2[b.accountID]=c("LoadObject").withValue({data:b.data});a=!0;break;case d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassNew2[b.accountID]=c("LoadObject").withError(new Error(b.data));a=!0;break;case d("AdsAccountAttributionSpecUpdateStartDataActionFlux").actionType:e!=null&&c("AdsAccountDataDispatcher").updateAccountAttributionSpec(e,{attribution_spec:b.attributionSpec});break;case d("AdsAccountAttributionSpecUpdateSuccessDataActionFlux").actionType:if(e!=null){c("AdsAccountDataDispatcher").loadAccountAttributionSpec(e);j=this.$AdsAccountStoreClassNew1.get(e);if(j==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{loadState:c("AdsLoadState_LEGACY").LOADING}))}break;case d("AdsAccountAttributionSpecLoadSuccessDataActionFlux").actionType:if(e!=null){h=this.$AdsAccountStoreClassNew1.get(e);if(h==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},h,{attribution_spec:b.data.attribution_spec,is_attribution_spec_system_default:b.data.is_attribution_spec_system_default,loadState:c("AdsLoadState_LEGACY").LOADED}));a=!0}break;case d("AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux").actionType:e!=null&&c("AdsAccountDataDispatcher").updateAccountDefaultUnifiedAttrSpec(e,{default_unified_attribution_spec:b.defaultUnifiedAttrSpec});break;case d("AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux").actionType:if(e!=null){c("AdsAccountDataDispatcher").loadAccountDefaultUnifiedAttrSpec(e);f=this.$AdsAccountStoreClassNew1.get(e);if(f==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},f,{loadState:c("AdsLoadState_LEGACY").LOADING}))}break;case d("AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux").actionType:if(e!=null){g=this.$AdsAccountStoreClassNew1.get(e);if(g==null)break;this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},g,{default_unified_attribution_spec:b.data.default_unified_attribution_spec,loadState:c("AdsLoadState_LEGACY").LOADED}));a=!0}break;case d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType:c("AdsAccountDataDispatcher").handleAcceptMAIDeeplinkTOS(this.getSelectedAccountID());a=!0;break;case d("AdsAMAccountAcceptedTosAddActionFlux").actionType:if(e==null)break;j=this.$AdsAccountStoreClassNew1.get(e);if(j==null)break;h=j.tos_accepted?j.tos_accepted:Object();h=babelHelpers["extends"]({},h,b.addedTOS);this.$AdsAccountStoreClassNew1.set(e,babelHelpers["extends"]({},j,{tos_accepted:h}));a=!0;break;case d("AdsAMAccountInitActionFlux").actionType:f=b.account.account_id;this.$AdsAccountStoreClassNew16(f,(g=b.account.business)==null?void 0:g.id);this.$AdsAccountStoreClassNew13(f,b.account);a=!0;c("AdsAccountUtils").logAccID("flux");break;case d("AdsAccountGKsErrorActionFlux").actionType:case d("AdsAccountGKsLoadedActionFlux").actionType:a=!0;break}a&&this.__emitChange()};e.$AdsAccountStoreClassNew20=function(a,b){var d=this.$AdsAccountStoreClassNew1.get(a);!d||d.loadState===c("AdsLoadState_LEGACY").LOADING?this.$AdsAccountStoreClassNew1.set(a,b):this.$AdsAccountStoreClassNew1.set(a,babelHelpers["extends"]({},d,b))};e.$AdsAccountStoreClassNew13=function(a,b){var d=this.$AdsAccountStoreClassNew1.get(a);d&&this.$AdsAccountStoreClassNew1.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADED}));this.$AdsAccountStoreClassNew20(a,babelHelpers["extends"]({},b,{loadState:c("AdsLoadState_LEGACY").LOADED}))};e.$AdsAccountStoreClassNew14=function(a,b){this.$AdsAccountStoreClassNew1.set(a,{loadState:c("AdsLoadState_LEGACY").ERROR,error:b})};e.$AdsAccountStoreClassNew12=function(a){var b={},e=a.accountID;b=a.accountInfo;b.business_country_code=b.business_country_code||i;b.name=a.accountName;b.hasSuperRead=a.hasSuperRead;c("promiseDone")(d("AdsAccountDataLoader").postUserSettings(e));c("DateTime").setupTimezoneFallback(b.timezone_id,b.timezone_offset_hours_utc);d("AdsEngagementAudienceUILogger").setAppName(c("AdsPixelUIEnvironments").CM);b.loadState=c("AdsLoadState_LEGACY").LOADED;this.$AdsAccountStoreClassNew20(e,b);c("AdsAccountUtils").logAccID("initAccountData")};e.$AdsAccountStoreClassNew18=function(a){return this.$AdsAccountStoreClassNew1.has(a)?this.$AdsAccountStoreClassNew1["delete"](a):!1};e.__invalidateAllErrors=function(){var a=this,b=!1;this.$AdsAccountStoreClassNew1.forEach(function(d,e){if(d.loadState===c("AdsLoadState_LEGACY").ERROR){d=a.$AdsAccountStoreClassNew18(e);b=d||b}});return b};e.$AdsAccountStoreClassNew19=function(a){var b=this,c=!1;a.forEach(function(a){c=c||b.$AdsAccountStoreClassNew18(a);var d=b.$AdsAccountStoreClassNew5.get(a);b.$AdsAccountStoreClassNew5.set(a,d?d+1:1)});return c};e.$AdsAccountStoreClassNew17=function(a,b){var d=this.$AdsAccountStoreClassNew1.get(a);d!=null&&d.loadState===c("AdsLoadState_LEGACY").LOADED&&(d=babelHelpers["extends"]({},d,{user_settings:{id:b}}),this.$AdsAccountStoreClassNew1.set(a,d))};e.$AdsAccountStoreClassNew15=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassNew21(a)){var e=this.$AdsAccountStoreClassNew22(b,a);this.$AdsAccountStoreClassNew4={hasMisMatches:e,accountID:b};e||this.$AdsAccountStoreClassNew23(b,a);c("AdsAccountUtils").logAccID("selectBusiness")}};e.$AdsAccountStoreClassNew16=function(a,b){if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassNew7(a)){var e=this.$AdsAccountStoreClassNew22(a,b);this.$AdsAccountStoreClassNew4={hasMisMatches:e,accountID:a};e||this.$AdsAccountStoreClassNew23(a,b);c("AdsAccountUtils").logAccID("selectAccount")}};e.__setStoreState=function(a){var b=a.selectedAccountID,e=a.selectedBusinessID;a=a.accounts;var f=new Map();a.forEach(function(a,b){f.set(b,babelHelpers["extends"]({},a.getValueEnforcing(),{loadState:d("AdsLoadStateUtils_LEGACY").fromLoadObject(a).loadState}))});if(!d("AdsApplicationUtils").isFAME()&&(this.$AdsAccountStoreClassNew7(b)||this.$AdsAccountStoreClassNew21(e))){a=this.$AdsAccountStoreClassNew22(b,e);this.$AdsAccountStoreClassNew4={hasMisMatches:a,accountID:b};a||this.$AdsAccountStoreClassNew23(b,e)}else this.$AdsAccountStoreClassNew1=f,c("AdsAccountUtils").logAccID("setStoreState")};e.$AdsAccountStoreClassNew7=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassNew6()};e.$AdsAccountStoreClassNew21=function(a){a=(a=a)!=null?a:null;return a!==this.$AdsAccountStoreClassNew10()};e.$AdsAccountStoreClassNew22=function(a,b){var d=this.$AdsAccountStoreClassNew6(),e=this.$AdsAccountStoreClassNew10();a=(a=a)!=null?a:null;b=(b=b)!=null?b:null;var f=!0;try{var g=window.localStorage;if(g){var h=this.$AdsAccountStoreClassNew24("curAccountID"),i=this.$AdsAccountStoreClassNew24("accountID"),j=this.$AdsAccountStoreClassNew24("curBusinessID"),k=this.$AdsAccountStoreClassNew24("businessID");f=h===d&&j===e&&i===a&&k===b;if(!f){g.setItem("curAccountID",(h=d)!=null?h:"none");g.setItem("accountID",(j=a)!=null?j:"none");g.setItem("curBusinessID",(i=e)!=null?i:"none");g.setItem("businessID",(k=b)!=null?k:"none")}}}catch(a){f=!0}f&&c("AdsAccountUtils").logAccountUpdatesMisMatched(d,a,e,b);return f};e.$AdsAccountStoreClassNew24=function(a){var b=null;try{var c=window.localStorage;c&&(b=c.getItem(a),b=b==="none"?null:b)}catch(a){b=null}return b};e.$AdsAccountStoreClassNew23=function(a,b){var d=new(c("URI"))(window.location.href);if(d.getPath().includes("accountquality")){var e=c("XAdsAccountQualityController").getURIBuilder();a!=null&&e.setFBID("primary_id",a);b!=null&&e.setFBID("primary_id",b).setFBID("secondary_id",a);d=e.getURI()}else{e={};a!=null&&(e.act=a);b!=null&&(e.business_id=b);d.setQueryData(e)}c("AdsAccountUtils").logMsgWhenAccountUpdates();c("goURI")(d)};return b}(c("FluxStore"));b.__moduleID=f.id;g["default"]=b}),98);
-----
AdsPESettingsStore",["AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsDataAtom","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsPECreateSettingsDataManager","AdsPEFilterUIStateSelectors","AdsPESettingsDataManager","FluxReduceStore","adsPENavStateSelector","isFalsey"],(function(a,b,c,d,e,f,g){"use strict";var h=d("AdsPEFilterUIStateSelectors").getFilterSet.getStores();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,b)||this;b.$AdsPESettingsStore1=new Set();return b}var e=b.prototype;e.getInitialState=function(){return{}};e.__getActionTypes=function(){return[d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType]};e.__getDependencyStores=function(){return[c("AdsAccountStore")].concat(h,c("adsPENavStateSelector").getStores())};e.reduce=function(a,b){b=b.action;this.getDispatcher().waitFor(this.getDependencyDispatchTokens());if(h.filter(function(a){return a.hasChanged()}).length){var e=c("adsPENavStateSelector")();e.tool==="MANAGE_ADS"&&this.$AdsPESettingsStore2()}switch(b.type){case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:e=b.data.changedParamKeys;(e.act||e.business_id)&&this.$AdsPESettingsStore3();return a;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsPESettingsStore3();return a;default:return a}};e.$AdsPESettingsStore3=function(){var a=c("AdsAccountStore").getSelectedAccount().getValue();if(c("isFalsey")(a))return;var b=a.account_id;a=a.user_settings;if(!b)return;if(!a){d("AdsPECreateSettingsDataManager").createUserSettings(b);return}if(!this.$AdsPESettingsStore1.has(b)){a=a.id;c("AdsPESettingsDataManager").loadFilters(a);this.$AdsPESettingsStore1.add(b)}};e.$AdsPESettingsStore2=function(){var a=c("AdsAccountStore").getSelectedAccountID();if(a&&this.$AdsPESettingsStore1.has(a)){var b=d("AdsPEFilterUIStateSelectors").getFilterSet(),e;b==null?e=[]:e=b.toAPI();c("AdsPESettingsDataManager").updateLastUsedFilterSet(a,e)}};return b}(c("FluxReduceStore"));a.__moduleID=f.id;b=new a(c("AdsDataAtom"));g["default"]=b}),98);
-----
AdsReportBuilderScenarioUtil",["AdsAccountBatchLoadedDataActionFlux","AdsBusinessBatchLoadedDataActionFlux","AdsDataAtom","AdsInterfacesRouteDataFetchedDataActionFlux","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsPENavigationProvider","AdsPEReportBuilderTableInitActionFlux","AdsPEReportBuilderTableLoadNextActionFlux","AdsRBDupReportIDGenerator","AdsRBNavStateHelper","AdsRBSwitchBusinessAccountActionFlux","AdsReportBuilderCreateReportActionFlux","AdsReportBuilderCreateReportSuccessActionFlux","AdsReportBuilderCustomMetricsLoadedActionFlux","AdsReportBuilderDeleteReportActionFlux","AdsReportBuilderDimensionUpdateActionFlux","AdsReportBuilderDuplicateActionFlux","AdsReportBuilderEntryPointEventSources","AdsReportBuilderFilterSetChangeActionFlux","AdsReportBuilderManageReportsFilterSetProvider","AdsReportBuilderManageReportsTableRenderActionFlux","AdsReportBuilderMetricUpdateActionFlux","AdsReportBuilderRefreshTableActionFlux","AdsReportBuilderReportSpecUtil","AdsReportBuilderReportSpecsFetchSuccessActionFlux","AdsReportBuilderSelectAttributionWindowActionFlux","AdsReportBuilderSelectReportActionFlux","AdsReportBuilderSortChangeActionFlux","AdsReportBuilderTimeRangeChangeActionFlux","AdsReportBuilderToggleLockedDimensionActionFlux","AdsReportBuilderUpdateReportLastAccessTimeSuccessActionFlux","AdsReportingViewLoadedActionFlux","AdsReportingViewSectionType","AdsSelectorUtils","BizSiteIdentifier.brands","URI","adsFormatErrorMessage","createObjectFrom","emptyFunction","first","getViewportDimensions","ifRequired","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";b=(a={},a[c("AdsReportBuilderSortChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderTimeRangeChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderToggleLockedDimensionActionFlux").actionType]=!0,a[c("AdsReportBuilderFilterSetChangeActionFlux").actionType]=!0,a[c("AdsReportBuilderDimensionUpdateActionFlux").actionType]=!0,a[c("AdsReportBuilderMetricUpdateActionFlux").actionType]=!0,a[c("AdsReportBuilderSelectReportActionFlux").actionType]=!0,a[c("AdsPEReportBuilderTableLoadNextActionFlux").actionType]=!0,a[c("AdsReportBuilderRefreshTableActionFlux").actionType]=!0,a[c("AdsReportBuilderSelectAttributionWindowActionFlux").actionType]=!0,a[c("AdsReportBuilderCreateReportActionFlux").actionType]=!1,a);var h=c("createObjectFrom")(["AdsRBFullAdAccountListDataProviderPluginSetStateAction",c("AdsAccountBatchLoadedDataActionFlux").actionType,c("AdsBusinessBatchLoadedDataActionFlux").actionType,"FluxLoadObjectStore.START_LOAD.BusinessStore.brands"]);e=new Set([c("AdsReportBuilderUpdateReportLastAccessTimeSuccessActionFlux").actionType,c("AdsReportBuilderReportSpecsFetchSuccessActionFlux").actionType]);f=new Set([c("AdsReportBuilderUpdateReportLastAccessTimeSuccessActionFlux").actionType,c("AdsReportBuilderReportSpecsFetchSuccessActionFlux").actionType,c("AdsReportBuilderCustomMetricsLoadedActionFlux").actionType]);var i=!1,j={TABLE_OR_CHART_CHANGE_EVENT:b,ACCOUNT_LOADED_EVENT:h,NON_ABANDON_SELECT_REPORT_ACTION_TYPES:f,NON_ABANDONED_ACTION_TYPES_ON_INITIAL_LOAD:e,hasRBViewLoaded:function(){return i},setRBViewLoaded:function(){i=!0},getSelectedReportID:function(){var a;c("ifRequired")("AdsReportBuilderSelectedReportIDStore",function(b){return a=b},c("emptyFunction"));var b;c("ifRequired")("AdsReportBuilderMCRSelectedReportProvider",function(a){return b=a});return a?(b==null?void 0:b())||a.get()||"":""},getCurrentReportIDForManageReport:function(a,b){if(a.type===c("AdsReportBuilderDeleteReportActionFlux").actionType)return JSON.stringify(a.reportIDs);return b.type===c("AdsReportBuilderCreateReportSuccessActionFlux").actionType?b.id!=null&&typeof b.id==="string"?b.id:"":""},getPreviousReportIDForManageReport:function(a){return a.type===c("AdsReportBuilderDuplicateActionFlux").actionType&&a.reportSpec?d("AdsRBDupReportIDGenerator").getSourceReportIDFromTempID(a.reportSpec.get("id")):""},getShareReportData:function(a,b){if(d("AdsRBNavStateHelper").isOnManageReportPage()){var c;return{current_report_id:(c=a.reportSpec)==null?void 0:c.id,business_id:d("BizSiteIdentifier.brands").getBusinessID()||"",event_source:a.eventSource}}return j.getViewReportPageData(a,b)},getTableStateRelatedStores:function(){var a,b,d;c("ifRequired")("AdsReportBuilderViewStore",function(b){return a=b},c("emptyFunction"));c("ifRequired")("AdsReportBuilderListStore",function(a){return b=a},c("emptyFunction"));c("ifRequired")("adsReportBuilderReportSettingsSelector",function(a){return d=a()});return{viewStore:a,listStore:b,reportSettings:d}},getManageReportsRelatedStores:function(){var a,b;c("ifRequired")("AdsReportBuilderManageReportsListStore",function(b){return a=b});c("ifRequired")("adsRBManageReportListQueryIDSelector",function(a){return b=a()});return{reportsListStore:a,manageReportListQueryID:b}},shouldCheckManageReportsTableLoadingState:function(a){return[c("AdsReportBuilderManageReportsTableRenderActionFlux").actionType,c("AdsPEReportBuilderTableInitActionFlux").actionType].includes(a.type)},detectTableOrChartLoaded:function(a){return a.type===c("AdsReportingViewLoadedActionFlux").actionType&&a.viewSection===c("AdsReportingViewSectionType").BODY},detectTableOrChartAbandoned:function(a){return h[a.type]?!1:j.isTableOrChartChangeOrAccountSwitchOnLoad(a)||j.isViewOrNavStoreChanged()},isTableOrChartChangeOrAccountSwitchOnLoad:function(a){if(j.TABLE_OR_CHART_CHANGE_EVENT[a.type])return!0;return a.type===c("AdsRBSwitchBusinessAccountActionFlux").actionType?!0:!1},getSummaryCachedData:function(){var a=j.getTableStateRelatedStores(),b=a.viewStore;a=a.listStore;if(!b||!a)return null;c("AdsDataAtom").waitFor([b.getDispatchToken(),a.getDispatchToken()]);b=b.get();return a.getSummaryCachedByView(b)},isViewOrNavStoreChanged:function(){var a=j.getTableStateRelatedStores();a=a.viewStore;if(!a)return!1;c("AdsDataAtom").waitFor([a.getDispatchToken(),c("AdsPENavigationProvider").toFluxStore().getDispatchToken()]);return a.hasChanged()||c("AdsPENavigationProvider").toFluxStore().hasChanged()},isNavStoreChanged:function(){c("AdsDataAtom").waitFor([c("AdsPENavigationProvider").toFluxStore().getDispatchToken()]);return c("AdsPENavigationProvider").toFluxStore().hasChanged()},getViewFromCreateReportAction:function(a){var b=null;a=a.reportSpecs;a&&(b=d("AdsReportBuilderReportSpecUtil").getViewSpecFromReportSpec(c("nullthrows")(c("first")(a))));return b},getViewReportPageLogData:function(a,b){return j.getViewReportPageData(a,b)},getViewReportPageData:function(a,b,c){c===void 0&&(c={});var d={},e={},f,g;if(c.view)f=c.view;else{c=j.getTableStateRelatedStores();var h=c.viewStore;c=c.reportSettings;h&&(f=h.get());c&&(g=c)}f&&(d=j.getViewLogData(f));g&&(e=j.getReportSettingsLogData(g));h=j.getTriggerActionLogData(a,b);c=j.getEventSourceLogData(a);b=j.getViewportDimensionLogData();return babelHelpers["extends"]({},h,d,e,c,b)},getViewportDimensionLogData:function(){var a=c("getViewportDimensions")(),b=a.width;a=a.height;return{window_width:b,window_height:a}},getEventSourceLogData:function(a){var b=a.eventSource!=null&&a.eventSource!==""?{event_source:a.eventSource}:j.getEventSourceFromCurrentURI();if(a.type===c("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType){var d=a.data;if(d){var e=d.context;d=d.changedParamKeys;var f;e.reportBuilderEventSource?f=e.reportBuilderEventSource:e.isInit===!0&&(f=d.show_setting_dialog?c("AdsReportBuilderEntryPointEventSources").CLICK_SCHEDULE_REPORT_FROM_AM_EXPORT:c("AdsReportBuilderEntryPointEventSources").FROM_URL);if(f){b=(e={},e.event_source=f,e)}}}else if(a.type===c("AdsInterfacesRouteDataFetchedDataActionFlux").actionType){d=new(c("URI"))(window.location.href).getQueryData();e=d.event_source?d.event_source:c("AdsReportBuilderEntryPointEventSources").FROM_URL;b=(a={},a.event_source=e,a)}return b},getEventSourceFromCurrentURI:function(){var a=new(c("URI"))(window.location.href).getQueryData();a=a.event_source?a.event_source:"";return{event_source:a}},getTriggerActionLogData:function(a,b){return a={scenario_start_trigger_action:a.type},a.scenario_end_trigger_action=b.type,a},getViewLogData:function(a){var b,c,e,f,g=a.get("timeRange");b=((g==null?void 0:(b=g.interval)==null?void 0:b.start)||"").toString();c=((g==null?void 0:(c=g.interval)==null?void 0:c.end)||"").toString();var h=a.get("comparisonTimeRange");e=((h==null?void 0:(e=h.interval)==null?void 0:e.start)||"").toString();f=((h==null?void 0:(f=h.interval)==null?void 0:f.end)||"").toString();var i=a.get("filter");i=i?i.getValues().map(function(a){return a.toString()}):[];return i={current_attribution_windows:a.get("attributionWindow"),current_insights_table_breakdowns:a.get("dimensions"),current_insights_table_sort:a.get("sort").map(function(a){return a.field}),current_insights_table_user_columns:a.get("fields"),current_user_filter:i,current_insights_table_level:JSON.stringify(a.get("lockedDimensions")),current_date_interval_end:c,current_date_interval_preset:g.preset,current_date_interval_start:b,current_comparison_date_interval_start:e,current_comparison_date_interval_end:f,current_insights_dataviz_section:h==null?void 0:h.preset,current_report_id:j.getSelectedReportID(),business_id_explicit:d("BizSiteIdentifier.brands").getBusinessID()||"",current_target_currency:a.get("currency"),current_view_type:a.get("viewType")},i.new_value=a.get("limit").toString(),i},getReportSettingsLogData:function(a){return a.ready===!1?{}:{current_action_ads_count:a.selectedAccounts.length,loaded_count:a.totalAccountsNum}},getTableLoadingDataWithSummary:function(a,b){a=j.getViewReportPageData(a,b);b=j.getSummaryCachedData();b=b&&b.getValue();b=b&&b.total!=null&&b.total!==0?{current_action_ads_count:b.total}:{};return babelHelpers["extends"]({},a,b)},getExportData:function(a,b){var d,e=j.getViewFromCreateReportAction(a);e&&(d=j.getViewLogData(e));e=j.getTriggerActionLogData(a,b);var f=j.getEventSourceLogData(a);return babelHelpers["extends"]({},e,d,f,(e={},e.previous_report_id=b.reportRunID,e.export_format=a.format,e.message=b.error!=null?c("adsFormatErrorMessage")(b.error):null,e))},getExportHistoryData:function(a,b){var e=j.getTriggerActionLogData(a,b);return babelHelpers["extends"]({},e,{previous_report_id:a.exportReportID,business_id_explicit:d("BizSiteIdentifier.brands").getBusinessID()||"",message:c("adsFormatErrorMessage")(b.error)})},getScope:function(){var a={scopeType:null,scopeID:null},b;c("ifRequired")("adsReportBuilderScopeInfoSelector",function(a){return b=a},c("emptyFunction"));if(!b)return a;if(c("AdsDataAtom").isDispatching())try{c("AdsDataAtom").waitFor([].concat(d("AdsSelectorUtils").getStoreDispatchTokens([b])))}catch(b){return a}var e=b();if(e.hasValue()&&!e.hasError()){e=e.getValueEnforcing();return{scopeType:e.scopeType,scopeID:e.id}}return a},getReportsListDataLoader:function(){var a=j.getScope();a=a.scopeID;var b=j.getManageReportsRelatedStores(),d=b.reportsListStore;b=b.manageReportListQueryID;if(a==null||d==null||b==null)return null;c("AdsDataAtom").waitFor([d].map(function(a){return a.getDispatchToken()}));return d.get(b)},detectManageReportsTableSucceeded:function(a){if(!j.shouldCheckManageReportsTableLoadingState(a))return!1;a=j.getReportsListDataLoader();var b=!1;if(!!a&&a.hasValue()){var c=a.getValueEnforcing();c.isLoadingMoreRows&&(b=!0)}return a!=null&&a.hasValue()&&!a.hasError()&&!b},getManageReportData:function(a,b){var c=typeof b.type==="string"?b.type:"",e=j.getViewportDimensionLogData();return babelHelpers["extends"]({},e,{scenario_start_trigger_action:a.type,scenario_end_trigger_action:c,new_value:j.getCurrentReportIDForManageReport(a,b),old_value:j.getPreviousReportIDForManageReport(a),business_id:d("BizSiteIdentifier.brands").getBusinessID()||"",event_source:(e=a.eventSource)!=null?e:""})},getLandingManageReportPageData:function(a,b){var e=j.getReportsListDataLoader(),f={};if(e!=null&&e.hasValue()&&!e.hasError()){e=e.getValueEnforcing();e=e.reportIDs;f={loaded_count:e.length}}e=c("AdsReportBuilderManageReportsFilterSetProvider")();e=e.filterSet;e=e?e.getValues().map(function(a){return a.toString()}):[];var g=j.getViewportDimensionLogData();return babelHelpers["extends"]((a={scenario_start_trigger_action:a.type,scenario_end_trigger_action:b.type,business_id:d("BizSiteIdentifier.brands").getBusinessID()||""},a.current_user_filter=e,a),f,j.getEventSourceFromCurrentURI(),g)},getReportSettingsData:function(a,b){return{scenario_start_trigger_action:a.type,scenario_end_trigger_action:b.type,item_count:j.getTotalAdAccountsNum(),current_action_ads_count:b.selectedAccountNum}},getTotalAdAccountsNum:function(){if(d("BizSiteIdentifier.brands").getBusinessID()==null)return 1;var a;c("ifRequired")("adsReportBuilderFullAccountListSelector",function(b){return a=b},c("emptyFunction"));if(a){var b=a().fullAccountList;return b?b.length:0}return 0},getSwitchViewTypeData:function(a,b){b=j.getViewReportPageData(a,b);return babelHelpers["extends"]({},b,{previous_view_type:a.previousViewType,loaded_count:a.previousBreakdownNum,item_count:a.previousMetricNum})},getTimeRangeChangeData:function(a,b){b=j.getViewReportPageData(a,b);return babelHelpers["extends"]({},b,{previous_date_interval_end:(b=a.previousTimeRange)==null?void 0:(b=b.interval)==null?void 0:(b=b.end)==null?void 0:b.toString(),previous_date_interval_preset:(b=a.previousTimeRange)==null?void 0:b.preset,previous_date_interval_start:(b=a.previousTimeRange)==null?void 0:(b=b.interval)==null?void 0:(b=b.start)==null?void 0:b.toString(),previous_comparison_date_interval_end:(b=a.previousTimeRange)==null?void 0:(b=b.compareInterval)==null?void 0:(b=b.end)==null?void 0:b.toString(),previous_comparison_date_interval_start:(b=a.previousTimeRange)==null?void 0:(b=b.compareInterval)==null?void 0:(b=b.start)==null?void 0:b.toString(),previous_insights_dataviz_section:(b=a.previousTimeRange)==null?void 0:b.comparePreset})}};a=j;g["default"]=a}),98);
-----
AdsTALLoggerStore",["AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountStore","AdsDataAtom","AdsExperimentsFunnelLoggerWithAccountStoreUtils","AdsHelpTrayToggleDataActionFlux","AdsSSCLSetTabDataActionFlux","AdsTALAddCellActionFlux","AdsTALAddTestSSCLEventsActionFlux","AdsTALBrandImpactAddQuestionActionFlux","AdsTALBrandImpactRemoveQuestionActionFlux","AdsTALBrandImpactSetQuestionSegmentActionFlux","AdsTALBrandImpactSetQuestionTypeActionFlux","AdsTALCreateTestErrorActionFlux","AdsTALCreateTestStartActionFlux","AdsTALCreateTestSuccessActionFlux","AdsTALLiftReportDataLoadErrorDataActionFlux","AdsTALLiftReportDataLoadedDataActionFlux","AdsTALLogComponentLoadedActionFlux","AdsTALLogLoadingStartedActionFlux","AdsTALRemoveCellActionFlux","AdsTALReportSelectNavigationItemActionFlux","AdsTALReportSelectTestActionFlux","AdsTALSelectTestTypeActionFlux","AdsTALSelectors","AdsTALSetABTestTabActionFlux","AdsTALSetAdObjectActionFlux","AdsTALSetBrandLiftLocaleActionFlux","AdsTALSetCellCampaignGroupsActionFlux","AdsTALSetCellNameActionFlux","AdsTALSetClientNameActionFlux","AdsTALSetPageActionFlux","AdsTALSetStudyLevelActionFlux","AdsTALSetTestEndTimeActionFlux","AdsTALSetTestNameActionFlux","AdsTALSetTestRegionActionFlux","AdsTALSetTestSSCLEventActionFlux","AdsTALSetTestStartTimeActionFlux","AdsTALSetTestVerticalActionFlux","AdsTALToggleSetupReviewReceiptActionFlux","FluxStore","URIInitDataUtil","concatArrays","filterNulls","requireWeak"],(function(a,b,c,d,e,f,g){"use strict";var h;c("requireWeak")("AdsTALSetupSectionSelectors",function(a){h=a});a=[].concat(c("AdsAccountStore").getSelectedAccountID.getStores(),d("AdsTALSelectors").adsTALTestTypeSelector.getStores(),d("AdsTALSelectors").adsTALTestSetupSessionIDSelector.getStores());var i=a.map(function(a){return a.getDispatchToken()});b=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.call(this,c("AdsDataAtom"))||this}var e=b.prototype;e.$AdsTALLoggerStore1=function(a){var b;b=a==null?void 0:(b=a.campaign_group)==null?void 0:b.adsets;return b==null?a:babelHelpers["extends"]({},a,{campaign_group:babelHelpers["extends"]({},a.campaign_group,{adsets:babelHelpers["extends"]({},b,{paging:null})})})};e.__onDispatch=function(a){var b,e=this,f=a.action,g=f.actionType;a=(a=h)==null?void 0:a.adsTALStudyLevelSelector;b=(b=h)==null?void 0:b.adsTALNonScenarioStudyTypeSelector;var k=c("concatArrays")(c("filterNulls")([a,b]).map(function(a){return a.getStores()})).map(function(a){return a.getDispatchToken()});c("AdsDataAtom").waitFor([].concat(i,k));var l=d("AdsTALSelectors").adsTALTestTypeSelector(),m=d("AdsTALSelectors").adsTALTestSetupSessionIDSelector(),n=b==null?null:b(),o=a==null?null:a();k=function(){var a;return d("AdsExperimentsFunnelLoggerWithAccountStoreUtils").createFunnelLoggerWithAccount_LEGACY().setAction(g).addActionPayload("action_data",e.$AdsTALLoggerStore1(f)).addActionPayload("test_type",l).addActionPayload("study_type",n).addActionPayload("study_level",o).setSecondaryOrder((a=m)!=null?a:"").setIsDeprecated(!0)};switch(g){case d("AdsSSCLSetTabDataActionFlux").actionType:case d("AdsAccountSelectDataActionFlux").actionType:case d("AdsTALSetPageActionFlux").actionType:k().log();break;case d("AdsTALToggleSetupReviewReceiptActionFlux").actionType:k().log();break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:k().log();break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:k().addActionPayload("error_code",f.error.error_subcode).log();break;case d("AdsTALSelectTestTypeActionFlux").actionType:k().addActionPayload("test_type",f.testConfig.getTestType()).log();break;case d("AdsTALLiftReportDataLoadedDataActionFlux").actionType:k().log();break;case d("AdsTALLiftReportDataLoadErrorDataActionFlux").actionType:k().addActionPayload("study_id",f.studyID).addActionPayload("error_code",f.error.message).log();break;case d("AdsTALSetAdObjectActionFlux").actionType:case d("AdsTALSetClientNameActionFlux").actionType:case d("AdsTALSetTestEndTimeActionFlux").actionType:case d("AdsTALSetTestNameActionFlux").actionType:case d("AdsTALSetTestRegionActionFlux").actionType:case d("AdsTALSetTestStartTimeActionFlux").actionType:case d("AdsTALSetTestVerticalActionFlux").actionType:case d("AdsTALBrandImpactRemoveQuestionActionFlux").actionType:case d("AdsTALBrandImpactAddQuestionActionFlux").actionType:case d("AdsTALBrandImpactSetQuestionSegmentActionFlux").actionType:case d("AdsTALBrandImpactSetQuestionTypeActionFlux").actionType:case d("AdsTALRemoveCellActionFlux").actionType:case d("AdsTALSetCellNameActionFlux").actionType:case d("AdsTALSetCellCampaignGroupsActionFlux").actionType:case d("AdsTALAddTestSSCLEventsActionFlux").actionType:case d("AdsTALSetTestSSCLEventActionFlux").actionType:case d("AdsTALSetABTestTabActionFlux").actionType:k().log();break;case d("AdsTALAddCellActionFlux").actionType:k().addActionPayload("quantity",(b=f.quantity)!=null?b:1).log();break;case d("AdsTALSetStudyLevelActionFlux").actionType:k().addActionPayload("level",f.level).log();break;case d("AdsTALSetBrandLiftLocaleActionFlux").actionType:k().addActionPayload("locale",f.locale).log();break;case d("AdsTALCreateTestStartActionFlux").actionType:k().log();break;case d("AdsTALCreateTestErrorActionFlux").actionType:j(k().addActionPayload("error_code",f.error.code)).log();break;case d("AdsTALCreateTestSuccessActionFlux").actionType:j(k().addActionPayload("study_id",f.studyID)).log();break;case d("AdsTALReportSelectNavigationItemActionFlux").actionType:k().addActionPayload("study_id",f.testID).log();break;case d("AdsTALReportSelectTestActionFlux").actionType:k().addActionPayload("study_id",f.testID).addActionPayload("question_type",f.questionType).log();break;case d("AdsHelpTrayToggleDataActionFlux").actionType:k().log();break;case d("AdsTALLogLoadingStartedActionFlux").actionType:case d("AdsTALLogComponentLoadedActionFlux").actionType:k().log();break;case"ADS_INTERFACES_ROUTE-UPDATE_PARAMS":k().log();break}};return b}(c("FluxStore"));b.__moduleID=f.id;function j(a){var b=d("URIInitDataUtil").getRefFromURI();b!=null&&a.addFunnelPayload("ref",b);return a}e=new b();g["default"]=e}),98);
-----
AdsAccountStoreOld",["invariant","AdsAMAccountAcceptedTosAddActionFlux","AdsAMAccountInitActionFlux","AdsAccountAddCapabilitiesDataActionFlux","AdsAccountAttributionSpecLoadSuccessDataActionFlux","AdsAccountAttributionSpecUpdateStartDataActionFlux","AdsAccountAttributionSpecUpdateSuccessDataActionFlux","AdsAccountBatchLoadErrorDataActionFlux","AdsAccountBatchLoadedDataActionFlux","AdsAccountChangeAccountCountryDataActionFlux","AdsAccountChangeAccountCurrencyDataActionFlux","AdsAccountChangeAccountNameDataActionFlux","AdsAccountChangeAccountTimezoneIdDataActionFlux","AdsAccountDataDispatcher","AdsAccountDataLoader","AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux","AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux","AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux","AdsAccountGKsErrorActionFlux","AdsAccountGKsLoadedActionFlux","AdsAccountInitDataActionFlux","AdsAccountInvalidateDataActionFlux","AdsAccountListInvalidateDataActionFlux","AdsAccountSelectDataActionFlux","AdsAccountSettingsCreateFinishedDataActionFlux","AdsAccountSettingsUpdateStartDataActionFlux","AdsAccountUtils","AdsAccountViewerPermissionsLoadErrorDataActionFlux","AdsAccountViewerPermissionsLoadedDataActionFlux","AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux","AdsApplicationUtils","AdsCachedLoadState_LEGACY","AdsCountries","AdsDataAtom","AdsEngagementAudienceUILogger","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsLoadStateUtils_LEGACY","AdsLoadState_LEGACY","AdsPERefreshTableViewActionFlux","AdsPEUploadShowPreviewActionFlux","AdsPaymentsCountryToCurrencyLegalReq","AdsPixelUIEnvironments","AdsTimezone","DateTime","DateUtil","FluxStore","LoadObject","URI","XAdsAccountQualityController","adsCreateSelector","adsCreateStoreSelector","getByPath","goURI","ifRequired","immutable","isFalsey","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i="US",j=1;a=0;var k=c("DateTime").fromLegacyArgs(c("DateUtil").FACEBOOK_EPOCH*1e3,a).toISOString();b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this,c("AdsDataAtom"))||this;b.getSelectedAccountID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID}):b.$AdsAccountStoreClassOld1},{name:f.id});b.getSelectedAccountIDX=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){if(d("AdsApplicationUtils").isFAME()){var a=c("ifRequired")("AdsExcelAccountProvider",function(a){return a().selectedAccountID});!a&&h(0,5919,a);return a}a=b.$AdsAccountStoreClassOld9();!a&&h(0,5919,a);return a},{name:f.id});b.getSelectedBusinessID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.$AdsAccountStoreClassOld2},{name:f.id});b.getCreatedTime=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().created_time;return a?a:k},{name:f.id});b.getTimezoneID=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){var a=b.__getSelectedAccount().timezone_id;return a?a:j},{name:f.id});b.getTosAccepted=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return b.__getSelectedAccount().tos_accepted},{name:f.id});b.getSelectedAccount=c("adsCreateStoreSelector")([babelHelpers.assertThisInitialized(b)],function(){return d("AdsApplicationUtils").isFAME()?c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a||c("LoadObject").empty()})||c("LoadObject").empty():d("AdsLoadStateUtils_LEGACY").toLoadObject(b.__getSelectedAccount())},{name:f.id});b.getSelectedAccountCapabilities=c("adsCreateSelector")([b.getSelectedAccount],function(a){return((a=a.getValue())==null?void 0:a.capabilities)||[]},{name:f.id});b.$AdsAccountStoreClassOld4={};b.$AdsAccountStoreClassOld3=new Map();b.$AdsAccountStoreClassOld5=!1;b.$AdsAccountStoreClassOld6=new Map();return b}var e=b.prototype;e.__getActionTypes=function(){return[d("AdsAccountInitDataActionFlux").actionType,d("AdsAccountBatchLoadedDataActionFlux").actionType,d("AdsAccountBatchLoadErrorDataActionFlux").actionType,d("AdsAccountChangeAccountNameDataActionFlux").actionType,d("AdsAccountChangeAccountCountryDataActionFlux").actionType,d("AdsAccountChangeAccountCurrencyDataActionFlux").actionType,d("AdsAccountChangeAccountTimezoneIdDataActionFlux").actionType,d("AdsAccountAddCapabilitiesDataActionFlux").actionType,d("AdsAccountGKsErrorActionFlux").actionType,d("AdsAccountGKsLoadedActionFlux").actionType,d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType,d("AdsAccountSelectDataActionFlux").actionType,d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType,d("AdsAccountSettingsUpdateStartDataActionFlux").actionType,d("AdsAccountInvalidateDataActionFlux").actionType,d("AdsAccountListInvalidateDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType,d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType,d("AdsAccountAttributionSpecUpdateStartDataActionFlux").actionType,d("AdsAccountAttributionSpecUpdateSuccessDataActionFlux").actionType,d("AdsAccountAttributionSpecLoadSuccessDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux").actionType,d("AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux").actionType,d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType,d("AdsAMAccountAcceptedTosAddActionFlux").actionType,d("AdsAMAccountInitActionFlux").actionType,d("AdsPERefreshTableViewActionFlux").actionType,d("AdsPEUploadShowPreviewActionFlux").actionType]};e.canUpdateCurrency=function(){if(this.$AdsAccountStoreClassOld1==null)return!1;var a=this.getCached(this.$AdsAccountStoreClassOld1).getValue();if(c("isFalsey")(a))return!1;var b=c("AdsAccountUtils").hasCapability(a,"CAN_UPDATE_CURRENCY");a=c("AdsAccountUtils").isPaymentInfoRequired(a);return b&&a};e.get=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();return a===this.$AdsAccountStoreClassOld1?this.getSelectedAccount():d("AdsLoadStateUtils_LEGACY").toLoadObject(this.$AdsAccountStoreClassOld7(a))};e.$AdsAccountStoreClassOld7=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return d("AdsLoadStateUtils_LEGACY").fromLoadObject(b.get(a))})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var b=this.$AdsAccountStoreClassOld3.get(a);b||(b=c("AdsCachedLoadState_LEGACY").LOADING,this.$AdsAccountStoreClassOld3.set(a,b),c("AdsAccountDataDispatcher").loadAccountData(a));return b};e.getCached=function(a){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(b){b=b();b=b.accounts;return b.get(a)})||c("LoadObject").empty();var b=this.$AdsAccountStoreClassOld3.get(a);b||(b=c("AdsCachedLoadState_LEGACY").NOT_LOADED);return d("AdsLoadStateUtils_LEGACY").toLoadObject(b)};e.$AdsAccountStoreClassOld8=function(){var a=this.$AdsAccountStoreClassOld1;if(!a)return;c("AdsAccountDataDispatcher").loadAccountData(a);return};e.getAllLoadObjects=function(a){a=this.getAll(a.toArray());var b=new Map();for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=g[0];g=g[1];b.set(h,d("AdsLoadStateUtils_LEGACY").toLoadObject(g))}return c("immutable").Map(b)};e.getAll=function(a){var b=this,c=new Map();a.forEach(function(a){c.set(a,b.$AdsAccountStoreClassOld7(a))});return c};e.getAllCached=function(a){var b=this,d=new Map();a.forEach(function(a){var e=b.$AdsAccountStoreClassOld3.get(a);e||(e=c("AdsCachedLoadState_LEGACY").NOT_LOADED);d.set(a,e)});return d};e.getByFields=function(a,b){var d=this.$AdsAccountStoreClassOld3.get(a);if(!d){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassOld3.set(a,c("AdsCachedLoadState_LEGACY").LOADING);return c("AdsCachedLoadState_LEGACY").LOADING}if(d.loadState===c("AdsLoadState_LEGACY").ERROR)return c("AdsCachedLoadState_LEGACY").ERROR;if(d.loadState===c("AdsLoadState_LEGACY").LOADING)return c("AdsCachedLoadState_LEGACY").LOADING;var e=b.some(function(a){return d[a]==null});if(e){c("AdsAccountDataDispatcher").loadAccountDataByFields(a,b);this.$AdsAccountStoreClassOld3.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADING}));return c("AdsCachedLoadState_LEGACY").LOADING}var f={};b.forEach(function(a){f[a]=d[a]});f.loadState=c("AdsLoadState_LEGACY").LOADED;return f};e.getAllByFields=function(a,b){var c=this,d=new Map();a.forEach(function(a){d.set(a,c.getByFields(a,b))});return d};e.$AdsAccountStoreClassOld9=function(){return this.$AdsAccountStoreClassOld1};e.getTimezoneName=function(){var a=this.__getSelectedAccount().timezone_name;return a?a:""};e.getViewerPermissions=function(){var a=this.$AdsAccountStoreClassOld9();if(a){this.$AdsAccountStoreClassOld4[a]||(this.$AdsAccountStoreClassOld4[a]=c("LoadObject").loading(),c("AdsAccountDataDispatcher").loadViewerPermissions(a));return this.$AdsAccountStoreClassOld4[a]}return c("LoadObject").empty()};e.getViewerHasPermission=function(a){var b=this.getViewerPermissions();return b.hasValueWithoutError()&&Array.isArray(b.getValueEnforcing().data)&&b.getValueEnforcing().data.includes(a)};e.__getSelectedAccount=function(){if(d("AdsApplicationUtils").isFAME())return c("ifRequired")("AdsExcelAccountProvider",function(a){a=a();var b=a.selectedAccountID;a=a.accounts;a=b!=null?a.get(b):null;return a!=null?d("AdsLoadStateUtils_LEGACY").fromLoadObject(a):null})||c("AdsCachedLoadState_LEGACY").NOT_LOADED;var a=this.$AdsAccountStoreClassOld9();return!a?c("AdsCachedLoadState_LEGACY").NOT_LOADED:this.$AdsAccountStoreClassOld7(a)};e.toURLParams=function(){return!this.$AdsAccountStoreClassOld1?null:{act:this.$AdsAccountStoreClassOld1}};e.$AdsAccountStoreClassOld10=function(){var a=this.__getSelectedAccount();c("DateTime").setupTimezoneFallback(a.timezone_id,a.timezone_offset_hours_utc)};e.__onDispatch=function(a){var b=a.action;a=!1;var e=this.$AdsAccountStoreClassOld9();switch(b.actionType){case d("AdsAccountInitDataActionFlux").actionType:this.$AdsAccountStoreClassOld11(b.data);a=!0;break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassOld12(b.accountID,b.account);a=!0;break;case d("AdsAccountBatchLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassOld13(b.accountID,b.error);a=!0;break;case d("AdsAccountChangeAccountNameDataActionFlux").actionType:if(e!=null){var f=this.$AdsAccountStoreClassOld3.get(e);if(f==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},f,{name:b.name}));a=!0}break;case d("AdsAccountChangeAccountCountryDataActionFlux").actionType:if(e!=null){f=b.country;var g=d("AdsTimezone").countryCodeToTimezoneIDsMap[f][0],h=d("AdsTimezone").timezoneIDToOffsetMap[g],i=this.__getSelectedAccount().currency,j=this.$AdsAccountStoreClassOld3.get(e);if(j==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},j,{business_country_code:f,timezone_id:g,timezone_offset_hours_utc:h}));j=Object.prototype.hasOwnProperty.call(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req,f)||Object.values(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req).some(function(a){return a===i});if(!this.$AdsAccountStoreClassOld5||j){g=d("AdsCountries").getCurrencyByCountry(f);h=this.$AdsAccountStoreClassOld3.get(e);if(h==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},h,{currency:g}))}this.$AdsAccountStoreClassOld10();a=!0}break;case d("AdsAccountChangeAccountCurrencyDataActionFlux").actionType:if(e!=null){j=this.$AdsAccountStoreClassOld3.get(e);if(j==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},j,{currency:b.currency}));f=Object.keys(c("AdsPaymentsCountryToCurrencyLegalReq").legal_req).find(function(a){return c("AdsPaymentsCountryToCurrencyLegalReq").legal_req[a]===b.currency});if(f!==void 0){h=this.$AdsAccountStoreClassOld3.get(e);if(h==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},h,{business_country_code:f}))}this.$AdsAccountStoreClassOld5=!0;a=!0}break;case d("AdsAccountChangeAccountTimezoneIdDataActionFlux").actionType:if(e!=null){g=this.$AdsAccountStoreClassOld3.get(e);if(g==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},g,{timezone_id:b.timezoneID,timezone_offset_hours_utc:d("AdsTimezone").timezoneIDToOffsetMap[b.timezoneID]}));this.$AdsAccountStoreClassOld10();a=!0}break;case d("AdsPEUploadShowPreviewActionFlux").actionType:b.didUpdateAccount&&this.$AdsAccountStoreClassOld8();break;case d("AdsAccountAddCapabilitiesDataActionFlux").actionType:if(e!=null){j=this.__getSelectedAccount();this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},j,{capabilities:j.capabilities.concat(b.capabilities)}));a=!0}break;case d("AdsPERefreshTableViewActionFlux").actionType:this.__invalidateAllErrors()&&(a=!0);break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:this.__invalidateAllErrors()&&(a=!0);h=b.data.changedParamKeys;if(h.act||h.business_id){f=b.data.params;if(!f.act&&f.tool==="REPORTING")this.$AdsAccountStoreClassOld14(f.business_id,f.act);else if(f.act)this.$AdsAccountStoreClassOld15(f.act,f.business_id);else break;a=!0}break;case d("AdsAccountSelectDataActionFlux").actionType:if(d("AdsApplicationUtils").isPowerEditor())break;this.$AdsAccountStoreClassOld15(b.accountID,b.businessID);a=!0;break;case d("AdsAccountSettingsCreateFinishedDataActionFlux").actionType:this.$AdsAccountStoreClassOld16(b.accountID,b.settingsID);break;case d("AdsAccountSettingsUpdateStartDataActionFlux").actionType:this.$AdsAccountStoreClassOld1!=null&&c("AdsAccountDataDispatcher").updateAccount(this.$AdsAccountStoreClassOld1,b.data);break;case d("AdsAccountInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassOld17(b.id)&&(a=!0);break;case d("AdsAccountListInvalidateDataActionFlux").actionType:this.$AdsAccountStoreClassOld18(b.accounts)&&(a=!0);break;case d("AdsAccountViewerPermissionsLoadedDataActionFlux").actionType:this.$AdsAccountStoreClassOld4[b.accountID]=c("LoadObject").withValue({data:b.data});a=!0;break;case d("AdsAccountViewerPermissionsLoadErrorDataActionFlux").actionType:this.$AdsAccountStoreClassOld4[b.accountID]=c("LoadObject").withError(new Error(b.data));a=!0;break;case d("AdsAccountAttributionSpecUpdateStartDataActionFlux").actionType:e!=null&&c("AdsAccountDataDispatcher").updateAccountAttributionSpec(e,{attribution_spec:b.attributionSpec});break;case d("AdsAccountAttributionSpecUpdateSuccessDataActionFlux").actionType:if(e!=null){c("AdsAccountDataDispatcher").loadAccountAttributionSpec(e);g=this.$AdsAccountStoreClassOld3.get(e);if(g==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},g,{loadState:c("AdsLoadState_LEGACY").LOADING}))}break;case d("AdsAccountAttributionSpecLoadSuccessDataActionFlux").actionType:if(e!=null){j=this.$AdsAccountStoreClassOld3.get(e);if(j==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},j,{attribution_spec:b.data.attribution_spec,is_attribution_spec_system_default:b.data.is_attribution_spec_system_default,loadState:c("AdsLoadState_LEGACY").LOADED}));a=!0}break;case d("AdsAccountDefaultUnifiedAttrSpecUpdateStartDataActionFlux").actionType:e!=null&&c("AdsAccountDataDispatcher").updateAccountDefaultUnifiedAttrSpec(e,{default_unified_attribution_spec:b.defaultUnifiedAttrSpec});break;case d("AdsAccountDefaultUnifiedAttrSpecUpdateSuccessDataActionFlux").actionType:if(e!=null){c("AdsAccountDataDispatcher").loadAccountDefaultUnifiedAttrSpec(e);h=this.$AdsAccountStoreClassOld3.get(e);if(h==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},h,{loadState:c("AdsLoadState_LEGACY").LOADING}))}break;case d("AdsAccountDefaultUnifiedAttrSpecLoadSuccessDataActionFlux").actionType:if(e!=null){f=this.$AdsAccountStoreClassOld3.get(e);if(f==null)break;this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},f,{default_unified_attribution_spec:b.data.default_unified_attribution_spec,loadState:c("AdsLoadState_LEGACY").LOADED}));a=!0}break;case d("AdsAdgroupAcceptMAIDeeplinkTOSDataActionFlux").actionType:c("AdsAccountDataDispatcher").handleAcceptMAIDeeplinkTOS(this.getSelectedAccountID());a=!0;break;case d("AdsAMAccountAcceptedTosAddActionFlux").actionType:if(e==null)break;g=this.$AdsAccountStoreClassOld3.get(e);if(g==null)break;j=g.tos_accepted?g.tos_accepted:Object();j=babelHelpers["extends"]({},j,b.addedTOS);this.$AdsAccountStoreClassOld3.set(e,babelHelpers["extends"]({},g,{tos_accepted:j}));a=!0;break;case d("AdsAMAccountInitActionFlux").actionType:h=b.account.account_id;if(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld19(h)){this.$AdsAccountStoreClassOld20(h);break}c("AdsAccountUtils").logMsgWhenAccountUpdates();this.$AdsAccountStoreClassOld1=h;this.$AdsAccountStoreClassOld12(h,b.account);a=!0;c("AdsAccountUtils").logAccID("flux");break;case d("AdsAccountGKsErrorActionFlux").actionType:case d("AdsAccountGKsLoadedActionFlux").actionType:a=!0;break}a&&this.__emitChange()};e.$AdsAccountStoreClassOld21=function(a,b){var d=this.$AdsAccountStoreClassOld3.get(a);!d||d.loadState===c("AdsLoadState_LEGACY").LOADING?this.$AdsAccountStoreClassOld3.set(a,b):this.$AdsAccountStoreClassOld3.set(a,babelHelpers["extends"]({},d,b))};e.$AdsAccountStoreClassOld12=function(a,b){var d=this.$AdsAccountStoreClassOld3.get(a);d&&this.$AdsAccountStoreClassOld3.set(a,babelHelpers["extends"]({},d,{loadState:c("AdsLoadState_LEGACY").LOADED}));this.$AdsAccountStoreClassOld21(a,babelHelpers["extends"]({},b,{loadState:c("AdsLoadState_LEGACY").LOADED}))};e.$AdsAccountStoreClassOld13=function(a,b){this.$AdsAccountStoreClassOld3.set(a,{loadState:c("AdsLoadState_LEGACY").ERROR,error:b})};e.$AdsAccountStoreClassOld11=function(a){var b={},e=a.accountID;!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld19(e)?this.$AdsAccountStoreClassOld20(e):(c("AdsAccountUtils").logMsgWhenAccountUpdates(),this.$AdsAccountStoreClassOld1=e,this.$AdsAccountStoreClassOld2=c("getByPath")(a.accountInfo,["business","id"]),b=a.accountInfo,b.business_country_code=b.business_country_code||i,b.name=a.accountName,b.hasSuperRead=a.hasSuperRead,c("promiseDone")(d("AdsAccountDataLoader").postUserSettings(e)),c("DateTime").setupTimezoneFallback(b.timezone_id,b.timezone_offset_hours_utc),d("AdsEngagementAudienceUILogger").setAppName(c("AdsPixelUIEnvironments").CM),b.loadState=c("AdsLoadState_LEGACY").LOADED,this.$AdsAccountStoreClassOld21(a.accountID,b),c("AdsAccountUtils").logAccID("initAccountData"),c("ifRequired")("EventProfiler",function(a){a.setCurrentAdAccountId(e)}))};e.$AdsAccountStoreClassOld17=function(a){return this.$AdsAccountStoreClassOld3.has(a)?this.$AdsAccountStoreClassOld3["delete"](a):!1};e.__invalidateAllErrors=function(){var a=this,b=!1;this.$AdsAccountStoreClassOld3.forEach(function(d,e){if(d.loadState===c("AdsLoadState_LEGACY").ERROR){d=a.$AdsAccountStoreClassOld17(e);b=d||b}});return b};e.$AdsAccountStoreClassOld18=function(a){var b=this,c=!1;a.forEach(function(a){c=c||b.$AdsAccountStoreClassOld17(a);var d=b.$AdsAccountStoreClassOld6.get(a);b.$AdsAccountStoreClassOld6.set(a,d?d+1:1)});return c};e.$AdsAccountStoreClassOld16=function(a,b){var d=this.$AdsAccountStoreClassOld3.get(a);d!=null&&d.loadState===c("AdsLoadState_LEGACY").LOADED&&(d=babelHelpers["extends"]({},d,{user_settings:{id:b}}),this.$AdsAccountStoreClassOld3.set(a,d))};e.$AdsAccountStoreClassOld14=function(a,b){(b!==this.$AdsAccountStoreClassOld1||a!==this.$AdsAccountStoreClassOld2)&&(!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld19(b)?this.$AdsAccountStoreClassOld20(b):(c("AdsAccountUtils").logMsgWhenAccountUpdates(),this.$AdsAccountStoreClassOld1=b,this.$AdsAccountStoreClassOld2=a,c("AdsAccountUtils").logAccID("selectBusiness"),c("ifRequired")("EventProfiler",function(a){a.setCurrentAdAccountId(b)})))};e.$AdsAccountStoreClassOld15=function(a,b){var e=b!==this.$AdsAccountStoreClassOld2;(a!==this.$AdsAccountStoreClassOld1||e)&&(!d("AdsApplicationUtils").isFAME()&&!e&&this.$AdsAccountStoreClassOld19(a)?this.$AdsAccountStoreClassOld20(a):(c("AdsAccountUtils").logMsgWhenAccountUpdates(),this.$AdsAccountStoreClassOld1=a,this.$AdsAccountStoreClassOld2=b,c("AdsAccountUtils").logAccID("selectAccount"),c("ifRequired")("EventProfiler",function(b){b.setCurrentAdAccountId(a)})))};e.__setStoreState=function(a){var b=a.selectedAccountID,e=a.selectedBusinessID;a=a.accounts;var f=new Map();a.forEach(function(a,b){f.set(b,babelHelpers["extends"]({},a.getValueEnforcing(),{loadState:d("AdsLoadStateUtils_LEGACY").fromLoadObject(a).loadState}))});!d("AdsApplicationUtils").isFAME()&&this.$AdsAccountStoreClassOld19(b)?this.$AdsAccountStoreClassOld20(b):(c("AdsAccountUtils").logMsgWhenAccountUpdates(),this.$AdsAccountStoreClassOld1=b,this.$AdsAccountStoreClassOld2=e,this.$AdsAccountStoreClassOld3=f,c("AdsAccountUtils").logAccID("setStoreState"))};e.$AdsAccountStoreClassOld19=function(a){return this.$AdsAccountStoreClassOld1!=null&&this.$AdsAccountStoreClassOld1!==a};e.$AdsAccountStoreClassOld20=function(a,b){var d=new(c("URI"))(window.location.href);if(d.getPath().includes("accountquality")){var e=c("XAdsAccountQualityController").getURIBuilder();a!=null&&e.setFBID("primary_id",a);b!=null&&e.setFBID("primary_id",b).setFBID("secondary_id",a);d=e.getURI()}else d.setQueryData({act:a}),b!=null&&d.setQueryData({act:a,business_id:b});c("AdsAccountUtils").logMsgWhenAccountUpdates();c("goURI")(d)};return b}(c("FluxStore"));b.__moduleID=f.id;g["default"]=b}),98);
-----
AdsPEFilterAndSortReducer",["AdsAccountBatchLoadedDataActionFlux","AdsAccountStore","AdsAdgroupSelectionClearDataActionFlux","AdsCampaignGroupSelectionClearDataActionFlux","AdsCampaignSelectionClearDataActionFlux","AdsDataAtom","AdsDraftDraftPublishCompletedDataActionFlux","AdsDraftSelectionStore","AdsGenericFilterSetUtil","AdsInterfacesRouteUpdateParamsDataActionFlux","AdsMgmtCurrentLevelSortInfoSelector","AdsMgmtSelectedAncestorIDsSelectors","AdsNavigationChangeNavigationStateDataActionFlux","AdsPEFilterAppliedActionFlux","AdsPEFilterChangedActionFlux","AdsPEFilterLiveDataManager","AdsPEFilterLoadErrorActionFlux","AdsPEFilterUIStateSelectors","AdsPEFluxAdTableSetSortKeyActionFlux","AdsPEFluxCampaignGroupTableSetSortKeyActionFlux","AdsPEFluxCampaignTableSetSortKeyActionFlux","AdsPERefreshTableViewActionFlux","AdsPEScenarioUtils","AdsPESortLiveUtils","AdsPerfInteractionUtil","AdsPerfInteractionsController","AdsRevertAdObjectsDataActionFlux","AdsRevertSelectedAdObjectsDataActionFlux","adsMgmtCurrentLevelSelector","adsMgmtLoadIDRequestViewSpecParamsSelector","adsMgmtNeedToLoadAllFilteredIDsSelector","adsMgmtPagingDataSelector","adsPEManageAdsSectionSelector","gkx","hasDateChangeRelatedFilter","hasLabelFilter","isFalsey"],(function(a,b,c,d,e,f,g){"use strict";var h=[].concat(d("AdsPEFilterUIStateSelectors").getFilterSet.getStores()),i=Array.from(new Set(c("adsMgmtPagingDataSelector").getStores())),j=[].concat(d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtRelevantSelectionsMapSelector.getStores(),d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtSelectedAncestorIDsSelector.getStores());a=[c("AdsAccountStore"),c("AdsDraftSelectionStore")].concat(d("AdsPEFilterUIStateSelectors").getFilterSet.getStores(),i,j,d("AdsMgmtCurrentLevelSortInfoSelector").adsMgmtCurrentLevelSortInfoSelector.getStores(),c("adsPEManageAdsSectionSelector").getStores(),c("adsMgmtLoadIDRequestViewSpecParamsSelector").getStores(),c("adsMgmtNeedToLoadAllFilteredIDsSelector").getStores(),c("adsMgmtCurrentLevelSelector").getStores());var k=a.map(function(a){return a&&a.getDispatchToken()}),l=function(a){return!!a&&c("hasLabelFilter")(a)},m=function(){return j.some(function(a){return a.hasChanged()})},n=function(){var a=c("adsMgmtCurrentLevelSelector")();if(!a)return!1;var b=c("adsMgmtLoadIDRequestViewSpecParamsSelector")();b=b.sortInfoMap;return!(d("AdsPESortLiveUtils").isSortByError(b[a])||d("AdsPESortLiveUtils").isSortByChanged(b[a]))},o=function(a){if(!a.data.changedParamKeys.date)return!1;a=d("AdsMgmtCurrentLevelSortInfoSelector").adsMgmtCurrentLevelSortInfoSelector();return a&&d("AdsPESortLiveUtils").isDateChangeRelatedSort(a)?!0:c("hasDateChangeRelatedFilter")(d("AdsPEFilterUIStateSelectors").getFilterSet())},p=function(a){var b=function(a){return a==null?void 0:a.hasChanged()};if(h.some(b)&&!d("AdsGenericFilterSetUtil").completeMatchesExactly(a.filterSet,d("AdsPEFilterUIStateSelectors").getFilterSet()))return!0;if(c("adsPEManageAdsSectionSelector").getStores().some(b))return!0;if(m())return!0;if(d("AdsMgmtCurrentLevelSortInfoSelector").SORT_STORES.some(b))return!0;if(c("AdsDraftSelectionStore").hasChanged()&&q(a))return!0;if(c("AdsAccountStore").hasChanged()&&a.accountID!==c("AdsAccountStore").getSelectedAccountID())return!0;return i.some(b)&&r(a)?!0:!1},q=function(a){var b=c("AdsAccountStore").getSelectedAccountID();if(b==null)return!1;b=c("AdsDraftSelectionStore").getCached(b);if(!b.hasValue())return!1;a=a.draftID;return a==null?!0:b.getValue()!==a.getValue()},r=function(a){var b=c("adsMgmtCurrentLevelSelector")();if(!b)return!1;var d=c("adsMgmtPagingDataSelector")(b);return a.currentPageByLevel[b]!==d.currentPage},s=function(a,b,e,f,g){var h;g===void 0&&(g=!1);a=a;var i=c("adsMgmtCurrentLevelSelector")(),j=c("AdsAccountStore").getSelectedAccountID();if(c("isFalsey")(j)||!i||i==="topline")return a;var k=c("adsMgmtLoadIDRequestViewSpecParamsSelector")(),l=k.sortInfoMap,m=k.dateTimeRange,n=k.datePreset,o=k.comparisonDateTimeRange;k=k.timezoneID;a=a.set("accountID",j);var p=d("AdsPEFilterUIStateSelectors").getFilterSet();a=a.set("filterSet",p);var q=d("AdsMgmtSelectedAncestorIDsSelectors").adsMgmtRelevantSelectionsMapSelector(i),r=c("AdsDraftSelectionStore").getCached(j);a=a.set("draftID",r);var s=c("adsMgmtPagingDataSelector")(i);a=a.set("currentPageByLevel",babelHelpers["extends"]({},a.currentPageByLevel,(h={},h[i]=s.currentPage,h)));a=a.set("areIDsLoading",!0);b!==d("AdsNavigationChangeNavigationStateDataActionFlux").actionType&&(a=a.set("areCountsLoading",!0));c("AdsPEFilterLiveDataManager").loadIDsForFilterSet(j,p,q,l,r,i,s,m,k,o,n,f,g,e);return a};b=function(a,b){var e;a=a;c("AdsDataAtom").waitFor(k);switch(b.type){case d("AdsPEFilterAppliedActionFlux").actionType:a=a.set("areCountsLoading",!1).set("areIDsLoading",!1).set("error",null);break;case d("AdsPEFilterLoadErrorActionFlux").actionType:a=a.set("areCountsLoading",!1).set("areIDsLoading",!1).set("error",b.error);break;case d("AdsDraftDraftPublishCompletedDataActionFlux").actionType:c("gkx")("7401")&&((e=(e=d("AdsPerfInteractionUtil").getTracePolicy())==null?void 0:e.indexOf("edit"))!=null?e:-1)!==-1&&c("AdsPerfInteractionsController").startInteraction("am.editor.reload_in_same_level",f.id);a=s(a,b.type,void 0,void 0,!0);break;case d("AdsAccountBatchLoadedDataActionFlux").actionType:case d("AdsRevertAdObjectsDataActionFlux").actionType:case d("AdsRevertSelectedAdObjectsDataActionFlux").actionType:case d("AdsAdgroupSelectionClearDataActionFlux").actionType:case d("AdsCampaignSelectionClearDataActionFlux").actionType:case d("AdsCampaignGroupSelectionClearDataActionFlux").actionType:a=s(a,b.type);break;case d("AdsPEFilterChangedActionFlux").actionType:break;case d("AdsPEFluxAdTableSetSortKeyActionFlux").actionType:case d("AdsPEFluxCampaignTableSetSortKeyActionFlux").actionType:case d("AdsPEFluxCampaignGroupTableSetSortKeyActionFlux").actionType:n()&&p(a)&&(a=s(a,b.type));break;case d("AdsPERefreshTableViewActionFlux").actionType:(b.allLevels||b.adLevel===c("adsMgmtCurrentLevelSelector")())&&(a=s(a,b.type,d("AdsPEScenarioUtils").getScenarioInfo(b)));break;case d("AdsInterfacesRouteUpdateParamsDataActionFlux").actionType:(o(b)||p(a)||c("adsMgmtNeedToLoadAllFilteredIDsSelector")())&&(a=s(a,b.type,d("AdsPEScenarioUtils").getScenarioInfo(b),b.data.changedParamKeys,l(b.data.params.filter_set)));break;default:p(a)&&(a=s(a,b.type))}return a};g.reduce=b}),98);
-----
AdsAccountBatchLoadedDataActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"ACCOUNT.BATCH_LOADED"}}),null);
-----