AdsMgmtCampaignDynamicStore",["AdsDraftDraftPublishCompletedDataActionFlux","AdsMgmtCampaignDynamicStoreSource","AdsPERefreshCampaignRowActionFlux","AdsPERefreshTableViewActionFlux","LoadObject","ReverseInteropStoreBase","adsCreateStoreThunkSelector","adsDraftGetIDsToInvalidateAfterPublish","err","first","immutable","memoize"],(function(a,b,c,d,e,f,g){"use strict";var h="AdsMgmtCampaignDynamicStore.DATA_UPDATED";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b=new(c("AdsMgmtCampaignDynamicStoreSource"))();b=a.call(this,b,h,{batchSize:10})||this;b.$AdsMgmtCampaignDynamicStore$p_1=new Map();b.toFluxSelector=c("memoize")(function(){return c("adsCreateStoreThunkSelector")(i,function(){return i})});return b}var e=b.prototype;e.reduce=function(a,b){b=b.action;switch(b.type){case c("AdsPERefreshCampaignRowActionFlux").actionType:var e=b.campaignIds;this.$AdsMgmtCampaignDynamicStore$p_2(e);return{};case d("AdsDraftDraftPublishCompletedDataActionFlux").actionType:e=c("adsDraftGetIDsToInvalidateAfterPublish")({response:b.response,ancestorIDs:b.ancestorIDs});this.$AdsMgmtCampaignDynamicStore$p_2(e);return{};case d("AdsPERefreshTableViewActionFlux").actionType:if(b.allLevels===!0||b.adLevel==="campaign"){this.$AdsMgmtCampaignDynamicStore$p_3();return{}}return a;default:return a}};e.getFields=function(a,b,d){if(!this.isValidKey(a,this.__moduleID))return c("LoadObject").withError(c("err")("Invalid id: %s on level: Campaign from %s",a,this.__moduleID));a=this.GetIdsWithFieldsMemoized(Array.from([a]),b,d);d=(b=c("first")(a))==null?void 0:b.value;return(a=d)!=null?a:c("LoadObject").empty()};e.getSingleField=function(b,d){return!this.isValidKey(b,this.__moduleID)?c("LoadObject").withError(c("err")("Invalid id: %s on level: Campaign from %s",b,this.__moduleID)):a.prototype.getSingleField.call(this,b,d)};e.getCachedSingleField=function(b,d){return!this.isValidKey(b,this.__moduleID)?c("LoadObject").withError(c("err")("Invalid id: %s on level: Campaign from %s",b,this.__moduleID)):a.prototype.getCachedSingleField.call(this,b,d)};e.getAllCached=function(a,b){return this.$AdsMgmtCampaignDynamicStore$p_4(a,b)};e.getState=function(){return i};e.toFluxStore=function(){return i};e.$AdsMgmtCampaignDynamicStore$p_4=function(a,b){var c=this.$AdsMgmtCampaignDynamicStore$p_5("getAllCachedByFields",a,b),d=this.$AdsMgmtCampaignDynamicStore$p_6(c);if(d!=null)return d;d=this.$AdsMgmtCampaignDynamicStore$p_7(a,b);this.$AdsMgmtCampaignDynamicStore$p_8(c,d);return d};e.$AdsMgmtCampaignDynamicStore$p_7=function(a,b){a=Array.from(a);a=this.GetCachedIdsWithFieldsMemoized(a,b);return c("immutable").Map(a.map(function(a){var b=a.key;a=a.value;return[b,(b=a)!=null?b:c("LoadObject").empty()]}))};e.$AdsMgmtCampaignDynamicStore$p_5=function(a,b,c){return a+":"+Array.from(b).join(",")+":"+Object.keys(c).join(",")};e.$AdsMgmtCampaignDynamicStore$p_6=function(a){return this.$AdsMgmtCampaignDynamicStore$p_1.get(a)};e.$AdsMgmtCampaignDynamicStore$p_8=function(a,b){this.$AdsMgmtCampaignDynamicStore$p_1.set(a,b)};e.$AdsMgmtCampaignDynamicStore$p_2=function(a){this.refetchKeys(a)};e.$AdsMgmtCampaignDynamicStore$p_3=function(){this.refetchAll()};return b}(c("ReverseInteropStoreBase"));var i=new a();b=i;g["default"]=b}),98);
-----
AdsPERefreshCampaignRowActionFlux",[],(function(a,b,c,d,e,f){"use strict";e.exports={actionType:"AdsPERefreshCampaignRowActionPlugin"}}),null);
-----