adsExperimentsLightweightTestSetupBulkProcessMutationsIndividualMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{kind:"Variable",name:"data",variableName:"input"}],c={alias:null,args:null,kind:"ScalarField",name:"study_id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"error_message",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"async_request_set_id",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"ad_market_id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"adsExperimentsLightweightTestSetupBulkProcessMutationsIndividualMutation",selections:[{alias:null,args:b,concreteType:"XFBAdsExperimentsLightweightTestCreationPayloadResponse",kind:"LinkedField",name:"xfb_ads_experiments_lightweight_test_setup",plural:!1,selections:[c,d,e,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"full_fragments",plural:!0,selections:[f,g],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"adsExperimentsLightweightTestSetupBulkProcessMutationsIndividualMutation",selections:[{alias:null,args:b,concreteType:"XFBAdsExperimentsLightweightTestCreationPayloadResponse",kind:"LinkedField",name:"xfb_ads_experiments_lightweight_test_setup",plural:!1,selections:[c,d,e,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"full_fragments",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f,g],storageKey:null}],storageKey:null}]},params:{id:"24653130420956247",metadata:{},name:"adsExperimentsLightweightTestSetupBulkProcessMutationsIndividualMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
adsExperimentsLightweightTestSetupBulkProcessMutations",["AdsApplicationIDs","AdsDataAtom","AdsDraftDraftFragmentListLoadedDataAction","AdsDraftPublishDataManager","AdsExperimentsBackendLightweightCreationCompletedAction","AdsExperimentsCreateTestModalUtils","AdsExperimentsFunnelLogger","AdsExperimentsLightweightSplitTestType","FBLogger","Promise","RelayModern","XFBLightweightSplitTestType.facebook","adsExperimentsLightweightTestSetupBulkProcessMutationsIndividualMutation.graphql","asyncToGeneratorRuntime","err","nullthrows","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h!==void 0?h:h=b("adsExperimentsLightweightTestSetupBulkProcessMutationsIndividualMutation.graphql");function l(a){var e=a.adAccountID,f=a.testConfiguration,g=a.environment,h=a.draftID,i=f.studyLevelAdObjectID,l=f.schedule,n=f.lightweightType,o=m(n);return new(j||(j=b("Promise")))(function(a,b){d("RelayModern").commitMutation(g,{mutation:k,variables:{input:{ad_draft_id:h,ad_object_id:i,start_time:l.startTime.instant,end_time:l.endTime.instant,lightweight_type:o,ad_account_id:e}},onCompleted:function(b){var d;b=b.xfb_ads_experiments_lightweight_test_setup;var e=b==null?void 0:b.study_id,f=b==null?void 0:b.async_request_set_id;d=(b==null?void 0:(d=b.full_fragments)==null?void 0:d.map(function(a){return a.id}).filter(Boolean))||[];b=(b==null?void 0:(b=b.full_fragments)==null?void 0:b.map(function(a){return a.ad_market_id}).filter(Boolean))||[];if(e==null)throw c("FBLogger")("ads_experiments").mustfixThrow("Unexpected missing study_id for ad_object_id: %s",i);a({studyID:e,asyncRequestSetID:f,fullFragmentIDs:d,copyAdObjectIDs:b,lightweightType:n})},onError:function(a){c("AdsExperimentsFunnelLogger").withoutAccountID().setAction("LIGHTWEIGHT_TESTING_INDIVIDUAL_GRAPHQL_CREATION_FAILURE").addActionParam("studyLevelAdObjectID",i).log(),b(a)}})})}function m(a){a=c("XFBLightweightSplitTestType.facebook").cast(c("AdsExperimentsLightweightSplitTestType").getName(a));return c("nullthrows")(a)}function a(a,b,c){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,g){var h=function(b){return c("AdsExperimentsFunnelLogger").withoutAccountID().setAction(b).addActionParam("adObjectIds",a.toArray().map(function(a){return a.studyLevelAdObjectID})).log()};h("LIGHTWEIGHT_TESTING_BULK_GRAPHQL_CREATION_ATTEMPT");var k=(yield d("AdsExperimentsCreateTestModalUtils").lazyGetDraftID(e)),m=a.toArray().map(function(a){return l({adAccountID:e,testConfiguration:a,environment:g,draftID:k})});m=(yield (j||(j=b("Promise"))).allSettled(m));var n=m.every(function(a){a=a.status;return a==="fulfilled"}),o=m.map(function(a){a=a.value;return a==null?void 0:a.asyncRequestSetID}).filter(Boolean),p=m.filter(function(a){a=a.status;return a==="fulfilled"}).flatMap(function(a){a=a.value;return(a==null?void 0:a.fullFragmentIDs)||[]});o.length>0&&(c("AdsDraftDraftFragmentListLoadedDataAction").dispatch({draftID:k,adsApplicationID:c("AdsApplicationIDs").ADS_POWER_EDITOR,fragments:p},{line:"192",module:"adsExperimentsLightweightTestSetupBulkProcessMutations.js",moduleID:f.id}),m.filter(function(a){a=a.status;return a==="fulfilled"}).forEach(function(a){var b=a.value,d=b==null?void 0:b.studyID,e=b==null?void 0:b.copyAdObjectIDs;if(d==null||e==null||e.length===0)return;(i||(i=c("AdsDataAtom"))).addPostDispatchCallback(function(){c("AdsExperimentsBackendLightweightCreationCompletedAction").dispatch({studyID:d,adObjectIDs:e,lightweightType:b==null?void 0:b.lightweightType},{line:"211",module:"adsExperimentsLightweightTestSetupBulkProcessMutations.js",moduleID:f.id})})}),c("promiseDone")(c("AdsDraftPublishDataManager").fetchAndDispatchPublishStatus(k,o)));if(n)h("LIGHTWEIGHT_TESTING_BULK_GRAPHQL_CREATION_SUCCESS");else{h("LIGHTWEIGHT_TESTING_BULK_GRAPHQL_CREATION_FAILED");throw c("err")("One ore more lightweight test setup requests failed")}});return n.apply(this,arguments)}g.getLightweightGraphQLType=m;g.adsExperimentsLightweightTestSetupBulkProcessMutations=a}),98);
-----
-----
adsExperimentsLightweightTestSetupBulkProcessMutations",["AdsApplicationIDs","AdsDataAtom","AdsDraftDraftFragmentListLoadedDataAction","AdsDraftPublishDataManager","AdsExperimentsBackendLightweightCreationCompletedAction","AdsExperimentsCreateTestModalUtils","AdsExperimentsFunnelLogger","AdsExperimentsLightweightSplitTestType","FBLogger","Promise","RelayModern","XFBLightweightSplitTestType.facebook","adsExperimentsLightweightTestSetupBulkProcessMutationsIndividualMutation.graphql","asyncToGeneratorRuntime","err","nullthrows","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h!==void 0?h:h=b("adsExperimentsLightweightTestSetupBulkProcessMutationsIndividualMutation.graphql");function l(a){var e=a.adAccountID,f=a.testConfiguration,g=a.environment,h=a.draftID,i=f.studyLevelAdObjectID,l=f.schedule,n=f.lightweightType,o=m(n);return new(j||(j=b("Promise")))(function(a,b){d("RelayModern").commitMutation(g,{mutation:k,variables:{input:{ad_draft_id:h,ad_object_id:i,start_time:l.startTime.instant,end_time:l.endTime.instant,lightweight_type:o,ad_account_id:e}},onCompleted:function(b){var d;b=b.xfb_ads_experiments_lightweight_test_setup;var e=b==null?void 0:b.study_id,f=b==null?void 0:b.async_request_set_id;d=(b==null?void 0:(d=b.full_fragments)==null?void 0:d.map(function(a){return a.id}).filter(Boolean))||[];b=(b==null?void 0:(b=b.full_fragments)==null?void 0:b.map(function(a){return a.ad_market_id}).filter(Boolean))||[];if(e==null)throw c("FBLogger")("ads_experiments").mustfixThrow("Unexpected missing study_id for ad_object_id: %s",i);a({studyID:e,asyncRequestSetID:f,fullFragmentIDs:d,copyAdObjectIDs:b,lightweightType:n})},onError:function(a){c("AdsExperimentsFunnelLogger").withoutAccountID().setAction("LIGHTWEIGHT_TESTING_INDIVIDUAL_GRAPHQL_CREATION_FAILURE").addActionParam("studyLevelAdObjectID",i).log(),b(a)}})})}function m(a){a=c("XFBLightweightSplitTestType.facebook").cast(c("AdsExperimentsLightweightSplitTestType").getName(a));return c("nullthrows")(a)}function a(a,b,c){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,g){var h=function(b){return c("AdsExperimentsFunnelLogger").withoutAccountID().setAction(b).addActionParam("adObjectIds",a.toArray().map(function(a){return a.studyLevelAdObjectID})).log()};h("LIGHTWEIGHT_TESTING_BULK_GRAPHQL_CREATION_ATTEMPT");var k=(yield d("AdsExperimentsCreateTestModalUtils").lazyGetDraftID(e)),m=a.toArray().map(function(a){return l({adAccountID:e,testConfiguration:a,environment:g,draftID:k})});m=(yield (j||(j=b("Promise"))).allSettled(m));var n=m.every(function(a){a=a.status;return a==="fulfilled"}),o=m.map(function(a){a=a.value;return a==null?void 0:a.asyncRequestSetID}).filter(Boolean),p=m.filter(function(a){a=a.status;return a==="fulfilled"}).flatMap(function(a){a=a.value;return(a==null?void 0:a.fullFragmentIDs)||[]});o.length>0&&(c("AdsDraftDraftFragmentListLoadedDataAction").dispatch({draftID:k,adsApplicationID:c("AdsApplicationIDs").ADS_POWER_EDITOR,fragments:p},{line:"192",module:"adsExperimentsLightweightTestSetupBulkProcessMutations.js",moduleID:f.id}),m.filter(function(a){a=a.status;return a==="fulfilled"}).forEach(function(a){var b=a.value,d=b==null?void 0:b.studyID,e=b==null?void 0:b.copyAdObjectIDs;if(d==null||e==null||e.length===0)return;(i||(i=c("AdsDataAtom"))).addPostDispatchCallback(function(){c("AdsExperimentsBackendLightweightCreationCompletedAction").dispatch({studyID:d,adObjectIDs:e,lightweightType:b==null?void 0:b.lightweightType},{line:"211",module:"adsExperimentsLightweightTestSetupBulkProcessMutations.js",moduleID:f.id})})}),c("promiseDone")(c("AdsDraftPublishDataManager").fetchAndDispatchPublishStatus(k,o)));if(n)h("LIGHTWEIGHT_TESTING_BULK_GRAPHQL_CREATION_SUCCESS");else{h("LIGHTWEIGHT_TESTING_BULK_GRAPHQL_CREATION_FAILED");throw c("err")("One ore more lightweight test setup requests failed")}});return n.apply(this,arguments)}g.getLightweightGraphQLType=m;g.adsExperimentsLightweightTestSetupBulkProcessMutations=a}),98);
-----